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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:32:53 +0000 (09:32 +0100)
commit3bfadfd8b62bd88984fe1eb6ce1debcce90ea003
treebd24dd4e249cac5e6d4102fe7a4ef68a6ef3a5b5
parentc5721ba0f25e7553ed88436dafa42ca74a89362b
kselftest/arm64: Fix syscall-abi for systems without 128 bit SME

[ Upstream commit 97ec597b26df774a257e3f8e97353fd1b4471615 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/arm64/abi/syscall-abi.c