[PATCH v2 0/2] PCI/AER: Fix and document aer_inject's aer_mask_override
From: Priyank Rathod
Date: Wed Nov 25 2026 - 00:50:26 EST
aer_inject's aer_mask_override=1 module parameter is supposed to allow
injecting errors that the device masks in PCI_ERR_COR_MASK or
PCI_ERR_UNCOR_MASK, but the hardware masks are corrupted with "&= !"
and restored before the AER interrupt handler reads them. Fix
aer_mask_override by emulating it in config space accesses instead of
writing the hardware Mask registers, and document it in the AER HOWTO.
Changes in v2:
- Shorten Patch 1/2 commit description and add a blank line after
aer_inj_read() in aer_inj_read_config() (Bjorn Helgaas)
- Use Internal Errors instead of Poisoned TLP Egress Blocked in the
Patch 2/2 documentation example (Daniel Pereira)
- Link to v1: https://lore.kernel.org/r/20261012-fix-aer-mask-override-v1-0-49a0d7aeaea0@xxxxxxxxxx
Signed-off-by: Priyank Rathod <rathodpriyank@xxxxxxxxxx>
---
Priyank Rathod (2):
PCI/AER: Make aer_mask_override effective for injected errors
Documentation: PCI: Document aer_inject's aer_mask_override parameter
Documentation/PCI/pcieaer-howto.rst | 23 ++++++++++++
drivers/pci/pcie/aer_inject.c | 74 +++++++++++++++++++++++++------------
2 files changed, 74 insertions(+), 23 deletions(-)
---
base-commit: cee9395acd8043be0644b25c34bfa86623f2b935
change-id: 20261012-fix-aer-mask-override-6b7d416c3d7c
Best regards,
--
Priyank Rathod <rathodpriyank@xxxxxxxxxx>