linux/drivers/pci/pcie/aer
Andrew Patterson 6cdfd995a6 PCI: unconditionally clear AER uncorr status register during cleanup
The current implementation of pci_cleanup_aer_uncorrect_error_status
only clears either fatal or non-fatal error status bits depending
on the state of the I/O channel. This implementation will then often
leave some bits set after PCI error recovery completes.  The uncleared bit
settings will then be falsely reported the next time an AER interrupt is
generated for that hierarchy. An easy way to illustrate this issue is to
use the aer-inject module to simultaneously inject both an uncorrectable
non-fatal and uncorrectable fatal error.  One of the errors will not be
cleared.

This patch resolves this issue by unconditionally clearing all bits in
the AER uncorrectable status register. All settings and corrective action
strategies are saved and determined before
pci_cleanup_aer_uncorrect_error_status is called, so this change should not
affect errory handling functionality.

Signed-off-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-12-04 16:03:11 -08:00
..
aer_inject.c PCIe AER: use pci_is_pcie() 2009-11-24 15:25:17 -08:00
aerdrv_acpi.c PCI/ACPI: rename pci_osc_control_set() 2009-03-19 19:29:33 -07:00
aerdrv_core.c PCI: unconditionally clear AER uncorr status register during cleanup 2009-12-04 16:03:11 -08:00
aerdrv_errprint.c PCI: pcie, aer: change error print format 2009-09-09 13:50:05 -07:00
aerdrv.c PCI: portdrv: remove unnecessary struct pcie_port_data 2009-12-04 15:56:19 -08:00
aerdrv.h PCI: pcie, aer: report all error before recovery 2009-09-09 13:50:13 -07:00
ecrc.c PCIe AER: use pci_is_pcie() 2009-11-24 15:25:17 -08:00
Kconfig PCI AER: software error injection 2009-06-16 14:30:14 -07:00
Kconfig.debug PCI AER: software error injection 2009-06-16 14:30:14 -07:00
Makefile PCI AER: software error injection 2009-06-16 14:30:14 -07:00