From 2fec394913d2ef721623d796ac1db82d19ab5195 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Wed, 1 Jul 2020 15:59:20 +0300 Subject: soc/amd/picasso: Move APM_CNT_SMMINFO callsite MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Triggering SMI is not part of the semantics of global_smi_enable(), so move it to the post_mp_init handler. Even without the !acpi_is_wakeup_s3 check we don't get PSP warnings/errors during resume, so we can drop the workaround introduced in commit 5dbe45e0f5608794e03634aed28530ddb2ab9ac5 in this patch. Change-Id: Id0e7723c2bb9811f80fe36c38199a01445dc1d7d Signed-off-by: Kyösti Mälkki Signed-off-by: Felix Held Reviewed-on: https://review.coreboot.org/c/coreboot/+/42987 Reviewed-by: Marshall Dawson Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/soc/amd/picasso/smi.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/soc/amd/picasso/smi.c') diff --git a/src/soc/amd/picasso/smi.c b/src/soc/amd/picasso/smi.c index 58221513a1..fb6d3484ad 100644 --- a/src/soc/amd/picasso/smi.c +++ b/src/soc/amd/picasso/smi.c @@ -4,8 +4,6 @@ * Utilities for SMM setup */ -#include -#include #include #include #include @@ -19,7 +17,4 @@ void global_smi_enable(void) reg &= ~SMITRG0_SMIENB; /* Enable SMI generation */ reg |= SMITRG0_EOS; /* Set EOS bit */ smi_write32(SMI_REG_SMITRIG0, reg); - - if (!acpi_is_wakeup_s3()) - outb(APM_CNT_SMMINFO, APM_CNT); } -- cgit v1.2.3