From 055b8746580c4957c05ec51b147495200eeb319e Mon Sep 17 00:00:00 2001 From: Krishna Prasad Bhat Date: Fri, 4 Aug 2023 14:38:26 +0530 Subject: [PATCH] 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 Signed-off-by: Rizwan Qureshi Reviewed-on: https://review.coreboot.org/c/coreboot/+/77004 Reviewed-by: Subrata Banik Reviewed-by: Sridhar Siricilla Tested-by: build bot (Jenkins) --- src/commonlib/bsd/include/commonlib/bsd/elog.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/commonlib/bsd/include/commonlib/bsd/elog.h b/src/commonlib/bsd/include/commonlib/bsd/elog.h index 783557faf6..e0c30bbbcf 100644 --- a/src/commonlib/bsd/include/commonlib/bsd/elog.h +++ b/src/commonlib/bsd/include/commonlib/bsd/elog.h @@ -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