Paz Zcharya has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/79789?usp=email )
Change subject: drivers/intel/fsp2_0: add fw splash screen timestamp ......................................................................
drivers/intel/fsp2_0: add fw splash screen timestamp
Add a new timestamp when the firmware splash screen is visible.
BUG=b:284799726 TEST=Execute cbmem and see the line 555:splash screen visible 958,008 (330)
Change-Id: Ie2a0a0591ceeee08a147fc54ad3aee4f602933c9 Signed-off-by: Paz Zcharya pazz@chromium.org --- M src/commonlib/include/commonlib/timestamp_serialized.h M src/drivers/intel/fsp2_0/graphics.c 2 files changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/89/79789/1
diff --git a/src/commonlib/include/commonlib/timestamp_serialized.h b/src/commonlib/include/commonlib/timestamp_serialized.h index e4439cd..f53c572 100644 --- a/src/commonlib/include/commonlib/timestamp_serialized.h +++ b/src/commonlib/include/commonlib/timestamp_serialized.h @@ -84,6 +84,7 @@ TS_COPYVPD_RW_END = 552, TS_TPM_ENABLE_UPDATE_START = 553, TS_TPM_ENABLE_UPDATE_END = 554, + TS_SPLASH_SCREEN_VISIBLE = 555,
/* 900-940 reserved for vendorcode extensions (900-940: AMD) */ TS_AGESA_INIT_RESET_START = 900, @@ -263,6 +264,7 @@ TS_NAME_DEF(TS_TPM_ENABLE_UPDATE_START, TS_TPM_ENABLE_UPDATE_END, "started TPM enable update"), TS_NAME_DEF(TS_TPM_ENABLE_UPDATE_END, 0, "finished TPM enable update"), + TS_NAME_DEF(TS_SPLASH_SCREEN_VISIBLE, 0, "splash screen visible"),
/* AMD related timestamps */ TS_NAME_DEF(TS_AGESA_INIT_RESET_START, TS_AGESA_INIT_RESET_END, "calling AmdInitReset"), diff --git a/src/drivers/intel/fsp2_0/graphics.c b/src/drivers/intel/fsp2_0/graphics.c index b7466a5..5346bea 100644 --- a/src/drivers/intel/fsp2_0/graphics.c +++ b/src/drivers/intel/fsp2_0/graphics.c @@ -6,6 +6,7 @@ #include <fsp/graphics.h> #include <fsp/util.h> #include <soc/intel/common/vbt.h> +#include <timestamp.h> #include <types.h> #include <framebuffer_info.h>
@@ -115,6 +116,7 @@ }
update_fw_splash_screen_event(FW_SPLASH_SCREEN_ENABLED); + timestamp_add_now(TS_SPLASH_SCREEN_VISIBLE); fbinfo = fsp_framebuffer_format_map + ginfo->pixel_format;
const struct lb_framebuffer fb = {