Re: [Linux-stm32] [PATCH 3/3] remoteproc: Use of_reserved_mem_region_* functions for "memory-region"

2025-03-20 Thread Arnaud POULIQUEN
On 3/20/25 00:04, Rob Herring wrote: > On Wed, Mar 19, 2025 at 10:26 AM Arnaud POULIQUEN > wrote: >> >> Hello Rob, >> >> On 3/18/25 00:24, Rob Herring (Arm) wrote: >>> Use the newly added of_reserved_mem_region_to_resource() and >>> of_reserve

Re: [PATCH] remoteproc: core: Clear table_sz when rproc_shutdown

2025-03-19 Thread Arnaud POULIQUEN
Hello Peng, On 3/19/25 11:01, Peng Fan (OSS) wrote: > From: Peng Fan > > There is case as below could trigger kernel dump: > Use U-Boot to start remote processor(rproc) with resource table > published to a fixed address by rproc. After Kernel boots up, > stop the rproc, load a new firmware whic

[PATCH 0/2] stm32-rproc: Add firmware-name DT property support

2025-04-05 Thread Arnaud Pouliquen
Add flexibility by supporting the optional "firmware-name" property. This allows specifying in the device tree the firmware that needs to be loaded on boot, if the "st,auto-boot" DT property is set. Arnaud Pouliquen (2): dt-bindings: remoteproc: stm32-rproc: Add fi

[PATCH 1/2] dt-bindings: remoteproc: stm32-rproc: Add firmware-name property

2025-03-26 Thread Arnaud Pouliquen
Add the 'firmware-name' property to the remote processor binding to allow specifying the default firmware name in the device tree. Signed-off-by: Arnaud Pouliquen --- .../devicetree/bindings/remoteproc/st,stm32-rproc.yaml | 5 + 1 file changed, 5 insertions(+) di

[PATCH 2/2] drivers: remoteproc: stm32_rproc: Allow to specify firmware default name

2025-03-26 Thread Arnaud Pouliquen
Enhance the stm32_rproc driver to allow enabling the configuration of the firmware name based on the 'firmware-name' property in the device tree, offering flexibility compared to using the remote proc device node name. Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/stm32_r

[PATCH v2 2/2] drivers: remoteproc: stm32_rproc: Allow to specify firmware default name

2025-03-27 Thread Arnaud Pouliquen
Enhance the stm32_rproc driver to allow enabling the configuration of the firmware name based on the 'firmware-name' property in the device tree, offering flexibility compared to using the remote proc device node name. Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/stm32_r

[PATCH v2 1/2] dt-bindings: remoteproc: stm32-rproc: Add firmware-name property

2025-03-27 Thread Arnaud Pouliquen
Add the 'firmware-name' property to the remote processor binding to allow specifying the default firmware name in the device tree. Signed-off-by: Arnaud Pouliquen --- .../devicetree/bindings/remoteproc/st,stm32-rproc.yaml| 4 1 file changed, 4 insertions(+) di

[PATCH v2 0/2] stm32-rproc: Add firmware-name DT property support

2025-03-27 Thread Arnaud Pouliquen
Add flexibility by supporting the optional "firmware-name" property. This allows specifying in the device tree the firmware that needs to be loaded on boot, if the "st,auto-boot" DT property is set. Arnaud Pouliquen (2): dt-bindings: remoteproc: stm32-rproc: Add fi

Re: [PATCH v16 0/6] Introduction of a remoteproc tee to load signed firmware

2025-04-14 Thread Arnaud POULIQUEN
Hello Bjorn, Gentle reminder. For your information, I proposed to Mathieu that he wait for your first review, as this revision is intended to address your comments on revision 15." Thanks, Arnaud On 3/25/25 10:58, Arnaud Pouliquen wrote: > Main updates from version V15[1]: > -

Re: [PATCH v2 1/4] of: reserved_mem: Add functions to parse "memory-region"

2025-04-28 Thread Arnaud POULIQUEN
Hello Rob, On 4/23/25 21:42, Rob Herring (Arm) wrote: > Drivers with "memory-region" properties currently have to do their own > parsing of "memory-region" properties. The result is all the drivers > have similar patterns of a call to parse "memory-region" and then get > the region's address and s

