* [PATCH] PCI: Add hotplug bridge quirk for PLX PEX 8616/8617
@ 2026-12-01 20:48 Florian Fainelli
0 siblings, 0 replies; only message in thread
From: Florian Fainelli @ 2026-12-01 20:48 UTC (permalink / raw)
To: linux-pci
Cc: bcm-kernel-feedback-list, Samyon Furman, Florian Fainelli,
Bjorn Helgaas, open list
From: Samyon Furman <samyon.furman@broadcom.com>
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@broadcom.com>
[florian: Commit message, avoid hard coding hpmmiosize]
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-01 20:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 20:48 [PATCH] PCI: Add hotplug bridge quirk for PLX PEX 8616/8617 Florian Fainelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®