Re: [PATCH v3 0/2] PCI: Reduce FLR delay to 10ms for MSFT devices
From: Lukas Wunner
Date: Fri Jun 13 2025 - 10:05:49 EST
On Fri, Jun 13, 2025 at 05:12:48PM +0530, Manivannan Sadhasivam wrote:
> On Wed, Jun 11, 2025 at 12:05:50AM +0000, grwhyte@xxxxxxxxxxxxxxxxxxx wrote:
> > Add a new flr_delay member of the pci_dev struct to allow customization of
> > the delay after FLR for devices that do not support immediate readiness
> > or readiness time reporting. The main scenario this addresses is VF
> > removal and rescan during runtime repairs and driver updates, which,
> > if fixed to 100ms, introduces significant delays across multiple VFs.
> > These delays are unnecessary for devices that complete the FLR well
> > within this timeframe.
> >
>
> I don't think it is acceptable to *reduce* the standard delay just
> because your device completes it more quickly. Proper way to reduce
> the timing would be to support FRS as you said, but we cannot have
> arbitrary delays for random devices.
To be fair, we already have that for certain devices:
The quirk delay_250ms_after_flr() is referenced by three different
Vendor ID / Device ID combos and *lengthens* the delay after FLR.
It's probably difficult to justify rejecting custom delays for
certain MANA devices, even though we allowed them for three other
devices.
The proposed patch introduces a generic solution which avoids
further cluttering up pci_dev_reset_methods[] with extra entries,
so I think it's an approach worth considering.
There are a bunch of nits in the proposed patches, such as "pci"
not being capitalized, but the general approach seems fine to me.
Thanks,
Lukas