mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 16:36:14 +00:00
Source drm_lib.sh before skipping the test to ensure that subtest enumeration is always handled correctly. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
28 lines
695 B
Bash
Executable File
28 lines
695 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
|
|
. $SOURCE_DIR/drm_lib.sh
|
|
|
|
if ! find /sys/class/drm/card*/ | grep l3_parity > /dev/null ; then
|
|
echo "no l3_parity interface, skipping test"
|
|
exit 77
|
|
fi
|
|
|
|
$SOURCE_DIR/../tools/intel_l3_parity -r 0 -b 0 -s 0 -e
|
|
|
|
#Check that we can remap a row
|
|
$SOURCE_DIR/../tools/intel_l3_parity -r 0 -b 0 -s 0 -d
|
|
disabled=`$SOURCE_DIR/../tools/intel_l3_parity -l | grep -c 'Row 0, Bank 0, Subbank 0 is disabled'`
|
|
if [ "$disabled" != "1" ] ; then
|
|
echo "Fail"
|
|
exit 1
|
|
fi
|
|
|
|
$SOURCE_DIR/../tools/intel_l3_parity -r 0 -b 0 -s 0 -e
|
|
|
|
#Check that we can clear remaps
|
|
if [ `$SOURCE_DIR/../tools/intel_l3_parity -l | wc -l` != 1 ] ; then
|
|
echo "Fail 2"
|
|
exit 1
|
|
fi
|