diff options
author | Krishna Prasad Bhat <krishna.p.bhat.d@intel.com> | 2023-08-04 14:38:26 +0530 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-08-25 14:39:45 +0000 |
commit | 055b8746580c4957c05ec51b147495200eeb319e (patch) | |
tree | 4aaa72f52cab4de07632098347d89592b3451ad7 /src/commonlib | |
parent | 1e3138fe0be96d39a6180b2cc8e5f5fb2b64b61b (diff) |
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>
Diffstat (limited to 'src/commonlib')
-rw-r--r-- | src/commonlib/bsd/include/commonlib/bsd/elog.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |