From 049347fee0e25c87c3f60b125ee5e03109429fb0 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 12 May 2017 11:54:08 +0200 Subject: nb/intel/gm45: Add romstage timestamps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I558e6c63caf95ec5279ec5a866b54fb199116469 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/19678 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Patrick Rudolph --- src/mainboard/lenovo/t400/romstage.c | 4 ++++ src/mainboard/lenovo/x200/romstage.c | 4 ++++ src/mainboard/roda/rk9/romstage.c | 4 ++++ src/northbridge/intel/gm45/raminit.c | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/src/mainboard/lenovo/t400/romstage.c b/src/mainboard/lenovo/t400/romstage.c index 31a80a4a19..1a5c17caaf 100644 --- a/src/mainboard/lenovo/t400/romstage.c +++ b/src/mainboard/lenovo/t400/romstage.c @@ -31,6 +31,7 @@ #include #include #include +#include #include "dock.h" #include "gpio.h" @@ -60,6 +61,9 @@ void mainboard_romstage_entry(unsigned long bist) int cbmem_initted; u16 reg16; + timestamp_init(timestamp_get()); + timestamp_add_now(TS_START_ROMSTAGE); + /* basic northbridge setup, including MMCONF BAR */ gm45_early_init(); diff --git a/src/mainboard/lenovo/x200/romstage.c b/src/mainboard/lenovo/x200/romstage.c index 49c5528277..02f7116f6e 100644 --- a/src/mainboard/lenovo/x200/romstage.c +++ b/src/mainboard/lenovo/x200/romstage.c @@ -32,6 +32,7 @@ #include #include #include "gpio.h" +#include #define LPC_DEV PCI_DEV(0, 0x1f, 0) #define MCH_DEV PCI_DEV(0, 0, 0) @@ -58,6 +59,9 @@ void mainboard_romstage_entry(unsigned long bist) int cbmem_initted; u16 reg16; + timestamp_init(timestamp_get()); + timestamp_add_now(TS_START_ROMSTAGE); + /* basic northbridge setup, including MMCONF BAR */ gm45_early_init(); diff --git a/src/mainboard/roda/rk9/romstage.c b/src/mainboard/roda/rk9/romstage.c index 720f628ade..9a8e34b18b 100644 --- a/src/mainboard/roda/rk9/romstage.c +++ b/src/mainboard/roda/rk9/romstage.c @@ -32,6 +32,7 @@ #include #include #include +#include #define LPC_DEV PCI_DEV(0, 0x1f, 0) #define SERIAL_DEV PNP_DEV(0x2e, LPC47N227_SP1) @@ -124,6 +125,9 @@ void mainboard_romstage_entry(unsigned long bist) int cbmem_initted; u16 reg16; + timestamp_init(timestamp_get()); + timestamp_add_now(TS_START_ROMSTAGE); + /* basic northbridge setup, including MMCONF BAR */ gm45_early_init(); diff --git a/src/northbridge/intel/gm45/raminit.c b/src/northbridge/intel/gm45/raminit.c index 30e9297a06..d2da3b02ab 100644 --- a/src/northbridge/intel/gm45/raminit.c +++ b/src/northbridge/intel/gm45/raminit.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "gm45.h" #include "chip.h" @@ -1713,6 +1714,7 @@ void raminit(sysinfo_t *const sysinfo, const int s3resume) int ch; u8 reg8; + timestamp_add_now(TS_BEFORE_INITRAM); /* Wait for some bit, maybe TXT clear. */ if (sysinfo->txt_enabled) { @@ -1825,4 +1827,6 @@ void raminit(sysinfo_t *const sysinfo, const int s3resume) raminit_thermal(sysinfo); init_igd(sysinfo); + + timestamp_add_now(TS_AFTER_INITRAM); } -- cgit v1.2.3