summaryrefslogtreecommitdiff
path: root/tests/debugfs_wedged
diff options
context:
space:
mode:
Diffstat (limited to 'tests/debugfs_wedged')
-rwxr-xr-xtests/debugfs_wedged10
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