kselftest/arm64: Fix syscall-abi for systems without 128 bit SME
authorMark Brown <broonie@kernel.org>
Tue, 27 Dec 2022 13:06:35 +0000 (13:06 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 12 Jan 2023 16:20:31 +0000 (16:20 +0000)
commit97ec597b26df774a257e3f8e97353fd1b4471615
tree895f2dbd1b8299b3e57f3f5f16384b6ba3da34c8
parentb7bfaa761d760e72a969d116517eaa12e404c262
kselftest/arm64: Fix syscall-abi for systems without 128 bit SME

SME does not mandate any specific VL so we may not have 128 bit SME but
the algorithm used for enumerating VLs assumes that we will. Add the
required check to ensure that the algorithm terminates.

Fixes: 43e3f85523e4 ("kselftest/arm64: Add SME support to syscall ABI test")
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221223-arm64-syscall-abi-sme-only-v1-1-4fabfbd62087@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/abi/syscall-abi.c