Skip to content

PCI: Add boot options to disable DPC and AER recovery

Yury Murashka linux-acpi linux-doc linux-pci linuxppc-dev lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 1 replySuperseded
  3. v12 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Patch 1: Check the recovery option before dispatching CXL RCH and ordinary PCIe errors, addressing the CXL callback bypass.
- Patch 1: Preserve current GHES cleanup and device-reference release.
- Patch 2: Add pci_dpc_available() and use it for DPC services, ACPI DPC/EDR negotiation, and EDR notifier installation/removal.
- Patch 2: Skip the entire EDR registration path before its enabling _DSM, and prevent native-port overrides from defeating nodpc.
- Clarify the Linux-only scope and rebase onto the PCI next branch.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2PCI: Add pci=noaer_recovery kernel boot optionDocumentation/admin-guide/kernel-parameters.txt drivers/pci/pci.c drivers/pci/pci.h +1 more+20 -20 replies
2/2PCI: Add pci=nodpc kernel boot optionDocumentation/admin-guide/kernel-parameters.txt drivers/acpi/pci_root.c drivers/pci/pci.c +5 more+48 -70 replies

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: Add boot options to disable DPC and AER recovery

On large modular systems with a complex PCIe topology, allow userspace to inspect uncorrectable AER errors before Linux attempts recovery and to opt out of Linux DPC and EDR support.

This series adds two PCI kernel boot options:

pci=noaer_recovery - Retain AER logging and correctable handling, but
skip uncorrectable AER recovery, including CXL RCH callbacks and recovery of GHES-reported errors.
pci=nodpc - Disable Linux DPC and EDR participation, including
ACPI negotiation and EDR's DPC-enabling _DSM call.

Firmware-owned DPC settings and firmware error recovery remain under firmware control. The two options can be selected independently.

Changes in v3:
- Patch 1: Check the recovery option before dispatching CXL RCH and ordinary PCIe errors, addressing the CXL callback bypass.
- Patch 1: Preserve current GHES cleanup and device-reference release.
- Patch 2: Add pci_dpc_available() and use it for DPC services, ACPI DPC/EDR negotiation, and EDR notifier installation/removal.
- Patch 2: Skip the entire EDR registration path before its enabling _DSM, and prevent native-port overrides from defeating nodpc.
- Clarify the Linux-only scope and rebase onto the PCI next branch.

v2: https://lore.kernel.org/linux-pci/[email protected]/
AER review: https://lore.kernel.org/linux-pci/[email protected]/
DPC review: https://lore.kernel.org/linux-pci/[email protected]/

Yury Murashka (2):
PCI: Add pci=noaer_recovery kernel boot option
PCI: Add pci=nodpc kernel boot option

 .../admin-guide/kernel-parameters.txt         |  9 +++++++
 drivers/acpi/pci_root.c                       |  9 +++++--
 drivers/pci/pci.c                             |  4 ++++
 drivers/pci/pci.h                             |  4 ++++
 drivers/pci/pcie/aer.c                        | 13 ++++++++--
 drivers/pci/pcie/dpc.c                        | 24 ++++++++++++++++---
 drivers/pci/pcie/edr.c                        |  5 +++-
 drivers/pci/pcie/portdrv.c                    |  3 ++-
 include/linux/pci.h                           |  6 +++++
 9 files changed, 68 insertions(+), 9 deletions(-)

base-commit: f4319f548f7d8cb595ac1c91bfd459876399eeb3

Signature · 1 line
2.51.0