diff options
author | Huang Ying <ying.huang@intel.com> | 2009-04-23 22:45:31 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-06-16 17:29:34 -0400 |
commit | bfe5a7401785f864a4f30b4f066bfa045a28b9f6 (patch) | |
tree | 8642a8ec3a4a6639d0e55817b43210137d3b332b /Documentation | |
parent | 634deb028c9188b4144863ea87dde5457fb93e92 (diff) |
PCI: PCIE AER: Document for PCIE AER software error injection
This patch adds a minimal HOWTO for PCIE AER software error injection
in Documentation/PCI/pcieaer-howto.txt.
Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/PCI/pcieaer-howto.txt | 21 |
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? | |||
246 | A: It could call the helper functions to enable AER in devices and | 246 | A: It could call the helper functions to enable AER in devices and |
247 | cleanup uncorrectable status register. Pls. refer to section 3.3. | 247 | cleanup uncorrectable status register. Pls. refer to section 3.3. |
248 | 248 | ||
249 | |||
250 | 4. Software error injection | ||
251 | |||
252 | Debugging PCIE AER error recovery code is quite difficult because it | ||
253 | is hard to trigger real hardware errors. Software based error | ||
254 | injection can be used to fake various kinds of PCIE errors. | ||
255 | |||
256 | First you should enable PCIE AER software error injection in kernel | ||
257 | configuration, that is, following item should be in your .config. | ||
258 | |||
259 | CONFIG_PCIEAER_INJECT=y or CONFIG_PCIEAER_INJECT=m | ||
260 | |||
261 | After reboot with new kernel or insert the module, a device file named | ||
262 | /dev/aer_inject should be created. | ||
263 | |||
264 | Then, you need a user space tool named aer-inject, which can be gotten | ||
265 | from: | ||
266 | http://www.kernel.org/pub/linux/kernel/people/yhuang/ | ||
267 | |||
268 | More information about aer-inject can be found in the document comes | ||
269 | with its source code. | ||