Skip to content

Commit a7db82f

Browse files
brooniectmarinas
authored andcommitted
kselftest/arm64: Fix enumeration of systems without 128 bit SME for SSVE+ZA
The current signal handling tests for SME do not account for the fact that unlike SVE all SME vector lengths are optional so we can't guarantee that we will encounter the minimum possible VL, they will hang enumerating VLs on such systems. Abort enumeration when we find the lowest VL in the newly added ssve_za_regs test. Fixes: bc69da5 ("kselftest/arm64: Verify simultaneous SSVE and ZA context generation") Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/20230131-arm64-kselftest-sig-sme-no-128-v1-2-d47c13dc8e1e@kernel.org Signed-off-by: Catalin Marinas <[email protected]>
1 parent 5f38923 commit a7db82f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/testing/selftests/arm64/signal/testcases/ssve_za_regs.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ static bool sme_get_vls(struct tdescr *td)
3434

3535
vl &= PR_SME_VL_LEN_MASK;
3636

37+
/* Did we find the lowest supported VL? */
38+
if (vq < sve_vq_from_vl(vl))
39+
break;
40+
3741
/* Skip missing VLs */
3842
vq = sve_vq_from_vl(vl);
3943

0 commit comments

Comments
 (0)