Re: [PATCH v2 0/4] of: Common "memory-region" parsing

2025-04-28 Thread Arnaud POULIQUEN
x_r5_remoteproc.c | 51 > include/linux/of_reserved_mem.h | 26 ++ > lib/devres.c | 1 + > 18 files changed, 339 insertions(+), 369 deletions(-) > --- > base-commit: 0af2f6be1b4281385b618cb86ad946eded089ac8 > change-id: 20250423-dt-memory-region-v2-a2b15caacc63 > Testing of the series on the STM32MP15 platform has passed. just one minor comment in patch 1/4. Acked-by: Arnaud Pouliquen Thanks, Arnaud > Best regards,

Re: [PATCH v15 3/8] remoteproc: Introduce load_fw and release_fw optional operation

2025-03-05 Thread Arnaud POULIQUEN
On 3/4/25 16:23, Bjorn Andersson wrote: > On Wed, Feb 12, 2025 at 02:48:30PM +0100, Arnaud POULIQUEN wrote: >> >> >> On 2/12/25 04:54, Bjorn Andersson wrote: >>> On Tue, Dec 10, 2024 at 11:33:31AM +0100, Arnaud POULIQUEN wrote: >>>> >>>> &

Re: [PATCH v15 2/8] remoteproc: Add TEE support

2025-03-05 Thread Arnaud POULIQUEN
On 3/4/25 16:58, Bjorn Andersson wrote: > On Wed, Feb 12, 2025 at 02:42:28PM +0100, Arnaud POULIQUEN wrote: >> Hello, >> >> On 2/12/25 04:18, Bjorn Andersson wrote: >>> On Tue, Dec 10, 2024 at 09:57:40AM +0100, Arnaud POULIQUEN wrote: >>>> Hell

[RESEND PATCH v16 2/6] remoteproc: Add TEE support

2025-06-03 Thread Arnaud Pouliquen
to request the TEE application to perform actions to return to the initial state on stop or on error during the boot sequence. Signed-off-by: Arnaud Pouliquen --- Updates vs previous version: - Come back to v13 managing a load in rproc_tee_parse_fw(). - Replace IS_REACHABLE wit

[RESEND PATCH v16 6/6] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2025-06-03 Thread Arnaud Pouliquen
age format defined by the TEE. Signed-off-by: Arnaud Pouliquen --- updates vs previous version - rename structures, variables and function from tee_rproc_xxx to rproc_tee_xxx - rework code to take into account rproc_tee_register and rproc_tee_unregister APIs update. - optimize code around dev

[RESEND PATCH v16 1/6] remoteproc: core: Introduce rproc_pa_to_va helper

2025-06-03 Thread Arnaud Pouliquen
When a resource table is loaded by an external entity such as U-boot or OP-TEE, we do not necessarily get the device address(da) but the physical address(pa). This helper performs similar translation than the rproc_da_to_va() but based on a physical address. Signed-off-by: Arnaud Pouliquen

[RESEND PATCH v16 3/6] remoteproc: Introduce release_fw optional operation

2025-06-03 Thread Arnaud Pouliquen
something can go wrong before the start of the remote processor(resource handling, carveout allocation, ...). Signed-off-by: Arnaud Pouliquen --- Updates vs previous version: - remove the rproc:load_fw() ops introduced in previous version - remove duplicate call of rproc_release_fw in rproc_fw_boot and

[RESEND PATCH v16 4/6] dt-bindings: remoteproc: Add compatibility for TEE support

2025-06-03 Thread Arnaud Pouliquen
o specify the remote processor. Signed-off-by: Arnaud Pouliquen Reviewed-by: Rob Herring (Arm) --- .../bindings/remoteproc/st,stm32-rproc.yaml | 58 --- 1 file changed, 50 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.ya

[RESEND PATCH v16 5/6] remoteproc: stm32: Create sub-functions to request shutdown and release

2025-06-03 Thread Arnaud Pouliquen
To prepare for the support of TEE remoteproc, create sub-functions that can be used in both cases, with and without remoteproc TEE support. Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/stm32_rproc.c | 82 +++- 1 file changed, 49 insertions(+), 33 deletions

