summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/resctrl/cat_test.c
diff options
context:
space:
mode:
authorBabu Moger <babu.moger@amd.com>2020-01-17 00:32:45 +0300
committerShuah Khan <skhan@linuxfoundation.org>2020-02-11 04:43:41 +0300
commit85f553d24ada5399cab730e3199a970e2cc78c82 (patch)
treeac60d82180a664365fe4e3139c4a2d2b1f447552 /tools/testing/selftests/resctrl/cat_test.c
parentc0327e1d7c42adb31a9541de6812f740893177a1 (diff)
downloadlinux-85f553d24ada5399cab730e3199a970e2cc78c82.tar.xz
selftests/resctrl: Disable MBA and MBM tests for AMD
For now, disable MBA and MBM tests for AMD. Deciding test pass/fail is not clear right now. We can enable when we have some clarity. Signed-off-by: Babu Moger <babu.moger@amd.com> Co-developed-by: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/resctrl/cat_test.c')
-rw-r--r--tools/testing/selftests/resctrl/cat_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/resctrl/cat_test.c b/tools/testing/selftests/resctrl/cat_test.c
index c194fcc42407..5da43767b973 100644
--- a/tools/testing/selftests/resctrl/cat_test.c
+++ b/tools/testing/selftests/resctrl/cat_test.c
@@ -64,8 +64,8 @@ static void show_cache_info(unsigned long sum_llc_perf_miss, int no_of_bits,
allocated_cache_lines * 100;
printf("%sok CAT: cache miss rate within %d%%\n",
- abs((int)diff_percent) > MAX_DIFF_PERCENT ? "not " : "",
- MAX_DIFF_PERCENT);
+ !is_amd && abs((int)diff_percent) > MAX_DIFF_PERCENT ?
+ "not " : "", MAX_DIFF_PERCENT);
tests_run++;
printf("# Percent diff=%d\n", abs((int)diff_percent));
printf("# Number of bits: %d\n", no_of_bits);