Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH v2 0/2] PCI/AER: Fix and document aer_inject's aer_mask_override
@ 2026-11-25  5:50 Priyank Rathod
  2026-11-25  5:50 ` [PATCH v2 1/2] PCI/AER: Make aer_mask_override effective for injected errors Priyank Rathod
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Priyank Rathod @ 2026-11-25  5:50 UTC (permalink / raw)
  To: Bjorn Helgaas
  Cc: Lukas Wunner, Kuppuswamy Sathyanarayanan, Ilpo Järvinen,
	Dave Jiang, Prarit Bhargava, Huang Ying, Terry Bowman,
	Jonathan Corbet, linux-doc, linux-pci, linux-kernel,
	Priyank Rathod, Daniel Pereira, Jonathan Cameron

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@google.com

Signed-off-by: Priyank Rathod <rathodpriyank@google.com>
---
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@google.com>


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

end of thread, other threads:[~2026-11-25  5:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25  5:50 [PATCH v2 0/2] PCI/AER: Fix and document aer_inject's aer_mask_override Priyank Rathod
2026-11-25  5:50 ` [PATCH v2 1/2] PCI/AER: Make aer_mask_override effective for injected errors Priyank Rathod
2026-11-25  5:50 ` [PATCH v2 2/2] Documentation: PCI: Document aer_inject's aer_mask_override parameter Priyank Rathod
2026-11-25  5:57 ` [PATCH v2 0/2] PCI/AER: Fix and document aer_inject's aer_mask_override sashiko-bot

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