aboutsummaryrefslogtreecommitdiff
path: root/tftf
diff options
context:
space:
mode:
authorMax Shvetsov <maksims.svecovs@arm.com>2020-06-23 09:41:15 +0100
committerMax Shvetsov <maksims.svecovs@arm.com>2020-07-27 13:36:01 +0100
commitc32f47899de53f58b08c549aff396062b256c029 (patch)
tree01a3353098f3d59ee75de560c45e8e5780cf8816 /tftf
parent40eb6a2ee493beb61d617f249af91e4f52453700 (diff)
downloadtf-a-tests-c32f47899de53f58b08c549aff396062b256c029.tar.gz
Cactus: FFA_PARTITION_INFO_GET test.
Calls FFA_PARTITION_INFO_GET API from secure virtual FFA-A instance. * Gets information about primary SP. * Gets information about secondary SP. * Gets information about all SP running. * Attempts to get information about non-existing SP. Signed-off-by: Max Shvetsov <maksims.svecovs@arm.com> Change-Id: Ief4de45b4d7decb1e1dba9bdb0e7e05516062dd2
Diffstat (limited to 'tftf')
-rw-r--r--tftf/tests/runtime_services/secure_service/ffa_helpers.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/tftf/tests/runtime_services/secure_service/ffa_helpers.c b/tftf/tests/runtime_services/secure_service/ffa_helpers.c
index 6e7eca31..c90cac80 100644
--- a/tftf/tests/runtime_services/secure_service/ffa_helpers.c
+++ b/tftf/tests/runtime_services/secure_service/ffa_helpers.c
@@ -223,3 +223,27 @@ smc_ret_values ffa_features(uint32_t feature)
return tftf_smc(&args);
}
+
+/* Get information about VMs or SPs based on UUID */
+smc_ret_values ffa_partition_info_get(const uint32_t uuid[4])
+{
+ smc_args args = {
+ .fid = FFA_PARTITION_INFO_GET,
+ .arg1 = uuid[0],
+ .arg2 = uuid[1],
+ .arg3 = uuid[2],
+ .arg4 = uuid[3]
+ };
+
+ return tftf_smc(&args);
+}
+
+/* Query SPMD that the rx buffer of the partition can be released */
+smc_ret_values ffa_rx_release(void)
+{
+ smc_args args = {
+ .fid = FFA_RX_RELEASE
+ };
+
+ return tftf_smc(&args);
+}