Re: [PATCH v23 0/6] Introduction of a remoteproc tee to load signed firmware
From: Mathieu Poirier
Date: Wed Dec 02 2026 - 10:23:51 EST
Thank you for resending that. It is now in my queue and will get reviewed.
On Wed, 2 Dec 2026 at 08:48, Arnaud Pouliquen
<arnaud.pouliquen@xxxxxxxxxxx> wrote:
>
> Main updates from version V22[1]:
> --------------------------------
>
> This version drops the devicetree node describing the OP-TEE remoteproc
> Trusted Application (remoteproc-tee.yaml and its
> "80a4c275-0a47-4905-8285-1486a9771a08" compatible). The Trusted
> Application is a firmware service, discovered on the TEE bus by its
> UUID, so it does not need to be described in the devicetree.
>
> The st,rproc-tee property now references the OP-TEE firmware node
> itself, followed by the remote processor identifier assigned by the
> secure firmware.
>
> The mode is selected per remote processor: a remote processor without
> st,rproc-tee is still controlled directly by Linux, so both modes can
> coexist on a platform with several coprocessors (stm32mp2x).
>
> As a consequence, this version:
> - drops "dt-bindings: firmware: Add TEE remoteproc service binding";
> - updates st,stm32-rproc.yaml: st,rproc-tee references the
> linaro,optee-tz node, st,syscfg-tz is forbidden in TEE mode, and the
> example no longer defines a firmware node;
> - updates remoteproc_tee.c: the TEE client device no longer gets a DT
> node, and rproc_tee_register() checks that the phandle targets a
> linaro,optee-tz node.
>
> It also addresses Sashiko review findings on v22:
> - remoteproc_tee: fix a deadlock between rproc_tee_register() and the
> auto-boot work, make the teardown paths uninterruptible, always call
> rproc_del() in rproc_tee_unregister(), handle the removal of the TEE
> backend while remote processors are registered, and validate the
> resource table address and size returned by the TEE;
> - remoteproc_tee: REMOTEPROC_TEE is now a tristate, to avoid link
> errors when OPTEE is built as a module;
> - rproc_pa_to_va(): use a phys_addr_t offset to avoid truncation with
> LPAE;
> - stm32_rproc: parse st,rproc-tee once, fail instead of deferring
> forever when the OP-TEE node is disabled, and keep the original
> remove ordering.
>
> More details are available in each patch commit message.
>
> Main updates from version V21[2]:
> --------------------------------
> This version removes the st,stm32mp1-m4-tee compatibility string,
> which no longer seems to be accepted by the Devicetree maintainers.
> As a consequence, the stm32-rproc-tee driver, introduced to simplify
> the code, is removed. The STM32 integration reuses the existing
> stm32_rproc driver implemented in V19.
>
> Main updates from version V20[3]:
> --------------------------------
> To address Rob's concern on v20 concerning resource declaration under
> the tee node, the child-parent hierarchy was replaced by a phandle.
>
> Main updates from version V19[4]:
> --------------------------------
> Introduction of a dedicated stm32_rproc_tee.c driver and of the
> remoteproc-tee.yaml and st,stm32-rproc-tee.yaml bindings (both dropped
> since).
>
> [1] https://lore.kernel.org/linux-remoteproc/20260414152904.1679724-1-arnaud.pouliquen@xxxxxxxxxxx/
> [2] https://lore.kernel.org/linux-remoteproc/20260317180329.1207625-1-arnaud.pouliquen@xxxxxxxxxxx/
> [3] https://lore.kernel.org/linux-remoteproc/20251217153917.3998544-1-arnaud.pouliquen@xxxxxxxxxxx/
> [4] https://lore.kernel.org/linux-remoteproc/20250625094028.758016-1-arnaud.pouliquen@xxxxxxxxxxx/
>
> Tested-on:
> ---------
> commit b6a9fa34ce41 ("Linux 7.4-rc4"), STM32MP157C-DK2 with an OP-TEE
> build providing the remoteproc Trusted Application.
>
> Description of the feature:
> --------------------------
> This series proposes the implementation of a remoteproc tee driver to
> communicate with a TEE trusted application responsible for authenticating
> and loading the remoteproc firmware image in an Arm secure context.
>
> 1) Principle:
>
> The remoteproc tee driver provides services to communicate with the OP-TEE
> trusted application running on the Trusted Execution Context (TEE).
> The trusted application in TEE manages the remote processor lifecycle:
>
> - authenticating and loading firmware images,
> - isolating and securing the remote processor memories,
> - supporting multi-firmware (e.g., TF-M + Zephyr on a Cortex-M33),
> - managing the start and stop of the firmware by the TEE.
>
> 2) Format of the signed image:
>
> Refer to:
> https://github.com/OP-TEE/optee_os/blob/master/ta/remoteproc/src/remoteproc_core.c#L18-L57
>
> 3) OP-TEE trusted application API:
>
> Refer to:
> https://github.com/OP-TEE/optee_os/blob/master/ta/remoteproc/include/ta_remoteproc.h
>
> 4) OP-TEE signature script
>
> Refer to:
> https://github.com/OP-TEE/optee_os/blob/master/scripts/sign_rproc_fw.py
>
> Example of usage:
> sign_rproc_fw.py --in <fw1.elf> --in <fw2.elf> --out <signed_fw.sign> --key ${OP-TEE_PATH}/keys/default.pem
>
> 5) Impact on User space Application
>
> No sysfs impact. The user only needs to provide the signed firmware image
> instead of the ELF image.
>
> For more information about the implementation, a presentation is available here
> (note that the format of the signed image has evolved between the presentation
> and the integration in OP-TEE).
>
> https://resources.linaro.org/en/resource/6c5bGvZwUAjX56fvxthxds
>
> ---
> Arnaud Pouliquen (6):
> dt-bindings: remoteproc: st,stm32-rproc: Add st,rproc-tee
> remoteproc: core: Introduce rproc_pa_to_va helper
> remoteproc: Introduce optional release_fw operation
> remoteproc: Add TEE support
> remoteproc: stm32: Create sub-functions to request shutdown and release
> remoteproc: stm32: add OP-TEE backend support
>
> .../bindings/remoteproc/st,stm32-rproc.yaml | 50 +-
> drivers/remoteproc/Kconfig | 11 +
> drivers/remoteproc/Makefile | 1 +
> drivers/remoteproc/remoteproc_core.c | 56 ++
> drivers/remoteproc/remoteproc_internal.h | 6 +
> drivers/remoteproc/remoteproc_tee.c | 773 +++++++++++++++++++++
> drivers/remoteproc/stm32_rproc.c | 252 ++++---
> include/linux/remoteproc.h | 6 +
> include/linux/remoteproc_tee.h | 88 +++
> 9 files changed, 1153 insertions(+), 90 deletions(-)
> ---
> base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
> change-id: 20261202-rproc_tee_v23-b4-8e4faa0aa281
>
> Best regards,
> --
> Arnaud Pouliquen <arnaud.pouliquen@xxxxxxxxxxx>
>