mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sohil Mehta <sohil.mehta@intel.com>
To: Vincent Mailhol <mailhol@kernel.org>,
	Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
	Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>, <x86@kernel.org>,
	"H. Peter Anvin" <hpa@zytor.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 1/2] x86/mce: Add CPU_SUP_* dependencies for Intel/Zhaoxin MCE features
Date: Fri, 13 Nov 2026 15:31:03 -0800	[thread overview]
Message-ID: <74eca949-2c86-4293-99b4-6b2dfc5935d9@intel.com> (raw)
In-Reply-To: <20261113-processor_select_is_not_an_expert_feature-v2-1-ae630b1f2e28@kernel.org>

On 11/13/2026 9:59 AM, Vincent Mailhol wrote:
> 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.
> 

Can we add a little bit more on why this change is needed? Is it mainly
correcting user visible documentation or to reduce the built kernel size?

> 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.

The thermal monitor is no longer part of X86_MCE_INTEL since commit
9223d0dccb8f ("thermal: Move therm_throt there from x86/mce"). If we are
correcting this entry then can we remove the reference to the thermal
monitor?

>  
>  config X86_MCE_AMD
> 

config X86_MCE_AMD
	def_bool y
	prompt "AMD MCE features"
	depends on X86_MCE && X86_LOCAL_APIC
	help

The next entry looks slightly odd after the change. I was wondering why
the AMD one doesn't need to depend on any CPU_SUP_* whereas the Intel
one does?


  reply	other threads:[~2026-11-13 23:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 23:31   ` Sohil Mehta [this message]
2026-11-13 17:59 ` [PATCH v2 2/2] x86/numa: Add CPU_SUP_AMD dependency for legacy AMD NUMA Vincent Mailhol

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=74eca949-2c86-4293-99b4-6b2dfc5935d9@intel.com \
    --to=sohil.mehta@intel.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mailhol@kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@kernel.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®