[PATCH RFC 3/3] PCI: Extend link-up timeout for AMD Pensando Vulcano upstream port
From: Brett Creeley
Date: Wed Dec 02 2026 - 19:43:55 EST
AMD Pensando cards present a PCIe switch upstream port directly below
the host Downstream Port, with the card's endpoints behind it.
When the SoC of an AMD Pensando Vulcano 800 AI NIC is reset, for
example when the card's management controller power-cycles it after a
fatal error, the link stays down for up to ~12 seconds. The Root Port
sees a Surprise Down and DPC contains the port, but after releasing DPC
the kernel waits only 1 s for the link to return, so recovery fails and
the card is disconnected even though it would have come back.
Allow the Vulcano upstream port 20 seconds for the link to come up.
Signed-off-by: Brett Creeley <brett.creeley@xxxxxxx>
---
drivers/pci/quirks.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 6038b35d4a2d..281eaeae7055 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -6615,6 +6615,19 @@ static void pci_fixup_d3cold_delay_1sec(struct pci_dev *pdev)
}
DECLARE_PCI_FIXUP_FINAL(0x5555, 0x0004, pci_fixup_d3cold_delay_1sec);
+/*
+ * The AMD Pensando Vulcano 800 AI NIC's link can stay down for up to ~12
+ * seconds after the card's SoC is reset.
+ */
+static void pci_fixup_pensando_link_up_timeout(struct pci_dev *pdev)
+{
+ pdev->link_up_timeout = 20000;
+ pci_dbg(pdev, "extending link-up timeout to %u ms\n",
+ pdev->link_up_timeout);
+}
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_PENSANDO, 0x1478,
+ pci_fixup_pensando_link_up_timeout);
+
#ifdef CONFIG_PCIEAER
static void pci_mask_replay_timer_timeout(struct pci_dev *pdev)
{
--
2.43.0