[RESEND PATCH v16 0/6] Introduction of a remoteproc tee to load signed firmware

2025-06-03 Thread Arnaud Pouliquen
t 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): remoteproc: core: Introduce rproc_pa_to_va helper remoteproc: Add TEE support remoteproc: Introduce release_fw opt

Re: [PATCH v4 0/3] rpmsg: Introduce RPMSG_CREATE_EPT_FD_IOCTL uAPI

2025-06-18 Thread Arnaud POULIQUEN
Hello Dawei, Please find a few comments below. It is not clear to me which parts of your implementation are mandatory and which are optional "nice-to-have" optimizations. Based on (potentially erroneous) hypothesis, you will find a suggestion for an alternative to the anonymous inode approach,

[PATCH v18 3/6] remoteproc: Introduce release_fw optional operation

2025-06-16 Thread Arnaud Pouliquen
something can go wrong before the start of the remote processor(resource handling, carveout allocation, ...). Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/remoteproc_core.c | 6 ++ drivers/remoteproc/remoteproc_internal.h | 6 ++ include/linux/remoteproc.h | 3

[PATCH v18 0/6] Introduction of a remoteproc tee to load signed firmware

2025-06-16 Thread Arnaud Pouliquen
ed between the presentation and the integration in OP-TEE). https://resources.linaro.org/en/resource/6c5bGvZwUAjX56fvxthxds Arnaud Pouliquen (6): remoteproc: core: Introduce rproc_pa_to_va helper remoteproc: Add TEE support remoteproc: Introduce release_fw optional operation dt-bindings:

[PATCH v18 2/6] remoteproc: Add TEE support

2025-06-16 Thread Arnaud Pouliquen
request the TEE application to perform actions to return to the initial state on stop or on error during the boot sequence. Signed-off-by: Arnaud Pouliquen --- Updates vs previous version: Fix warning: EXPORT_SYMBOL() is used, but #include is missing --- drivers/remoteproc/Kconfig

[PATCH v18 1/6] remoteproc: core: Introduce rproc_pa_to_va helper

2025-06-16 Thread Arnaud Pouliquen
When a resource table is loaded by an external entity such as U-boot or OP-TEE, we do not necessarily get the device address(da) but the physical address(pa). This helper performs similar translation than the rproc_da_to_va() but based on a physical address. Signed-off-by: Arnaud Pouliquen

[PATCH v18 5/6] remoteproc: stm32: Create sub-functions to request shutdown and release

2025-06-16 Thread Arnaud Pouliquen
To prepare for the support of TEE remoteproc, create sub-functions that can be used in both cases, with and without remoteproc TEE support. Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/stm32_rproc.c | 82 +++- 1 file changed, 49 insertions(+), 33 deletions

[PATCH v18 4/6] dt-bindings: remoteproc: Add compatibility for TEE support

2025-06-16 Thread Arnaud Pouliquen
o specify the remote processor. Signed-off-by: Arnaud Pouliquen Reviewed-by: Rob Herring (Arm) --- .../bindings/remoteproc/st,stm32-rproc.yaml | 58 --- 1 file changed, 50 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.ya

[PATCH v18 6/6] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2025-06-16 Thread Arnaud Pouliquen
age format defined by the TEE. Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/stm32_rproc.c | 57 ++-- 1 file changed, 54 insertions(+), 3 deletions(-) diff --git a/drivers/remoteproc/stm32_rproc.c b/drivers/remoteproc/stm32_rproc.c index db82d4308376..a3613c337

Re: [PATCH v4 0/3] rpmsg: Introduce RPMSG_CREATE_EPT_FD_IOCTL uAPI

2025-06-20 Thread Arnaud POULIQUEN
On 6/19/25 16:43, Dawei Li wrote: > Hi Arnaud, > Thanks for review. > > On Wed, Jun 18, 2025 at 03:07:36PM +0200, Arnaud POULIQUEN wrote: >> Hello Dawei, >> >> >> Please find a few comments below. It is not clear to me which parts of your >> implement

[PATCH v19 3/6] remoteproc: Introduce optional release_fw operation

