Skip to content

Commit 94ab150

Browse files
brooniectmarinas
authored andcommitted
kselftest/arm64: Fix test for streaming FPSIMD write in sve-ptrace
Since f916dd3 ("arm64/fpsimd: ptrace: Mandate SVE payload for streaming-mode state") we do not support writing FPSIMD payload data when writing NT_ARM_SSVE but the sve-ptrace test has an explicit test for this being supported which was not updated to reflect the new behaviour. Fix the test to expect a failure when writing FPSIMD data to the streaming mode register set. Acked-by: Mark Rutland <[email protected]> Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/20250609-kselftest-arm64-ssve-fixups-v2-2-998fcfa6f240@kernel.org Signed-off-by: Catalin Marinas <[email protected]>
1 parent 867446f commit 94ab150

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/testing/selftests/arm64/fp/sve-ptrace.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,10 @@ static void ptrace_sve_fpsimd(pid_t child, const struct vec_type *type)
301301
p[j] = j;
302302
}
303303

304+
/* This should only succeed for SVE */
304305
ret = set_sve(child, type, sve);
305-
ksft_test_result(ret == 0, "%s FPSIMD set via SVE: %d\n",
306+
ksft_test_result((type->regset == NT_ARM_SVE) == (ret == 0),
307+
"%s FPSIMD set via SVE: %d\n",
306308
type->name, ret);
307309
if (ret)
308310
goto out;

0 commit comments

Comments
 (0)