aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/PCI/pcieaer-howto.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/Documentation/PCI/pcieaer-howto.txt b/Documentation/PCI/pcieaer-howto.txt
index ddeb14beacc8..f6b1ba7464dc 100644
--- a/Documentation/PCI/pcieaer-howto.txt
+++ b/Documentation/PCI/pcieaer-howto.txt
@@ -246,3 +246,24 @@ with the PCI Express AER Root driver?
246A: It could call the helper functions to enable AER in devices and 246A: It could call the helper functions to enable AER in devices and
247cleanup uncorrectable status register. Pls. refer to section 3.3. 247cleanup uncorrectable status register. Pls. refer to section 3.3.
248 248
249
2504. Software error injection
251
252Debugging PCIE AER error recovery code is quite difficult because it
253is hard to trigger real hardware errors. Software based error
254injection can be used to fake various kinds of PCIE errors.
255
256First you should enable PCIE AER software error injection in kernel
257configuration, that is, following item should be in your .config.
258
259CONFIG_PCIEAER_INJECT=y or CONFIG_PCIEAER_INJECT=m
260
261After reboot with new kernel or insert the module, a device file named
262/dev/aer_inject should be created.
263
264Then, you need a user space tool named aer-inject, which can be gotten
265from:
266 http://www.kernel.org/pub/linux/kernel/people/yhuang/
267
268More information about aer-inject can be found in the document comes
269with its source code.