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

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 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, >>&

[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

[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 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 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 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 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 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

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

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,

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 >&

[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

[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 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 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 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 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 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 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

[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 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 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 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 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

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

[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

[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 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 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 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 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 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

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 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 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]: > -

[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 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 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

[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 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 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

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

2025-03-25 Thread Arnaud POULIQUEN
On 12/6/24 23:07, Bjorn Andersson wrote: > On Thu, Nov 28, 2024 at 09:42:09AM GMT, 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 se

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

2025-03-25 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

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

2025-03-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 v16 3/6] remoteproc: Introduce release_fw optional operation

2025-03-25 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

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

2025-03-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 v16 0/6] Introduction of a remoteproc tee to load signed firmware

2025-03-25 Thread Arnaud Pouliquen
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: remoteproc: Add compatibility for TEE support

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

2025-03-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 b1bda314ca85..829dfd440

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

2025-03-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: [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 10:21, Arnaud POULIQUEN wrote: > > > 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: >>

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: [Linux-stm32] [PATCH 3/3] remoteproc: Use of_reserved_mem_region_* functions for "memory-region"

2025-03-19 Thread Arnaud POULIQUEN
Hello Rob, On 3/18/25 00:24, Rob Herring (Arm) wrote: > Use the newly added of_reserved_mem_region_to_resource() and > of_reserved_mem_region_count() functions to handle "memory-region" > properties. > > The error handling is a bit different in some cases. Often > "memory-region" is optional, so

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

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

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-02-12 Thread Arnaud POULIQUEN
Hello, On 2/12/25 04:18, Bjorn Andersson wrote: > On Tue, Dec 10, 2024 at 09:57:40AM +0100, Arnaud POULIQUEN wrote: >> Hello Bjorn, >> >> On 12/6/24 23:07, Bjorn Andersson wrote: >>> On Thu, Nov 28, 2024 at 09:42:09AM GMT, Arnaud Pouliquen wrote: >>>&g

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

2025-02-12 Thread Arnaud POULIQUEN
On 2/12/25 04:54, Bjorn Andersson wrote: > On Tue, Dec 10, 2024 at 11:33:31AM +0100, Arnaud POULIQUEN wrote: >> >> >> On 12/10/24 00:14, Bjorn Andersson wrote: >>> On Thu, Nov 28, 2024 at 09:42:10AM GMT, Arnaud Pouliquen wrote: >>>> This patch updates t

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

2025-01-10 Thread Arnaud POULIQUEN
Hello Bjorn, Gentle reminder. I would need that we clarify pending points with this commit and [3/8] to move in the right direction for the next revision. Thanks in advance, Arnaud On 12/10/24 09:57, Arnaud POULIQUEN wrote: > Hello Bjorn, > > On 12/6/24 23:07, Bjorn Andersson wrote:

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

2024-12-10 Thread Arnaud POULIQUEN
On 12/10/24 00:14, Bjorn Andersson wrote: > On Thu, Nov 28, 2024 at 09:42:10AM GMT, Arnaud Pouliquen wrote: >> This patch updates the rproc_ops structures to include two new optional >> operations. >> >> - The load_fw() op is responsible for loading the remote pr

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

2024-12-10 Thread Arnaud POULIQUEN
Hello Bjorn, On 12/6/24 23:07, Bjorn Andersson wrote: > On Thu, Nov 28, 2024 at 09:42:09AM GMT, 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 supporte

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

2024-12-06 Thread Arnaud POULIQUEN
On 12/6/24 18:07, Mathieu Poirier wrote: > On Fri, 6 Dec 2024 at 10:05, Mathieu Poirier > wrote: >> >> On Thu, 5 Dec 2024 at 11:22, Arnaud POULIQUEN >> wrote: >>> >>> Hello Mathieu, >>> >>> Thanks for the review! >>> I

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

2024-12-05 Thread Arnaud POULIQUEN
Hello Mathieu, Thanks for the review! I just need to clarify a point below before preparing the next revision. On 12/3/24 18:22, Mathieu Poirier wrote: > On Thu, Nov 28, 2024 at 09:42:10AM +0100, Arnaud Pouliquen wrote: >> This patch updates the rproc_ops structures to include two new

[PATCH v15 7/8] remoteproc: stm32: Create sub-functions to request shutdown and release

2024-11-28 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 v15 0/8] Introduction of a remoteproc tee to load signed firmware

2024-11-28 Thread Arnaud Pouliquen
on and the integration in OP-TEE). https://resources.linaro.org/en/resource/6c5bGvZwUAjX56fvxthxds Arnaud Pouliquen (8): remoteproc: core: Introduce rproc_pa_to_va helper remoteproc: Add TEE support remoteproc: Introduce load_fw and release_fw optional operation remoteproc: Rename load() op

[PATCH v15 4/8] remoteproc: Rename load() operation to load_segments() in rproc_ops struct

2024-11-28 Thread Arnaud Pouliquen
: Mathieu Poirier Signed-off-by: Arnaud Pouliquen --- Update vs version V14: Fix: Rename missing load() to load_segments() in drivers/remoteproc/pru_rproc.c. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202411281332.ra70njaw-...@intel.com/ --- drivers/remoteproc

[PATCH v15 6/8] dt-bindings: remoteproc: Add compatibility for TEE support

2024-11-28 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 v15 8/8] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2024-11-28 Thread Arnaud Pouliquen
age format defined by the TEE. Signed-off-by: Arnaud Pouliquen --- updates vs version V13: - register load_fw() ops instead of load() to call rproc_tee_load_fw() Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/stm32_rproc.c | 57 ++-- 1 file changed, 54 insert

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

2024-11-28 Thread Arnaud Pouliquen
application. Signed-off-by: Arnaud Pouliquen --- Updates vs version v13: - define REMOTEPROC_TEE as bool instead of tristate, - remove the load of the firmware in rproc_tee_parse_fw as we will ensure that the firmware is loaded using the load_fw() operation. --- drivers/remoteproc/Kconfig

[PATCH v15 5/8] remoteproc: Make load_segments and load_fw ops exclusive and optional

2024-11-28 Thread Arnaud Pouliquen
The two methods to load the firmware to memory should be exclusive. - make load_segments optional returning 0 if not set in rproc_load_segments(), - ensure that load_segments() and load_fw() are not both set, - do not set default rproc::ops fields if load_fw() is set. Signed-off-by: Arnaud

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

2024-11-28 Thread Arnaud Pouliquen
start of the remote processor. - after stopping the remote processor. Signed-off-by: Arnaud Pouliquen --- Update vs version V13: - Rework the commit to introduce load_fw() op. - remove rproc_release_fw() call from rproc_start() as called in rproc_boot() and rproc_boot_recovery() in case of

[PATCH v15 1/8] remoteproc: core: Introduce rproc_pa_to_va helper

2024-11-28 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 v14 0/8] Introduction of a remoteproc tee to load signed firmware

2024-11-26 Thread Arnaud Pouliquen
ntation 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 (8): remoteproc: core: Introduce rproc_pa_to_va helper remoteproc: Add T

[PATCH v14 4/8] remoteproc: Rename load() operation to load_segments() in rproc_ops struct

2024-11-26 Thread Arnaud Pouliquen
: Mathieu Poirier Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/imx_dsp_rproc.c | 2 +- drivers/remoteproc/imx_rproc.c | 2 +- drivers/remoteproc/meson_mx_ao_arc.c | 2 +- drivers/remoteproc/mtk_scp.c | 2 +- drivers/remoteproc/qcom_q6v5_adsp.c | 2

[PATCH v14 6/8] dt-bindings: remoteproc: Add compatibility for TEE support

2024-11-26 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 v14 8/8] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2024-11-26 Thread Arnaud Pouliquen
age format defined by the TEE. Signed-off-by: Arnaud Pouliquen --- updates vs previous version - register load_fw() ops instead of load() to call rproc_tee_load_fw() --- drivers/remoteproc/stm32_rproc.c | 57 ++-- 1 file changed, 54 insertions(+), 3 deletions(-) di

[PATCH v14 7/8] remoteproc: stm32: Create sub-functions to request shutdown and release

2024-11-26 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 v14 5/8] remoteproc: Make load_segments and load_fw ops exclusive and optional

2024-11-26 Thread Arnaud Pouliquen
The two methods to load the firmware to memory should be exclusive. - make load_segments optional returning 0 if not set in rproc_load_segments(), - ensure that load_segments() and load_fw() are not both set, - do not set default rproc::ops fields if load_fw() is set. Signed-off-by: Arnaud

[PATCH v14 2/8] remoteproc: Add TEE support

2024-11-26 Thread Arnaud Pouliquen
application. Signed-off-by: Arnaud Pouliquen --- Updates vs previous version: - define REMOTEPROC_TEE as bool instead of tristate, - remove the load of the firmware in rproc_tee_parse_fw as we will ensure that the firmware is loaded using the load_fw() operation. --- drivers/remoteproc/Kconfig

[PATCH v14 1/8] remoteproc: core: Introduce rproc_pa_to_va helper

2024-11-26 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 v14 3/8] remoteproc: Introduce load_fw and release_fw optional operation

