diff options
author | Alexandru Gagniuc <alexandrux.gagniuc@intel.com> | 2016-05-06 08:22:45 -0700 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2016-05-12 04:53:11 +0200 |
commit | 010225c7770f033b7e804aad9cf16840c842674c (patch) | |
tree | c762485a55ca81cc611ca6b84bfeeb959c9edff1 /src/drivers/intel/fsp2_0/notify.c | |
parent | e22f536bf8b5fb2d41f27c31f527d0ff59d9dd7d (diff) | |
download | coreboot-010225c7770f033b7e804aad9cf16840c842674c.tar.xz |
drivers/intel/fsp2_0: Add timestamps around all calls to the blob
Change-Id: I384cef0f5b4b71dbd7ad6d1d508e7c6395bf3f2d
Signed-off-by: Alexandru Gagniuc <alexandrux.gagniuc@intel.com>
Reviewed-on: https://review.coreboot.org/14759
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/drivers/intel/fsp2_0/notify.c')
-rw-r--r-- | src/drivers/intel/fsp2_0/notify.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/drivers/intel/fsp2_0/notify.c b/src/drivers/intel/fsp2_0/notify.c index 820bd4540e..d9de02235e 100644 --- a/src/drivers/intel/fsp2_0/notify.c +++ b/src/drivers/intel/fsp2_0/notify.c @@ -15,6 +15,7 @@ #include <fsp/api.h> #include <fsp/util.h> #include <string.h> +#include <timestamp.h> struct fsp_notify_params { enum fsp_notify_phase phase; @@ -25,6 +26,7 @@ typedef asmlinkage enum fsp_status (*fsp_notify_fn) enum fsp_status fsp_notify(enum fsp_notify_phase phase) { + enum fsp_status ret; fsp_notify_fn fspnotify; struct fsp_notify_params notify_params = { .phase = phase }; @@ -36,5 +38,17 @@ enum fsp_status fsp_notify(enum fsp_notify_phase phase) printk(BIOS_DEBUG, "FspNotify %x\n", (uint32_t) phase); - return fspnotify(¬ify_params); + if (phase == AFTER_PCI_ENUM) + timestamp_add_now(TS_FSP_BEFORE_ENUMERATE); + else if (phase == READY_TO_BOOT) + timestamp_add_now(TS_FSP_BEFORE_FINALIZE); + + ret = fspnotify(¬ify_params); + + if (phase == AFTER_PCI_ENUM) + timestamp_add_now(TS_FSP_AFTER_ENUMERATE); + else if (phase == READY_TO_BOOT) + timestamp_add_now(TS_FSP_AFTER_FINALIZE); + + return ret; } |