pci: Provide aer support when the error source id is bad
Subsystems (2)
PATCH v5 2/3 pci: Provide aer support when the error source id is bad
When the bus id part of error source id is equal to 0 or nosourceid=1, kernel probes the AER status registers of all devices under the root port to find the initial error reporter.
Signed-off-by Zhang Yanmin <[email protected]>
---
Documentation/PCI/pcieaer-howto.txt +4 -0
@@ -61,6 +61,10 @@ be initiated although firmwares have no _OSC support. To enable the walkaround, pls. add aerdriver.forceload=y to kernel boot parameter line when booting kernel. Note that forceload=n by default. +nosourceid, another parameter of type bool, can be used when broken +hardware (mostly chipsets) has root ports that cannot obtain the reporting +source ID. nosourceid=n by default. + 2.3 AER error output When a PCI-E AER error is captured, an error message will be outputed to console. If it's a correctable error, it is outputed as a warning.
drivers/pci/pcie/aer/aerdrv.h +2 -0
@@ -58,6 +58,8 @@ struct header_log_regs { };struct aer_err_info { +struct pci_dev *dev; +u16 id;int severity;/* 0:NONFATAL | 1:FATAL | 2:COR */ int flags;unsigned int status;/* COR/UNCOR Error Status */
drivers/pci/pcie/aer/aerdrv_core.c +116 -60
252 lines not on this page · raw message