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 3664CC433EF for ; Fri, 13 May 2022 13:31:59 +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:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=u1XOiVASXg5zxLUE+2e0pvoSkH1+lQA+oYE1YWSq7sc=; b=ANchjhIRj53u2D JFJFuvaOux+7DQZOXn39TbYSbmMhjyEbimjeohJNopNS39k8XpwTlbNJSF+UTCw2CIpe1COxt1oZ2 uxvdy3g6P284rql2f/y57KqAqyr895h3kZhGDU48yjrOuyMZF+3wr2A2bWetcnB0lJ8asNSERALX0 rM9BYTufQxtbB6igtfc6j82fFckEWVxyxUJ0BH6vMie2F9qmqplq0KcoYznVCdiy+NJKgcHqcfg4i L4u/TXrkiG8vFxhWY+dBPug3x9sh+m269vhDVLH6ZPxX09xTM2uBuNMqME9cAyMbQn4gnHD/t5ZE3 X9lr/k9QbyIBU02hS0AA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1npVNf-00GGmt-6J; Fri, 13 May 2022 13:30:55 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1npVNb-00GGgO-5O for linux-arm-kernel@lists.infradead.org; Fri, 13 May 2022 13:30:53 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D5907143D; Fri, 13 May 2022 06:30:46 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id F2A973F5A1; Fri, 13 May 2022 06:30:45 -0700 (PDT) From: Mark Rutland To: linux-arm-kernel@lists.infradead.org, Marc Zyngier Cc: mark.rutland@arm.com, tglx@linutronix.de, will.deacon@arm.com Subject: [PATCH 0/3] irqchip/gic-v3: pseudo-NMI fixes Date: Fri, 13 May 2022 14:30:35 +0100 Message-Id: <20220513133038.226182-1-mark.rutland@arm.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220513_063051_284441_59A7C248 X-CRM114-Status: UNSURE ( 7.52 ) X-CRM114-Notice: Please train this message. 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 These patches fix a couple of issues with the way GICv3 pseudo-NMIs are handled: * The first patch adds a barrier we missed from NMI handling due to an oversight. * The second patch refactors some logic around reads from ICC_IAR1_EL1 and adds commentary to explain what's going on. * The third patch descends into madness, reworking gic_handle_irq() to consistently manage ICC_PMR_EL1 + DAIF and avoid cases where these can be left in an inconsistent state while softirqs are processed. I've given these a beating in a QEMU KVM VM on a ThunderX2 host. Note that arm64 has some orthogonal issues with lockdep which are fixed by: https://lore.kernel.org/linux-arm-kernel/20220511131733.4074499-1-mark.rutland@arm.com/ ... so to test with lockdep enabled it is necessary to apply that series too. Thanks, Mark. Mark Rutland (3): irqchip/gic-v3: ensure pseudo-NMIs have an ISB between ack and handling irqchip/gic-v3: refactor ISB + EOIR at ack time irqchip/gic-v3: fix priority mask handling arch/arm/include/asm/arch_gicv3.h | 7 +- arch/arm64/include/asm/arch_gicv3.h | 6 - drivers/irqchip/irq-gic-v3.c | 183 ++++++++++++++++++---------- 3 files changed, 121 insertions(+), 75 deletions(-) -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel