3 if ! find /sys/class/drm/card*/ | grep l3_parity > /dev/null ; then
4 echo "no l3_parity interface, skipping test"
8 SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
9 . $SOURCE_DIR/drm_lib.sh
11 $SOURCE_DIR/../tools/intel_l3_parity -r 0 -b 0 -s 0 -e
13 #Check that we can remap a row
14 $SOURCE_DIR/../tools/intel_l3_parity -r 0 -b 0 -s 0 -d
15 disabled=`$SOURCE_DIR/../tools/intel_l3_parity -l | grep -c 'Row 0, Bank 0, Subbank 0 is disabled'`
16 if [ "$disabled" != "1" ] ; then
21 $SOURCE_DIR/../tools/intel_l3_parity -r 0 -b 0 -s 0 -e
23 #Check that we can clear remaps
24 if [ `$SOURCE_DIR/../tools/intel_l3_parity -l | wc -l` != 1 ] ; then