Re: [RFC PATCH] x86/cpu: Change AMD uarch detection
From: Borislav Petkov
Date: Fri Oct 30 2026 - 21:55:26 EST
On Fri, Oct 30, 2026 at 02:29:25PM -0700, Sohil Mehta wrote:
> Since x86_vfm is a union, wouldn't this clobber the vendor, family and
> model? This will set the x86_vendor to 0 and get detected as an Intel CPU.
Yah. That was the reason why I did this x86_uarch field initially. But then
Sean complained and I forgot about it, thinking I can make this a lot more
unified.
I would've remembered again after testing it but yeah, thanks for reminding
me.
So, we're going back to the initial method because that's what this is
- x86_uarch is the microarchitecture number I am giving it and not x86_vfm
- a family/model/stepping tuple.
Who knows, if you guys decide you need an uarch enumeration, you could use it
too.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette