Re: [PATCH v1] PCI: Make PCIe link wait timeout configurable via pcie_link_timeout=

From: Lukas Wunner

Date: Sat Nov 21 2026 - 16:51:58 EST


On Sat, Nov 21, 2026 at 07:08:06PM +0800, Hongtao Zhang wrote:
> PCIE_LINK_RETRAIN_TIMEOUT_MS fixes the timeout for waiting on PCIe
> link training and link state transitions at 1000 ms, matching the
> PCIe spec's minimum recommendation for declaring a non-responsive
> device broken.
>
> As hardware evolves, some combinations of newer devices and newer
> boards may need more than 1 sec to bring the link up.

The code adheres to the spec. If certain hardware doesn't adhere
to the spec, that is generally handled by adding a quirk that sets
a higher timeout for the specific device. If we'd provide a way
for a blanket increase of the timeout, it would disincentivize
reporting broken devices and submitting patches with quirks for them.

Thanks,

Lukas