[PATCH 5/5] firmware: scmi: Add OP-TEE transport

Patrick DELAUNAY patrick.delaunay at foss.st.com
Mon Nov 8 10:37:03 CET 2021


Hi,

On 11/4/21 3:14 PM, Etienne Carriere wrote:
> This change implements an SCMI transport for agent interfacing the
> OP-TEE SCMI service. OP-TEE provides an SCMI PTA (Pseudo-TA) for
> non-secure world to send SCMI messages over an identified channel.
> The driver implemented here uses a SMT shared memory for passing
> messages between client and server.
>
> The implementation opens and releases channel resources for each
> passed SCMI message so that resources allocated (sessions) or
> registered (shared memory areas) in OP-TEE firmware are released for
> example before relocation as the driver will likely allocate/register
> them back when probed after relocation.
>
> The integration of the driver using dedicated config switch
> CONFIG_SCMI_AGENT_OPTEE is designed on the model posted to the
> U-Boot ML by Patrick Delaunay [1].
>
> Link: [1] https://lore.kernel.org/all/20211028191222.v3.4.Ib2e58ee67f4d023823d8b5404332dc4d7e847277@changeid/
> Cc: Patrick Delaunay <patrick.delaunay at foss.st.com>
> Cc: Wolfgang Denk <wd at denx.de>
> Signed-off-by: Etienne Carriere <etienne.carriere at linaro.org>
> ---
>   drivers/firmware/scmi/Kconfig       |  14 +-
>   drivers/firmware/scmi/Makefile      |   1 +
>   drivers/firmware/scmi/optee_agent.c | 312 ++++++++++++++++++++++++++++
>   3 files changed, 324 insertions(+), 3 deletions(-)
>   create mode 100644 drivers/firmware/scmi/optee_agent.c
>

Reviewed-by: Patrick Delaunay <patrick.delaunay at foss.st.com>

Thanks
Patrick



More information about the U-Boot mailing list