summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie/err.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2018-07-20 00:55:58 +0200
committerBjorn Helgaas <bhelgaas@google.com>2018-07-20 22:27:07 +0200
commit7ab92e89bf8b0a93f0d53b6d83270e4cd0f7c563 (patch)
tree42e0105464b99fea2d6311abab642d078b3c819e /drivers/pci/pcie/err.c
parentPCI/AER: Honor "pcie_ports=native" even if HEST sets FIRMWARE_FIRST (diff)
downloadlinux-7ab92e89bf8b0a93f0d53b6d83270e4cd0f7c563.tar.xz
linux-7ab92e89bf8b0a93f0d53b6d83270e4cd0f7c563.zip
PCI/AER: Clear only ERR_FATAL status bits during fatal recovery
During recovery from fatal errors, we previously called pci_cleanup_aer_uncorrect_error_status(), which cleared *all* uncorrectable error status bits (both ERR_FATAL and ERR_NONFATAL). Instead, call a new pci_aer_clear_fatal_status() that clears only the ERR_FATAL bits (as indicated by the PCI_ERR_UNCOR_SEVER register). Based-on-patch-by: Oza Pawandeep <poza@codeaurora.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pcie/err.c')
-rw-r--r--drivers/pci/pcie/err.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pcie/err.c b/drivers/pci/pcie/err.c
index f7ce0cb0b0b7..0539518f9861 100644
--- a/drivers/pci/pcie/err.c
+++ b/drivers/pci/pcie/err.c
@@ -316,7 +316,7 @@ void pcie_do_fatal_recovery(struct pci_dev *dev, u32 service)
* do error recovery on all subordinates of the bridge instead
* of the bridge and clear the error status of the bridge.
*/
- pci_cleanup_aer_uncorrect_error_status(dev);
+ pci_aer_clear_fatal_status(dev);
}
if (result == PCI_ERS_RESULT_RECOVERED) {