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)
commit82f97bcd876a6b5f764726a5210bde638d9f4d0a
tree4dd87a0410a195cf77035c4e3f8c54fee6e101e7
parent1fb1e285b4a8a3664897c34414787ea825124cb2
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