aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2017-07-12 12:06:51 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-07-13 10:19:45 +1000
commit9fdd3f258396274ee9b9413b3436554528ded5a7 (patch)
treea3cb0286938428f1dfca603bc6de6a0a6e82ad42 /core
parent2fc948354c16b8e4bd5b7b023e7b17e11460cd5c (diff)
downloadskiboot-9fdd3f258396274ee9b9413b3436554528ded5a7.zip
skiboot-9fdd3f258396274ee9b9413b3436554528ded5a7.tar.gz
skiboot-9fdd3f258396274ee9b9413b3436554528ded5a7.tar.bz2
pci: Add ability to trace timing
PCI link training is responsible for a huge chunk of the skiboot boot time, so add the ability to trace it waiting in the main state machine. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core')
-rw-r--r--core/pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/pci.c b/core/pci.c
index 907160d..49e5bed 100644
--- a/core/pci.c
+++ b/core/pci.c
@@ -967,6 +967,7 @@ static void pci_reset_phb(void *data)
pci_slot_add_flags(slot, PCI_SLOT_FLAG_BOOTUP);
rc = slot->ops.freset(slot);
while (rc > 0) {
+ PCITRACE(phb, 0, "Waiting %ld ms\n", tb_to_msecs(rc));
time_wait(rc);
rc = slot->ops.run_sm(slot);
}