mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
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>
This commit is contained in:
parent
bb86947638
commit
af275bd521
@ -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) \
|
||||
|
10
tests/debugfs_wedged
Executable file
10
tests/debugfs_wedged
Executable file
@ -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
|
Loading…
x
Reference in New Issue
Block a user