summaryrefslogtreecommitdiff
path: root/src/commonlib
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2021-07-16 12:50:17 -0600
committerFelix Held <felix-coreboot@felixheld.de>2021-07-21 16:43:29 +0000
commitce291b4327a888920fad453103094630ca247a57 (patch)
tree70fe7274d6750277d05e259cad4c3c3ad8169dfb /src/commonlib
parentca74a8f430d2323ab8e9998cf0d52373ec6d06f1 (diff)
commonlib/timestamp,amd/common/block/cpu: Add uCode timestamps
This allows keeping track of how long it takes to load the microcode. BUG=b:179699789 TEST=Boot guybrush 112:started reading uCode 990,448 (10,615) 113:finished reading uCode 991,722 (1,274) Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: I86b67cf9d17786a380e90130a8fe424734e64657 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56391 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jason Glenesk <jason.glenesk@gmail.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/commonlib')
-rw-r--r--src/commonlib/include/commonlib/timestamp_serialized.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commonlib/include/commonlib/timestamp_serialized.h b/src/commonlib/include/commonlib/timestamp_serialized.h
index 300aa2a37e..75bcccadf3 100644
--- a/src/commonlib/include/commonlib/timestamp_serialized.h
+++ b/src/commonlib/include/commonlib/timestamp_serialized.h
@@ -54,6 +54,8 @@ enum timestamp_id {
TS_END_POSTCAR = 101,
TS_DELAY_START = 110,
TS_DELAY_END = 111,
+ TS_READ_UCODE_START = 112,
+ TS_READ_UCODE_END = 113,
/* 500+ reserved for vendorcode extensions (500-600: google/chromeos) */
TS_START_COPYVER = 501,
@@ -191,6 +193,8 @@ static const struct timestamp_id_to_name {
{ TS_SELFBOOT_JUMP, "selfboot jump" },
{ TS_DELAY_START, "Forced delay start" },
{ TS_DELAY_END, "Forced delay end" },
+ { TS_READ_UCODE_START, "started reading uCode" },
+ { TS_READ_UCODE_END, "finished reading uCode" },
{ TS_START_COPYVER, "starting to load verstage" },
{ TS_END_COPYVER, "finished loading verstage" },