Add RCEC handling to PCI/AER
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v12 Latest15 patches 21 repliesIn review
- v1116 patches 14 repliesSuperseded
- v1016 patches 1 replySuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v4 | 5 of 10 patches | 3 replies | Superseded | |
| v3 | 10 patches | 15 replies | Superseded | |
| v2 | 9 patches | 24 replies | Superseded | |
| v1 RFC | 9 patches | 27 replies | Superseded |
Patches in v12 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | AER: aer_root_reset() non-native handlingdrivers/ | +16 | 0 replies | |
| 2/15 | PCI/RCEC: Bind RCEC devices to the Root Port driverdrivers/ include/ include/ | +12 | 0 replies | |
| 3/15 | PCI/RCEC: Cache RCEC capabilities in pci_init_capabilities()drivers/ drivers/ drivers/ +2 more | +83 | 0 replies | |
| 4/15 | PCI/ERR: Rename reset_link() to reset_subordinates()drivers/ drivers/ | +6 | 0 replies | |
| 5/15 | PCI/ERR: Simplify by using pci_upstream_bridge()drivers/ | +1 | 2 replies | |
| 6/15 | PCI/ERR: Simplify by computing pci_pcie_type() oncedrivers/ drivers/ drivers/ | +11 | 0 replies | |
| 7/15 | PCI/ERR: Use "bridge" for clarity in pcie_do_recovery()drivers/ | +20 | 1 reply | |
| 8/15 | PCI/ERR: Avoid negated conditional for claritydrivers/ | +4 | 0 replies | |
| 9/15 | PCI/ERR: Add pci_walk_bridge() to pcie_do_recovery()drivers/ | +23 | 0 replies | |
| 10/15 | PCI/ERR: Limit AER resets in pcie_do_recovery()drivers/ | +25 | 10 replies | |
| 11/15 | PCI/RCEC: Add pcie_link_rcec() to associate RCiEPsdrivers/ drivers/ drivers/ +1 more | +100 | 0 replies | |
| 12/15 | PCI/RCEC: Add RCiEP's linked RCEC to AER/ERRdrivers/ drivers/ | +44 | 7 replies | |
| 13/15 | PCI/AER: Add pcie_walk_rcec() to RCEC AER handlingdrivers/ drivers/ drivers/ | +65 | 0 replies | |
| 14/15 | PCI/PME: Add pcie_walk_rcec() to RCEC PME handlingdrivers/ drivers/ | +15 | 0 replies | |
| 15/15 | PCI/AER: Add RCEC AER error injection supportdrivers/ | +4 | 0 replies |
Reviews trailers per patch
12 of 15 patches have a Reviewed-by or Acked-by.
| Patch | Jonathan Cameron | Kuppuswamy Sathyanarayanan |
|---|---|---|
| Series | T-b | |
| 1/15 | ||
| 2/15 | R-b | R-b |
| 3/15 | R-b | |
| 4/15 | A-b | R-b |
| 5/15 | A-b | R-b |
| 6/15 | A-b | |
| 7/15 | A-b | R-b |
| 8/15 | A-b | R-b |
| 9/15 | ||
| 10/15 | A-b | |
| 11/15 | R-b | |
| 12/15 | R-b | |
| 13/15 | R-b | R-b |
| 14/15 | ||
| 15/15 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v12 00/15] Add RCEC handling to PCI/AER
Changes since v11 [1] and based on pci/master tree [2]:
- No functional changes. Tested with aer injection.
- Merge RCEC class code and extended capability patch with usage.
- Apply same optimization for pci_pcie_type(dev) calls in drivers/pci/pcie/portdrv_pci.c and drivers/pci/pcie/aer.c. (Kuppuswamy Sathyanarayanan)
[1] https://lore.kernel.org/linux-pci/[email protected]/
[2] https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git/log/
Root Complex Event Collectors (RCEC) provide support for terminating error and PME messages from Root Complex Integrated Endpoints (RCiEPs). An RCEC resides on a Bus in the Root Complex. Multiple RCECs can in fact reside on a single bus. An RCEC will explicitly declare supported RCiEPs through the Root Complex Endpoint Association Extended Capability.
(See PCIe 5.0-1, sections 1.3.2.3 (RCiEP), and 7.9.10 (RCEC Ext. Cap.))
The kernel lacks handling for these RCECs and the error messages received from their respective associated RCiEPs. More recently, a new CPU interconnect, Compute eXpress Link (CXL) depends on RCEC capabilities for purposes of error messaging from CXL 1.1 supported RCiEP devices.
DocLink: https://www.computeexpresslink.org/
This use case is not limited to CXL. Existing hardware today includes support for RCECs, such as the Denverton microserver product family. Future hardware will be forthcoming.
(See Intel Document, Order number: 33061-003US)
So services such as AER or PME could be associated with an RCEC driver. In the case of CXL, if an RCiEP (i.e., CXL 1.1 device) is associated with a platform's RCEC it shall signal PME and AER error conditions through that RCEC.
Towards the above use cases, add the missing RCEC class and extend the PCIe Root Port and service drivers to allow association of RCiEPs to their respective parent RCEC and facilitate handling of terminating error and PME messages.
Qiuxu Zhuo (3):
PCI/RCEC: Bind RCEC devices to the Root Port driver PCI/RCEC: Add RCiEP's linked RCEC to AER/ERR PCI/AER: Add RCEC AER error injection support
Sean V Kelley (12):
AER: aer_root_reset() non-native handling PCI/RCEC: Cache RCEC capabilities in pci_init_capabilities() PCI/ERR: Rename reset_link() to reset_subordinates() PCI/ERR: Simplify by using pci_upstream_bridge() PCI/ERR: Simplify by computing pci_pcie_type() once PCI/ERR: Use "bridge" for clarity in pcie_do_recovery() PCI/ERR: Avoid negated conditional for clarity PCI/ERR: Add pci_walk_bridge() to pcie_do_recovery() PCI/ERR: Limit AER resets in pcie_do_recovery() PCI/RCEC: Add pcie_link_rcec() to associate RCiEPs PCI/AER: Add pcie_walk_rcec() to RCEC AER handling PCI/PME: Add pcie_walk_rcec() to RCEC PME handling
drivers/pci/pci.h | 29 ++++- drivers/pci/pcie/Makefile | 2 +- drivers/pci/pcie/aer.c | 89 +++++++++++---- drivers/pci/pcie/aer_inject.c | 5 +- drivers/pci/pcie/err.c | 93 +++++++++++----- drivers/pci/pcie/pme.c | 16 ++- drivers/pci/pcie/portdrv_core.c | 9 +- drivers/pci/pcie/portdrv_pci.c | 13 ++- drivers/pci/pcie/rcec.c | 190 ++++++++++++++++++++++++++++++++ drivers/pci/probe.c | 2 + include/linux/pci.h | 5 + include/linux/pci_ids.h | 1 + include/uapi/linux/pci_regs.h | 7 ++ 13 files changed, 393 insertions(+), 68 deletions(-) create mode 100644 drivers/pci/pcie/rcec.c
--
2.29.2