Linux Documentation
 help / color / mirror / Atom feed
* [PATCH v3 0/2] PCI: Add boot options to disable DPC and AER recovery
@ 2026-10-22 16:58 Yury Murashka
  2026-10-22 16:58 ` [PATCH v3 1/2] PCI: Add pci=noaer_recovery kernel boot option Yury Murashka
  2026-10-22 16:58 ` [PATCH v3 2/2] PCI: Add pci=nodpc " Yury Murashka
  0 siblings, 2 replies; 3+ messages in thread
From: Yury Murashka @ 2026-10-22 16:58 UTC (permalink / raw)
  To: bhelgaas
  Cc: rafael, lenb, corbet, skhan, rdunlap, mahesh, oohall, linux-pci,
	linux-acpi, linux-doc, linux-kernel, linuxppc-dev

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/20260709185429.627968-1-yurypm@arista.com/
AER review: https://lore.kernel.org/linux-pci/20260709190616.DF0CF1F000E9@smtp.kernel.org/
DPC review: https://lore.kernel.org/linux-pci/20260709190730.E19A11F000E9@smtp.kernel.org/

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
-- 
2.51.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-22 16:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-22 16:58 [PATCH v3 0/2] PCI: Add boot options to disable DPC and AER recovery Yury Murashka
2026-10-22 16:58 ` [PATCH v3 1/2] PCI: Add pci=noaer_recovery kernel boot option Yury Murashka
2026-10-22 16:58 ` [PATCH v3 2/2] PCI: Add pci=nodpc " Yury Murashka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox