mbox series

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

Message ID 20191029021106.29396-1-jniethe5@gmail.com
Headers show
Series Changes to restoring buses after PCI reset | expand


Jordan Niethe Oct. 29, 2019, 2:11 a.m. UTC
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(-)