src/cpu/x86/smm: remove debug message; not thread safe
This patch removes a call to console_init() and debug print message since the code is not thread safe. This prevents system hangs (soft hangs) while in SMM if user drops in a new SOC with more cores or another socket or as a result of bad configuration. Console is already initialized after the lock has been acquired so this does not affect any other functionality. Tested on DeltaLake mainboard with SMM enabled and 52 CPU threads. Change-Id: I7e8af35d1cde78b327144b6a9da528ae7870e874 Signed-off-by: Rocky Phagura <rphagura@fb.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/52518 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
32aabf2c09
commit
1aa5194584
|
@ -132,9 +132,7 @@ asmlinkage void smm_handler_start(void *arg)
|
||||||
gnvs = (void *)(uintptr_t)smm_runtime.gnvs_ptr;
|
gnvs = (void *)(uintptr_t)smm_runtime.gnvs_ptr;
|
||||||
|
|
||||||
if (cpu >= CONFIG_MAX_CPUS) {
|
if (cpu >= CONFIG_MAX_CPUS) {
|
||||||
console_init();
|
/* Do not log messages to console here, it is not thread safe */
|
||||||
printk(BIOS_CRIT,
|
|
||||||
"Invalid CPU number assigned in SMM stub: %d\n", cpu);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue