]> git.ipfire.org Git - thirdparty/linux.git/commit
kselftest/arm64: Don't probe the current VL for unsupported vector types
authorMark Brown <broonie@kernel.org>
Mon, 18 Dec 2023 23:39:32 +0000 (23:39 +0000)
committerWill Deacon <will@kernel.org>
Tue, 19 Dec 2023 10:03:17 +0000 (10:03 +0000)
commit9a802ddb2123e5adec394d35cd539cc0b15bc830
tree7b8ccb485c7620bf39ec6c4475350c84926691fe
parent48f7ab21f731f5a02ec34a4b83ae88c4a41d6a10
kselftest/arm64: Don't probe the current VL for unsupported vector types

The vec-syscfg selftest verifies that setting the VL of the currently
tested vector type does not disrupt the VL of the other vector type. To do
this it records the current vector length for each type but neglects to
guard this with a check for that vector type actually being supported. Add
one, using a helper function which we also update all the other instances
of this pattern.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20231218-kselftest-arm64-vec-syscfg-rdvl-v1-1-0ac22d47e81f@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/fp/vec-syscfg.c