File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed
tools/testing/selftests/arm64/fp Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -1183,18 +1183,8 @@ static void sve_write(pid_t child, struct test_config *config)
1183
1183
1184
1184
static bool za_write_supported (struct test_config * config )
1185
1185
{
1186
- if (config -> sme_vl_in != config -> sme_vl_expected ) {
1187
- /* Changing the SME VL exits streaming mode. */
1188
- if (config -> svcr_expected & SVCR_SM ) {
1189
- return false;
1190
- }
1191
- } else {
1192
- /* Otherwise we can't change streaming mode */
1193
- if ((config -> svcr_in & SVCR_SM ) !=
1194
- (config -> svcr_expected & SVCR_SM )) {
1195
- return false;
1196
- }
1197
- }
1186
+ if ((config -> svcr_in & SVCR_SM ) != (config -> svcr_expected & SVCR_SM ))
1187
+ return false;
1198
1188
1199
1189
return true;
1200
1190
}
@@ -1212,10 +1202,8 @@ static void za_write_expected(struct test_config *config)
1212
1202
memset (zt_expected , 0 , sizeof (zt_expected ));
1213
1203
}
1214
1204
1215
- /* Changing the SME VL flushes ZT, SVE state and exits SM */
1205
+ /* Changing the SME VL flushes ZT, SVE state */
1216
1206
if (config -> sme_vl_in != config -> sme_vl_expected ) {
1217
- svcr_expected &= ~SVCR_SM ;
1218
-
1219
1207
sve_vq = __sve_vq_from_vl (vl_expected (config ));
1220
1208
memset (z_expected , 0 , __SVE_ZREGS_SIZE (sve_vq ));
1221
1209
memset (p_expected , 0 , __SVE_PREGS_SIZE (sve_vq ));
You can’t perform that action at this time.
0 commit comments