Skip to content

Commit fcd3d2c

Browse files
brooniectmarinas
authored andcommitted
arm64/sme: Don't use streaming mode to probe the maximum SME VL
During development the architecture added the RDSVL instruction which means we do not need to enter streaming mode to enumerate the SME VLs, use it when we probe the maximum supported VL. Other users were already updated. No functional change. Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent c3cdd54 commit fcd3d2c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

arch/arm64/kernel/fpsimd.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,6 @@ u64 read_smcr_features(void)
13221322
unsigned int vq_max;
13231323

13241324
sme_kernel_enable(NULL);
1325-
sme_smstart_sm();
13261325

13271326
/*
13281327
* Set the maximum possible VL.
@@ -1332,11 +1331,9 @@ u64 read_smcr_features(void)
13321331

13331332
smcr = read_sysreg_s(SYS_SMCR_EL1);
13341333
smcr &= ~(u64)SMCR_ELx_LEN_MASK; /* Only the LEN field */
1335-
vq_max = sve_vq_from_vl(sve_get_vl());
1334+
vq_max = sve_vq_from_vl(sme_get_vl());
13361335
smcr |= vq_max - 1; /* set LEN field to maximum effective value */
13371336

1338-
sme_smstop_sm();
1339-
13401337
return smcr;
13411338
}
13421339

0 commit comments

Comments
 (0)