Skip to content

Commit b021f45

Browse files
brooniectmarinas
authored andcommitted
kselftest/arm64: Test SME on SME only systems in fp-ptrace
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent b84d2b2 commit b021f45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1669,7 +1669,7 @@ int main(void)
16691669
* Run the test set if there is no SVE or SME, with those we
16701670
* have to pick a VL for each run.
16711671
*/
1672-
if (!sve_supported()) {
1672+
if (!sve_supported() && !sme_supported()) {
16731673
test_config.sve_vl_in = 0;
16741674
test_config.sve_vl_expected = 0;
16751675
test_config.sme_vl_in = 0;

0 commit comments

Comments
 (0)