coreboot/src/cpu/x86
Johnny Lin 107e7aa0f5 cpu/x86/smm: Enable setting SMM console log level from mainboard
Add a Kconfig RUNTIME_CONFIGURABLE_SMM_LOGLEVEL that enables
mainboard to override mainboard_set_smm_log_level for SMM log level.
This can let SMM have different log level than other stages for
more flexibility.

Another reason is that getting certain data that requires searching
from flash VPD or CMOS is not very ideal to be done in SMM, so in this
change the value can be passed via the member variable in struct
smm_runtime and be referenced directly in SMM.

One example is that mainboard can get the desired SMM log level from
VPD/CMOS, and pass SMM console log level via the variable and in SMM
it can be referenced in get_console_loglevel() override function
directly.

Tested=On OCP Delta Lake, verified SMM log level can be overridden.

Change-Id: I81722a4f1bf75ec942cc06e403ad702dfe938e71
Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49460
Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jonathan Zhang <jonzhang@fb.com>
2023-02-15 21:53:07 +00:00
..
64bit cpu/x86/64bit: Fix building with -jx 2022-10-12 12:04:00 +00:00
lapic cpu/x86: Drop LEGACY_SMP_INIT 2022-11-07 13:59:35 +00:00
mtrr cpu/x86/mtrr: rename local cpu_idx variable and make it const 2022-12-16 00:30:12 +00:00
name cpu: Include <cpu/cpu.h> instead of <arch/cpu.h> 2022-11-08 14:38:28 +00:00
pae cpu: Include <cpu/cpu.h> instead of <arch/cpu.h> 2022-11-08 14:38:28 +00:00
smm cpu/x86/smm: Enable setting SMM console log level from mainboard 2023-02-15 21:53:07 +00:00
tsc cpu: Include <cpu/cpu.h> instead of <arch/cpu.h> 2022-11-08 14:38:28 +00:00
backup_default_smm.c cpu/x86: Clean up includes 2022-10-26 16:37:34 +00:00
early_reset.S
entry16.S
entry32.S arch/x86,cpu/x86: Disable the %gs and %fs segments 2021-09-29 14:12:58 +00:00
Kconfig cpu/x86/smm: Enable setting SMM console log level from mainboard 2023-02-15 21:53:07 +00:00
Kconfig.debug_cpu cpu/x86/Kconfig.debug_cpu: Drop unused symbol 2022-11-10 00:20:38 +00:00
Makefile.inc cpu/x86/64bit: Add a separate Makefile.inc 2022-04-25 13:56:54 +00:00
mp_init.c cpu/x86: Set up a separate stack for APs 2022-12-23 14:29:01 +00:00
reset16.S
sipi_vector.S cpu/x86: Set thread local storage in C code 2022-11-12 14:23:51 +00:00
smi_trigger.c cpu/x86: Clean up includes 2022-10-26 16:37:34 +00:00
sse_enable.inc