diff options
Diffstat (limited to 'Documentation/PCI/pcieaer-howto.txt')
-rw-r--r-- | Documentation/PCI/pcieaer-howto.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Documentation/PCI/pcieaer-howto.txt b/Documentation/PCI/pcieaer-howto.txt index ddeb14beacc8..be21001ab144 100644 --- a/Documentation/PCI/pcieaer-howto.txt +++ b/Documentation/PCI/pcieaer-howto.txt | |||
@@ -61,6 +61,10 @@ be initiated although firmwares have no _OSC support. To enable the | |||
61 | walkaround, pls. add aerdriver.forceload=y to kernel boot parameter line | 61 | walkaround, pls. add aerdriver.forceload=y to kernel boot parameter line |
62 | when booting kernel. Note that forceload=n by default. | 62 | when booting kernel. Note that forceload=n by default. |
63 | 63 | ||
64 | nosourceid, another parameter of type bool, can be used when broken | ||
65 | hardware (mostly chipsets) has root ports that cannot obtain the reporting | ||
66 | source ID. nosourceid=n by default. | ||
67 | |||
64 | 2.3 AER error output | 68 | 2.3 AER error output |
65 | When a PCI-E AER error is captured, an error message will be outputed to | 69 | When a PCI-E AER error is captured, an error message will be outputed to |
66 | console. If it's a correctable error, it is outputed as a warning. | 70 | console. If it's a correctable error, it is outputed as a warning. |
@@ -246,3 +250,24 @@ with the PCI Express AER Root driver? | |||
246 | A: It could call the helper functions to enable AER in devices and | 250 | A: It could call the helper functions to enable AER in devices and |
247 | cleanup uncorrectable status register. Pls. refer to section 3.3. | 251 | cleanup uncorrectable status register. Pls. refer to section 3.3. |
248 | 252 | ||
253 | |||
254 | 4. Software error injection | ||
255 | |||
256 | Debugging PCIE AER error recovery code is quite difficult because it | ||
257 | is hard to trigger real hardware errors. Software based error | ||
258 | injection can be used to fake various kinds of PCIE errors. | ||
259 | |||
260 | First you should enable PCIE AER software error injection in kernel | ||
261 | configuration, that is, following item should be in your .config. | ||
262 | |||
263 | CONFIG_PCIEAER_INJECT=y or CONFIG_PCIEAER_INJECT=m | ||
264 | |||
265 | After reboot with new kernel or insert the module, a device file named | ||
266 | /dev/aer_inject should be created. | ||
267 | |||
268 | Then, you need a user space tool named aer-inject, which can be gotten | ||
269 | from: | ||
270 | http://www.kernel.org/pub/linux/utils/pci/aer-inject/ | ||
271 | |||
272 | More information about aer-inject can be found in the document comes | ||
273 | with its source code. | ||