From patchwork Thu Jan 25 18:21:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 192240 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:e09d:b0:103:945f:af90 with SMTP id gm29csp172302dyb; Thu, 25 Jan 2024 10:29:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IFcxm7NSXJA/Koo59/2dEnEYr+3U8L8eMSIPwdNhvdaDTluMR6zeFKO/TGw2ODdgUcBcxtz X-Received: by 2002:aa7:c616:0:b0:559:d38b:f6da with SMTP id h22-20020aa7c616000000b00559d38bf6damr14069edq.166.1706207389064; Thu, 25 Jan 2024 10:29:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706207389; cv=pass; d=google.com; s=arc-20160816; b=PjgeHo5PEewHz9fP093owbKO9GsGbgIkst6NVPREQf0P1euyehpeJh90ofJfBvgNeF 4nskA6gvNGmk+thfaEjUq3QTBZe6Ma0ScNxFZMzVVc8c0wyjSjdz5rdUvdjYis90gNQn 3joJVvPPQXenCGJKY8gvEyW77xUCTJm9kwuxuP3qhLGEY0fLzE6L7eLV7E78NDMKcZHw M4PpDl2kzem7qdDnjHmFRwcLfBcv5XvJnIzUP8XH+hEp9S5xufW10Ja59HxAR+szDlVY brYTkze20wHHEyF95VWA0x9lc45dlNDXL1MdnEu2iPTvXFLOAtbzR20w8agLT4esZ+3a aSGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=9WnmaBS5a0hWSnssVGIzFyIIpO/RUwcz7nbt83zfsNc=; fh=U/Hd0cPmVpmsXI9UC370Q88/l4pozXEkKxB1Pi0MTn0=; b=yup6tAbtYApkrB0JngWhZ2DUS6fqUcPIgEkEjVlTfO7vcaMU/W9iO7E8Jx/dN5EnNa 7/N8dW0g2Qg3fwPRsgSipoKMl5cCXpmmveKx52LG7VW0n8ZabNazTs2g9+PXiW7jtDiz 6+KwbGGby6DwP5A1iEo+OZzaaeW3B0jYm0kRtKE6vWDpW1oux94Gbt0RlXscSS1og1su tp2Z0W7NcsRuq24dkc2h6UfRdx2lDli0yMRiAUfgurkrpbfWeDaJUV5Ntf5etCtW14pD RAJeT+0/fc+GlY0Pq2nIl6smiwMbnG5ldLA2mn3rvASK/rfeqPFgvqhC9MpxCLp9z4vv MZhg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=jXOGBBxB; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-39111-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39111-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bd14-20020a056402206e00b0055ca1c8dd3bsi2273485edb.602.2024.01.25.10.29.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 10:29:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39111-ouuuleilei=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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=jXOGBBxB; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-39111-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39111-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 AAD3F1F22F48 for ; Thu, 25 Jan 2024 18:29:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31B16144602; Thu, 25 Jan 2024 18:21:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="jXOGBBxB"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="YxkxGbmT" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 33E9513E204; Thu, 25 Jan 2024 18:21:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706206902; cv=none; b=YMduz3fGJdjr7K5w6Snna7CYdrHk0G1erBfP4VIa42aSvnfDCDDplLKrsxMGNfj9xuHFFQVwZB+tdlzAm1QDquIuQnu28DNubg688saGRs2A2g2KBYXiF4AeInZKppQbC7LjgV5fekO3sM2CmOM4h5FID0F7y8i2UecexFBNusQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706206902; c=relaxed/simple; bh=hA/Q/1c0LrLKlbAhmhPM+mx3xg6o3L9ZCQtiyfxim4c=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=KEsgAomlVYKQ87qzZ1Wq77hLCQQpaLbuls8mT1WQH52OIzXi59dU9qGGguv/T9aqUaEK6QcdpcYfMWAYJDypYTfqzIqBMFFmZF8e88/x6arQlVUh9g8ZK9SIBKUIjmbqL9aR8lTkItOfvaSOqkZ1/WGEmvg/e7v5sDSZIl9Eulc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=jXOGBBxB; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=YxkxGbmT; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Thu, 25 Jan 2024 18:21:37 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1706206898; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9WnmaBS5a0hWSnssVGIzFyIIpO/RUwcz7nbt83zfsNc=; b=jXOGBBxBMWg76cgMaL4klbPLSiaVnxUuqny7759GPrgYfhY8Z5vtk1SBu8H8Z5fmfIPJc9 zbIyNG9/7SbeWNXwFeEQBCZyxH9CsZ9V8F/1hv84WeXmVOhyjrizx0Om4mZuy7O1LFJQes 2OqwqbZRWGVlfpWVTPGK2oAdKdWOIqplvXgNsZD1LwJ81I23LcvbqVr2DobbFegr6nGj+U CztWtles3eLLZWYXY0GCFmjDRHoU0syqmzoZkMjAJVKxauOKyrJQBlyXaR+hli6iL1wAyO MojRVTSEF4EAK4hz3t5haE4qxGDFoByJ9pTD9a9JCD0njDUfsUZlUBVvEgO2Ww== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1706206898; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9WnmaBS5a0hWSnssVGIzFyIIpO/RUwcz7nbt83zfsNc=; b=YxkxGbmT11ecn1PqCBmrwyWdxfyxBCOnifeP3U0CoRj+VLIZ+8dEJBuiO+U7+YSuBzpImR z6+oppjrhxyh6LAQ== From: "tip-bot2 for H. Peter Anvin (Intel)" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/fred] x86/fred: Add Kconfig option for FRED (CONFIG_X86_FRED) Cc: "H. Peter Anvin (Intel)" , Xin Li , Thomas Gleixner , Shan Kang , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20231205105030.8698-6-xin3.li@intel.com> References: <20231205105030.8698-6-xin3.li@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170620689730.398.3143557912818753476.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784440757813946296 X-GMAIL-MSGID: 1789088118974729327 The following commit has been merged into the x86/fred branch of tip: Commit-ID: 2cce95918d635126098d784c040b59333c464b20 Gitweb: https://git.kernel.org/tip/2cce95918d635126098d784c040b59333c464b20 Author: H. Peter Anvin (Intel) AuthorDate: Tue, 05 Dec 2023 02:49:54 -08:00 Committer: Thomas Gleixner CommitterDate: Thu, 25 Jan 2024 19:10:30 +01:00 x86/fred: Add Kconfig option for FRED (CONFIG_X86_FRED) Add the configuration option CONFIG_X86_FRED to enable FRED. Signed-off-by: H. Peter Anvin (Intel) Signed-off-by: Xin Li Signed-off-by: Thomas Gleixner Tested-by: Shan Kang Link: https://lore.kernel.org/r/20231205105030.8698-6-xin3.li@intel.com --- arch/x86/Kconfig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 5edec17..854ab38 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -496,6 +496,15 @@ config X86_CPU_RESCTRL Say N if unsure. +config X86_FRED + bool "Flexible Return and Event Delivery" + depends on X86_64 + help + When enabled, try to use Flexible Return and Event Delivery + instead of the legacy SYSCALL/SYSENTER/IDT architecture for + ring transitions and exception/interrupt handling if the + system supports. + if X86_32 config X86_BIGSMP bool "Support for big SMP systems with more than 8 CPUs"