diff options
| author | Ben Widawsky <benjamin.widawsky@intel.com> | 2013-09-06 21:10:50 -0700 |
|---|---|---|
| committer | Ben Widawsky <benjamin.widawsky@intel.com> | 2013-09-20 09:42:07 -0700 |
| commit | a9cd76b36e112389c61ccc315df185a2eaf17c01 (patch) | |
| tree | d8a67fa32bbee59bf98f35ee2b7a1367a2086a55 /tests/sysfs_l3_parity | |
| parent | e740bdf5bd1339b58912eb359902ca68529b438d (diff) | |
intel_l3_parity: Use getopt for the l3 parity tool
Add new command line arguments in addition to supporting the old
features. This patch only introduces one feature, the -e argument to
enable a specific row/bank/subbank. Previously you could only enable
all. Otherwise, it has what you expect (we prefer -r -b -s for
specifying the row/bank/subbank).
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'tests/sysfs_l3_parity')
| -rwxr-xr-x | tests/sysfs_l3_parity | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/sysfs_l3_parity b/tests/sysfs_l3_parity index 6f814a13..a0dfad9c 100755 --- a/tests/sysfs_l3_parity +++ b/tests/sysfs_l3_parity @@ -8,20 +8,20 @@ fi SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )" . $SOURCE_DIR/drm_lib.sh -$SOURCE_DIR/../tools/intel_l3_parity -c +$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 0,0,0 -disabled=`$SOURCE_DIR/../tools/intel_l3_parity | grep -c 'Row 0, Bank 0, Subbank 0 is disabled'` +$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 -c +$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 | wc -c` != "0" ] ; then - echo "Fail" +if [ `$SOURCE_DIR/../tools/intel_l3_parity -l | wc -c` != "0" ] ; then + echo "Fail 2" exit 1 fi |
