From 689af47b52585ca49f5681e378bbfce6314a76cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Grzesik?= Date: Thu, 3 Jul 2025 10:07:23 +0200 Subject: [PATCH] commonlib: Add pvmfw related timestamps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add 3 new timestamps for measuring the time to setup pvmfw in depthcharge. First indicate when the setup has started. Second when the comm with GSC has finished and third when the setup is complete. BUG=b:429115233 BUG=b:359340876 TEST=build rauru Change-Id: I0e0d069ae85997d3e4c02f257cd801e7b6787762 Signed-off-by: Bartłomiej Grzesik Reviewed-on: https://review.coreboot.org/c/coreboot/+/88289 Tested-by: build bot (Jenkins) Reviewed-by: Yu-Ping Wu --- src/commonlib/include/commonlib/timestamp_serialized.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/commonlib/include/commonlib/timestamp_serialized.h b/src/commonlib/include/commonlib/timestamp_serialized.h index 2af574c088..022725af3e 100644 --- a/src/commonlib/include/commonlib/timestamp_serialized.h +++ b/src/commonlib/include/commonlib/timestamp_serialized.h @@ -174,6 +174,10 @@ enum timestamp_id { TS_KERNEL_START = 1101, TS_KERNEL_DECOMPRESSION = 1102, + TS_PVMFW_SETUP_START = 1110, + TS_PVMFW_GSC_NVRAM_DONE = 1111, + TS_PVMFW_SETUP_DONE = 1112, + /* 1200-1300: ChromeOS Hypervisor */ TS_CRHV_BOOT = 1200, TS_CRHV_PLATFORM_INIT = 1201, @@ -371,6 +375,10 @@ static const struct timestamp_id_to_name { TS_NAME_DEF(TS_KERNEL_START, 0, "jumping to kernel"), TS_NAME_DEF(TS_KERNEL_DECOMPRESSION, 0, "starting kernel decompression/relocation"), + TS_NAME_DEF(TS_PVMFW_SETUP_START, 0, "started pvmfw setup"), + TS_NAME_DEF(TS_PVMFW_GSC_NVRAM_DONE, 0, "finished fetching boot params from GSC"), + TS_NAME_DEF(TS_PVMFW_SETUP_DONE, 0, "finished pvmfw setup"), + /* ChromeOS hypervisor */ TS_NAME_DEF(TS_CRHV_BOOT, 0, "hypervisor boot finished"), TS_NAME_DEF(TS_CRHV_PLATFORM_INIT, 0, "hypervisor platform initialized"),