RE: [PATCH -v2] x86/cpu: Add CPU model number for Bartlett Lake CPUs with Raptor Cove cores
From: Luck, Tony
Date: Mon Apr 14 2025 - 12:21:52 EST
> > Please fix this. It has the core and the product reversed. That is, it
> > should be INTEL_BARTLETTLAKE and /* Raptor Cove */ to match
> > the bulk of that file.
>
> I switched it around for this commit - see the updated patch below.
>
> > And yes, you also want to fix this for INTEL_PANTHERCOVE_X
> > and /* Diamond Rapids */ entry.
> >
> > The macros refer to products.
> > The comments refer to cores.
>
> Please send a patch if you have the time.
>
> > Consistency, please.
> > Sanity, please.
>
> Amen!
PeterZ has been very vocal that he wants the "sane" way to be making the "#define"
name be based on the core rather than the product. That way multiple products using
the same core show up together in switch statements for model specific features like
power and performance counters.
This does mean we have a transition between legacy names that were using the
SoC product codename and modern ones that use the core codename.
Can the X86 maintainers please get in a huddle and define a naming
policy. This discussion keeps happening.
-Tony