mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] x86: Add CPU vendor dependencies for MCE and legacy
@ 2026-11-13 17:59 Vincent Mailhol
  2026-11-13 17:59 ` [PATCH v2 1/2] x86/mce: Add CPU_SUP_* dependencies for Intel/Zhaoxin MCE features Vincent Mailhol
  2026-11-13 17:59 ` [PATCH v2 2/2] x86/numa: Add CPU_SUP_AMD dependency for legacy AMD NUMA Vincent Mailhol
  0 siblings, 2 replies; 3+ messages in thread
From: Vincent Mailhol @ 2026-11-13 17:59 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen, x86,
	H. Peter Anvin
  Cc: linux-kernel, Vincent Mailhol

Intel-style MCE features and legacy AMD NUMA detection remain available
when support for their CPU vendors is disabled. Add the corresponding
CPU_SUP_* dependencies so that these options are only available when
support for the relevant vendors is enabled.

Signed-off-by: Vincent Mailhol <mailhol@kernel.org>
---
Changes in v2:

  - Drop patch 3, which removed PROCESSOR_SELECT's EXPERT dependency.
    Update the cover letter to reflect the reduced scope.

  - Update the Intel MCE prompt and help text to mention Zhaoxin.

Link to v1: https://patch.msgid.link/20261031-processor_select_is_not_an_expert_feature-v1-0-6227bdbbe5a9@kernel.org

---
Vincent Mailhol (2):
      x86/mce: Add CPU_SUP_* dependencies for Intel/Zhaoxin MCE features
      x86/numa: Add CPU_SUP_AMD dependency for legacy AMD NUMA

 arch/x86/Kconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
base-commit: 7e1392a42ea288d70a266f6553fe06f57f8647ea
change-id: 20261030-processor_select_is_not_an_expert_feature-4f329d352ec3

Best regards,
--  
Vincent Mailhol <mailhol@kernel.org>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v2 1/2] x86/mce: Add CPU_SUP_* dependencies for Intel/Zhaoxin MCE features
  2026-11-13 17:59 [PATCH v2 0/2] x86: Add CPU vendor dependencies for MCE and legacy Vincent Mailhol
@ 2026-11-13 17:59 ` Vincent Mailhol
  2026-11-13 17:59 ` [PATCH v2 2/2] x86/numa: Add CPU_SUP_AMD dependency for legacy AMD NUMA Vincent Mailhol
  1 sibling, 0 replies; 3+ messages in thread
From: Vincent Mailhol @ 2026-11-13 17:59 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen, x86,
	H. Peter Anvin
  Cc: linux-kernel, Vincent Mailhol

Intel-style MCE features are only used on Intel and Zhaoxin CPUs.  Gate
X86_MCE_INTEL on CPU_SUP_INTEL || CPU_SUP_ZHAOXIN.

Update the prompt and help text to mention both supported CPU vendors.

Signed-off-by: Vincent Mailhol <mailhol@kernel.org>
---
 arch/x86/Kconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 58dce0b66179..91b3bc7deafd 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1158,10 +1158,10 @@ config X86_MCELOG_LEGACY
 
 config X86_MCE_INTEL
 	def_bool y
-	prompt "Intel MCE features"
-	depends on X86_MCE && X86_LOCAL_APIC
+	prompt "Intel and Zhaoxin MCE features"
+	depends on X86_MCE && X86_LOCAL_APIC && (CPU_SUP_INTEL || CPU_SUP_ZHAOXIN)
 	help
-	  Additional support for intel specific MCE features such as
+	  Additional support for Intel and Zhaoxin MCE features such as
 	  the thermal monitor.
 
 config X86_MCE_AMD

-- 
2.56.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v2 2/2] x86/numa: Add CPU_SUP_AMD dependency for legacy AMD NUMA
  2026-11-13 17:59 [PATCH v2 0/2] x86: Add CPU vendor dependencies for MCE and legacy Vincent Mailhol
  2026-11-13 17:59 ` [PATCH v2 1/2] x86/mce: Add CPU_SUP_* dependencies for Intel/Zhaoxin MCE features Vincent Mailhol
@ 2026-11-13 17:59 ` Vincent Mailhol
  1 sibling, 0 replies; 3+ messages in thread
From: Vincent Mailhol @ 2026-11-13 17:59 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen, x86,
	H. Peter Anvin
  Cc: linux-kernel, Vincent Mailhol

The legacy AMD NUMA probe reads topology from an Opteron northbridge.

It is only useful when AMD CPUs are supported, so gate it with
CPU_SUP_AMD.

Signed-off-by: Vincent Mailhol <mailhol@kernel.org>
---
 arch/x86/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 91b3bc7deafd..1bf39880d3fc 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1524,7 +1524,7 @@ config NUMA
 config AMD_NUMA
 	def_bool y
 	prompt "Old style AMD Opteron NUMA detection"
-	depends on X86_64 && NUMA && PCI
+	depends on X86_64 && NUMA && PCI && CPU_SUP_AMD
 	help
 	  Enable AMD NUMA node topology detection.  You should say Y here if
 	  you have a multi processor AMD system. This uses an old method to

-- 
2.56.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-13 18:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13 17:59 [PATCH v2 0/2] x86: Add CPU vendor dependencies for MCE and legacy Vincent Mailhol
2026-11-13 17:59 ` [PATCH v2 1/2] x86/mce: Add CPU_SUP_* dependencies for Intel/Zhaoxin MCE features Vincent Mailhol
2026-11-13 17:59 ` [PATCH v2 2/2] x86/numa: Add CPU_SUP_AMD dependency for legacy AMD NUMA Vincent Mailhol

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®