commonlib: Add PSR backup eventlog types

Add new eventlog types to support logging of Platform Service Record
(PSR) backup related messages. Eventlog entries are added on PSR data
backup success/failure and also when PSR data is lost.

BRANCH=None
BUG=b:273207144
TEST=Verify elog event added after PSR data backup command is sent
cse_lite: PSR_HECI_FW_DOWNGRADE_BACKUP command sent
...
ELOG: Event(B9) added with size 10 at 2023-07-27 06:44:49 UTC

Change-Id: I01ce3f7ea24ff0fdbb7a202ec3c75973b59d4c14
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/+/77004
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Sridhar Siricilla <sridhar.siricilla@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Krishna Prasad Bhat 2023-08-04 14:38:26 +05:30 committed by Felix Held
parent 1e3138fe0b
commit 055b874658
1 changed files with 7 additions and 0 deletions

View File

@ -369,6 +369,13 @@ struct elog_event_extended_event {
#define ELOG_FW_EARLY_SOL_CSE_SYNC 0x0
#define ELOG_FW_EARLY_SOL_MRC 0x1
/* Platform Service Record(PSR) Events */
#define ELOG_TYPE_PSR_DATA_BACKUP 0xb9
#define ELOG_PSR_DATA_BACKUP_SUCCESS 0x0
#define ELOG_PSR_DATA_BACKUP_FAILED 0x1
#define ELOG_TYPE_PSR_DATA_LOST 0xba
/* Only the 7-LSB are used for size */
#define ELOG_MAX_EVENT_SIZE 0x7F