soc/amd/cezanne/cpu.c: Skip SMMINFO init in S3 resume

SMMINFO is already set up in S5, so it should be skipped in S3 resume

BUG=b:194990818
TEST=Build guybrush

Change-Id: I30ee6d7006ddac4dbdae9825bd4fa6eac7fd48cb
Signed-off-by: Fred Reitberger <reitbergerfred@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63025
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Fred Reitberger 2022-03-23 09:59:01 -04:00 committed by Felix Held
parent c35790012f
commit 8e3c6f8d33
1 changed files with 5 additions and 1 deletions

View File

@ -11,6 +11,7 @@
#include <cpu/x86/mp.h> #include <cpu/x86/mp.h>
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>
#include <acpi/acpi.h>
#include <device/device.h> #include <device/device.h>
#include <soc/cpu.h> #include <soc/cpu.h>
#include <soc/iomap.h> #include <soc/iomap.h>
@ -37,6 +38,9 @@ static void pre_mp_init(void)
static void post_mp_init(void) static void post_mp_init(void)
{ {
global_smi_enable(); global_smi_enable();
/* SMMINFO only needs to be set up when booting from S5 */
if (!acpi_is_wakeup_s3())
apm_control(APM_CNT_SMMINFO); apm_control(APM_CNT_SMMINFO);
} }