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 BB0DBC4332F for ; Sat, 5 Nov 2022 00:02:09 +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=gwAh380JOY5B+FUQC3eLXP5g2vUa38n5ReS8FLRepNU=; b=w4kn9rRKWuCVly /emL5ZgRLa2w9li+i5L15ZWNaB3qbddayiee2A4BeXPViKGMr3VibIM7xV4gtP0yCZuWTEnS3fKt3 uIgP4F7zlx73uvN+SQkPL1laklxCs8nqgX+5p/2MMALEGJEWKGlZI4kILYPrNdGXJ3wiCUETy41YH eEWPOoPfGtnIpylfzPFsUU+0A9b5d1Ait4WgTR8VKjfnUepgjfc0m2sfdxiWDuCQgtmqXAJ+plXnT scfPWs9VyoQTgYuRyIdTO2UXbtD4F08XaJCduFeR/KOb/LdX4YjdMcnbD2Pj6d6hbcmOQnKO2ISyy VvkO8bcgMg6z3sfoSx1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1or6cP-005ZKs-VY; Sat, 05 Nov 2022 00:01:04 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1or6XG-005WoU-R3 for linux-arm-kernel@lists.infradead.org; Fri, 04 Nov 2022 23:55:44 +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 dfw.source.kernel.org (Postfix) with ESMTPS id 58A8C62366; Fri, 4 Nov 2022 23:55:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3FC8C433C1; Fri, 4 Nov 2022 23:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667606141; bh=5LAFSlhVVSHgoiuI1PFLdgHFp3aEnwArEDfa+ZFd/yY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LWbAgTqwCUiu3MHRnLUhmNjCzg0GP+NnWu4Ya1oIe0TgE3uZTazHO6kaF13hq5Qv0 WdJiqc97jXKPku5ETDkxfSnad07HaHZldfL8365QuKNZ2jVALDhBJeXCFDsCJkLU8p qnVpqugBktiXcb/YbTszR7PiAFfRKGKenCYcumUAhqyqDi0Hg2Fn02x33I0PCk5bvc 4sPYoxi9uKcD4caHonk3/7NUj+fuTCvz+TRrsfcLY/HYCz6/+WYQIQr+YGsFHD8q2t Jart0oTqcYcAH3ZC8xG2vA46S5YjCslVXdMLUqmpVWa+YNwZfbZCHsky8IhF5NKuWG w9wYgGjDEg97g== 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 17/18] arm64/nmi: Add Kconfig for NMI Date: Fri, 4 Nov 2022 23:54:52 +0000 Message-Id: <20221104235453.870573-18-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=1291; i=broonie@kernel.org; h=from:subject; bh=5LAFSlhVVSHgoiuI1PFLdgHFp3aEnwArEDfa+ZFd/yY=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBjZaZMLg7Z+iIS/PN4hstxtxGCVsQQpkazGeEGeDTo KGvcDZOJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCY2WmTAAKCRAk1otyXVSH0Lt/B/ 9xr7twpuXxdj4zvjqGg9KbupuS+8F3ckHHwccbnsduWxDwwiyD5RWQjXDk92DLtOp/Fe9HW4JmqicA ZDTXL+nWu1CQQBJxgvm4yWSXXvh5j4b/X3RO7E6foa9voTYRCabchoDhMDSLhaB8F9nlZWZ69EHNXe vc3j3aPa2a6VBwSe3MlhRHYW+qrrk+gJFMN+8beLeBbYz9mTPI+3zVhlH2foxljECUFbOYg5t0HaXE 5n3OGym4Kg/kpHyx3j84f/nWFnP1rn3jIcxqwApNSRh4/UHUEXkMudJHV/JxY9j28CKIWexQoVxeRx 98NiTZaV5WWoJoiir3KlFQEvOFaxIJ 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_165542_966608_2000ED43 X-CRM114-Status: GOOD ( 12.03 ) 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 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 --- arch/arm64/Kconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 505c8a1ccbe0..dd987a9a4f81 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -2001,6 +2001,23 @@ config ARM64_EPAN if the cpu does not implement the feature. endmenu # "ARMv8.7 architectural features" +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" + config ARM64_SVE bool "ARM Scalable Vector Extension support" default y -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel