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

tools/testing/selftests/powerpc/pmu: Update comment description to mention ISA v3.1 for power10 and above

Updated the comments in the pmu selftests to include
power11/ISA v3.1 where ever required.

Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250113075858.45137-3-atrajeev@linux.vnet.ibm.com

authored by

Athira Rajeev and committed by
Madhavan Srinivasan
43751c3c 520ee327

+15 -15
+1 -1
tools/testing/selftests/powerpc/pmu/event_code_tests/group_constraint_l2l3_sel_test.c
··· 30 30 31 31 /* 32 32 * Check for platform support for the test. 33 - * This test is only aplicable on power10 33 + * This test is only aplicable on ISA v3.1 34 34 */ 35 35 SKIP_IF(platform_check_for_tests()); 36 36 SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_3_1));
+1 -1
tools/testing/selftests/powerpc/pmu/event_code_tests/group_constraint_radix_scope_qual_test.c
··· 26 26 27 27 /* 28 28 * Check for platform support for the test. 29 - * This test is aplicable on power10 only. 29 + * This test is aplicable on ISA v3.1 only. 30 30 */ 31 31 SKIP_IF(platform_check_for_tests()); 32 32 SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_3_1));
+1 -1
tools/testing/selftests/powerpc/pmu/event_code_tests/group_constraint_thresh_cmp_test.c
··· 25 25 /* 26 26 * Testcase for group constraint check of thresh_cmp bits which is 27 27 * used to program thresh compare field in Monitor Mode Control Register A 28 - * (MMCRA: 9-18 bits for power9 and MMCRA: 8-18 bits for power10). 28 + * (MMCRA: 9-18 bits for power9 and MMCRA: 8-18 bits for power10/power11). 29 29 * All events in the group should match thresh compare bits otherwise 30 30 * event_open for the group will fail. 31 31 */
+2 -2
tools/testing/selftests/powerpc/pmu/event_code_tests/invalid_event_code_test.c
··· 20 20 * Some of the bits in the event code is 21 21 * reserved for specific platforms. 22 22 * Event code bits 52-59 are reserved in power9, 23 - * whereas in power10, these are used for programming 23 + * whereas in ISA v3.1, these are used for programming 24 24 * Monitor Mode Control Register 3 (MMCR3). 25 25 * Bit 9 in event code is reserved in power9, 26 26 * whereas it is used for programming "radix_scope_qual" ··· 39 39 40 40 /* 41 41 * Events using MMCR3 bits and radix scope qual bits 42 - * should fail in power9 and should succeed in power10. 42 + * should fail in power9 and should succeed in power10 ( ISA v3.1 ) 43 43 * Init the events and check for pass/fail in event open. 44 44 */ 45 45 if (have_hwcap2(PPC_FEATURE2_ARCH_3_1)) {
+1 -1
tools/testing/selftests/powerpc/pmu/event_code_tests/reserved_bits_mmcra_sample_elig_mode_test.c
··· 57 57 58 58 /* 59 59 * MMCRA Random Sampling Mode (SM) value 0x10 60 - * is reserved in power10 and 0xC is reserved in 60 + * is reserved in power10/power11 and 0xC is reserved in 61 61 * power9. 62 62 */ 63 63 if ((pvr == POWER10) || (pvr == POWER11)) {
+5 -5
tools/testing/selftests/powerpc/pmu/sampling_tests/bhrb_filter_map_test.c
··· 14 14 * A perf sampling test to check bhrb filter 15 15 * map. All the branch filters are not supported 16 16 * in powerpc. Supported filters in: 17 - * power10: any, any_call, ind_call, cond 17 + * power10/power11: any, any_call, ind_call, cond 18 18 * power9: any, any_call 19 19 * 20 20 * Testcase checks event open for invalid bhrb filter ··· 24 24 */ 25 25 26 26 /* Invalid types for powerpc */ 27 - /* Valid bhrb filters in power9/power10 */ 27 + /* Valid bhrb filters in power9/power10/power11 */ 28 28 int bhrb_filter_map_valid_common[] = { 29 29 PERF_SAMPLE_BRANCH_ANY, 30 30 PERF_SAMPLE_BRANCH_ANY_CALL, 31 31 }; 32 32 33 - /* Valid bhrb filters in power10 */ 33 + /* Valid bhrb filters in power10/power11 */ 34 34 int bhrb_filter_map_valid_p10[] = { 35 35 PERF_SAMPLE_BRANCH_IND_CALL, 36 36 PERF_SAMPLE_BRANCH_COND, ··· 69 69 FAIL_IF(!event_open(&event)); 70 70 } 71 71 72 - /* valid filter maps for power9/power10 which are expected to pass in event_open */ 72 + /* valid filter maps for power9/power10/power11 which are expected to pass in event_open */ 73 73 for (i = 0; i < ARRAY_SIZE(bhrb_filter_map_valid_common); i++) { 74 74 event.attr.branch_sample_type = bhrb_filter_map_valid_common[i]; 75 75 FAIL_IF(event_open(&event)); ··· 77 77 } 78 78 79 79 /* 80 - * filter maps which are valid in power10 and invalid in power9. 80 + * filter maps which are valid in power10/power11 and invalid in power9. 81 81 * PVR check is used here since PMU specific data like bhrb filter 82 82 * alternative tests is handled by respective PMU driver code and 83 83 * using PVR will work correctly for all cases including generic
+1 -1
tools/testing/selftests/powerpc/pmu/sampling_tests/mmcra_bhrb_cond_test.c
··· 29 29 30 30 /* 31 31 * Check for platform support for the test. 32 - * This test is only aplicable on power10 32 + * This test is only aplicable on ISA v3.1 33 33 */ 34 34 SKIP_IF(check_pvr_for_sampling_tests()); 35 35 SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_3_1));
+1 -1
tools/testing/selftests/powerpc/pmu/sampling_tests/mmcra_bhrb_disable_no_branch_test.c
··· 26 26 27 27 /* 28 28 * Check for platform support for the test. 29 - * This test is only aplicable on power10 29 + * This test is only aplicable on ISA v3.1 30 30 */ 31 31 SKIP_IF(check_pvr_for_sampling_tests()); 32 32 SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_3_1));
+1 -1
tools/testing/selftests/powerpc/pmu/sampling_tests/mmcra_bhrb_disable_test.c
··· 26 26 27 27 /* 28 28 * Check for platform support for the test. 29 - * This test is only aplicable on power10 29 + * This test is only aplicable on ISA v3.1 30 30 */ 31 31 SKIP_IF(check_pvr_for_sampling_tests()); 32 32 SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_3_1));
+1 -1
tools/testing/selftests/powerpc/pmu/sampling_tests/mmcra_bhrb_ind_call_test.c
··· 29 29 30 30 /* 31 31 * Check for platform support for the test. 32 - * This test is only aplicable on power10 32 + * This test is only aplicable on ISA v3.1 33 33 */ 34 34 SKIP_IF(check_pvr_for_sampling_tests()); 35 35 SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_3_1));