2025-06-25 Thread Arnaud Pouliquen
, multiple failure scenarios may occur prior to remote processor startup, including issues with resource handling and carveout allocation. Signed-off-by: Arnaud Pouliquen --- Updates from version 18: - Rewrite rproc_ops::release_fw documentation - Improve commit message Updates from version 16

[PATCH v19 2/6] remoteproc: Add TEE support

2025-06-25 Thread Arnaud Pouliquen
request the TEE application to perform actions to return to the initial state on stop or on error during the boot sequence. Signed-off-by: Arnaud Pouliquen --- Updates vs version [18]: - rework/fix function headers - use memremap instead of ioremap for the resource table. - realign comme

[PATCH v19 5/6] remoteproc: stm32: Create sub-functions to request shutdown and release

2025-06-25 Thread Arnaud Pouliquen
To prepare for the support of TEE remoteproc, create sub-functions that can be used in both cases, with and without remoteproc TEE support. Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/stm32_rproc.c | 82 +++- 1 file changed, 49 insertions(+), 33 deletions

[PATCH v19 0/6] Introduction of a remoteproc tee to load signed firmware

2025-06-25 Thread Arnaud Pouliquen
ed between the presentation and the integration in OP-TEE). https://resources.linaro.org/en/resource/6c5bGvZwUAjX56fvxthxds Arnaud Pouliquen (6): remoteproc: core: Introduce rproc_pa_to_va helper remoteproc: Add TEE support remoteproc: Introduce optional release_fw operation dt-bindings:

[PATCH v19 4/6] dt-bindings: remoteproc: Add compatibility for TEE support

2025-06-25 Thread Arnaud Pouliquen
o specify the remote processor. Signed-off-by: Arnaud Pouliquen Reviewed-by: Rob Herring (Arm) --- .../bindings/remoteproc/st,stm32-rproc.yaml | 58 --- 1 file changed, 50 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.ya

[PATCH v19 6/6] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2025-06-25 Thread Arnaud Pouliquen
age format defined by the TEE. Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/stm32_rproc.c | 57 ++-- 1 file changed, 54 insertions(+), 3 deletions(-) diff --git a/drivers/remoteproc/stm32_rproc.c b/drivers/remoteproc/stm32_rproc.c index db82d4308376..a3613c337

[PATCH v19 1/6] remoteproc: core: Introduce rproc_pa_to_va helper

2025-06-25 Thread Arnaud Pouliquen
When a resource table is loaded by an external entity such as U-boot or OP-TEE, we do not necessarily get the device address(da) but the physical address(pa). This helper performs similar translation than the rproc_da_to_va() but based on a physical address. Signed-off-by: Arnaud Pouliquen

Re: [PATCH v18 2/6] remoteproc: Add TEE support

2025-06-17 Thread Arnaud POULIQUEN
On 6/17/25 06:34, Bjorn Andersson wrote: > On Mon, Jun 16, 2025 at 09:55:26AM +0200, Arnaud Pouliquen wrote: >> Add a remoteproc TEE (Trusted Execution Environment) driver that will be >> probed by the TEE bus. If the associated Trusted application is supported >> on the sec

Re: [PATCH v18 3/6] remoteproc: Introduce release_fw optional operation

2025-06-17 Thread Arnaud POULIQUEN
Hello Bjorn, On 6/17/25 06:44, Bjorn Andersson wrote: > On Mon, Jun 16, 2025 at 09:55:27AM +0200, Arnaud Pouliquen wrote: >> The release_fw operation is the inverse operation of the load, responsible >> for releasing the remote processor resources configured from the loading >&

Re: [RESEND PATCH v16 0/6] Introduction of a remoteproc tee to load signed firmware

2025-06-09 Thread Arnaud POULIQUEN
Hello Mathieu, On 6/9/25 17:23, Mathieu Poirier wrote: > On Tue, Jun 03, 2025 at 12:08:02PM +0200, Arnaud Pouliquen wrote: >> Hello Bjorn and Mathieu, >> >> I am resending this series after waiting for over two months for Bjorn's >> feedback, despite a prior

[PATCH v17 3/6] remoteproc: Introduce release_fw optional operation

2025-06-13 Thread Arnaud Pouliquen
something can go wrong before the start of the remote processor(resource handling, carveout allocation, ...). Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/remoteproc_core.c | 6 ++ drivers/remoteproc/remoteproc_internal.h | 6 ++ include/linux/remoteproc.h | 3

