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 01D4DC4332F for ; Sat, 5 Nov 2022 00:01:31 +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: 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: List-Owner; bh=XzzqzK3CJxRe3/Jf2fv3yZTKTbMl9xmR3/EdCF7N2XU=; b=K4YlXg9gJ+pfJw isx2SViyp/49PnZZ/+KbkoGh+zQyqhnZvNH+KaVuLx2LeI4IUZhBLK4N6HirIAiXtAKz3imUY8y39 fQSMwARYq5zaTcwKeBHG3OUrs07bl0pq140wfveSQYNDfj498x16+y1gyjzQdlkfx5c57nkE8dKPF Nm+lKLZ1LnDYZ5burdBHI1V9edERlIGVRNzbdGUM/A+Nvu33Wc/BlLeTcthZjRJvISGHR+8bLdTvy enYmkjnmpNu87RAtZelGTQzfoXVqoVxVNtQ87BnaDxi77+omTbzhCY99ZB+opIUnGt69j4xJeURTX numnucftxxrsDygYkskg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1or6bc-005Z00-3s; Sat, 05 Nov 2022 00:00:12 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1or6XD-005Wmk-I0 for linux-arm-kernel@lists.infradead.org; Fri, 04 Nov 2022 23:55:40 +0000 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 2CEC3B83012; Fri, 4 Nov 2022 23:55:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE345C433C1; Fri, 4 Nov 2022 23:55:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667606136; bh=daABjd+kflWq13DdhQ96e83tBfJRfPZkW2HyNNDnFxc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Semk+AcX+h1OFJs3vME8N6ITziS8COqlSY+ce3C4h3q7wJsijwqcdPSxF2SSRBZJQ +WERw1ezsVeidwRbwBZXJm8cZKrhxC96x4USk1SpPA3Vx+IDatMDbl+PyOABTqtmbc TvvOyERLXTh/UucnM3kLQBH3Fqv8pmS7Sqhmte/kZnVrI21sxlaldnOc4ctTc/ldz2 sjdm79cNacJ5kCXH44Bz2Fom1mXRjEjGIE5rR9qz4fHwk4vKBrcBGiaLZmMi4xRHWs A8jUrqMLhmU805Gi2awoqbspe0vYxmYkhlBMMusEC9HPz+MeMb899mmEEoRgjkk7jy VvLX2FvZEDbyg== From: Mark Brown To: Catalin Marinas , Will Deacon , Marc Zyngier Cc: Lorenzo Pieralisi , Mark Rutland , Sami Mujawar , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v1 15/18] arm64/irq: Document handling of FEAT_NMI in irqflags.h Date: Fri, 4 Nov 2022 23:54:50 +0000 Message-Id: <20221104235453.870573-16-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221104235453.870573-1-broonie@kernel.org> References: <20221104235453.870573-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1449; i=broonie@kernel.org; h=from:subject; bh=daABjd+kflWq13DdhQ96e83tBfJRfPZkW2HyNNDnFxc=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBjZaZKbD8fovHWsavM993v7ks85Y7Z3REem4bFJ80x bdNhjxuJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCY2WmSgAKCRAk1otyXVSH0FqdB/ 0W3SNMbRyAlrBbLK2gnN3KSNWj3scu/Ew/V2uZLO0GI364YSec7NAz5Y4QHu33OWTZPiM2PgEjihz4 gimpgMxpQblGBp742cIhvh2y1rKSvqb1xqMrRth+1sta/YsQEHmfXYu/+m4zQLMvSISRciHJpjQd7/ xJAuf1/MMKgjLqhet+uYgSlyP1BrEqL9LPWVlniRUSFn8ykSpiHTq2fWKzzdd/4SDsrImaqiKIaSrs yxRRc4cCQ+kSbr0UhzY/PH5qZDtBroM3R1keQfpznSMJ7B+0cLwmly6UoYnkWM4rRoWjOdXdoJFsrF 0EZeVxzMfjtJ8qhaCJ2b9KFcWfpoQz X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221104_165539_765293_37F36A62 X-CRM114-Status: GOOD ( 16.78 ) 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 We have documentation at the top of irqflags.h which explains the DAIF masking. Since the additional masking with NMIs is related and also covers the IF in DAIF extend the comment to note what's going on with NMIs though none of the code in irqflags.h is updated to handle NMIs. Signed-off-by: Mark Brown --- arch/arm64/include/asm/irqflags.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/include/asm/irqflags.h b/arch/arm64/include/asm/irqflags.h index b57b9b1e4344..e3f68db456e3 100644 --- a/arch/arm64/include/asm/irqflags.h +++ b/arch/arm64/include/asm/irqflags.h @@ -19,6 +19,16 @@ * always masked and unmasked together, and have no side effects for other * flags. Keeping to this order makes it easier for entry.S to know which * exceptions should be unmasked. + * + * With the addition of the FEAT_NMI extension we gain an additional + * class of superpriority IRQ/FIQ which is separately masked with a + * choice of modes controlled by SCTLR_ELn.{SPINTMASK,NMI}. Linux + * sets SPINTMASK to 0 and NMI to 1 which results in ALLINT.ALLINT + * masking both superpriority interrupts and IRQ/FIQ regardless of the + * I and F settings. Since these superpriority interrupts are being + * used as NMIs we do not include them in the interrupt masking here, + * anything that requires that NMIs be masked needs to explicitly do + * so. */ /* -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel