x86/topology: Don't evaluate logical IDs during early boot
authorThomas Gleixner <tglx@linutronix.de>
Fri, 22 Mar 2024 18:56:36 +0000 (19:56 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Sat, 23 Mar 2024 11:28:06 +0000 (12:28 +0100)
commit7af541cee1e0eb48c6eb439bc6309175339fa96f
treec0417f4c99616e794f7452df5a923ab8d2fa97cf
parentc90399fbd74a0713d5972a6d931e4a9918621e88
x86/topology: Don't evaluate logical IDs during early boot

The local APICs have not yet been enumerated so the logical ID evaluation
from the topology bitmaps does not work and would return an error code.

Skip the evaluation during the early boot CPUID evaluation and only apply
it on the final run.

Fixes: 380414be78bf ("x86/cpu/topology: Use topology logical mapping mechanism")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20240322185305.186943142@linutronix.de
arch/x86/kernel/cpu/topology_common.c