summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReka Norman <rekanorman@chromium.org>2022-08-03 10:22:32 +1000
committerMartin L Roth <gaumless@gmail.com>2022-08-07 19:28:09 +0000
commitabbfa555b02aa7c905f8cca27a22000c3bd7e47c (patch)
tree1393224f8e8cba5ae1ddfd8deabe28531908cd24 /src
parentd454f86ed8603dc0ea17aa0fef2ef8e8888d66f9 (diff)
commonlib/timestamp_serialized: Add comment explaining "ignore for x86"
BUG=b:240624460 TEST=None Signed-off-by: Reka Norman <rekanorman@chromium.org> Change-Id: I8542c9bb624a366bc1bb01f6eae66ba97520d19c Reviewed-on: https://review.coreboot.org/c/coreboot/+/66381 Reviewed-by: Julius Werner <jwerner@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/commonlib/include/commonlib/timestamp_serialized.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/commonlib/include/commonlib/timestamp_serialized.h b/src/commonlib/include/commonlib/timestamp_serialized.h
index bc2152eab4..4b1001ef39 100644
--- a/src/commonlib/include/commonlib/timestamp_serialized.h
+++ b/src/commonlib/include/commonlib/timestamp_serialized.h
@@ -199,6 +199,14 @@ static const struct timestamp_id_to_name {
TS_NAME_DEF(TS_BOOTBLOCK_END, 0, "end of bootblock"),
TS_NAME_DEF(TS_COPYROM_START, TS_COPYROM_END, "starting to load romstage"),
TS_NAME_DEF(TS_COPYROM_END, 0, "finished loading romstage"),
+ /*
+ * "ignore for x86": On platforms with memory-mapped flash, it's
+ * impossible to separate loading times from decompression times because
+ * the flash accesses happen in the background as the decompression is
+ * running. So it makes more sense to consider the total loading +
+ * decompression time by looking at the timestamps before and after the
+ * decompression timestamps.
+ */
TS_NAME_DEF(TS_ULZMA_START, TS_ULZMA_END, "starting LZMA decompress (ignore for x86)"),
TS_NAME_DEF(TS_ULZMA_END, 0, "finished LZMA decompress (ignore for x86)"),
TS_NAME_DEF(TS_ULZ4F_START, TS_ULZ4F_END, "starting LZ4 decompress (ignore for x86)"),