Re: [PATCH 1/3] x86/mce: Add CPU_SUP_* dependencies for Intel/Zhaoxin MCE features

From: Vincent Mailhol

Date: Wed Nov 11 2026 - 11:16:49 EST


On 11/11/2026 à 16:46, Dave Hansen wrote:
> On 10/31/26 00:51, Vincent Mailhol wrote:
>> config X86_MCE_INTEL
>> def_bool y
>> prompt "Intel MCE features"
>> - depends on X86_MCE && X86_LOCAL_APIC
>> + depends on X86_MCE && X86_LOCAL_APIC && (CPU_SUP_INTEL || CPU_SUP_ZHAOXIN)
>
> Is this to help end users? If so, it seems like it might also be nice to
> improve the only human-visible part of this: the prompt text.

Ack, I will change the prompt text to "Intel and Zhaoxin MCE features".

By the way, would it also make sense to make the prompt conditional?

prompt "Intel and Zhaoxin MCE features" if PROCESSOR_SELECT

One of my initial motivations was to reduce the number of questions
asked when building a custom kernel. For a kernel with broad x86 vendor
support, keeping these MCE features enabled by default seems reasonable
to me.


Yours sincerely,
Vincent Mailhol