]> git.baikalelectronics.ru Git - arm-tf.git/commit
feat(spmd): enable handling of FF-A SMCs with the SPMC at EL3
authorMarc Bonnici <marc.bonnici@arm.com>
Mon, 29 Nov 2021 18:02:45 +0000 (18:02 +0000)
committerMarc Bonnici <marc.bonnici@arm.com>
Wed, 20 Apr 2022 18:40:28 +0000 (19:40 +0100)
commitbb01a67306f47271adde051e541c760028c1a0f1
tree00657a6195b54f8b51d63b9065c6a633e44b1802
parent6da76075bf4b953d621aa15c379e62a5f785de3f
feat(spmd): enable handling of FF-A SMCs with the SPMC at EL3

Any FF-A SMC that arrives from the normal world is handled by the
SPMD before being forwarded to the SPMC. Similarly any SMC
arriving from the secure world will hit the SPMC first and be
forwarded to the SPMD if required, otherwise the SPMC will
respond directly.

This allows for the existing flow of handling FF-A ABI's when
the SPMC resides at a lower EL to be preserved.

In order to facilitate this flow the spmd_smc_forward function
has been split and control is either passed to the SPMC or it is
forwarded as before. To allow this the flags and cookie parameters
must now also be passed into this method as the SPMC must be able to
provide these when calling back into the SPMD handler as appropriate.

Signed-off-by: Marc Bonnici <marc.bonnici@arm.com>
Change-Id: I84fee8390023295b9689067e14cd25cba23ca39b
include/services/spmd_svc.h
services/std_svc/spmd/spmd_main.c
services/std_svc/std_svc_setup.c