From 388db91f1d63699e42725df0bc1073ba214c2e35 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Fri, 22 Mar 2024 16:13:42 +0530 Subject: soc/intel/alderlake: Attach timestamp around eSOL call This patch adds timestamp start/end entries around the eSOL implementation to track the panel initialization time while rendering the eSOL screen. TEST=Able to build and boot google/omnigul. 555: started early sign-off life (eSOL) notification 643,694 (40) 556: finished early sign-off life (eSOL) notification 1,072,143 (428,449) Signed-off-by: Subrata Banik Change-Id: I51c04fc4bd2540b3f42e2f896178521d297ef246 Reviewed-on: https://review.coreboot.org/c/coreboot/+/81387 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai --- src/soc/intel/alderlake/romstage/ux.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/soc/intel/alderlake/romstage/ux.c b/src/soc/intel/alderlake/romstage/ux.c index af8c7832ac..77439abe11 100644 --- a/src/soc/intel/alderlake/romstage/ux.c +++ b/src/soc/intel/alderlake/romstage/ux.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include "ux.h" @@ -11,9 +12,13 @@ bool ux_inform_user_of_update_operation(const char *name) { + timestamp_add_now(TS_ESOL_START); + if (!CONFIG(MAINBOARD_HAS_EARLY_LIBGFXINIT) || - !early_graphics_init()) + !early_graphics_init()) { + timestamp_add_now(TS_ESOL_END); return false; + } printk(BIOS_INFO, "Informing user on-display of %s.\n", name); @@ -26,5 +31,6 @@ bool ux_inform_user_of_update_operation(const char *name) vga_write_text(VGA_TEXT_CENTER, VGA_TEXT_HORIZONTAL_MIDDLE, (const unsigned char *)text); ux_locales_unmap(); + timestamp_add_now(TS_ESOL_END); return true; } -- cgit v1.2.3