2024-11-26 Thread Arnaud Pouliquen
start of the remote processor. - after stopping the remote processor. Signed-off-by: Arnaud Pouliquen --- Update vs previous revision: - Rework the commit to introduce load_fw() op. - remove rproc_release_fw() call from rproc_start() as called in rproc_boot() and rproc_boot_recovery() in case

[PATCH] remoteproc: core: Fix ida_free call while not allocated

2024-11-22 Thread Arnaud Pouliquen
obe [stm32_rproc] from platform_probe+0x5c/0xbc Calling ida_alloc earlier in rproc_alloc ensures that the rproc->index is properly set. Fixes: 08333b911f01 ("remoteproc: Directly use ida_alloc()/free()") Signed-off-by: Arnaud Pouliquen --- Note for backporting to previous kernel v

Re: [PATCH v13 4/7] remoteproc: Introduce release_fw optional operation

2024-11-20 Thread Arnaud POULIQUEN
On 11/20/24 17:04, Mathieu Poirier wrote: > On Tue, 19 Nov 2024 at 13:38, Mathieu Poirier > wrote: >> >> On Tue, 19 Nov 2024 at 11:14, Arnaud POULIQUEN >> wrote: >>> >>> Hello Mathieu, >>> >>> On 11/18/24 18:52, Mathieu Poirier

