summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/tc-testing/tc-tests/qdiscs/fq.json
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2023-10-18 10:55:26 +0300
committerShuah Khan <skhan@linuxfoundation.org>2023-10-18 23:33:44 +0300
commit5247e6dbed0041147a83137f89cd45043301de5c (patch)
treeac426798b9179db16a016140f1d911323f187d01 /tools/testing/selftests/tc-testing/tc-tests/qdiscs/fq.json
parent34dce23f7e405ffb4eca04e83ee10c03a4cffb9b (diff)
downloadlinux-5247e6dbed0041147a83137f89cd45043301de5c.tar.xz
selftests/resctrl: Fix MBM test failure when MBA unavailable
Commit 20d96b25cc4c ("selftests/resctrl: Fix schemata write error check") exposed a problem in feature detection logic in MBM selftest. If schemata does not support MB:x=x entries, the schemata write to initialize 100% memory bandwidth allocation in mbm_setup() will now fail with -EINVAL due to the error handling corrected by the commit 20d96b25cc4c ("selftests/resctrl: Fix schemata write error check"). That commit just uncovers the failed write, it is not wrong itself. If MB:x=x is not supported by schemata, it is safe to assume 100% memory bandwidth is always set. Therefore, the previously ignored error does not make the MBM test itself wrong. Restore the previous behavior of MBM test by checking MB support before attempting to write it into schemata which results in behavior equivalent to ignoring the write error. Fixes: 20d96b25cc4c ("selftests/resctrl: Fix schemata write error check") Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Reviewed-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/tc-testing/tc-tests/qdiscs/fq.json')
0 files changed, 0 insertions, 0 deletions