mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +00:00
test: fix up hangman script and enable by default
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
cf72da57dc
commit
bb40c7e8df
@ -71,6 +71,7 @@ TESTS_scripts = \
|
|||||||
debugfs_emon_crash \
|
debugfs_emon_crash \
|
||||||
sysfs_edid_timing \
|
sysfs_edid_timing \
|
||||||
ZZ_check_dmesg \
|
ZZ_check_dmesg \
|
||||||
|
ZZ_hangman \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
kernel_tests = \
|
kernel_tests = \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Testcase: Simulate gpu hang
|
# Testcase: Simulate gpu hang
|
||||||
#
|
#
|
||||||
@ -9,6 +9,8 @@
|
|||||||
SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
|
SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
|
||||||
. $SOURCE_DIR/drm_lib.sh
|
. $SOURCE_DIR/drm_lib.sh
|
||||||
|
|
||||||
|
oldpath=`pwd`
|
||||||
|
|
||||||
cd $i915_path
|
cd $i915_path
|
||||||
|
|
||||||
if [ ! -f i915_ring_stop ] ; then
|
if [ ! -f i915_ring_stop ] ; then
|
||||||
@ -23,12 +25,9 @@ fi
|
|||||||
|
|
||||||
# stop rings
|
# stop rings
|
||||||
echo 0xf > i915_ring_stop
|
echo 0xf > i915_ring_stop
|
||||||
|
echo "rings stopped"
|
||||||
|
|
||||||
# need to run it twice, otherwise there are no waiters
|
$oldpath/$SOURCE_DIR/gem_exec_nop > /dev/null
|
||||||
$cur_path/gem_exec_nop > /dev/null 2>&1 &
|
|
||||||
$cur_path/gem_exec_nop > /dev/null 2>&1 &
|
|
||||||
|
|
||||||
sleep 10
|
|
||||||
|
|
||||||
if cat i915_error_state | grep -v "no error state collected" > /dev/null ; then
|
if cat i915_error_state | grep -v "no error state collected" > /dev/null ; then
|
||||||
echo "gpu hang correctly dectected"
|
echo "gpu hang correctly dectected"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user