x86/cpu/hygon: Fix the CPU topology evaluation for real
authorPu Wen <puwen@hygon.cn>
Mon, 14 Aug 2023 08:18:26 +0000 (10:18 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 10 Oct 2023 12:38:16 +0000 (14:38 +0200)
commitee545b94d39a00c93dc98b1dbcbcf731d2eadeb4
tree9097ef1153875565d5ea322952bb6617d1570635
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
x86/cpu/hygon: Fix the CPU topology evaluation for real

Hygon processors with a model ID > 3 have CPUID leaf 0xB correctly
populated and don't need the fixed package ID shift workaround. The fixup
is also incorrect when running in a guest.

Fixes: e0ceeae708ce ("x86/CPU/hygon: Fix phys_proc_id calculation logic for multi-die processors")
Signed-off-by: Pu Wen <puwen@hygon.cn>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/tencent_594804A808BD93A4EBF50A994F228E3A7F07@qq.com
Link: https://lore.kernel.org/r/20230814085112.089607918@linutronix.de
arch/x86/kernel/cpu/hygon.c