Skip to content

Commit 4752dcc

Browse files
brooniectmarinas
authored andcommitted
kselftest/arm64: Handle attempts to disable SM on SME only systems
The ABI for disabling streaming mode via ptrace is to do a write via the SVE register set. Following the recent round of fixes to the ptrace code we don't support this operation on systems without SVE, which is detected as failures by fp-ptrace. Update the program so that it knows that this operation is not currently supported. Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent aa7d3c8 commit 4752dcc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,9 @@ static bool sve_write_supported(struct test_config *config)
10611061
if (config->sme_vl_in != config->sme_vl_expected) {
10621062
return false;
10631063
}
1064+
1065+
if (!sve_supported())
1066+
return false;
10641067
}
10651068

10661069
return true;

0 commit comments

Comments
 (0)