]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc9d9331a397728e037678c71c4292061d2187de2
treebd24dd4e249cac5e6d4102fe7a4ef68a6ef3a5b5
parent7f5530b241006a2de7fc5cbd7ca998ada756b2c2
kselftest/arm64: Fix syscall-abi for systems without 128 bit SME

[ Upstream commit 8ee0ac3bd6896878fe9fd867f1f7779062a13a0a ]

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: 2063759f548e ("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