kselftest/arm64: Enumerate SME rather than SVE vector lengths for za_regs
authorMark Brown <broonie@kernel.org>
Mon, 29 Aug 2022 16:06:54 +0000 (17:06 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 7 Sep 2022 13:25:46 +0000 (14:25 +0100)
The za_regs signal test was enumerating the SVE vector lengths rather than
the SME vector lengths through cut'n'paste error when determining what to
test. Enumerate the SME vector lengths instead.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220829160703.874492-2-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/signal/testcases/za_regs.c

index 2514cb7..6f0c158 100644 (file)
@@ -22,10 +22,10 @@ static bool sme_get_vls(struct tdescr *td)
        int vq, vl;
 
        /*
-        * Enumerate up to SVE_VQ_MAX vector lengths
+        * Enumerate up to SME_VQ_MAX vector lengths
         */
        for (vq = SVE_VQ_MAX; vq > 0; --vq) {
-               vl = prctl(PR_SVE_SET_VL, vq * 16);
+               vl = prctl(PR_SME_SET_VL, vq * 16);
                if (vl == -1)
                        return false;