]> git.baikalelectronics.ru Git - kernel.git/commit
kselftest/arm64: Skip VL_INHERIT tests for unsupported vector types
authorMark Brown <broonie@kernel.org>
Mon, 24 Jan 2022 17:55:26 +0000 (17:55 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 28 Jan 2022 11:28:49 +0000 (11:28 +0000)
commite5f1b80f3a71c323f1a63c9aa07db8b7a9fcae60
treeb13d7a33fb16b5c85dfa0bf4508924ee1071cb1e
parent079d3009510d189265bc90da4b8d8fb2d48ca829
kselftest/arm64: Skip VL_INHERIT tests for unsupported vector types

Currently we unconditionally test the ability to set the vector length
inheritance flag via ptrace meaning that we generate false failures on
systems that don't support SVE when we attempt to set the vector length
there. Check the hwcap and mark the tests as skipped when it's not present.

Fixes: 2028fe15d632 ("selftests: arm64: Add coverage of ptrace flags for SVE VL inheritance")
Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20220124175527.3260234-2-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/fp/sve-ptrace.c