[Skiboot] [PATCH v2 0/9] PCI Surprise Hotplug Support

Gavin Shan gwshan at linux.vnet.ibm.com
Thu Oct 13 12:16:35 AEDT 2016


This is the incremental patches to support PCI surprise hotplug as some
of them have been merged.

This series of patches supports PCI surprise hotplug. The functionality
relies on PCI slot presence and link state change reporting event. When
surprise hotplug has been claimed on the slot through device-tree property
"ibm,slot-surprise-pluggable", we have to keep slot's power supply always
on. Otherwise, the required events won't be raised properly. The code changes
were tested on Firestone+{Sumsung NVMe Adapter, Memblaze NVMe Adapter} when
the PCI adapters seat behind PLX or PMC PCIe switch downstream port.

Gavin Shan (9):
  core/pci: Return error on invalid power state transition
  core/pci: Cache power state on slot without power control
  core/pci: Return slot cached power state
  core/pci: Update PCI topology after power change
  core/pci: Get PCI slot before applying quirk
  core/pci: Reserve PCI buses for RC's slot
  core/pci: Claim surprise hotplug capability
  hw/phb3: Disable surprise link down event on PCI slots
  hw/phb3: Override root slot's prepare_link_change() with PHB's

 core/pci-opal.c                 | 20 +++++++++----
 core/pci-slot.c                 | 26 +++++++++++------
 core/pci.c                      | 43 ++++++++++++++++++---------
 core/pcie-slot.c                | 64 ++++++++++++++++++++++++++++++----------
 hw/phb3.c                       | 65 ++++++++++++++++++++++++++++++++++++-----
 include/pci-slot.h              |  1 +
 platforms/ibm-fsp/firenze-pci.c | 10 +++++++
 7 files changed, 178 insertions(+), 51 deletions(-)

-- 
2.1.0



More information about the Skiboot mailing list