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 84E96C43458 for ; Fri, 10 Jul 2026 02:41:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:To:Subject :MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=R8xQiCXkwR091eezuPIY+0xIlGKMk3xjNnHfS6bQq2M=; b=ShvycdMHEH3eVX /LdOZOzOyWEAhtGTWws/aF7zqOD1ZXMHCBXztEfWMCGAM0q3mFaGGFFRFpwvP7jkrNThO3D9Ok+WB W+ntvvF717vVylvkb9dxHY5AY2HZmk/Cv2HWYvoadcZuQRtpzsqcYuGUAEspZtEk8O7hF1p0EeZ0r c0Y/5WD2PSZNqHYGhRmb6TEqIJKcqPop6Cb8pEUDyC8tI8i1xwiBtaQ6/OSj0XxjdIcZpQXC0yF+w MVe4/8rCE83PyukxwKwE88PKvForWADyFFK4M+MLEORfaoWHc556ZIe+p/mgfZJ6y6wfN+ESK39QV SPPvjmLuJMJmkNv8IayA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wi1BQ-00000003zCo-2p9z; Fri, 10 Jul 2026 02:41:44 +0000 Received: from canpmsgout02.his.huawei.com ([113.46.200.217]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wi1BO-00000003zBv-0fjd for linux-arm-kernel@lists.infradead.org; Fri, 10 Jul 2026 02:41:43 +0000 dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=R8xQiCXkwR091eezuPIY+0xIlGKMk3xjNnHfS6bQq2M=; b=gHLpbQdZP2484fhR9SVia0Z1IJ9D1/EMZh1glHokLX0SYedTieL13ToVAtgo5Nu/5K8KN/6Uq uL/VDdAQq8LdcPpbuLCv4yPND558d2ZSxv/ufnlUoqSyTF8TyNn5bd4gKNQZxBWJxG1OLu5flEZ 4VTCCRO5KNNft3PXQMoKrCM= Received: from mail.maildlp.com (unknown [172.19.163.104]) by canpmsgout02.his.huawei.com (SkyGuard) with ESMTPS id 4gxG803kdtzcZyH; Fri, 10 Jul 2026 10:32:32 +0800 (CST) Received: from dggpemf500011.china.huawei.com (unknown [7.185.36.131]) by mail.maildlp.com (Postfix) with ESMTPS id D6F014058C; Fri, 10 Jul 2026 10:41:38 +0800 (CST) Received: from [10.67.109.254] (10.67.109.254) by dggpemf500011.china.huawei.com (7.185.36.131) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Fri, 10 Jul 2026 10:41:38 +0800 Message-ID: Date: Fri, 10 Jul 2026 10:41:36 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 35/36] arm64: nmi: Add Kconfig for NMI To: Vladimir Murzin , References: <20260709121333.23507-1-vladimir.murzin@arm.com> <20260709121333.23507-36-vladimir.murzin@arm.com> From: Jinjie Ruan In-Reply-To: <20260709121333.23507-36-vladimir.murzin@arm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.109.254] X-ClientProxiedBy: kwepems500002.china.huawei.com (7.221.188.17) To dggpemf500011.china.huawei.com (7.185.36.131) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260709_194142_359160_7ABAC0B2 X-CRM114-Status: GOOD ( 15.32 ) 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: , Cc: mark.rutland@arm.com, maz@kernel.org, Mark Brown , catalin.marinas@arm.com, will@kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 7/9/2026 8:13 PM, Vladimir Murzin wrote: > From: Mark Brown > > Since NMI handling is in some fairly hot paths we provide a Kconfig > option which allows support to be compiled out when not needed. > > Signed-off-by: Mark Brown > Signed-off-by: Ada Couprie Diaz > Signed-off-by: Vladimir Murzin > --- > arch/arm64/Kconfig | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index e36dc4831200..968a9d97549a 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -2195,6 +2195,24 @@ endmenu # "ARMv8.7 architectural features" > config AS_HAS_MOPS > def_bool $(as-instr,.arch_extension mops) > > +menu "ARMv8.8 architectural features" > + > +config ARM64_NMI > + bool "Enable support for Non-maskable Interrupts (NMI)" > + default y > + help > + Non-maskable interrupts are an architecture and GIC feature > + which allow the system to configure some interrupts to be > + configured to have superpriority, allowing them to be handled > + before other interrupts and masked for shorter periods of time. > + > + The feature is detected at runtime, and will remain disabled > + if the cpu does not implement the feature. It will also be > + disabled if pseudo NMIs are enabled at runtime. > + > +endmenu # "ARMv8.8 architectural features" Reviewed-by: Jinjie Ruan > + > + > menu "ARMv8.9 architectural features" > > config ARM64_POE