selftests: arm64: Add stress tests for FPSMID and SVE context switching
authorMark Brown <broonie@kernel.org>
Wed, 19 Aug 2020 11:48:34 +0000 (12:48 +0100)
committerWill Deacon <will@kernel.org>
Fri, 18 Sep 2020 13:17:58 +0000 (14:17 +0100)
commit5e992c638ea55d928e43d3c1aab1bd8e13835e6e
tree23c6ece6e79589b2906d57a974b1c119390cecc9
parent0dca276ac4d20d4071b3d3095b1ad33269ea5272
selftests: arm64: Add stress tests for FPSMID and SVE context switching

Add programs sve-test and fpsimd-test which spin reading and writing to
the SVE and FPSIMD registers, verifying the operations they perform. The
intended use is to leave them running to stress the context switch code's
handling of these registers which isn't compatible with what kselftest
does so they're not integrated into the framework but there's no other
obvious testsuite where they fit so let's store them here.

These tests were written by Dave Martin and lightly adapted by me.

Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Dave Martin <Dave.Martin@arm.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20200819114837.51466-4-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/fp/asm-offsets.h [new file with mode: 0644]
tools/testing/selftests/arm64/fp/assembler.h [new file with mode: 0644]
tools/testing/selftests/arm64/fp/fpsimd-test.S [new file with mode: 0644]
tools/testing/selftests/arm64/fp/sve-test.S [new file with mode: 0644]