Skip to content

PCI: Reduce FLR delay to 10ms for MSFT devices

[email protected] linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest2 patches 16 repliesIn review

Changes in v3 from the cover letter

- Removed Microsoft specific pcie reset reset, replaced with customizable flr_delay parameter
- Changed msleep in pcie_flr to usleep_range to support flr delays of under 20ms

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2PCI: Add flr_delay parameter to pci_dev structdrivers/pci/pci.c drivers/pci/pci.h include/linux/pci.h+9 -22 replies
2/2PCI: Reduce FLR delay to 10ms for MSFT devicesdrivers/pci/quirks.c+20 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] PCI: Reduce FLR delay to 10ms for MSFT devices

From: Graham Whyte <[email protected]>

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.

Patch 1 adds the flr_delay member to the pci_dev struct Patch 2 adds the msft device specific quirk to utilize the flr_delay

---
v2->v3:
- Removed Microsoft specific pcie reset reset, replaced with customizable flr_delay parameter
- Changed msleep in pcie_flr to usleep_range to support flr delays of under 20ms
v1->v2:
- Removed unnecessary EXPORT_SYMBOL_GPL for function pci_dev_wait
- Link to thread:https://lore.kernel.org/linux-pci/?q=f%3Agrwhyte&x=t#m7453647902a1b22840f5e39434a631fd7b2515ce'

Link to V1: https://lore.kernel.org/linux-pci/20250522085253.GN7435@unreal/T/#m7453647902a1b22840f5e39434a631fd7b2515ce

Graham Whyte (2):
PCI: Add flr_delay parameter to pci_dev struct
PCI: Reduce FLR delay to 10ms for MSFT devices

 drivers/pci/pci.c    |  8 ++++++--
 drivers/pci/pci.h    |  2 ++
 drivers/pci/quirks.c | 20 ++++++++++++++++++++
 include/linux/pci.h  |  1 +
 4 files changed, 29 insertions(+), 2 deletions(-)
Signature · 1 line
2.25.1