diff options
author | Ben Widawsky <ben@bwidawsk.net> | 2012-04-03 23:02:59 -0700 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-04-04 11:13:06 +0200 |
commit | af275bd52197cb41e6beb83dc496a50666b48814 (patch) | |
tree | 6c293c85aacfd6b33a023c86e057fffd4ae15987 /tests/debugfs_wedged | |
parent | bb86947638b7471c4e3da5dd32b756b0c7d504ae (diff) |
tests: add wedging tests
Used to check that i915_error_state works. Unfortunately this
kills the gpu because wedging is permanent.
Base on a patch by Ben Widawsky.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/debugfs_wedged')
-rwxr-xr-x | tests/debugfs_wedged | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/debugfs_wedged b/tests/debugfs_wedged new file mode 100755 index 00000000..80a32f61 --- /dev/null +++ b/tests/debugfs_wedged @@ -0,0 +1,10 @@ +#!/bin/sh + +SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )" +. $SOURCE_DIR/drm_lib.sh + +# Testcase: wedge the hw to check the error_state reading +# +# Unfortunately wedged is permanent, so this test is not run by default +echo 1 > ${i915_path}/i915_wedged +cat $i915_path/i915_error_state > /dev/null 2>&1 |