From: Brett Creeley <brett.creeley@amd.com>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
"Lukas Wunner" <lukas@wunner.de>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Eric Joyner" <eric.joyner@amd.com>,
"Nikhil P. Rao" <nikhil.rao@amd.com>,
"Brett Creeley" <brett.creeley@amd.com>
Subject: [PATCH RFC 3/3] PCI: Extend link-up timeout for AMD Pensando Vulcano upstream port
Date: Wed, 2 Dec 2026 16:43:28 -0800 [thread overview]
Message-ID: <20261202-b4-pci-link-up-timeout-v1-3-04fba0824d63@amd.com> (raw)
In-Reply-To: <20261202-b4-pci-link-up-timeout-v1-0-04fba0824d63@amd.com>
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@amd.com>
---
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
next prev parent reply other threads:[~2026-12-03 0:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 0:43 [PATCH RFC 0/3] PCI: Allow a device more time for its link to return after a reset Brett Creeley
2026-12-03 0:43 ` [PATCH RFC 1/3] PCI: Add PCI_VENDOR_ID_PENSANDO Brett Creeley
2026-12-03 8:36 ` Lukas Wunner
2026-12-03 0:43 ` [PATCH RFC 2/3] PCI: Allow quirks to extend the link-up wait after reset Brett Creeley
2026-12-03 8:34 ` Lukas Wunner
2026-12-03 17:07 ` Creeley, Brett
2026-12-03 0:43 ` Brett Creeley [this message]
2026-12-03 8:37 ` [PATCH RFC 3/3] PCI: Extend link-up timeout for AMD Pensando Vulcano upstream port Lukas Wunner
2026-12-03 16:47 ` Creeley, Brett
2026-12-03 8:45 ` [PATCH RFC 0/3] PCI: Allow a device more time for its link to return after a reset Lukas Wunner
2026-12-03 15:57 ` Eric Joyner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261202-b4-pci-link-up-timeout-v1-3-04fba0824d63@amd.com \
--to=brett.creeley@amd.com \
--cc=bhelgaas@google.com \
--cc=eric.joyner@amd.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=nikhil.rao@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®