Attention is currently required from: Anil Kumar K, Jérémy Compostella, Krishna P Bhat D, Paul Menzel, Rizwan Qureshi, Sridhar Siricilla.
Krishna P Bhat D has uploaded a new patch set (#44) to the change originally created by Anil Kumar K. ( https://review.coreboot.org/c/coreboot/+/74577?usp=email )
The following approvals got outdated and were removed: Verified+1 by build bot (Jenkins)
Change subject: soc/intel/cse: Back up PSR data during CSE FW downgrade ......................................................................
soc/intel/cse: Back up PSR data during CSE FW downgrade
During CSE FW downgrade we erase CSE data. This would result in Platform Service Record(PSR) data also to be erased.
To avoid losing PSR data we need to take a backup before data clear.
This patch sends PSR_HECI_FW_DOWNGRADE_BACKUP HECI command to CSE, informing the CSE to backup PSR data before a data clear operation during downgrade.
CMOS memory is used to track the command status. PENDING is the default state, it is updated to DONE once PSR_HECI_FW_DOWNGRADE_BACKUP HECI command is sent.
PSR data can be backed up only post DRAM is available. Add a function post DRAM initialization and as a hook upon CBMEM_CREATION event to initiate PSR backup. Once the backup has been done, trigger the firmware downgrade.
In the case of CSE upgrade, there is no requirement for PSR data to be backed up. Hence perform CSE upgrade early in the romstage.
BRANCH=None BUG=b:273207144 TEST=build CB image for google/rex board and check PSR backup command is being sent during a CSE FW downgrade. Also check PSR data is not lost/erased after a downgrade using intel PSR tool.
Change-Id: I135d197b5df0a20def823fe615860b5ead4391f8 Signed-off-by: Anil Kumar anil.kumar.k@intel.com Signed-off-by: Krishna Prasad Bhat krishna.p.bhat.d@intel.com Signed-off-by: Rizwan Qureshi rizwan.qureshi@intel.com --- M src/soc/intel/common/block/cse/cse_lite.c M src/soc/intel/common/block/include/intelblocks/cse.h 2 files changed, 172 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/77/74577/44