Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1255440lqp; Sun, 14 Apr 2024 23:54:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXYj07blGjb+WgEkRRQXOcgb41Z3GbkS9RnorQfCx+xuxv5cxADgeaCj00Qoh0Bv2VGBV4Wd6TYazpIen5cW/AJM9fck4IcVI0OAdEsg== X-Google-Smtp-Source: AGHT+IHyMvvhgHZDirxrZtKgK0F7CVLYcLD1S97i9YUWnnUeMXu9VYciyvpygiaEBv6A9utbwWHN X-Received: by 2002:a05:622a:1ba2:b0:435:9920:4597 with SMTP id bp34-20020a05622a1ba200b0043599204597mr10714868qtb.27.1713164094085; Sun, 14 Apr 2024 23:54:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713164094; cv=pass; d=google.com; s=arc-20160816; b=Xb8XDB8gW7UO87VFUlgldLdsv8rkdLKpdRAaZKbFaZkocC+zpkQ3O8cl6WJJHPqiY8 hCJpJdG+LTsswOjPTBavX4n1P/rGHR8+bxe+27c0fjKkbF0P2mm4+B0QM2JUT6jV4CkE +nycZ1iiXsvMCIPghB5oG9ms6ZZpCrKs3Jlnwt/6BfTfe0lxGryGWR/FsUW41Sd6no9n nsFzEC9mHrgVOmiKfxDhFj/XGbr8iSeRlOi5QokyESGzmtwFQvMYXcCaN0R65E991j93 v/IfcDMppEMQ9iKxPxLe6PDbdPa2r9Jk7kIQVeNSSpQh4b/+MoATE6hl8h0eeGmZ2wTl CpvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=5TfDQCyy/Iry6qdZYcThjzoV3E9g6apGzRHIhE32Rsw=; fh=ACDzcgbaNdVZh5rYGX5uvjuD7vJOIVWNQkRf+hZhqPI=; b=0T6H/qAhZ37l7pxoNsApNmnhKc58SlChpEvQRSO/u3aIJzVursA+EP/QX04UHiGMeD cSc4oAKUiI7VVHrMjigWB0LjB+R8JkGXcLpb0SI4Gun2bmBGFbsPkMGw+NzliNwm5e2N EPNN8RStSCaqglNPnqCrAPv1+6NTDkj2dzwIrz9/eSKFeyNPYk8GjL3CMlrq8eYRImsg 37NxWMIIsaWB4T63Z6htAyaEJjUr3hsKgtvZs094godBKrskDK8HNTeQvf5ChF/w81bR zUYCkQrMru926RPHR9sT9cmvIjEpcHIUaoHMGI7hjzT3B4Wx7rZ/9NfeUoOmYCIfk020 Oy8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-144615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id k9-20020a05622a03c900b00434672ab078si9297328qtx.251.2024.04.14.23.54.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 23:54:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-144615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A2C9B1C22136 for ; Mon, 15 Apr 2024 06:54:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A6A122616; Mon, 15 Apr 2024 06:54:28 +0000 (UTC) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2960D1F956 for ; Mon, 15 Apr 2024 06:54:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713164067; cv=none; b=ZTQ1GF19/IkpaY9HycJGgkTwr+B1xUTpLFP+NXy3VHhdFTHLTGZinxntWXW/5xyLJn5qNkUHMvwPPbkl1r74BA0/n8turFHtfbxZPoDHsRDVgz1r4Oy1S5P9tDz89WQkdgn7oWvPcMEWkUW8Dl1md3eLHcH+GdeALcyZ3JJKtP8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713164067; c=relaxed/simple; bh=GeIgU1VU+aVa6h++QNIPYcLXAwGCXlNODIbW8g+1rxw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=hfh29nPBjw7UNeCjtXl7lR/Uil1a3nUBX4F7GTZ0dV53oZprt1i68eVvJYKgvle8hqOwBVZ4FVbjPjsuuMuRVOL6nzA8QSrjTfmUPE7qLies7lTAAjzh5na1icLWoZDPql8DAPXM3E554hjwTL95lp/XbbhS+if6sk7aVbLPBd0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.191 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.44]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4VHyYm3fkQz1GHdn; Mon, 15 Apr 2024 14:53:32 +0800 (CST) Received: from kwepemd200013.china.huawei.com (unknown [7.221.188.133]) by mail.maildlp.com (Postfix) with ESMTPS id D28EE14011F; Mon, 15 Apr 2024 14:54:23 +0800 (CST) Received: from huawei.com (10.67.174.28) by kwepemd200013.china.huawei.com (7.221.188.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.28; Mon, 15 Apr 2024 14:54:22 +0800 From: Liao Chang To: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , CC: , , Subject: [PATCH v3 3/8] arm64/nmi: Add Kconfig for NMI Date: Mon, 15 Apr 2024 06:47:53 +0000 Message-ID: <20240415064758.3250209-4-liaochang1@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240415064758.3250209-1-liaochang1@huawei.com> References: <20240415064758.3250209-1-liaochang1@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemd200013.china.huawei.com (7.221.188.133) 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: Liao Chang --- arch/arm64/Kconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 7b11c98b3e84..c7d00d0cae9e 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -2095,6 +2095,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.34.1