Re: [PATCH 02/49] x86/cpu: Describe hybrid CPUs in cpuinfo_x86

From: Borislav Petkov
Date: Mon Feb 08 2021 - 15:38:41 EST


On Mon, Feb 08, 2021 at 11:10:18AM -0800, Luck, Tony wrote:
> > +u32 x86_read_hybrid_type(void)
> > +{
> > + if (cpu_feature_enabled(X86_FEATURE_HYBRID_CPU))
> > + return cpuid_eax(0x0000001a);
> > +
> > + return 0;
> > +}
>
> Machine check logging will want to include this in "struct mce".
>
> But ok to pick it up with a function like you describe above.

Sure, that looks ok.

We can always lift it up into cpuinfo_x86 later, when it is needed on
the majority of machines but right now it is only a small subset of
machines which have this.

--
Regards/Gruss,
Boris.

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