kms_rotation_crc: Allow the sprite test to run even without universal planes
[platform/upstream/intel-gpu-tools.git] / tests / sysfs_l3_parity
1 #!/bin/bash
2
3 if ! find /sys/class/drm/card*/ | grep l3_parity > /dev/null ; then
4         echo "no l3_parity interface, skipping test"
5         exit 77
6 fi
7
8 SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
9 . $SOURCE_DIR/drm_lib.sh
10
11 $SOURCE_DIR/../tools/intel_l3_parity -r 0 -b 0 -s 0 -e
12
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
17         echo "Fail"
18         exit 1
19 fi
20
21 $SOURCE_DIR/../tools/intel_l3_parity -r 0 -b 0 -s 0 -e
22
23 #Check that we can clear remaps
24 if [ `$SOURCE_DIR/../tools/intel_l3_parity -l | wc -l` != 1 ] ; then
25         echo "Fail 2"
26         exit 1
27 fi