Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1700989lqe; Mon, 8 Apr 2024 18:30:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVeXYC/PbJKHpd0h4KBVDITpdtwEd4kaW8t8Yc9P6QaYv/YsLUL31rCQV9gKIvV3P+DyNlaEAOlcKMQL4xdL34p4xofma5Aubccz6tz2w== X-Google-Smtp-Source: AGHT+IFgncaqiiJ4fgGD4rYUgRtv15/kUycl6R5nSUS1ZDYUyif5ErPL0kYhaX8+HmHGnQgp+CSQ X-Received: by 2002:a05:6a21:3414:b0:1a7:6096:8540 with SMTP id yn20-20020a056a21341400b001a760968540mr3562548pzb.17.1712626256324; Mon, 08 Apr 2024 18:30:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712626256; cv=pass; d=google.com; s=arc-20160816; b=mVCwkM6A+W+RZgwHNmBvRHAD4w1vYqcG7BBi4BMsae9UsZKlrB3pfj3ayQBGtGYhL7 Y3EAr12NGbZ9YhZNo+gQkl0+CV6IxCoefJaSFuldCgHlICNxQGckWWlKQ+URBapGfHj9 3q3+SmkeBuGFYbBvFnV/DDCEJlUCZIEvFhptLFqhLUlGKzJCgU4vJYJlrY0anEj9RXwO 0Ogkin09bApkE+ROYamHwQ615Cpv4XlPxUrIhf+snfnCCeyVVq6by2EkH5t+Vn6SrXpm bS8LP9QokB/sxD3biwJrCF08n3atGoQYLDtKJT659Ki6K40iDIh1PlwxOndmQdNvZbdV y1CQ== 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=ABGMpgomfLpjISIQigDh5aPjwclSblrLZxlKtpvLkrk=; fh=RatWSVbNJ1/MmnzWWlcZp/KokkZi2YybezTbDh3X02M=; b=Vb6P46xGEL4SFevbybDoaMReOGjp1hXS8v+S51iF4G61cnmr3wXbtpw4Z+zuojxQc/ UcwN+pJOpBsNQ0klB8Nvuz6iZC5/vbzghI9jcxPHl0Gs8a+LCOrkQb5H/SzGXFxg0+uA snYhWoDY7xkcobF2RLfJVZW3dIOs0y9Ry4vzbgApCmxaT268p1UjfxIWdu1D1SKdodSN IuPn1qcRBjriFGOQcQxcG790txyakf8xKMR/wXycpyLgCp3HSqAbDENN/ImLgimqqfR/ mxH4FK+suxn8lawBY5zFRmfS3CegQD6bN7lzIzaa0jxLH4KQHVouaUh96820n3Ek+/1A uV1A==; 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-136081-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136081-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k70-20020a636f49000000b005f06665a187si7302519pgc.534.2024.04.08.18.30.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 18:30:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136081-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::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-136081-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136081-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id F3FC9281130 for ; Tue, 9 Apr 2024 01:30:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FC144EB50; Tue, 9 Apr 2024 01:30:06 +0000 (UTC) Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) (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 E8C9935894 for ; Tue, 9 Apr 2024 01:30:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.32 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712626205; cv=none; b=MTrN6t0YxqTbrsphOZyXkZRaM6a/N/4G3Oi1P5WxyfRVFj2ycJkvMj/YEoAvCJrKnyNzVhQNIHnwPqtQjD7GAWLZiC4PC4vevbYYYaYWoXDKCxGRZ7PVkYC+911psjpQ9Ybq4blb1YFrrmsjwJNHlGx3iORwIAD2BKZtWXkV3dw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712626205; c=relaxed/simple; bh=j/XDKuUy7zqhSH3fzlV7mA/mrMxbF9db0YMik4qwT6A=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Wb0Dudse7tjybWoQ89BH7ESKG19OE1jeyvvyinsisar3GuTsLO6/9wZ+XQqn7cDQD18/RxY4c+J0nhO/mM+IBUINU7HSSGDJ2Me71tqcE9ll0n2vKDPN1SlICJ0wuf9FYY80JnCfc8zTwr86MNp9VGbPBmtH8/W5OqA1rslk3rQ= 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.32 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.234]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4VD7f84Q2wz21kfl; Tue, 9 Apr 2024 09:29:04 +0800 (CST) Received: from kwepemd200013.china.huawei.com (unknown [7.221.188.133]) by mail.maildlp.com (Postfix) with ESMTPS id 6B50F140413; Tue, 9 Apr 2024 09:29:59 +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; Tue, 9 Apr 2024 09:29:58 +0800 From: Liao Chang To: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , CC: , , Subject: [PATCH 3/9] arm64/nmi: Add Kconfig for NMI Date: Tue, 9 Apr 2024 01:23:38 +0000 Message-ID: <20240409012344.3194724-4-liaochang1@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240409012344.3194724-1-liaochang1@huawei.com> References: <20240409012344.3194724-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: dggems704-chm.china.huawei.com (10.3.19.181) 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 --- 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