On Mon, Sep 01 2025 at 17:04, K. Prateek Nayak wrote:
Unconditionally call cpu_parse_topology_ext() on AMD and Hygon processors to first parse the topology using the XTOPOLOGY leaves (0x80000026 / 0xb) before using the TOPOEXT leaf (0x8000001e).
While at it, break down the single large comment in parse_topology_amd() to better highlight the purpose of each CPUID leaf.
Cc: stable@vger.kernel.org # Only v6.9 and above; Depends on x86 topology rewrite Link: https://lore.kernel.org/lkml/1529686927-7665-1-git-send-email-suravee.suthik... [1] Link: https://lore.kernel.org/lkml/20080818181435.523309000@linux-os.sc.intel.com/ [2] Link: https://bugzilla.kernel.org/show_bug.cgi?id=206537 [3] Suggested-by: Naveen N Rao (AMD) naveen@kernel.org Fixes: 3986a0a805e6 ("x86/CPU/AMD: Derive CPU topology from CPUID function 0xB when available") Signed-off-by: K Prateek Nayak kprateek.nayak@amd.com
Changelog v4..v5:
o Made a note on only targeting versions >= v6.9 for stable backports since the fix depends on the x86 topology rewrite. (Boris)
Shouldn't that be backported? I think so, so leave that v6.9 and above comment out. The stable folks will notice that it does not apply to pre 6.9 kernels and send you a nice email asking you to provide a solution for pre 6.9 stable kernels.
Thanks,
tglx