kselftest/arm64: Fix enumeration of systems without 128 bit SME
authorMark Brown <broonie@kernel.org>
Tue, 31 Jan 2023 22:56:34 +0000 (22:56 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 1 Feb 2023 17:21:33 +0000 (17:21 +0000)
commit5f389238534ac8ca4ee3ab12eeb89d3984d303a1
treecae19c69187052e838adba1e3307cc6b4ba36a06
parent4365eec8190c237aea723e6ac9529789215558e1
kselftest/arm64: Fix enumeration of systems without 128 bit SME

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.

Fixes: 4963aeb35a9e ("kselftest/arm64: signal: Add SME signal handling tests")
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230131-arm64-kselftest-sig-sme-no-128-v1-1-d47c13dc8e1e@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/signal/testcases/ssve_regs.c
tools/testing/selftests/arm64/signal/testcases/za_regs.c