Re: [PATCH 4/6] x86/cpu: Add platform ID to CPU info structure

From: Borislav Petkov

Date: Sun Feb 08 2026 - 16:38:07 EST


On Fri, Feb 06, 2026 at 03:14:45PM -0800, Dave Hansen wrote:
> diff -puN arch/x86/include/asm/processor.h~cpu-x86_stepping arch/x86/include/asm/processor.h
> --- a/arch/x86/include/asm/processor.h~cpu-x86_stepping 2026-02-06 15:14:23.528790212 -0800
> +++ b/arch/x86/include/asm/processor.h 2026-02-06 15:14:23.567791582 -0800
> @@ -140,6 +140,8 @@ struct cpuinfo_x86 {
> __u32 x86_vfm;
> };
> __u8 x86_stepping;
> + /* Intel-only. 3 bits: */
> + __u8 x86_platform_id;

Can we call this something more generic so that we can do:

/* On Intel: platform ID
/* On AMD: something else

so that we can use this on both vendors?

I don't have any usage in mind on AMD now but it might come in handy some day.

Thx.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette