[Skiboot] [RFC PATCH v2 0/3] Changes to restoring buses after PCI reset

Jordan Niethe jniethe5 at gmail.com
Tue Oct 29 13:11:03 AEDT 2019


These are RFC patches for reworking how PCI buses are restored after
performing a PCI fundamental reset on PHB4.  The motivation for this:
    1: Get rid delays in skiboot to stop holding up
       OPAL_PCI_RESET calls
    2: Ensure slots with power controllers restore their state

This version moves the machinery for restoring buses out from being
specific to PHB4 and makes it apart of the generic PCIe slot. This was
done as nothing was specific to PHB4 and it would potentially used by
other PHBs/RCs in the future. For now however, the changes still only
effect PHB4.

Jordan Niethe (3):
  core/pci: Add functions for iterating PCI devices
  core/pcie-slot: Extend slot state machine to restore bus numbers
  core/pcie-slot: Restore slot power controller state

 core/pci-slot.c    |   3 +
 core/pci.c         |  44 +++++++++++
 core/pcie-slot.c   | 177 +++++++++++++++++++++++++++++++++++++++++++++
 hw/phb4.c          |   6 +-
 include/pci-slot.h |  15 ++++
 include/pci.h      |   7 ++
 6 files changed, 249 insertions(+), 3 deletions(-)

-- 
2.20.1



More information about the Skiboot mailing list