From: Babu Moger <[email protected]> Now that the UMC (Unified Memory Controller) perf events can be used to validate the resctrl memory bandwidth numbers on AMD, extend the vendor_specific gate of the MBM and MBA tests to also cover AMD so that they run on AMD in addition to Intel.
The tests stay restricted to Intel and AMD: num_of_mem_controllers() only knows about the iMC and UMC counters, so keeping the gate (rather than making the tests universal) leaves other vendors skipped instead of failing. Assisted-by: Claude:claude-opus-4.8 Signed-off-by: Babu Moger <[email protected]> Co-developed-by: Swapnil Sapkal <[email protected]> Signed-off-by: Swapnil Sapkal <[email protected]> --- v3->v4: - Rebased onto v7.2-rc7. - Extend the vendor_specific gate to ARCH_INTEL | ARCH_AMD instead of removing it, so unsupported vendors are skipped rather than reported as a failure. tools/testing/selftests/resctrl/mba_test.c | 2 +- tools/testing/selftests/resctrl/mbm_test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/resctrl/mba_test.c b/tools/testing/selftests/resctrl/mba_test.c index 9fcb9992c529..97b7d368d5a2 100644 --- a/tools/testing/selftests/resctrl/mba_test.c +++ b/tools/testing/selftests/resctrl/mba_test.c @@ -271,7 +271,7 @@ static bool mba_feature_check(const struct resctrl_test *test) struct resctrl_test mba_test = { .name = "MBA", .resource = "MB", - .vendor_specific = ARCH_INTEL, + .vendor_specific = ARCH_INTEL | ARCH_AMD, .feature_check = mba_feature_check, .run_test = mba_run_test, .cleanup = mba_test_cleanup, diff --git a/tools/testing/selftests/resctrl/mbm_test.c b/tools/testing/selftests/resctrl/mbm_test.c index d89f71c58335..515717743a61 100644 --- a/tools/testing/selftests/resctrl/mbm_test.c +++ b/tools/testing/selftests/resctrl/mbm_test.c @@ -177,7 +177,7 @@ static bool mbm_feature_check(const struct resctrl_test *test) struct resctrl_test mbm_test = { .name = "MBM", .resource = "MB", - .vendor_specific = ARCH_INTEL, + .vendor_specific = ARCH_INTEL | ARCH_AMD, .feature_check = mbm_feature_check, .run_test = mbm_run_test, .cleanup = mbm_test_cleanup, -- 2.43.0

