Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp218688lqg; Wed, 10 Apr 2024 23:56:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWwiG7OgU0NtiLKiFOqdZW48sPmRVT4T58U+9eMHUYPziw/IeJzuKQOizuCQBxrQLwi+Brt2D/wLywOWIJ0u5vk7dxXmB4pnRuSBlbseQ== X-Google-Smtp-Source: AGHT+IFzDSEF1RHNSmn0B2WIRHt9Y1w1SsMSNU7RTD6SWI5+ieKYC2EEJLO7wKl3ZAJ5EodOmLtE X-Received: by 2002:a05:6512:2829:b0:515:cb72:4c10 with SMTP id cf41-20020a056512282900b00515cb724c10mr3979377lfb.54.1712818564025; Wed, 10 Apr 2024 23:56:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712818563; cv=pass; d=google.com; s=arc-20160816; b=bArO4119Nt2CS7KKlHqfSKWXDdri37ldObOenuN+rniV6PZoLHkFhHgUPOVtOgNyLw CwFh9E9G+t5n4KzDWML7qZX6MEVE44thoby+sD+0NM3oD9WYPdiZvT18Cl0vLH6kO00L 8VhN7HN70wdCgfn3G9/zr+0c6r2vtBlZe6LjF+J4y+o2hx0PmQr82CAk/GaJZg75uFT7 VJCwyJQcPrkkY2VtH3nKszTnHeuPOHY936hl2/iDKe0u9EZUG0y3cx0Qq71ikMyVbdfl qbeTghtL1Q68Ukrfcor32FwveQSGDp2S3QhRedGQd93ieEe/zWXWX0QSQetsP7hkrNjy 1Kww== 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=YdO+N/xgHGUZo91bKIWUSgUg8Z1p+7IAoQc3PdTUf0o=; b=BrOnzBVgOVwNrySWQrYARnSl0d2w1Ra88dx6zcxNQCkuLcB5anBuiF4GFk4JvNPBMz 97TlzekoM7u+B1O2iWjs+2m2PpMN7EtD6eao1SEQKK0hySRqUW5ktnSkDmoBpFHkcNjV xdJHTM4Z6Y9cHyJELf+zX3Xoq45+lduN6rmJpnvRZZhHRQJh8711tuUpVV9UvbhgXrq8 HTG0IhVbzRee99OSyctPzHyZLL+gFjNk4N9b2YZqQwAkJDMiTJUj+zJeeuFfokmJTiET F21facUBLpib4CPk115BbPU7VB8frj3vaHpe+GwAY+tmoct62EQa/85uUf+jpRMSjja5 7McQ==; 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-139891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139891-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c34-20020a509fa5000000b0056e064b8727si458340edf.354.2024.04.10.23.56.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 23:56:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-139891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139891-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 am.mirrors.kernel.org (Postfix) with ESMTPS id BB97B1F21369 for ; Thu, 11 Apr 2024 06:56:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C247013E03E; Thu, 11 Apr 2024 06:55:22 +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 8C01613DDB9 for ; Thu, 11 Apr 2024 06:55:20 +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=1712818522; cv=none; b=Y3N0lTQwJ9pIuj0UtE5I4xhVxzEM38yD47EP2L1II06jTfdrvg3SbTFBc4SM3PH0X5K6Qasrd3wZQRQOb6xSM5azuBsrMNeBkvgpE/upUxMORjdrOARWKPzsSxMHp7DJB/xonTwzvn60rbdl9MixswtPk5XfkcvrTUMQYa+ku/g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712818522; 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=JWKS0ePNDW0sCsED/rx96mZIQKZgNb19hyWAaN+TuBax8WwdwgePRI0kZNM++9brwPhlzaNJ3UV1RPUkYx6lJQLG8DoUM1HHD5AHsH9SCfjvGcs7JzWXGPl22vQH0Mp/2kWlar61O+ILXZLid7VhF8NfbSfRmG2UvpHjo2/FuQw= 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.88.163]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4VFVkK334mz2NW77; Thu, 11 Apr 2024 14:52:25 +0800 (CST) Received: from kwepemd200013.china.huawei.com (unknown [7.221.188.133]) by mail.maildlp.com (Postfix) with ESMTPS id D39C9180063; Thu, 11 Apr 2024 14:55:17 +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; Thu, 11 Apr 2024 14:55:16 +0800 From: Liao Chang To: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , CC: , , Subject: [PATCH v2 3/9] arm64/nmi: Add Kconfig for NMI Date: Thu, 11 Apr 2024 06:48:52 +0000 Message-ID: <20240411064858.3232574-4-liaochang1@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240411064858.3232574-1-liaochang1@huawei.com> References: <20240411064858.3232574-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: dggems702-chm.china.huawei.com (10.3.19.179) 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