PCI/ERR: Recover from RCEC AER errors
authorSean V Kelley <sean.v.kelley@intel.com>
Wed, 2 Dec 2020 17:26:29 +0000 (11:26 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 5 Dec 2020 21:25:58 +0000 (15:25 -0600)
commita175102b0a82fc57853a9e611c42d1d6172e5180
treef2e4d12b97fd865fa231fa1d44982fd21dd61d5d
parentaa344bc8b727b47b4350b59d8166216a3f351e55
PCI/ERR: Recover from RCEC AER errors

A Root Complex Event Collector (RCEC) collects and signals AER errors that
were detected by Root Complex Integrated Endpoints (RCiEPs), but it may
also signal errors it detects itself.  This is analogous to errors detected
and signaled by a Root Port.

Update the AER service driver to claim RCECs in addition to Root Ports.
Add support for handling RCEC-detected AER errors.  This does not
include handling RCiEP-detected errors that are signaled by the RCEC.

Note that we expect these errors only from the native AER and APEI paths,
not from DPC or EDR.

[bhelgaas: split from combined RCEC/RCiEP patch, commit log]
Signed-off-by: Sean V Kelley <sean.v.kelley@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aer.c
drivers/pci/pcie/err.c