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

Gavin Shan gwshan at linux.vnet.ibm.com
Fri Oct 14 15:29:56 AEDT 2016


On Fri, Oct 14, 2016 at 03:25:47PM +1100, Gavin Shan wrote:
>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.
>

Please ignore the noise again. When posting patches, the "stable: "
tag cannot be recognized successfully and I have to select "drop"
for those patches tagged with "stable: ". Without doing that properly,
the series of patches are posted partially... Sorry for the noise.

Thanks,
Gavin

>Changelog
>=========
>v2 -> v3:
>   * Fix spelling errors and added comments according to Andrew's input.
>
>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                 | 26 +++++++++++++----
> 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, 184 insertions(+), 51 deletions(-)
>
>-- 
>2.1.0
>



More information about the Skiboot mailing list