kselftest/arm64: Log SVCR when the SME tests barf
authorMark Brown <broonie@kernel.org>
Tue, 5 Dec 2023 14:24:44 +0000 (14:24 +0000)
committerWill Deacon <will@kernel.org>
Mon, 11 Dec 2023 12:02:00 +0000 (12:02 +0000)
commit48f7ab21f731f5a02ec34a4b83ae88c4a41d6a10
tree40838f0f3821a7e39d229dc9600aafa240bf69e3
parent33c1a7785a41216ec44d0fadc1890103e2db88b0
kselftest/arm64: Log SVCR when the SME tests barf

On failure we log the actual and expected value of the register we detect
a mismatch in. For SME one obvious potential source of corruption would be
if we had corrupted SVCR since changes in streaming mode will reset the
register values, log the value to aid in understanding issues.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20231205-arm64-kselftest-log-svcr-v1-1-b77abd9ee7f3@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/fp/sve-test.S
tools/testing/selftests/arm64/fp/za-test.S
tools/testing/selftests/arm64/fp/zt-test.S