]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
kselftest/arm64: Allow sve-ptrace to run on SME only systems
authorMark Brown <broonie@kernel.org>
Fri, 18 Jul 2025 18:33:16 +0000 (19:33 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 22 Jul 2025 08:33:03 +0000 (09:33 +0100)
Currently the sve-ptrace test program only runs if the system supports
SVE but since SME includes streaming SVE the tests it offers are valid
even on a system that only supports SME. Since the tests already have
individual hwcap checks just remove the top level test and rely on those.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20250718-arm64-sve-ptrace-sme-only-v1-1-2a1121e51b1d@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/fp/sve-ptrace.c

index 7f9b6a61d369a8af0961d041154d443c1cdd2bc5..b22303778fb0ae78dc2c4fed8fa85296f264a9c6 100644 (file)
@@ -753,9 +753,6 @@ int main(void)
        ksft_print_header();
        ksft_set_plan(EXPECTED_TESTS);
 
-       if (!(getauxval(AT_HWCAP) & HWCAP_SVE))
-               ksft_exit_skip("SVE not available\n");
-
        child = fork();
        if (!child)
                return do_child();