Leroy P Leahy (leroy.p.leahy@intel.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10025
-gerrit
commit b1b62746cdd817ec4be17c079653f2800703e676 Author: Lee Leahy leroy.p.leahy@intel.com Date: Tue Feb 24 11:30:38 2015 -0800
cbmem: Add FSP timestamps
Add additional FSP timestamp values to cbmem.h and specify values for the existing ones. Update cbmem.c with the FSP timestamp values and descriptions.
BRANCH=none BUG=None TEST=Build for Braswell or Skylake boards using FSP 1.1.
Change-Id: I835bb090ff5877a108e48cb60f8e80260773771b Signed-off-by: Lee Leahy leroy.p.leahy@intel.com --- src/include/timestamp.h | 16 ++++++++++++---- util/cbmem/cbmem.c | 16 +++++++++++++++- 2 files changed, 27 insertions(+), 5 deletions(-)
diff --git a/src/include/timestamp.h b/src/include/timestamp.h index cd648ea..2e78241 100644 --- a/src/include/timestamp.h +++ b/src/include/timestamp.h @@ -51,16 +51,16 @@ enum timestamp_id { TS_START_ULZMA = 15, TS_END_ULZMA = 16, TS_DEVICE_ENUMERATE = 30, - TS_FSP_BEFORE_ENUMERATE, - TS_FSP_AFTER_ENUMERATE, + TS_FSP_BEFORE_ENUMERATE = 31, + TS_FSP_AFTER_ENUMERATE = 32, TS_DEVICE_CONFIGURE = 40, TS_DEVICE_ENABLE = 50, TS_DEVICE_INITIALIZE = 60, TS_DEVICE_DONE = 70, TS_CBMEM_POST = 75, TS_WRITE_TABLES = 80, - TS_FSP_BEFORE_FINALIZE, - TS_FSP_AFTER_FINALIZE, + TS_FSP_BEFORE_FINALIZE = 81, + TS_FSP_AFTER_FINALIZE = 82, TS_LOAD_PAYLOAD = 90, TS_ACPI_WAKE_JUMP = 98, TS_SELFBOOT_JUMP = 99, @@ -76,6 +76,14 @@ enum timestamp_id { TS_DONE_LOADING = 508, TS_DONE_HASHING = 509, TS_END_HASH_BODY = 510, + TS_FSP_MEMORY_INIT_START = 511, + TS_FSP_MEMORY_INIT_END = 512, + TS_FSP_TEMP_RAM_EXIT_START = 513, + TS_FSP_TEMP_RAM_EXIT_END = 514, + TS_FSP_FIND_START = 515, + TS_FSP_FIND_END = 516, + TS_FSP_SILICON_INIT_START = 517, + TS_FSP_SILICON_INIT_END = 518,
/* 1000+ reserved for payloads (1000-1200: ChromeOS depthcharge) */ }; diff --git a/util/cbmem/cbmem.c b/util/cbmem/cbmem.c index 7007354..a547821 100644 --- a/util/cbmem/cbmem.c +++ b/util/cbmem/cbmem.c @@ -413,7 +413,21 @@ static const struct timestamp_id_to_name { { TS_RW_VB_SELECT_AND_LOAD_KERNEL, "RW vboot select&load kernel" }, { TS_VB_SELECT_AND_LOAD_KERNEL, "vboot select&load kernel" }, { TS_CROSSYSTEM_DATA, "crossystem data" }, - { TS_START_KERNEL, "start kernel" } + { TS_START_KERNEL, "start kernel" }, + + /* FSP related timestamps */ + { TS_FSP_MEMORY_INIT_START, "calling FspMemoryInit" }, + { TS_FSP_MEMORY_INIT_END, "FspMemoryInit time" }, + { TS_FSP_TEMP_RAM_EXIT_START, "calling FspTempRamExit" }, + { TS_FSP_TEMP_RAM_EXIT_END, "FspTempRamExit time" }, + { TS_FSP_FIND_START, "calling FindFsp" }, + { TS_FSP_FIND_END, "FindFsp time" }, + { TS_FSP_SILICON_INIT_START, "calling FspSiliconInit" }, + { TS_FSP_SILICON_INIT_END, "FspSiliconInit time" }, + { TS_FSP_BEFORE_ENUMERATE, "calling FspNotify(AfterPciEnumeration)" }, + { TS_FSP_AFTER_ENUMERATE, "FspNotify(AfterPciEnumeration) time" }, + { TS_FSP_BEFORE_FINALIZE, "calling FspNotify(ReadyToBoot)" }, + { TS_FSP_AFTER_FINALIZE, " FspNotify(ReadyToBoot) time" } };
void timestamp_print_entry(uint32_t id, uint64_t stamp, uint64_t prev_stamp)