]> git.baikalelectronics.ru Git - kernel.git/commit
kselftest/arm64: Validate setting via FPSIMD and read via SVE regsets
authorMark Brown <broonie@kernel.org>
Mon, 4 Apr 2022 09:06:13 +0000 (10:06 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 28 Apr 2022 16:57:10 +0000 (17:57 +0100)
commita8bef35037c1294800b750bd85bba0a676d37b8a
tree4dd87a0410a195cf77035c4e3f8c54fee6e101e7
parentdb1518032e5c7b4f409d73519d303264712e13d2
kselftest/arm64: Validate setting via FPSIMD and read via SVE regsets

Currently we validate that we can set the floating point state via the SVE
regset and read the data via the FPSIMD regset but we do not valiate that
the opposite case works as expected. Add a test that covers this case,
noting that when reading via SVE regset the kernel has the option of
returning either SVE or FPSIMD data so we need to accept both formats.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20220404090613.181272-4-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/fp/sve-ptrace.c