From 0b40ea2f6e7218b062e019f0270166e6230ff786 Mon Sep 17 00:00:00 2001 From: Tarun Tuli Date: Tue, 31 Jan 2023 19:25:27 +0000 Subject: [PATCH] commonlib: Add ELOG_TYPE_FW_EARLY_SOL eventLog type MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Add a new eventLog type of ELOG_TYPE_FW_EARLY_SOL to support logging when we show early signs of life to the user. BUG=b:266113626 TEST=event shows in eventlog after CSE sync and/or MRC Change-Id: I3bd5a250c0be824dbbad0236cee7d61a1ffdbc6c Signed-off-by: Tarun Tuli Reviewed-on: https://review.coreboot.org/c/coreboot/+/72670 Reviewed-by: Jérémy Compostella Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik Reviewed-by: Nick Vaccaro Reviewed-by: Julius Werner --- src/commonlib/bsd/include/commonlib/bsd/elog.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/commonlib/bsd/include/commonlib/bsd/elog.h b/src/commonlib/bsd/include/commonlib/bsd/elog.h index 1f39090390..783557faf6 100644 --- a/src/commonlib/bsd/include/commonlib/bsd/elog.h +++ b/src/commonlib/bsd/include/commonlib/bsd/elog.h @@ -360,7 +360,14 @@ struct elog_event_extended_event { * Firmware boot related information retrieved from vboot and store as * per `union vb2_fw_boot_info` data structure. */ -#define ELOG_TYPE_FW_VBOOT_INFO 0xb7 +#define ELOG_TYPE_FW_VBOOT_INFO 0xb7 + +/* + * Events related to early Sign Of Life + */ +#define ELOG_TYPE_FW_EARLY_SOL 0xb8 +#define ELOG_FW_EARLY_SOL_CSE_SYNC 0x0 +#define ELOG_FW_EARLY_SOL_MRC 0x1 /* Only the 7-LSB are used for size */ #define ELOG_MAX_EVENT_SIZE 0x7F -- 2.11.4.GIT