From d2bc30f3305f40a755c441394c9f88db341cc18b Mon Sep 17 00:00:00 2001 From: Krishna Prasad Bhat Date: Fri, 22 Sep 2023 00:28:50 +0530 Subject: soc/intel/cse: Select SOC_INTEL_CSE_LITE_SYNC_IN_RAMSTAGE when PSR enabled PSR data is created and stored in CSE data partition. In platforms that employ CSE Lite SKU firmware, a firmware downgrade involves clearing of CSE data partition which results in PSR data being lost. The PSR data needs to be preserved across the firmware downgrade flow. CSE Lite SKU firmware supports command to backup PSR data, and this command can be sent only in post-RAM stages. So the cse_fw_sync actions needs to be moved to ramstage. This patch ensures SOC_INTEL_CSE_LITE_SYNC_IN_RAMSTAGE is selected when PSR is enabled. BUG=b:273207144 Change-Id: I7c9bf8b8606cf68ec798ff35129e92cd60bbb137 Signed-off-by: Krishna Prasad Bhat Signed-off-by: Rizwan Qureshi Reviewed-on: https://review.coreboot.org/c/coreboot/+/78055 Reviewed-by: Anil Kumar K Reviewed-by: Subrata Banik Tested-by: build bot (Jenkins) --- src/soc/intel/common/block/cse/Kconfig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/soc/intel/common/block') diff --git a/src/soc/intel/common/block/cse/Kconfig b/src/soc/intel/common/block/cse/Kconfig index e46becc52d..581cecdfbc 100644 --- a/src/soc/intel/common/block/cse/Kconfig +++ b/src/soc/intel/common/block/cse/Kconfig @@ -144,10 +144,14 @@ config SOC_INTEL_CSE_LITE_PSR bool default n depends on SOC_INTEL_CSE_LITE_SKU + select SOC_INTEL_CSE_LITE_SYNC_IN_RAMSTAGE help Select this config if Platform Service Record(PSR) is supported by the platform. This config is applicable only for Lite SKU, where PSR data backup is required prior to a - CSE firmware downgrade during which CSE data is cleared. + CSE firmware downgrade during which CSE data is cleared. PSR services in CSE FW is + enabled only post DRAM init and the command to backup PSR data is also supported only + post DRAM init. Hence platform that selects PSR would need to perform CSE firmware sync + in ramstage. config SOC_INTEL_CSE_SERVER_SKU bool -- cgit v1.2.3