Re: [RFC PATCH] x86/cpu: Change AMD uarch detection

From: Borislav Petkov

Date: Wed Oct 28 2026 - 11:47:00 EST


On Wed, Oct 28, 2026 at 07:05:58AM -0700, Sean Christopherson wrote:
> I don't particularly care what the interface is, but as a "downstream" user, it
> would be helpful if Intel and AMD used the same scheme(s).

If you mean ->x86_vfm, then

git grep x86_vfm arch/x86/

shows only exactly one user in arch/x86/kvm :).

And then there's the X86_MATCH_VFM() gunk.

But I guess I can take a look and see whether I can use that thing on AMD too.
It'll have a different meaning but at least it is the same cpuinfo_x86 field.

> And FWIW, providing the human-friendly codenames is very helpful even if they're
> almost never used in code. E.g. effectively documenting that Turin is Zen5, Genoa
> is Zen4, Milan is Zen3, and so on is helpful, because even with search+AI, it's
> hard to find information you don't realize you're missing. Though that's probably
> orthogonal to the interface.

Yeah, try talking to the marketing wankers with their frenzy for naming
everything in the dumbest and most unintuitive way possible...

--
Regards/Gruss,
Boris.

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