Raul Rangel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/52674 )
Change subject: soc/amd/common/smi_handler: Print warning when receiving an SCI SMI ......................................................................
soc/amd/common/smi_handler: Print warning when receiving an SCI SMI
We don't have any infrastructure setup to handle SCI SMIs. Instead of just silently ignoring the, print a warning saying that it is being ignored.
BUG=none TEST=Trigger an SCI SMI and see warning printed.
Signed-off-by: Raul E Rangel rrangel@chromium.org Change-Id: I803e572250925b7d5ffdbb3e8958f9aff1f808df --- M src/soc/amd/common/block/cpu/smm/smi_handler.c 1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/74/52674/1
diff --git a/src/soc/amd/common/block/cpu/smm/smi_handler.c b/src/soc/amd/common/block/cpu/smm/smi_handler.c index 00c03f0..e535cb0 100644 --- a/src/soc/amd/common/block/cpu/smm/smi_handler.c +++ b/src/soc/amd/common/block/cpu/smm/smi_handler.c @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */
#include <amdblocks/acpimmio.h> +#include <console/console.h> #include <amdblocks/smi.h> #include <amdblocks/smm.h> #include <cpu/x86/smm.h> @@ -34,9 +35,12 @@ { const uint16_t smi_src = smi_read16(SMI_REG_POINTER);
- if (smi_src & SMI_STATUS_SRC_SCI) + if (smi_src & SMI_STATUS_SRC_SCI) { + printk(BIOS_WARNING, "Ignoring SCI SMI: %#x\n", smi_read32(SMI_SCI_STATUS)); + /* Clear events to prevent re-entering SMI if event isn't handled */ clear_smi_sci_status(); + } if (smi_src & SMI_STATUS_SRC_0) process_smi_sources(SMI_REG_SMISTS0); if (smi_src & SMI_STATUS_SRC_1)