kselftest/arm64: Add SME support to syscall ABI test
authorMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 11:22:46 +0000 (12:22 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 28 Apr 2022 16:57:12 +0000 (17:57 +0100)
commit43e3f85523e488f8acd6b371d457818d81977934
treeb72491fd9afcc63e1066e438c221586ed122beb6
parent86c8888f91a95a30d8a224c0c655ddac33d04eac
kselftest/arm64: Add SME support to syscall ABI test

For every possible combination of SVE and SME vector length verify that for
each possible value of SVCR after a syscall we leave streaming mode and ZA
is preserved. We don't need to take account of any streaming/non streaming
SVE vector length changes in the assembler code since the store instructions
will handle the vector length for us. We log if the system supports FA64 and
only try to set FFR in streaming mode if it does.

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-39-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/abi/syscall-abi-asm.S
tools/testing/selftests/arm64/abi/syscall-abi.c
tools/testing/selftests/arm64/abi/syscall-abi.h [new file with mode: 0644]