[PATCH v2 4/4] selftests/resctrl: Enable MBA/MBA tests on AMD

2024-04-25 Thread Babu Moger
Enable MBA/MBM tests if UMC (Unified Memory Controller) support is available on the system. Tests will be skipped otherwise. Update noncont_cat_run_test to check for vendor. AMD supports non contiguous CBM masks but does not report it via CPUID. Signed-off-by: Babu Moger --- tools/testing

[PATCH v2 3/4] selftests/resctrl: Add support for MBM and MBA tests on AMD

2024-04-25 Thread Babu Moger
Add support to read UMC (Unified Memory Controller) perf events to compare the numbers with QoS monitor for AMD. Signed-off-by: Babu Moger --- tools/testing/selftests/resctrl/resctrl_val.c | 67 --- 1 file changed, 59 insertions(+), 8 deletions(-) diff --git a/tools/testing

[PATCH v2 2/4] selftests/resctrl: Pass sysfs controller name of the vendor

2024-04-25 Thread Babu Moger
Detect the vendor and pass the sysfs name for the vendor for searching the controller information. Signed-off-by: Babu Moger --- tools/testing/selftests/resctrl/resctrl_val.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/resctrl

[PATCH v2 1/4] selftests/resctrl: Rename variable imcs and num_of_imcs() to generic names

2024-04-25 Thread Babu Moger
In an effort to support MBM and MBA tests for AMD, renaming for variable and functions to generic names. For Intel, the memory controller is called Integrated Memory Controllers (IMC). For AMD, it is called Unified Memory Controller (UMC). No functional change. Signed-off-by: Babu Moger

[PATCH v2 0/4] selftests/resctrl: Enable MBM and MBA tests on AMD

2024-04-25 Thread Babu Moger
eck. v1: https://lore.kernel.org/lkml/cover.1708637563.git.babu.mo...@amd.com/ Babu Moger (4): selftests/resctrl: Rename variable imcs and num_of_imcs() to generic names selftests/resctrl: Pass sysfs controller name of the vendor selftests/resctrl: Add support for MBM and MBA tests on AMD

[PATCH 4/4] selftests/resctrl: Skip the tests if iMC/UMC counters are unavailable

2024-02-22 Thread Babu Moger
Older systems do not support UMC (Unified Memory Controller) perf counters. Skip the tests if the system does not support UMC counters. Signed-off-by: Babu Moger --- tools/testing/selftests/resctrl/resctrl.h | 1 + tools/testing/selftests/resctrl/resctrl_tests.c | 10 ++ tools

[PATCH 3/4] selftests/resctrl: Add support for MBM and MBA tests on AMD

2024-02-22 Thread Babu Moger
Add support to read UMC (Unified Memory Controller) perf events to compare the numbers with QoS monitor for AMD. Signed-off-by: Babu Moger --- .../testing/selftests/resctrl/resctrl_tests.c | 6 +- tools/testing/selftests/resctrl/resctrl_val.c | 62 +-- 2 files changed, 58

[PATCH 2/4] selftests/resctrl: Pass sysfs controller name of the vendor

2024-02-22 Thread Babu Moger
Detect the vendor and pass the sysfs name for the vendor for searching the controller information. Signed-off-by: Babu Moger --- tools/testing/selftests/resctrl/resctrl_val.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/resctrl

[PATCH 1/4] selftests/resctrl: Rename variable imcs and num_of_imcs() to generic names

2024-02-22 Thread Babu Moger
In an effort to support MBM and MBA tests for AMD, renaming for variable and functions to generic names. For Intel, the memory controller is called Integrated Memory Controllers (IMC). For AMD, it is called Unified Memory Controller (UMC). No functional change. Signed-off-by: Babu Moger

[PATCH 0/4] selftests/resctrl: Enable MBM and MBA tests on AMD

2024-02-22 Thread Babu Moger
), AMD now supports the UMC (Unified Memory Controller) perf events. These events can be used to compare the test results. This series adds the support to detect the UMC events and enable MBM/MBA tests for AMD systems. Babu Moger (4): selftests/resctrl: Rename variable imcs and num_of_imcs()