From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D2F3BC48260 for ; Sat, 10 Feb 2024 09:32:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=H5G1M2bI5D9S588bORLUTIhQhjv+1iVL8bnKGJHSjz4=; b=NthndVkwnkFUdN YkwJovdk8doLhHUKH+4eG0spe+ruigCv6QifYq49oEO+D7LzUJibenccjnq6VXSQH6w6K993ut68L YB1AhiRvvup8nrCfelpslvI92sYFiBb5sgkbaToZXmA3D5ZqUSWkILj+8OXOstFy9mPFXiGRP2cXZ 5DdcRyA1Fr3JZYyrUDLl/WEMhBA9NaVA8DSGhuY1ika/U9aIeR3VdI8OxJKd1GD8W5ofD+aZD0umn kA2It8zVPxC6Xun69n4TJQPyKWD84TpKGAXekrWUlyfdxsfNw7J5OYgCC4YyxadidXmZqxJfZdbeZ dFpjNR9JJhmT8n5QkncA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rYjio-00000001TAR-2XXz; Sat, 10 Feb 2024 09:32:30 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rYjil-00000001TA1-2b1n for linux-arm-kernel@lists.infradead.org; Sat, 10 Feb 2024 09:32:28 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 9734D601D4; Sat, 10 Feb 2024 09:32:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41DCBC433C7; Sat, 10 Feb 2024 09:32:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707557544; bh=zmgXIy+KvUSnQwp4jEHGf3DonxJlpcSWYSJAEKZmDWI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HvSGhUUyyOuBRuCXxIoQiRxNoGp+6rDitXgJrQG81NV4mn7ggzBfJLY2TPj4JWiVz nvSqSJD2FqqRMgzNSLs14Xo7ylk0x6MC/TGgnSMzs23XqzFJQZfsBBQDaIyUsWMcJ3 4iEFQRh6wddLUtKVY3uul1yS10B3pmLa/A1p439r390qSdN4235FEhIT4S0wPluzYk FtbAjyMef07KwZi5fNe9n3H3LzXdysuH2O7pIZ1V35MbnnWEsENrXozdmF8CGdXykr SZRLk6dmfkfT5itX4jJCoRRbJAifTRRh04ffoRR0Xg/ntr3UjkzcbRGGY+Oe2CnWWa BNrfMfLT2rwrQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1rYjif-001yPz-Gb; Sat, 10 Feb 2024 09:32:21 +0000 Date: Sat, 10 Feb 2024 09:32:21 +0000 Message-ID: <87jzncwtp6.wl-maz@kernel.org> From: Marc Zyngier To: Florian Fainelli Cc: linux-kernel@vger.kernel.org, Doug Berger , Broadcom internal kernel review list , Thomas Gleixner , Brian Norris , Jason Cooper , linux-mips@vger.kernel.org (open list:BROADCOM BMIPS MIPS ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE) Subject: Re: [PATCH v2] irqchip/irq-brcmstb-l2: add write memory barrier before exit In-Reply-To: <20240210012449.3009125-1-florian.fainelli@broadcom.com> References: <20240210012449.3009125-1-florian.fainelli@broadcom.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: florian.fainelli@broadcom.com, linux-kernel@vger.kernel.org, opendmb@gmail.com, bcm-kernel-feedback-list@broadcom.com, tglx@linutronix.de, computersforpeace@gmail.com, jason@lakedaemon.net, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240210_013227_795384_281AE115 X-CRM114-Status: GOOD ( 19.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, 10 Feb 2024 01:24:49 +0000, Florian Fainelli wrote: > > From: Doug Berger > > It was observed on Broadcom devices that use GIC v3 architecture > L1 interrupt controllers as the parent of brcmstb-l2 interrupt > controllers that the deactivation of the parent irq could happen > before the brcmstb-l2 deasserted its output. This would lead the > GIC to reactivate the irq only to find that no L2 interrupt was > pending. The result was a spurious interrupt invoking the > handle_bad_irq() with its associated messaging. While this did > not create a functional problem it is a waste of cycles. > > The hazard exists because the memory mapped bus writes to the > brcmstb-l2 registers are buffered and the GIC v3 architecture > uses a very efficient system register write to deactivate the > interrupt. This commit adds a write memory barrier prior to > invoking chained_irq_exit() to introduce a dsb(st) on those > systems to ensure the system register write cannot be executed > until the memory mapped writes are visible to the system. > > Signed-off-by: Doug Berger > Acked-by: Florian Fainelli > Fixes: 7f646e92766e ("irqchip: brcmstb-l2: Add Broadcom Set Top Box Level-2 interrupt controller") > [florian: Added Fixes tag] > Signed-off-by: Florian Fainelli Acked-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel