Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Babu Moger and committed by
Shuah Khan
85f553d2 c0327e1d

+4 -4
+2 -2
tools/testing/selftests/resctrl/cat_test.c
··· 64 64 allocated_cache_lines * 100; 65 65 66 66 printf("%sok CAT: cache miss rate within %d%%\n", 67 - abs((int)diff_percent) > MAX_DIFF_PERCENT ? "not " : "", 68 - MAX_DIFF_PERCENT); 67 + !is_amd && abs((int)diff_percent) > MAX_DIFF_PERCENT ? 68 + "not " : "", MAX_DIFF_PERCENT); 69 69 tests_run++; 70 70 printf("# Percent diff=%d\n", abs((int)diff_percent)); 71 71 printf("# Number of bits: %d\n", no_of_bits);
+2 -2
tools/testing/selftests/resctrl/resctrl_tests.c
··· 158 158 check_resctrlfs_support(); 159 159 filter_dmesg(); 160 160 161 - if (mbm_test) { 161 + if (!is_amd && mbm_test) { 162 162 printf("# Starting MBM BW change ...\n"); 163 163 if (!has_ben) 164 164 sprintf(benchmark_cmd[5], "%s", "mba"); ··· 168 168 tests_run++; 169 169 } 170 170 171 - if (mba_test) { 171 + if (!is_amd && mba_test) { 172 172 printf("# Starting MBA Schemata change ...\n"); 173 173 if (!has_ben) 174 174 sprintf(benchmark_cmd[1], "%d", span);