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 <subratabanik@google.com> Change-Id: I51c04fc4bd2540b3f42e2f896178521d297ef246 Reviewed-on: https://review.coreboot.org/c/coreboot/+/81387 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <ericllai@google.com>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include <console/console.h>
|
||||
#include <intelblocks/early_graphics.h>
|
||||
#include <pc80/vga.h>
|
||||
#include <timestamp.h>
|
||||
#include <ux_locales.h>
|
||||
|
||||
#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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user