]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
tools/testing/selftests/powerpc/pmu: Update comment description to mention ISA v3...
authorAthira Rajeev <atrajeev@linux.vnet.ibm.com>
Mon, 13 Jan 2025 07:58:56 +0000 (13:28 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Tue, 11 Feb 2025 06:03:51 +0000 (11:33 +0530)
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
tools/testing/selftests/powerpc/pmu/event_code_tests/group_constraint_l2l3_sel_test.c
tools/testing/selftests/powerpc/pmu/event_code_tests/group_constraint_radix_scope_qual_test.c
tools/testing/selftests/powerpc/pmu/event_code_tests/group_constraint_thresh_cmp_test.c
tools/testing/selftests/powerpc/pmu/event_code_tests/invalid_event_code_test.c
tools/testing/selftests/powerpc/pmu/event_code_tests/reserved_bits_mmcra_sample_elig_mode_test.c
tools/testing/selftests/powerpc/pmu/sampling_tests/bhrb_filter_map_test.c
tools/testing/selftests/powerpc/pmu/sampling_tests/mmcra_bhrb_cond_test.c
tools/testing/selftests/powerpc/pmu/sampling_tests/mmcra_bhrb_disable_no_branch_test.c
tools/testing/selftests/powerpc/pmu/sampling_tests/mmcra_bhrb_disable_test.c
tools/testing/selftests/powerpc/pmu/sampling_tests/mmcra_bhrb_ind_call_test.c

index 85a636886069ca174458421c7e04cdd2c2207efc..e3c7a0c071e2ecff7631692a3fca3e778b427c07 100644 (file)
@@ -30,7 +30,7 @@ static int group_constraint_l2l3_sel(void)
 
        /*
         * Check for platform support for the test.
-        * This test is only aplicable on power10
+        * This test is only aplicable on ISA v3.1
         */
        SKIP_IF(platform_check_for_tests());
        SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_3_1));
index 9225618b846a2deac3a0905db7288d493e1a54da..9233175787ccf17c4026a5a39518954187ab6ec7 100644 (file)
@@ -26,7 +26,7 @@ static int group_constraint_radix_scope_qual(void)
 
        /*
         * Check for platform support for the test.
-        * This test is aplicable on power10 only.
+        * This test is aplicable on ISA v3.1 only.
         */
        SKIP_IF(platform_check_for_tests());
        SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_3_1));
index 9f1197104e8c1ad12add1bc310f75b1c5ecafb48..4b69e7214c0b6f43cf50bb17da5661fb35f9eb14 100644 (file)
@@ -25,7 +25,7 @@
 /*
  * Testcase for group constraint check of thresh_cmp bits which is
  * used to program thresh compare field in Monitor Mode Control Register A
- * (MMCRA: 9-18 bits for power9 and MMCRA: 8-18 bits for power10).
+ * (MMCRA: 9-18 bits for power9 and MMCRA: 8-18 bits for power10/power11).
  * All events in the group should match thresh compare bits otherwise
  * event_open for the group will fail.
  */
index f51fcab837fcef2e1fa43677130c726ab99fa8ac..88aa7fd64ec1ff850a4ab579d5db523ea6d22a87 100644 (file)
@@ -20,7 +20,7 @@
  * Some of the bits in the event code is
  * reserved for specific platforms.
  * Event code bits 52-59 are reserved in power9,
- * whereas in power10, these are used for programming
+ * whereas in ISA v3.1, these are used for programming
  * Monitor Mode Control Register 3 (MMCR3).
  * Bit 9 in event code is reserved in power9,
  * whereas it is used for programming "radix_scope_qual"
