Re: [PATCH v4 2/4] x86/cpu: Add platform ID to CPU info structure
From: Pawan Gupta
Date: Thu Mar 05 2026 - 19:56:34 EST
On Thu, Mar 05, 2026 at 04:49:29PM -0800, Pawan Gupta wrote:
> On Wed, Mar 04, 2026 at 10:10:20AM -0800, Dave Hansen wrote:
> >
> > From: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
> >
> > The end goal here is to be able to do x86_match_cpu() and match on a
> > specific platform ID. While it would be possible to stash this ID
> > off somewhere or read it dynamically, that approaches would not be
> > consistent with the other fields which can be matched.
> >
> > Read the platform ID and store it in cpuinfo_x86.
> >
> > There are lots of sites to set this new field. Place it near
> > the place c->microcode is established since the platform ID is
> > so closely intertwined with microcode updates.
> >
> > Note: This should not grow the size of 'struct cpuinfo_x86' in
> > practice since the u8 fits next to another u8 in the structure.
> >
> > Signed-off-by: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
>
> Reviewed-by: Pawan Gupta <pawan.kumar.gupta@xxxxxxxxxxxxxxx>
Nevermind, this was already reviewed and merged.