From 135f9eb46acdf6ff8de332fd47967dd15128fdbf Mon Sep 17 00:00:00 2001 From: Fred Reitberger Date: Thu, 24 Mar 2022 07:43:17 -0400 Subject: [PATCH] soc/amd/sabrina/cpu.c: Skip SMMINFO init in S3 resume SMMINFO is already set up in S5, so it should be skipped in S3 resume TEST=builds Change-Id: I58e25075a007505e53962525ec4d9acd2ce6c7ae Signed-off-by: Fred Reitberger Reviewed-on: https://review.coreboot.org/c/coreboot/+/63088 Tested-by: build bot (Jenkins) Reviewed-by: Raul Rangel --- src/soc/amd/sabrina/cpu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/soc/amd/sabrina/cpu.c b/src/soc/amd/sabrina/cpu.c index c355a704df..9893a8bb30 100644 --- a/src/soc/amd/sabrina/cpu.c +++ b/src/soc/amd/sabrina/cpu.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -39,7 +40,10 @@ static void pre_mp_init(void) static void post_mp_init(void) { global_smi_enable(); - apm_control(APM_CNT_SMMINFO); + + /* SMMINFO only needs to be set up when booting from S5 */ + if (!acpi_is_wakeup_s3()) + apm_control(APM_CNT_SMMINFO); } static const struct mp_ops mp_ops = {