[PATCH v17 2/6] remoteproc: Add TEE support

2025-06-13 Thread Arnaud Pouliquen
request the TEE application to perform actions to return to the initial state on stop or on error during the boot sequence. Signed-off-by: Arnaud Pouliquen --- Updates vs previous version: - fix typo: double spaces --- drivers/remoteproc/Kconfig | 10 + drivers/remoteproc/Makefil

[PATCH v17 1/6] remoteproc: core: Introduce rproc_pa_to_va helper

2025-06-13 Thread Arnaud Pouliquen
When a resource table is loaded by an external entity such as U-boot or OP-TEE, we do not necessarily get the device address(da) but the physical address(pa). This helper performs similar translation than the rproc_da_to_va() but based on a physical address. Signed-off-by: Arnaud Pouliquen

[PATCH v17 5/6] remoteproc: stm32: Create sub-functions to request shutdown and release

2025-06-13 Thread Arnaud Pouliquen
To prepare for the support of TEE remoteproc, create sub-functions that can be used in both cases, with and without remoteproc TEE support. Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/stm32_rproc.c | 82 +++- 1 file changed, 49 insertions(+), 33 deletions

[PATCH v17 0/6] Introduction of a remoteproc tee to load signed firmware

2025-06-13 Thread Arnaud Pouliquen
as evolved between the presentation and the integration in OP-TEE). https://resources.linaro.org/en/resource/6c5bGvZwUAjX56fvxthxds Arnaud Pouliquen (6): remoteproc: core: Introduce rproc_pa_to_va helper remoteproc: Add TEE support remoteproc: Introduce release_fw optional operation d

[PATCH v17 6/6] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2025-06-13 Thread Arnaud Pouliquen
age format defined by the TEE. Signed-off-by: Arnaud Pouliquen --- updates vs previous version - rebase on V6.16-rc1 --- drivers/remoteproc/stm32_rproc.c | 57 ++-- 1 file changed, 54 insertions(+), 3 deletions(-) diff --git a/drivers/remoteproc/stm32_rproc.c

[PATCH v17 4/6] dt-bindings: remoteproc: Add compatibility for TEE support

2025-06-13 Thread Arnaud Pouliquen
o specify the remote processor. Signed-off-by: Arnaud Pouliquen Reviewed-by: Rob Herring (Arm) --- .../bindings/remoteproc/st,stm32-rproc.yaml | 58 --- 1 file changed, 50 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.ya

Re: [PATCH v4 0/3] rpmsg: Introduce RPMSG_CREATE_EPT_FD_IOCTL uAPI

2025-06-30 Thread Arnaud POULIQUEN
Hello Dawei, Sorry for the late answer. On 6/22/25 06:12, Dawei Li wrote: > Hi Arnaud, > > Thanks for the reply. > > On Fri, Jun 20, 2025 at 09:52:03AM +0200, Arnaud POULIQUEN wrote: >> >> >> On 6/19/25 16:43, Dawei Li wrote: >>> Hi Arnaud, >>&

Re: [PATCH v4 0/3] rpmsg: Introduce RPMSG_CREATE_EPT_FD_IOCTL uAPI

2025-07-02 Thread Arnaud POULIQUEN
hello Dawei On 7/1/25 16:16, Dawei Li wrote: > Hi Arnaud, > > Thanks for the reply. > > On Mon, Jun 30, 2025 at 09:54:40AM +0200, Arnaud POULIQUEN wrote: >> Hello Dawei, >> >> Sorry for the late answer. >> >> On 6/22/25 06:12, Dawei Li wrote

Re: [PATCH v19 2/6] remoteproc: Add TEE support

2025-08-01 Thread Arnaud POULIQUEN
Hello Harshal, On 7/31/25 12:25, Harshal Dev wrote: > Hello Arnaud, > > On 6/25/2025 3:10 PM, Arnaud Pouliquen wrote: >> Add a remoteproc TEE (Trusted Execution Environment) driver that will be >> probed by the TEE bus. If the associated Trusted application is supported

<    2   3   4   5   6   7