commonlib: Add CBMEM ID to store CSE Boot Partition Info
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. In order to backup PSR data before initiating firmware downgrade, CSE Lite firmware supports a command to do this. This command works only after memory has been initialized. So the CSE firmware downgrade can be done only in post-RAM stage. CSE firmware sync actions will be moved to early ramstage to support this. Moving CSE firmware sync actions to ramstage results in cse_get_bp_info command taking additional boot time of ~45-55ms. To avoid this, cse_get_bp_info will be sent in early romstage and the response will be stored in cbmem to avoid sending the command again, and re-use in ramstage. This patch adds a CBMEM ID to store this CSE Boot Partition Info response in cbmem. BUG=b:273207144 Change-Id: I914befadab4ad0ac197435e2a2c4343a796b2b1b Signed-off-by: Krishna Prasad Bhat <krishna.p.bhat.d@intel.com> Signed-off-by: Rizwan Qureshi <rizwan.qureshi@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78052 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: sridhar siricilla <siricillasridhar@gmail.com>
This commit is contained in:
parent
64ec6a77be
commit
17cea380d9
|
@ -88,6 +88,7 @@
|
|||
#define CBMEM_ID_AMD_STB 0x5f425453
|
||||
#define CBMEM_ID_AMD_MP2 0x5f32504d
|
||||
#define CBMEM_ID_CSE_INFO 0x4553435F
|
||||
#define CBMEM_ID_CSE_BP_INFO 0x43534542
|
||||
|
||||
#define CBMEM_ID_TO_NAME_TABLE \
|
||||
{ CBMEM_ID_ACPI, "ACPI " }, \
|
||||
|
@ -168,5 +169,6 @@
|
|||
{ CBMEM_ID_MEM_CHIP_INFO, "MEM CHIP INFO"},\
|
||||
{ CBMEM_ID_AMD_STB, "AMD STB"},\
|
||||
{ CBMEM_ID_AMD_MP2, "AMD MP2 BUFFER"},\
|
||||
{ CBMEM_ID_CSE_INFO, "CSE SPECIFIC INFO"}
|
||||
{ CBMEM_ID_CSE_INFO, "CSE SPECIFIC INFO"},\
|
||||
{ CBMEM_ID_CSE_INFO, "CSE BP INFO"}
|
||||
#endif /* _CBMEM_ID_H_ */
|
||||
|
|
Loading…
Reference in New Issue