Re: [PATCH v2 1/9] x86/cpu/topology: Add CPU type to struct cpuinfo_topology

From: Borislav Petkov
Date: Tue Jul 09 2024 - 08:46:21 EST


On Mon, Jul 08, 2024 at 06:24:18PM -0700, Pawan Gupta wrote:
> The draft version had it in cpuinfo_x86, but it later got moved to
> cpuinfo_topology as it appears to be topology related. Below is from AMD
> documentation:
>
> E.4.24 Function 8000_0026—Extended CPU Topology

That's the name of the CPUID leaf.

> CPUID Fn8000_0026 reports extended topology information for logical
> processors, including asymmetric and heterogenous topology descriptions.
> Individual logical processors may report different values in systems with
> asynchronous and heterogeneous topologies.
> https://www.amd.com/content/dam/amd/en/documents/processor-tech-docs/programmer-references/24594.pdf
>
> I can move it back to cpuinfo_x86 if you feel strongly about it.

Nah, it just felt weird. Not a biggie and we can always move it if we deem so.

--
Regards/Gruss,
Boris.

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