[PATCH] PCI: Add hotplug bridge quirk for PLX PEX 8616/8617

From: Florian Fainelli

Date: Tue Dec 01 2026 - 15:50:04 EST


From: Samyon Furman <samyon.furman@xxxxxxxxxxxx>

Treat the downstream ports of the PLX PEX 8616 and PEX 8617 switches as
hotplug bridges so that the PCI core reserves resources for devices
hot-added behind them, the same way quirk_hotplug_bridge() does for the
HINT HB6 bridge.

Only downstream ports are flagged. The size of the reservation is left to
the existing pci=hpmemsize=, pci=hpmmiosize= and pci=hpiosize= command
line options rather than being hard-coded in the quirk.

Signed-off-by: Samyon Furman <samyon.furman@xxxxxxxxxxxx>
[florian: Commit message, avoid hard coding hpmmiosize]
Signed-off-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
---
drivers/pci/quirks.c | 13 +++++++++++++
1 file changed, 13 insertions(+)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 3d568e217c15..e4b04299b01a 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -3285,6 +3285,19 @@ static void quirk_hotplug_bridge(struct pci_dev *dev)
}
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_HINT, 0x0020, quirk_hotplug_bridge);

+/*
+ * Treat the PLX PEX 8616/8617 downstream ports as hotplug bridges so that
+ * resources are reserved for devices hot-added behind them. The size of the
+ * reservation can be set with pci=hpmemsize=nnM and pci=hpiosize=nn.
+ */
+static void quirk_plx_hotplug_downstream(struct pci_dev *dev)
+{
+ if (pci_pcie_type(dev) == PCI_EXP_TYPE_DOWNSTREAM)
+ quirk_hotplug_bridge(dev);
+}
+DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_PLX, 0x8616, quirk_plx_hotplug_downstream);
+DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_PLX, 0x8617, quirk_plx_hotplug_downstream);
+
/*
* This is a quirk for the Ricoh MMC controller found as a part of some
* multifunction chips.
--
2.34.1