mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-19 05:46:25 +00:00
tests: rename debugfs base path to be more specific
In preparation to have sysfs entries used in scripts rename to more specific name. Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
4541cbeba4
commit
3743a0b994
@ -11,7 +11,7 @@ SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
|
|||||||
|
|
||||||
oldpath=`pwd`
|
oldpath=`pwd`
|
||||||
|
|
||||||
cd $i915_path
|
cd $i915_dfs_path
|
||||||
|
|
||||||
if [ ! -f i915_ring_stop ] ; then
|
if [ ! -f i915_ring_stop ] ; then
|
||||||
echo "kernel doesn't support ring stopping"
|
echo "kernel doesn't support ring stopping"
|
||||||
|
@ -8,7 +8,7 @@ SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
|
|||||||
. $SOURCE_DIR/drm_lib.sh
|
. $SOURCE_DIR/drm_lib.sh
|
||||||
|
|
||||||
for z in $(seq 1 1000); do
|
for z in $(seq 1 1000); do
|
||||||
cat $i915_path/i915_emon_status > /dev/null 2&>1
|
cat $i915_dfs_path/i915_emon_status > /dev/null 2&>1
|
||||||
done
|
done
|
||||||
|
|
||||||
# If we got here, we haven't crashed
|
# If we got here, we haven't crashed
|
||||||
|
@ -4,6 +4,6 @@ SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
|
|||||||
. $SOURCE_DIR/drm_lib.sh
|
. $SOURCE_DIR/drm_lib.sh
|
||||||
|
|
||||||
# read everything we can
|
# read everything we can
|
||||||
cat $i915_path/* > /dev/null 2>&1
|
cat $i915_dfs_path/* > /dev/null 2>&1
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -6,5 +6,5 @@ SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
|
|||||||
# Testcase: wedge the hw to check the error_state reading
|
# Testcase: wedge the hw to check the error_state reading
|
||||||
#
|
#
|
||||||
# Unfortunately wedged is permanent, so this test is not run by default
|
# Unfortunately wedged is permanent, so this test is not run by default
|
||||||
echo 1 > ${i915_path}/i915_wedged
|
echo 1 > ${i915_dfs_path}/i915_wedged
|
||||||
cat $i915_path/i915_error_state > /dev/null 2>&1
|
cat $i915_dfs_path/i915_error_state > /dev/null 2>&1
|
||||||
|
@ -12,20 +12,20 @@ if [ -d /sys/kernel/debug/dri ] ; then
|
|||||||
debugfs_path=/sys/kernel/debug/dri
|
debugfs_path=/sys/kernel/debug/dri
|
||||||
fi
|
fi
|
||||||
|
|
||||||
i915_path=x
|
i915_dfs_path=x
|
||||||
for dir in `ls $debugfs_path` ; do
|
for dir in `ls $debugfs_path` ; do
|
||||||
if [ -f $debugfs_path/$dir/i915_error_state ] ; then
|
if [ -f $debugfs_path/$dir/i915_error_state ] ; then
|
||||||
i915_path=$debugfs_path/$dir
|
i915_dfs_path=$debugfs_path/$dir
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $i915_path = "x" ] ; then
|
if [ $i915_dfs_path = "x" ] ; then
|
||||||
die " i915 debugfs path not found."
|
die " i915 debugfs path not found."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# read everything we can
|
# read everything we can
|
||||||
if [ `cat $i915_path/clients | wc -l` -gt "2" ] ; then
|
if [ `cat $i915_dfs_path/clients | wc -l` -gt "2" ] ; then
|
||||||
die "ERROR: other drm clients running"
|
die "ERROR: other drm clients running"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user