From: Lukas Wunner <lukas@wunner.de>
To: Brett Creeley <brett.creeley@amd.com>
Cc: "Bjorn Helgaas" <bhelgaas@google.com>,
linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Eric Joyner" <eric.joyner@amd.com>,
"Nikhil P. Rao" <nikhil.rao@amd.com>
Subject: Re: [PATCH RFC 0/3] PCI: Allow a device more time for its link to return after a reset
Date: Thu, 3 Dec 2026 09:45:13 +0100 [thread overview]
Message-ID: <axEsGQFPAB64sahC@wunner.de> (raw)
In-Reply-To: <20261202-b4-pci-link-up-timeout-v1-0-04fba0824d63@amd.com>
On Wed, Dec 02, 2026 at 04:43:25PM -0800, Brett Creeley wrote:
> - Is a device quirk the right place for this, rather than having the
> device's driver set the value at probe? A quirk covers the card even
> when no driver is bound to its functions, and it is set before any
> driver probes.
It's the right place.
> - Should the core cap link_up_timeout (e.g. at
> PCIE_RESET_READY_POLL_MS), or is the quirk's value trusted as is?
It's trusted.
> - Hotplug-capable slots are not handled yet. Vulcano cards are deployed
> in slots that support hotplug, and there pciehp waits only 4 s in
> pci_dpc_recovered() for DPC recovery before treating the Link Down as
> a removal, so a ~12 s outage still ends in the card being torn down.
> That wait covers the DPC recovery which, with this series, already
> includes link_up_timeout, so one possible approach is to reuse the
> same field: have pci_dpc_recovered() extend its 4 s by the amount a
> quirked device below the port adds to the link-up wait, leaving other
> devices unchanged. Bjorn has suggested instead that this wait match
> PCIE_RESET_READY_POLL_MS for everyone [2]. Which would you prefer?
> This part is not implemented or tested yet.
I don't really know.
> - Ports at or below 5 GT/s still use the fixed 1 s budget. Is it worth
> extending that path too, or is it fine to leave it until a device
> needs it?
Leave it until a need arises.
I'm wondering if it would be possible to detect in the driver's
->error_detected() callback that the card is undergoing a power cycle,
wait 12 sec if so, then when dpc_reset_link() brings the port out of
containment, the link comes back quicker? Maybe the ->error_detected()
callback has a way to talk to some OOB management controller on the card
to detect a power cycle?
Thanks,
Lukas
prev parent reply other threads:[~2026-12-03 8:45 UTC|newest]
Thread overview: 9+ 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 0:43 ` [PATCH RFC 3/3] PCI: Extend link-up timeout for AMD Pensando Vulcano upstream port Brett Creeley
2026-12-03 8:37 ` Lukas Wunner
2026-12-03 0:50 ` [PATCH RFC 0/3] PCI: Allow a device more time for its link to return after a reset sashiko-bot
2026-12-03 8:45 ` Lukas Wunner [this message]
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=axEsGQFPAB64sahC@wunner.de \
--to=lukas@wunner.de \
--cc=bhelgaas@google.com \
--cc=brett.creeley@amd.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=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