Skip to contentSkip to conversation

pci: Provide aer support when the error source id is bad

PATCH In review Zhang, Yanmin 1 participant 1 message Jun 16, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---

Documentation/PCI/pcieaer-howto.txt +4 -0
index f6b1ba7..5408b9b 100644
@@ -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
index 3a69dde..dadf492 100644
@@ -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