Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4449693imw; Tue, 19 Jul 2022 06:52:52 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vauDlkVg6DYj655QyjMR5VHOU26Vjk0OFw5QP3AMWHLPeMHz4jiJ5H1u9nZMTjMXokyrpb X-Received: by 2002:aa7:d759:0:b0:43a:6fe3:acb4 with SMTP id a25-20020aa7d759000000b0043a6fe3acb4mr44441837eds.27.1658238771898; Tue, 19 Jul 2022 06:52:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658238771; cv=none; d=google.com; s=arc-20160816; b=RpRLaY9gU0Ne2SLCU8c9ieA6m8CUyAS16T6W8nKxmWEstOJQPVU0gFP88+NBVqDgmw HfrYkJGT8txF7LTb8hFEZ3n+H8nLrD/CWnMnnXfpcOx1vZHKChyFDm4wMyECH5DziAxl 7JFGDu8bW+JjTbpj1hbiQ/rE1KaE2VQZuI67Q8hTgj3jcDK4exbPI+VTRT9VGMzUPe6J lMbiU64BNUFhoBHyGBV08hrI/EXOAhbOS1ZYLt1X0zQ+kg/9GEVY7/BJ4/cCU/0K7/PX aZcApcF9q52VPX/O4VnvKmlpPSvu1OJkPvEwhEyIxxIGtklungLP95VD7EUy06qHPEev AJxw== 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=YJDJUUZNJz/3H9ssqT0ZkSBGedTJdEI1SsjyGgksc3c=; b=A5koTZGjgJeTBlNbLQ8od7xD3VNCz/YhfKnyzIGXHdcIFUxhJKR1Uo/t8uruWgD+TV uY2tETuZiXRa1IPaM8/yukzv/bJcSMgZPzPXQyw4Q/CdjJcCsXE/Z9BOpcacZJJ3b8Xx eY4H+eCJh8tQm5JYQJ+8tHBZRU6KvcHLWjkRJg/oLzTLB7nClmJ3puSQv28/poanHATH 7nIYrVXPXuT/Mf7bgj8PQMCSAfR36WgkHSdphoJLm5Lt+eWx43xJvMKWCuucrDTKwV/4 m4rDIbUv/va8ep81xGD779pHBRJK/xB28T7Jygi8ij2MSXfCr1VfwePhY/ONIIVGAfG/ kDfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lY1+1yHb; 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 ht12-20020a170907608c00b0072f05757268si16152267ejc.132.2022.07.19.06.52.27; Tue, 19 Jul 2022 06:52:51 -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=lY1+1yHb; 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 S237879AbiGSM1o (ORCPT + 99 others); Tue, 19 Jul 2022 08:27:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239901AbiGSM0N (ORCPT ); Tue, 19 Jul 2022 08:26:13 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8419111D; Tue, 19 Jul 2022 05:10:07 -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 ams.source.kernel.org (Postfix) with ESMTPS id 851C0B81B1A; Tue, 19 Jul 2022 12:10:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3F54C341C6; Tue, 19 Jul 2022 12:10:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232605; bh=2qjO8+odQ7oxEl1fALycalDewY6Q0DjTfZWWlCdvWKE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lY1+1yHbVlAnxhZcxAr5su2RLEUMLEAVxI7P5c50j9Do5x4+jbLFg9sPrJ0YSkkkk e0H4fj8QUVGYCZCBCOu0DSzpqeUWNynrX3AGxhun6kpoGLgrniGniI0SaPS9hDf7ft ONLgxQ2qVCxouqGk23yNW4PKerRoDer4lWzhiBf4= 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 5.10 096/112] irqchip: or1k-pic: Undefine mask_ack for level triggered hardware Date: Tue, 19 Jul 2022 13:54:29 +0200 Message-Id: <20220719114636.096127479@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114626.156073229@linuxfoundation.org> References: <20220719114626.156073229@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 03d2366118dd..d5f1fabc45d7 100644 --- a/drivers/irqchip/irq-or1k-pic.c +++ b/drivers/irqchip/irq-or1k-pic.c @@ -66,7 +66,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