mbox series

[0/3] PowerNV PCIe Hotplug Driver Fixes

Message ID 20250404041810.245984-1-sanastasio@raptorengineering.com (mailing list archive)
Headers show
Series PowerNV PCIe Hotplug Driver Fixes | expand

Message

Shawn Anastasio April 4, 2025, 4:18 a.m. UTC
Hello all,

This series includes two fixes for bugs in the PowerNV PCIe hotplug
driver that were discovered in testing with a Microsemi Switchtec PM8533
PFX 48xG3 PCIe switch on a PowerNV system, as well as one workaround for
PCIe switches that don't correctly implement slot presence detection
such as the aforementioned one. Without the workaround, the switch works
and downstream devices can be hot-unplugged, but the devices never come
back online after being plugged in again until the system is rebooted.
Other hotplug drivers (like pciehp_hpc) use a similar workaround.

Thanks,

Shawn Anastasio (3):
  pci/hotplug/pnv_php: Properly clean up allocated IRQs on unplug
  pci/hotplug/pnv_php: Work around switches with broken presence
    detection
  pci/hotplug/pnv_php: Fix refcount underflow on hot unplug

 drivers/pci/hotplug/pnv_php.c | 110 +++++++++++++++++++++++++++-------
 1 file changed, 88 insertions(+), 22 deletions(-)

--
2.30.2