]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kselftest/arm64: Add FPMR coverage to fp-ptrace
authorMark Brown <broonie@kernel.org>
Tue, 12 Nov 2024 13:08:16 +0000 (13:08 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 12 Nov 2024 13:28:49 +0000 (13:28 +0000)
commit7dbd26d0b22d69d36ab3e76ee7f152482a19cbed
tree895bc13dc5ca5fff4c6d32cdd38a5a60d69ed84d
parent7e9c5b00009a625cc304c865192978c01c0cc077
kselftest/arm64: Add FPMR coverage to fp-ptrace

Add coverage for FPMR to fp-ptrace. FPMR can be available independently of
SVE and SME, if SME is supported then FPMR is cleared by entering and
exiting streaming mode. As with other registers we generate random values
to load into the register, we restrict these to bitfields which are always
defined. We also leave bitfields where the valid values are affected by
the set of supported FP8 formats zero to reduce complexity, it is unlikely
that specific bitfields will be affected by ptrace issues.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20241112-arm64-fp-ptrace-fpmr-v2-3-250b57c61254@kernel.org
[catalin.marinas@arm.com: use REG_FPMR instead of FPMR]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/fp/fp-ptrace-asm.S
tools/testing/selftests/arm64/fp/fp-ptrace.c
tools/testing/selftests/arm64/fp/fp-ptrace.h
tools/testing/selftests/arm64/fp/sme-inst.h