From 0797c40d525f914b1ff7dcd859f0b361245794aa Mon Sep 17 00:00:00 2001 From: Dinesh Gehlot Date: Thu, 21 Nov 2024 00:35:38 +0530 Subject: [PATCH] src/soc/intel/cmn/blk/cse: Log cse sync information This patch adds an event log entry for successful CSE synchronization, along with the boot stage where the synchronization occurred, either early or late. BUG=b:379585294 TEST=elog verified on rex0 and rex64 Rex0: ``` rex-rev3 ~ # /media/usb/elogtool list 3 | 2024-01-01 22:25:59-0800 | Firmware CSE sync | Late CSE Sync ``` Rex64: ``` rex64-rev3 ~ # /media/usb/elogtool list 8 | 2024-01-01 22:51:00-0800 | Firmware CSE sync | CSE Sync at Payload ``` Change-Id: Idece841c2b069d7688afc258470667ed2851a282 Signed-off-by: Dinesh Gehlot Reviewed-on: https://review.coreboot.org/c/coreboot/+/85219 Tested-by: build bot (Jenkins) Reviewed-by: Kapil Porwal Reviewed-by: Karthik Ramasubramanian Reviewed-by: Subrata Banik --- src/soc/intel/common/block/cse/cse_lite.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/soc/intel/common/block/cse/cse_lite.c b/src/soc/intel/common/block/cse/cse_lite.c index 07233a9fb5..00b5de6ecc 100644 --- a/src/soc/intel/common/block/cse/cse_lite.c +++ b/src/soc/intel/common/block/cse/cse_lite.c @@ -806,6 +806,8 @@ static enum cb_err cse_write_rw_region(const struct region_device *target_rdev, return CB_ERR; printk(BIOS_INFO, "cse_lite: CSE RW Update Successful\n"); + elog_add_event_byte(ELOG_TYPE_FW_CSE_SYNC, ENV_RAMSTAGE ? ELOG_FW_LATE_CSE_SYNC : + ELOG_FW_EARLY_CSE_SYNC); return CB_SUCCESS; }