fix(realm_payload): skip test setting invalid SVE VL
Skip host_sve_realm_test_invalid_vl() test which creates
Realm with invalid SVE VL in case when RMM reports maximum
architecturally supported value.
Change-Id: I9ab1d4d500db03027917d4a2769e91260cc00d44
Signed-off-by: AlexeiFedorov <Alexei.Fedorov@arm.com>
diff --git a/tftf/tests/runtime_services/realm_payload/host_realm_payload_simd_tests.c b/tftf/tests/runtime_services/realm_payload/host_realm_payload_simd_tests.c
index 023ec1c..1c2f58e 100644
--- a/tftf/tests/runtime_services/realm_payload/host_realm_payload_simd_tests.c
+++ b/tftf/tests/runtime_services/realm_payload/host_realm_payload_simd_tests.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2023-2024, Arm Limited. All rights reserved.
+ * Copyright (c) 2023-2025, Arm Limited. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -147,9 +147,16 @@
sve_vq = EXTRACT(RMI_FEATURE_REGISTER_0_SVE_VL, rmi_feat_reg0);
/*
- * Pass a sve_vq that is greater than the value supported by RMM
- * and check whether creating Realm fails
+ * TODO: The TFTF framework packs the sve_vl to feature flag for which the max value
+ * is 15 and then unpacks it to rmi_realm_params. Hence the value is clipped to 4 bits
+ * and hence it is not possible for test to send a value higher than this. Refactor
+ * this part of TFTF and then remove this limitation.
*/
+ if (sve_vq == SVE_VQ_ARCH_MAX) {
+ INFO("RMI supports arch max SVE VL %u, skipping\n", (sve_vq + 1));
+ return TEST_RESULT_SKIPPED;
+ }
+
rc = host_create_sve_realm_payload(&realm, true, (sve_vq + 1));
if (rc == TEST_RESULT_SUCCESS) {
ERROR("Error: Realm created with invalid SVE VL %u\n", (sve_vq + 1));