fix: check ff-a version for functionality support
The SP must be at least FF-A v1.1 to support:
- Receiving/Sending indirect messages.
- Binding its own notifications.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I86aff3641235264620f8e648ed1e0e2467d1ae7a
diff --git a/src/api.c b/src/api.c
index 8efa5c0..95a2810 100644
--- a/src/api.c
+++ b/src/api.c
@@ -4192,6 +4192,14 @@
return ffa_error(FFA_INVALID_PARAMETERS);
}
+ if (receiver_locked.vm->ffa_version < FFA_VERSION_1_1) {
+ dlog_verbose(
+ "%s: caller (%x) version should be GE to FF-A v1.1.\n",
+ __func__, receiver_locked.vm->id);
+ ret = ffa_error(FFA_NOT_SUPPORTED);
+ goto out;
+ }
+
if (!vm_locked_are_notifications_enabled(receiver_locked)) {
dlog_verbose("Notifications are not enabled.\n");
ret = ffa_error(FFA_NOT_SUPPORTED);