Re: [PATCH v13 4/7] remoteproc: Introduce release_fw optional operation

2024-11-20 Thread Arnaud POULIQUEN
On 11/19/24 21:38, Mathieu Poirier wrote: > On Tue, 19 Nov 2024 at 11:14, Arnaud POULIQUEN > wrote: >> >> Hello Mathieu, >> >> On 11/18/24 18:52, Mathieu Poirier wrote: >>> On Mon, Nov 04, 2024 at 02:35:12PM +0100, Arnaud Pouliquen wrote: >>>>

Re: [PATCH v13 4/7] remoteproc: Introduce release_fw optional operation

2024-11-19 Thread Arnaud POULIQUEN
Hello Mathieu, On 11/18/24 18:52, Mathieu Poirier wrote: > On Mon, Nov 04, 2024 at 02:35:12PM +0100, Arnaud Pouliquen wrote: >> This patch updates the rproc_ops struct to include an optional >> release_fw function. >> >> The release_fw ops is responsible for rel

Re: [PATCH v13 4/7] remoteproc: Introduce release_fw optional operation

2024-11-19 Thread Arnaud POULIQUEN
hello Mathieu, On 11/18/24 18:52, Mathieu Poirier wrote: > On Mon, Nov 04, 2024 at 02:35:12PM +0100, Arnaud Pouliquen wrote: >> This patch updates the rproc_ops struct to include an optional >> release_fw function. >> >> The release_fw ops is responsible for rel

Re: [PATCH v13 2/7] remoteproc: Add TEE support

2024-11-15 Thread Arnaud POULIQUEN
Hello Mathieu On 11/14/24 18:59, Mathieu Poirier wrote: > On Mon, Nov 04, 2024 at 02:35:10PM +0100, 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 sup

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

2024-11-04 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 v13 7/7] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2024-11-04 Thread Arnaud Pouliquen
age format defined by the TEE. Signed-off-by: Arnaud Pouliquen --- Updates from version V11: - 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

[PATCH v13 2/7] remoteproc: Add TEE support

2024-11-04 Thread Arnaud Pouliquen
application. Signed-off-by: Arnaud Pouliquen --- Updates from version V11: - rename structures, functions, and variables from "tee_rproc_xxx" to "rproc_tee_xxx", - update rproc_tee_register to return an error instead of "struct rproc_tee *" pointer, - update rpro

[PATCH v13 0/7] Introduction of a remoteproc tee to load signed firmware

2024-11-04 Thread Arnaud Pouliquen
, 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 (7): remoteproc: core: Introduce rproc_pa_to_va helper remote

[PATCH v13 3/7] remoteproc: core: Refactor resource table cleanup into rproc_release_fw

2024-11-04 Thread Arnaud Pouliquen
: Mathieu Poirier Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/remoteproc_core.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index ace11ea17097..7694817f25d4 100644 --- a

[PATCH v13 4/7] remoteproc: Introduce release_fw optional operation

2024-11-04 Thread Arnaud Pouliquen
start of the remote processor. - after stopping the remote processor. Signed-off-by: Arnaud Pouliquen --- Updates from version V11: - fix typo in @release_fw comment --- drivers/remoteproc/remoteproc_core.c | 5 + include/linux/remoteproc.h | 3 +++ 2 files changed, 8 insertions

[PATCH v13 5/7] dt-bindings: remoteproc: Add compatibility for TEE support

2024-11-04 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 v13 1/7] remoteproc: core: Introduce rproc_pa_to_va helper

2024-11-04 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 v12 0/7] Introduction of a remoteproc tee to load signed firmware

2024-10-25 Thread Arnaud Pouliquen
e 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 (7): remoteproc: core: Introduce rproc_pa_to_va helper remoteproc: Add TEE support remoteproc: core: Refactor resource

[PATCH v12 3/7] remoteproc: core: Refactor resource table cleanup into rproc_release_fw

2024-10-25 Thread Arnaud Pouliquen
: Mathieu Poirier Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/remoteproc_core.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index ace11ea17097..7694817f25d4 100644 --- a

  1   2   3   4   5   6   7   >