mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 05:04:02 +02:00
kselftest/arm64: fp-ptrace: Adjust to new inactive mode behaviour
In order to fix an ABI problem, we recently changed the way that reads of the NT_ARM_SVE and NT_ARM_SSVE regsets behave when their corresponding vector state is inactive. Update the fp-ptrace test for the new behaviour. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: David Spickett <david.spickett@arm.com> Cc: Luis Machado <luis.machado@arm.com> Cc: Marc Zyngier <maz@kernel.org> Cc: Mark Brown <broonie@kernel.org> Cc: Will Deacon <will@kernel.org> Link: https://lore.kernel.org/r/20250508132644.1395904-25-mark.rutland@arm.com Signed-off-by: Will Deacon <will@kernel.org>
This commit is contained in:
parent
031a2acaa1
commit
864f3ddcd7
|
|
@ -439,10 +439,17 @@ static bool check_ptrace_values_sve(pid_t child, struct test_config *config)
|
||||||
pass = false;
|
pass = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sve->size != SVE_PT_SIZE(vq, sve->flags)) {
|
if (svcr_in & SVCR_SM) {
|
||||||
ksft_print_msg("Mismatch in SVE header size: %d != %lu\n",
|
if (sve->size != sizeof(sve)) {
|
||||||
sve->size, SVE_PT_SIZE(vq, sve->flags));
|
ksft_print_msg("NT_ARM_SVE reports data with PSTATE.SM\n");
|
||||||
pass = false;
|
pass = false;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (sve->size != SVE_PT_SIZE(vq, sve->flags)) {
|
||||||
|
ksft_print_msg("Mismatch in SVE header size: %d != %lu\n",
|
||||||
|
sve->size, SVE_PT_SIZE(vq, sve->flags));
|
||||||
|
pass = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The registers might be in completely different formats! */
|
/* The registers might be in completely different formats! */
|
||||||
|
|
@ -515,10 +522,17 @@ static bool check_ptrace_values_ssve(pid_t child, struct test_config *config)
|
||||||
pass = false;
|
pass = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sve->size != SVE_PT_SIZE(vq, sve->flags)) {
|
if (!(svcr_in & SVCR_SM)) {
|
||||||
ksft_print_msg("Mismatch in SSVE header size: %d != %lu\n",
|
if (sve->size != sizeof(sve)) {
|
||||||
sve->size, SVE_PT_SIZE(vq, sve->flags));
|
ksft_print_msg("NT_ARM_SSVE reports data without PSTATE.SM\n");
|
||||||
pass = false;
|
pass = false;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (sve->size != SVE_PT_SIZE(vq, sve->flags)) {
|
||||||
|
ksft_print_msg("Mismatch in SSVE header size: %d != %lu\n",
|
||||||
|
sve->size, SVE_PT_SIZE(vq, sve->flags));
|
||||||
|
pass = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The registers might be in completely different formats! */
|
/* The registers might be in completely different formats! */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user