kselftest/arm64: Add stress test for SME ZA context switching
authorMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 11:22:42 +0000 (12:22 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 28 Apr 2022 16:57:12 +0000 (17:57 +0100)
commit5aa45cc5355db3f5302e232a0fe29759ace4bc92
tree62b499475fa817c91c35c9e3d46a3f38a6ab3789
parent1a792b545519b6e49f9b1653095ed785eea19afe
kselftest/arm64: Add stress test for SME ZA context switching

Add a stress test for context switching of the ZA register state based on
the similar tests Dave Martin wrote for FPSIMD and SVE registers. The test
loops indefinitely writing a data pattern to ZA then reading it back and
verifying that it's what was expected.

Unlike the other tests we manually assemble the SME instructions since at
present no released toolchain has SME support integrated.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20220419112247.711548-35-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/fp/.gitignore
tools/testing/selftests/arm64/fp/Makefile
tools/testing/selftests/arm64/fp/za-stress [new file with mode: 0644]
tools/testing/selftests/arm64/fp/za-test.S [new file with mode: 0644]