]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
kselftest/arm64: Test SME on SME only systems in fp-ptrace
authorMark Brown <broonie@kernel.org>
Fri, 18 Jul 2025 22:14:50 +0000 (23:14 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 22 Jul 2025 08:34:00 +0000 (09:34 +0100)
When checking that the vector extensions are supported fp-ptrace
currently only checks for SVE being supported which means that we get
into a confused half configured state for SME only systems. Check for
SME as well.

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

index c479c97dea1a37e9677ad1aaac8c56e4a21c29aa..52d4d8fa29581f29ef460774fcf98703995c1dfd 100644 (file)
@@ -1669,7 +1669,7 @@ int main(void)
         * Run the test set if there is no SVE or SME, with those we
         * have to pick a VL for each run.
         */
-       if (!sve_supported()) {
+       if (!sve_supported() && !sme_supported()) {
                test_config.sve_vl_in = 0;
                test_config.sve_vl_expected = 0;
                test_config.sme_vl_in = 0;