[RFC PATCH v4 2/8] x86/mm: enable BROADCAST_TLB_FLUSH on Intel, too

Rik van Riel posted 8 patches 3 months, 3 weeks ago
[RFC PATCH v4 2/8] x86/mm: enable BROADCAST_TLB_FLUSH on Intel, too
Posted by Rik van Riel 3 months, 3 weeks ago
From: Rik van Riel <riel@fb.com>

Much of the code for Intel RAR and AMD INVLPGB is shared.

Place both under the same config option.

Signed-off-by: Rik van Riel <riel@surriel.com>
---
 arch/x86/Kconfig.cpu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/Kconfig.cpu b/arch/x86/Kconfig.cpu
index f928cf6e3252..ab763f69f54d 100644
--- a/arch/x86/Kconfig.cpu
+++ b/arch/x86/Kconfig.cpu
@@ -360,7 +360,7 @@ menuconfig PROCESSOR_SELECT
 
 config BROADCAST_TLB_FLUSH
 	def_bool y
-	depends on CPU_SUP_AMD && 64BIT
+	depends on (CPU_SUP_AMD || CPU_SUP_INTEL) && 64BIT && SMP
 
 config CPU_SUP_INTEL
 	default y
-- 
2.49.0
Re: [RFC PATCH v4 2/8] x86/mm: enable BROADCAST_TLB_FLUSH on Intel, too
Posted by Kirill A. Shutemov 3 months, 2 weeks ago
On Thu, Jun 19, 2025 at 04:03:54PM -0400, Rik van Riel wrote:
> From: Rik van Riel <riel@fb.com>
> 
> Much of the code for Intel RAR and AMD INVLPGB is shared.
> 
> Place both under the same config option.
> 
> Signed-off-by: Rik van Riel <riel@surriel.com>
> ---
>  arch/x86/Kconfig.cpu | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/x86/Kconfig.cpu b/arch/x86/Kconfig.cpu
> index f928cf6e3252..ab763f69f54d 100644
> --- a/arch/x86/Kconfig.cpu
> +++ b/arch/x86/Kconfig.cpu
> @@ -360,7 +360,7 @@ menuconfig PROCESSOR_SELECT
>  
>  config BROADCAST_TLB_FLUSH
>  	def_bool y
> -	depends on CPU_SUP_AMD && 64BIT
> +	depends on (CPU_SUP_AMD || CPU_SUP_INTEL) && 64BIT && SMP

Maybe split it into few "depends on"?

	depends on 64BIT
	depends on SMP
	depends on CPU_SUP_AMD || CPU_SUP_INTEL

-- 
  Kiryl Shutsemau / Kirill A. Shutemov