diff options
author | Michael Neuling <mikey@neuling.org> | 2017-07-12 12:06:51 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-07-13 10:19:45 +1000 |
commit | 9fdd3f258396274ee9b9413b3436554528ded5a7 (patch) | |
tree | a3cb0286938428f1dfca603bc6de6a0a6e82ad42 | |
parent | 2fc948354c16b8e4bd5b7b023e7b17e11460cd5c (diff) | |
download | skiboot-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>
-rw-r--r-- | core/pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |