Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4372271imw; Tue, 19 Jul 2022 05:32:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vp3zoYH0ZOWn3NsRJeI8KuwHSJKy+7SzXvJaniTqM3YkiKQrRddzUN5YBR37V1b/956s80 X-Received: by 2002:a62:3107:0:b0:52b:83e6:98ae with SMTP id x7-20020a623107000000b0052b83e698aemr5914850pfx.55.1658233975062; Tue, 19 Jul 2022 05:32:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658233975; cv=none; d=google.com; s=arc-20160816; b=qY8n9okNV6yqOkYR7ROrQb0NJySlQOPttZznopT+t6ZmE9y4Gl11VbRAXK9+mhzkff 4P82W50tYwIRDTBT9F+7KYMxpW27QoyKv2sksZD6QV7o5XJB/0vYShzY+3FZu0QTpBzw 9L/2QjQCxdGz8JA/q5rJcEv9HiX1wRVgkW2FtDd19kq53ymMjCTyIQZW1T00FY8ti981 AKh9Fdct24jIM0B1kQyFXSA67ySA2Nz8pP/bU14vPOGsB3KniciIycIj362yyw/jOwj8 2hiVJk1BPwWuJ8mZQIRgUL41XYzrvu6KU6QPBsmoRGyApQSN68MCKyHq1vQHVPQ5NxcX mytg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GmFpKgbAQCShF/knlNwfyU7UI2YJb/HffnHtMP+y0mo=; b=fLLLx+ihbqSF3IE/vGMFl1pWihf/6nzE6TeScL2tlnkyLzaLks1vIreVDe05I1H7er IX30p3fx3aupqxZkYRRi1VTHm/CWK6aW35CkD9xUipDred7efPmzuNepUGXSZ4Fs1BqW X6uLgUdT33qMJ/gCT118vQ9qeV0yLX2u3NexuZB7Uj6jajC46ynX9MMzpeALdiP1WHfd KV6UPbRFBM28uk++cjyTBKTSHl6wZoZfprHSbO5WNFFwGeKXdgUEEnLO0jLC8JFAILcA LNpHh3japs7YA8VRyh355Bz3VfWH8AzpjRXWbQDZRTZ2YOIxg1ivR5dca6K9iXuqWpf+ /RUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1mZt2ErM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1-20020a170902ea0100b0016b82ff7077si21303500plg.361.2022.07.19.05.32.40; Tue, 19 Jul 2022 05:32:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1mZt2ErM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238480AbiGSMIU (ORCPT + 99 others); Tue, 19 Jul 2022 08:08:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237808AbiGSMHr (ORCPT ); Tue, 19 Jul 2022 08:07:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 986FE4F19A; Tue, 19 Jul 2022 05:01:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C00ED616F6; Tue, 19 Jul 2022 12:01:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A44F2C341C6; Tue, 19 Jul 2022 12:01:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232084; bh=5IEYN5foefB4K0Dyg0jaz4/QY7YbSg5VpEmxben9s0s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1mZt2ErMiOtwjETFdDPr0Q1knhwHIAcEfsGw+9S9kSG5nxfWSD21qWyyxwextKbty Gebl0CsNyJj7w7qBwTUJdtjAQ3DUEGt3ytvdNyJfe46BVIZ66pX5qrIOx9rNwCA90X Ov74MkmhVeQPuSqdTvMSYybaDtDN3udX8WB+Gb38= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marc Zyngier , Stafford Horne , Sasha Levin Subject: [PATCH 4.19 37/48] irqchip: or1k-pic: Undefine mask_ack for level triggered hardware Date: Tue, 19 Jul 2022 13:54:14 +0200 Message-Id: <20220719114523.143796898@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114518.915546280@linuxfoundation.org> References: <20220719114518.915546280@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stafford Horne [ Upstream commit 8520501346ed8d1c4a6dfa751cb57328a9c843f1 ] The mask_ack operation clears the interrupt by writing to the PICSR register. This we don't want for level triggered interrupt because it does not actually clear the interrupt on the source hardware. This was causing issues in qemu with multi core setups where interrupts would continue to fire even though they had been cleared in PICSR. Just remove the mask_ack operation. Acked-by: Marc Zyngier Signed-off-by: Stafford Horne Signed-off-by: Sasha Levin --- drivers/irqchip/irq-or1k-pic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/irqchip/irq-or1k-pic.c b/drivers/irqchip/irq-or1k-pic.c index dd9d5d12fea2..05931fdedbb9 100644 --- a/drivers/irqchip/irq-or1k-pic.c +++ b/drivers/irqchip/irq-or1k-pic.c @@ -70,7 +70,6 @@ static struct or1k_pic_dev or1k_pic_level = { .name = "or1k-PIC-level", .irq_unmask = or1k_pic_unmask, .irq_mask = or1k_pic_mask, - .irq_mask_ack = or1k_pic_mask_ack, }, .handle = handle_level_irq, .flags = IRQ_LEVEL | IRQ_NOPROBE, -- 2.35.1