test(realm): Fix Realm tests marking all memory as RAM
Realm tests only need access to part of DRAM.
Change only required region RIPAS to RAM.
Change-Id: Ia0120841e51726785062992e8a32dcd8a924a325
Signed-off-by: Shruti Gupta <shruti.gupta@arm.com>
diff --git a/tftf/tests/runtime_services/host_realm_managment/host_realm_helper.c b/tftf/tests/runtime_services/host_realm_managment/host_realm_helper.c
index 7d1a246..72065c1 100644
--- a/tftf/tests/runtime_services/host_realm_managment/host_realm_helper.c
+++ b/tftf/tests/runtime_services/host_realm_managment/host_realm_helper.c
@@ -325,8 +325,12 @@
goto destroy_realm;
}
+ /*
+ * Realm tests only access the region between TFTF_BASE and Realm Pool,
+ * Change RIPAS of this region to RAM.
+ */
if (host_realm_init_ipa_state(realm_ptr, realm_ptr->start_level,
- 0U, 1ULL << 32) != RMI_SUCCESS) {
+ TFTF_BASE, PAGE_POOL_END) != RMI_SUCCESS) {
ERROR("%s() failed\n", "host_realm_init_ipa_state");
goto destroy_realm;
}