Martin Roth has submitted this change. ( https://review.coreboot.org/c/coreboot/+/50455 )
Change subject: soc/amd/cezanne: add empty SMM-handler ......................................................................
soc/amd/cezanne: add empty SMM-handler
Signed-off-by: Felix Held felix-coreboot@felixheld.de Change-Id: I95908fac3b1e17a16542e5d80001fac3d22d839a Reviewed-on: https://review.coreboot.org/c/coreboot/+/50455 Reviewed-by: Marshall Dawson marshalldawson3rd@gmail.com Reviewed-by: Raul Rangel rrangel@chromium.org Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/soc/amd/cezanne/Kconfig M src/soc/amd/cezanne/Makefile.inc A src/soc/amd/cezanne/smihandler.c 3 files changed, 24 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Marshall Dawson: Looks good to me, approved Raul Rangel: Looks good to me, approved
diff --git a/src/soc/amd/cezanne/Kconfig b/src/soc/amd/cezanne/Kconfig index 10c085e..4949286 100644 --- a/src/soc/amd/cezanne/Kconfig +++ b/src/soc/amd/cezanne/Kconfig @@ -17,6 +17,7 @@ select FSP_COMPRESS_FSP_M_LZMA select FSP_COMPRESS_FSP_S_LZMA select HAVE_CF9_RESET + select HAVE_SMI_HANDLER select IDT_IN_EVERY_STAGE select IOAPIC select PLATFORM_USES_FSP2_0 @@ -154,6 +155,19 @@ default 0xfedc9000 if UART_FOR_CONSOLE = 0 default 0xfedca000 if UART_FOR_CONSOLE = 1
+config SMM_TSEG_SIZE + hex + default 0x800000 if SMM_TSEG && HAVE_SMI_HANDLER + default 0x0 + +config SMM_RESERVED_SIZE + hex + default 0x180000 + +config SMM_MODULE_STACK_SIZE + hex + default 0x800 + menu "PSP Configuration Options"
config AMD_FWM_POSITION_INDEX diff --git a/src/soc/amd/cezanne/Makefile.inc b/src/soc/amd/cezanne/Makefile.inc index ce9f66c..3501282 100644 --- a/src/soc/amd/cezanne/Makefile.inc +++ b/src/soc/amd/cezanne/Makefile.inc @@ -4,6 +4,7 @@
subdirs-y += ../../../cpu/x86/lapic subdirs-y += ../../../cpu/x86/mtrr +subdirs-y += ../../../cpu/x86/smm
# Beware that all-y also adds the compilation unit to verstage on PSP all-y += config.c @@ -34,6 +35,8 @@ ramstage-y += root_complex.c ramstage-y += uart.c
+smm-y += smihandler.c + CPPFLAGS_common += -I$(src)/soc/amd/cezanne/include CPPFLAGS_common += -I$(src)/vendorcode/amd/fsp/cezanne
diff --git a/src/soc/amd/cezanne/smihandler.c b/src/soc/amd/cezanne/smihandler.c new file mode 100644 index 0000000..2d9e487 --- /dev/null +++ b/src/soc/amd/cezanne/smihandler.c @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include <cpu/x86/smm.h> + +void southbridge_smi_handler(void) +{ +}