@@ -39,7 +39,7 @@ static int invalid_event_code(void)
 
        /*
         * Events using MMCR3 bits and radix scope qual bits
-        * should fail in power9 and should succeed in power10.
+        * should fail in power9 and should succeed in power10 ( ISA v3.1 )
         * Init the events and check for pass/fail in event open.
         */
        if (have_hwcap2(PPC_FEATURE2_ARCH_3_1)) {
index 7bb26a232fbea57eb316ee34b6b6e9ac2b3769c0..757f454c0dc016147fbdf5dc990bdafe37a5b215 100644 (file)
@@ -57,7 +57,7 @@ static int reserved_bits_mmcra_sample_elig_mode(void)
 
        /*
         * MMCRA Random Sampling Mode (SM) value 0x10
-        * is reserved in power10 and 0xC is reserved in
+        * is reserved in power10/power11 and 0xC is reserved in
         * power9.
         */
        if ((pvr == POWER10) || (pvr == POWER11)) {
index 64ab9784f9b16a1abc93ead58e4306fe8f7b4e4b..3ad71d49ae6549b6502184fe6e0ae681ec5d0d73 100644 (file)
@@ -14,7 +14,7 @@
  * A perf sampling test to check bhrb filter
  * map. All the branch filters are not supported
  * in powerpc. Supported filters in:
- * power10: any, any_call, ind_call, cond
+ * power10/power11: any, any_call, ind_call, cond
  * power9: any, any_call
  *
  * Testcase checks event open for invalid bhrb filter
  */
 
 /* Invalid types for powerpc */
-/* Valid bhrb filters in power9/power10 */
+/* Valid bhrb filters in power9/power10/power11 */
 int bhrb_filter_map_valid_common[] = {
        PERF_SAMPLE_BRANCH_ANY,
        PERF_SAMPLE_BRANCH_ANY_CALL,
 };
 
-/* Valid bhrb filters in power10 */
+/* Valid bhrb filters in power10/power11 */
 int bhrb_filter_map_valid_p10[] = {
        PERF_SAMPLE_BRANCH_IND_CALL,
        PERF_SAMPLE_BRANCH_COND,
@@ -69,7 +69,7 @@ static int bhrb_filter_map_test(void)
                FAIL_IF(!event_open(&event));
        }
 
-       /* valid filter maps for power9/power10 which are expected to pass in event_open */
+       /* valid filter maps for power9/power10/power11 which are expected to pass in event_open */
        for (i = 0; i < ARRAY_SIZE(bhrb_filter_map_valid_common); i++) {
                event.attr.branch_sample_type = bhrb_filter_map_valid_common[i];
                FAIL_IF(event_open(&event));
@@ -77,7 +77,7 @@ static int bhrb_filter_map_test(void)
        }
 
        /*
-        * filter maps which are valid in power10 and invalid in power9.
+        * filter maps which are valid in power10/power11 and invalid in power9.
         * PVR check is used here since PMU specific data like bhrb filter
         * alternative tests is handled by respective PMU driver code and
         * using PVR will work correctly for all cases including generic
index 3e08176eb7f886530862ceca1afddf10fc80423d..809de8d58b3b57d1bd8d33b7e8234ea92c45b46a 100644 (file)
@@ -29,7 +29,7 @@ static int mmcra_bhrb_cond_test(void)
 
        /*
         * Check for platform support for the test.
-        * This test is only aplicable on power10
+        * This test is only aplicable on ISA v3.1
         */
        SKIP_IF(check_pvr_for_sampling_tests());
        SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_3_1));
index 488c865387e4e3a645c5f492aeb217334c1f5f07..fa0dc15f9123a25617a39fc9a083461b3e766c1e 100644 (file)
@@ -26,7 +26,7 @@ static int mmcra_bhrb_disable_no_branch_test(void)
 
        /*
         * Check for platform support for the test.
-        * This test is only aplicable on power10
+        * This test is only aplicable on ISA v3.1
         */
        SKIP_IF(check_pvr_for_sampling_tests());
        SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_3_1));
index 186a853c0f6284ed1bd36614bd55ef9bc921e6b2..bc3161ab003d8f9cfcc42c26c3b61cca53572dbe 100644 (file)
@@ -26,7 +26,7 @@ static int mmcra_bhrb_disable_test(void)
 
        /*
         * Check for platform support for the test.
-        * This test is only aplicable on power10
+        * This test is only aplicable on ISA v3.1
         */
        SKIP_IF(check_pvr_for_sampling_tests());
        SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_3_1));
index f0706730c09912cda1c66a79e023c5c8a554210b..fd6c9f12212c1475bb4bb1c1da1b5945e1eac7fc 100644 (file)
@@ -29,7 +29,7 @@ static int mmcra_bhrb_ind_call_test(void)
 
        /*
         * Check for platform support for the test.
-        * This test is only aplicable on power10
+        * This test is only aplicable on ISA v3.1
         */
        SKIP_IF(check_pvr_for_sampling_tests());
        SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_3_1));