From af275bd52197cb41e6beb83dc496a50666b48814 Mon Sep 17 00:00:00 2001 From: Ben Widawsky Date: Tue, 3 Apr 2012 23:02:59 -0700 Subject: [PATCH] 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 --- tests/Makefile.am | 2 +- tests/debugfs_wedged | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 tests/debugfs_wedged diff --git a/tests/Makefile.am b/tests/Makefile.am index 6544ec7..647cc32 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -88,7 +88,7 @@ HANG = \ $(NULL) EXTRA_PROGRAMS = $(TESTS_progs) $(HANG) -EXTRA_DIST = $(TESTS_scripts) check_drm_clients +EXTRA_DIST = $(TESTS_scripts) drm_lib.sh check_drm_clients debugfs_wedged CLEANFILES = $(EXTRA_PROGRAMS) AM_CFLAGS = $(DRM_CFLAGS) $(CWARNFLAGS) \ diff --git a/tests/debugfs_wedged b/tests/debugfs_wedged new file mode 100755 index 0000000..80a32f6 --- /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 -- 2.7.4