PCI/CXL: Guard reset recovery against inaccessible devices
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | PCI: Reject all-ones responses in pci_dev_wait()drivers/ | +5 | 0 replies | |
| 2/4 | PCI: Return -ETIMEOUT when reset readiness polling expiresdrivers/ | +1 | 1 reply | |
| 3/4 | PCI: Skip state restoration when configuration is inaccessibledrivers/ | +3 | 1 reply | |
| 4/4 | cxl/pci: Guard decoder accesses after resetdrivers/ | +6 | 1 reply |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Dave Jiang |
|---|---|
| 1/4 | |
| 2/4 | |
| 3/4 | |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/4] PCI/CXL: Guard reset recovery against inaccessible devices
During FLR testing, PCI configuration reads returned all ones. The kernel could mistake this for reset completion and proceed with MSI-X restoration. The resulting MMIO access triggered DPC containment.
This series addresses four issues:
1. Reject all-ones responses in pci_dev_wait(). Use Command-register polling for VFs, whose Vendor ID legitimately reads as all ones.
2. Return -ETIMEDOUT when readiness polling expires, preventing fallback to another reset method.
3. Check configuration accessibility before restoring PCI state, while preserving driver reset callbacks.
4. Skip CXL decoder MMIO accesses when configuration is inaccessible or memory decoding is disabled.
Best regards,
Richard Cheng.
Richard Cheng (4):
PCI: Reject all-ones responses in pci_dev_wait()
PCI: Return -ETIMEOUT when reset readiness polling expires
PCI: Skip state restoration when configuration is inaccessible cxl/pci: Guard decoder accesses after reset
drivers/cxl/pci.c | 6 ++++++ drivers/pci/pci.c | 16 +++++++++------- 2 files changed, 15 insertions(+), 7 deletions(-)
base-commit: 9eb6419022d81aac6d1d9ead0e1865b451153da5
Signature · 1 line
2.43.0