Re: [PATCH] IIO: ADC: stm32-dfsdm: avoid unused-variable warning

2018-01-11 Thread Arnaud Pouliquen
On 01/11/2018 03:27 PM, Robin Murphy wrote: > On 11/01/18 10:34, Arnd Bergmann wrote: >> Building with CONFIG_OF disabled produces a compiler warning: >> >> drivers/iio/adc/stm32-dfsdm-core.c: In function 'stm32_dfsdm_probe': >> drivers/iio/adc/stm32-dfsdm-core.c:245:22: error: unused variable >>

Re: [PATCH] ASoC: codecs: dmic: Use channel map for configs with a single mic

2018-01-05 Thread Arnaud Pouliquen
Hello Matthias, Please find comments in line On 01/04/2018 08:54 PM, Matthias Kaehlcke wrote: > + Brian & Dylan > > El Thu, Jan 04, 2018 at 11:48:48AM -0800 Matthias Kaehlcke ha dit: > >> The DMIC DAI driver specifies a number of 1 to 8 channels for each DAI. >> The actual number of mics can cu

Re: [RFC] rpmsg: virtio rpmsg: Add RPMsg char driver support

2018-01-05 Thread Arnaud Pouliquen
Hi Wendy, Few remarks on your patch. On 01/05/2018 12:18 AM, Wendy Liang wrote: > virtio rpmsg was not implemented to use RPMsg char driver. > Each virtio ns announcement will create a new RPMsg device which > is supposed to bound to a RPMsg driver. It doesn't support > dynamic endpoints with nam

Re: [PATCH] IIO: ADC: stm32-dfsdm: remove unused variable

2018-01-17 Thread Arnaud Pouliquen
Hi Arnd, On 01/17/2018 03:46 PM, Arnd Bergmann wrote: > A cleanup left one variable behind that is no longer needed and > can be removed, as shown by the gcc warning: > > drivers/iio/adc/stm32-dfsdm-core.c: In function 'stm32_dfsdm_probe': > drivers/iio/adc/stm32-dfsdm-core.c:245:29: error: unuse

Re: [PATCH] ASoC: codecs: dmic: Make number of channels configurable

2018-01-09 Thread Arnaud Pouliquen
Hello Mathias, Next time could you add patch version in your mail subject ( [PATCH vX]) easier to follow versions :-). otherwise, Acked-by: Arnaud Pouliquen Regards, Arnaud On 01/05/2018 09:39 PM, Matthias Kaehlcke wrote: > The DMIC DAI driver specifies a number of 1 to 8 channels for e

Re: [RFC] rpmsg: virtio rpmsg: Add RPMsg char driver support

2018-01-09 Thread Arnaud Pouliquen
On 01/05/2018 11:10 PM, Jiaying Liang wrote: > > >> -Original Message----- >> From: Arnaud Pouliquen [mailto:arnaud.pouliq...@st.com] >> Sent: Friday, January 05, 2018 6:48 AM >> To: Jiaying Liang ; o...@wizery.com; >> bjorn.anders...@linaro.org >

[PATCH] remoteproc: fix crashed parameter logic on stop call.

2018-04-10 Thread Arnaud Pouliquen
Fix rproc_add_subdev parameter name and inverse the crashed logic. Fixes: "remoteproc: Pass type of shutdown to subdev remove" Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/remoteproc_core.c | 4 ++-- include/linux/remoteproc.h | 2 +- 2 files changed, 3 insert

Re: [PATCH] rpmsg: core: add support to power domains for devices

2018-09-26 Thread Arnaud Pouliquen
Hi Suman, On 09/25/2018 09:02 PM, Suman Anna wrote: > Hi Arnaud, > >> On 09/25/2018 02:25 AM, Suman Anna wrote: >>> Hi Srinivas, >>> >>> On 06/15/2018 04:59 AM, Srinivas Kandagatla wrote: Some of the rpmsg devices need to switch on power domains to communicate with remote processor. Fo

Re: [PATCH V4 0/4] Add TIOCM Signals support for RPMSG char devices

2018-10-09 Thread Arnaud Pouliquen
hello Bjorn, On 10/08/2018 06:23 PM, Bjorn Andersson wrote: > On Mon 08 Oct 06:08 PDT 2018, Arnaud Pouliquen wrote: > >> Hi Arun, Bjorn, >> >> On 10/08/2018 08:38 AM, Arun Kumar Neelakantam wrote: >>> Glink transport support signals to exchange state notifica

Re: [alsa-devel] [PATCH] ASoC: core: Invoke pcm_new() for all DAI-link

2018-11-06 Thread Arnaud Pouliquen
Hello Rohit On 11/5/18 7:14 PM, Rohit Kumar wrote: > Hello Arnaud, > > > On 11/5/2018 4:43 PM, Arnaud Pouliquen wrote: >> Hello Rohit, >> >> On 11/2/18 1:06 PM, Rohit Kumar wrote: >>> On 11/2/2018 1:12 PM, Takashi Iwai wrote: >>>> On Thu,

Re: [PATCH V4 0/4] Add TIOCM Signals support for RPMSG char devices

2018-10-12 Thread Arnaud Pouliquen
On 10/09/2018 08:27 PM, Bjorn Andersson wrote: > On Tue 09 Oct 09:02 PDT 2018, Arnaud Pouliquen wrote: > >> hello Bjorn, >> >> On 10/08/2018 06:23 PM, Bjorn Andersson wrote: >>> On Mon 08 Oct 06:08 PDT 2018, Arnaud Pouliquen wrote: >>> >>>>

Re: [PATCH V4 0/4] Add TIOCM Signals support for RPMSG char devices

2018-10-08 Thread Arnaud Pouliquen
Hi Arun, Bjorn, On 10/08/2018 08:38 AM, Arun Kumar Neelakantam wrote: > Glink transport support signals to exchange state notification between > local and remote side clients. Adding support to send/receive the signal > command and notify the clients through callback and POLL notification. Please

Re: [alsa-devel] [PATCH] ASoC: core: Invoke pcm_new() for all DAI-link

2018-11-05 Thread Arnaud Pouliquen
Hello Rohit, On 11/2/18 1:06 PM, Rohit Kumar wrote: > > On 11/2/2018 1:12 PM, Takashi Iwai wrote: >> On Thu, 01 Nov 2018 13:38:49 +0100, >> Rohit kumar wrote: >>> Remove no_pcm check to invoke pcm_new() for backend dai-links >>> too. This fixes crash in hdmi codec driver during hdmi_codec_startup

Re: linux-4.20-rc1/sound/soc/stm/stm32_sai_sub.c:343: Faulty error check

2018-11-05 Thread Arnaud Pouliquen
Hello David, On 11/5/18 2:33 PM, David Binderman wrote: > Hello there, > > linux-4.20-rc1/sound/soc/stm/stm32_sai_sub.c:343]: (style) Checking if > unsigned variable 'div' is less than zero. > > Source code is > >     div = stm32_sai_get_clk_div(sai, parent_rate, rate); >     if (div <

Re: [PATCH V3] remoteproc: virtio: Fix wdg cannot recovery remote processor

2024-01-09 Thread Arnaud POULIQUEN
ate buffer again. > > Releasing reserved memory from rproc_virtio_dev_release(), instead of > rproc_virtio_remove(). > > Fixes: 1d7b61c06dc3 ("remoteproc: virtio: Create platform device for the > remoteproc_virtio") > Signed-off-by: Joakim Zhang LGTM Acked-by: A

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

2024-01-15 Thread Arnaud Pouliquen
://resources.linaro.org/en/resource/6c5bGvZwUAjX56fvxthxds Arnaud Pouliquen (4): remoteproc: Add TEE support dt-bindings: remoteproc: add compatibility for TEE support remoteproc: stm32: create sub-functions to request shutdown and release remoteproc: stm32: Add support of an OP-TEE TA to load the

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

2024-01-15 Thread Arnaud Pouliquen
age format defined by the TEE. Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/Kconfig | 3 +- drivers/remoteproc/stm32_rproc.c | 149 +-- 2 files changed, 146 insertions(+), 6 deletions(-) diff --git a/drivers/remoteproc/Kconfig b/drivers/remoteproc/Kco

[PATCH 2/4] dt-bindings: remoteproc: add compatibility for TEE support

2024-01-15 Thread Arnaud Pouliquen
tm32mp1-m4-tee to support signed remoteproc firmware. Based on DT properties, OP-TEE authenticates, loads, starts, and stops the firmware. - On Linux, when the compatibility is set, the Cortex-M resets should not be declared in the device tree. Signed-off-by: Arnaud Pouliquen --- ..

[PATCH 1/4] remoteproc: Add TEE support

2024-01-15 Thread Arnaud Pouliquen
From: Arnaud Pouliquen Add a remoteproc TEE (Trusted Execution Environment) device that will be probed by the TEE bus. If the associated Trusted application is supported on secure part this device offers a client interface to load a firmware in the secure part. This firmware could be

[PATCH 3/4] remoteproc: stm32: create sub-functions to request shutdown and release

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

Re: [PATCH 2/4] dt-bindings: remoteproc: add compatibility for TEE support

2024-01-16 Thread Arnaud POULIQUEN
On 1/16/24 20:21, Rob Herring wrote: > On Mon, Jan 15, 2024 at 02:52:47PM +0100, Arnaud Pouliquen wrote: >> The "st,stm32mp1-m4-tee" compatible is utilized in a system configuration >> where the Cortex-M4 firmware is loaded by the Trusted execution Environment >&g

[PATCH 0/2] remoteproc: stm32: Fix sparse warnings

2024-01-17 Thread Arnaud Pouliquen
Fix warnings reported by sparse using make option "C=1" Arnaud Pouliquen (2): remoteproc: stm32: Fix incorrect type in assignment for va remoteproc: stm32: Fix incorrect type assignment returned by stm32_rproc_get_loaded_rsc_tablef drivers/remoteproc/stm32_rproc.c | 6 +++-

[PATCH 1/2] remoteproc: stm32: Fix incorrect type in assignment for va

2024-01-17 Thread Arnaud Pouliquen
kernel.org/oe-kbuild-all/202312150052.hcinklqb-...@intel.com/ Fixes: 13140de09cc2 ("remoteproc: stm32: add an ST stm32_rproc driver") Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/stm32_rproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/remo

Re: [PATCH 0/2] remoteproc: stm32: Fix sparse warnings

2024-01-17 Thread Arnaud POULIQUEN
Hi, On 1/17/24 14:18, Arnaud Pouliquen wrote: > Fix warnings reported by sparse using make option "C=1" > > Arnaud Pouliquen (2): > remoteproc: stm32: Fix incorrect type in assignment for va > remoteproc: stm32: Fix incorrect ty

[PATCH 0/2] remoteproc: stm32: Fix sparse warnings

2024-01-17 Thread Arnaud Pouliquen
Fix warnings reported by sparse using make option "C=1" Arnaud Pouliquen (2): remoteproc: stm32: Fix incorrect type in assignment for va remoteproc: stm32: Fix incorrect type assignment returned by stm32_rproc_get_loaded_rsc_tablef drivers/remoteproc/stm32_rproc.c | 6 +++-

[PATCH 1/2] remoteproc: stm32: Fix incorrect type in assignment for va

2024-01-17 Thread Arnaud Pouliquen
kernel.org/oe-kbuild-all/202312150052.hcinklqb-...@intel.com/ Fixes: 13140de09cc2 ("remoteproc: stm32: add an ST stm32_rproc driver") Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/stm32_rproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/remo

[PATCH 2/2] remoteproc: stm32: Fix incorrect type assignment returned by stm32_rproc_get_loaded_rsc_tablef

2024-01-17 Thread Arnaud Pouliquen
nter, which are then managed by the remoteproc core as a pointer to a resource_table structure. Fixes: 8a471396d21c ("remoteproc: stm32: Move resource table setup to rproc_ops") Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/stm32_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH v2 0/4] Introduction of a remoteproc tee to load signed firmware

2024-01-18 Thread Arnaud Pouliquen
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 (4

[PATCH v2 1/4] remoteproc: Add TEE support

2024-01-18 Thread Arnaud Pouliquen
From: Arnaud Pouliquen Add a remoteproc TEE (Trusted Execution Environment) device that will be probed by the TEE bus. If the associated Trusted application is supported on secure part this device offers a client interface to load a firmware in the secure part. This firmware could be

[PATCH v2 2/4] dt-bindings: remoteproc: Add compatibility for TEE support

2024-01-18 Thread Arnaud Pouliquen
e with the st,stm32mp1-m4-tee to support signed remoteproc firmware. Based on DT properties, OP-TEE authenticates, loads, starts, and stops the firmware. - On Linux, when the compatibility is set, the Cortex-M resets should not be declared in the device tree. Signed-off-by: Arnaud Pouliquen

[PATCH v2 3/4] remoteproc: stm32: Create sub-functions to request shutdown and release

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

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

2024-01-18 Thread Arnaud Pouliquen
age format defined by the TEE. Signed-off-by: Arnaud Pouliquen --- V1 to V2 update: - remove the select "TEE_REMOTEPROC" in STM32_RPROC config as detected by the kernel test robot: WARNING: unmet direct dependencies detected for TEE_REMOTEPROC Depends on [n]: REMOTEPR

Re: [PATCH v2 1/4] remoteproc: Add TEE support

2024-01-26 Thread Arnaud POULIQUEN
Hi Mathieu, On 1/25/24 19:55, Mathieu Poirier wrote: > Hi Arnaud, > > On Thu, Jan 18, 2024 at 11:04:30AM +0100, Arnaud Pouliquen wrote: >> From: Arnaud Pouliquen >> >> Add a remoteproc TEE (Trusted Execution Environment) device > > Device or driver? Seems to b

Re: [PATCH v2 2/4] dt-bindings: remoteproc: Add compatibility for TEE support

2024-01-26 Thread Arnaud POULIQUEN
Hello Krzysztof, On 1/26/24 12:03, Krzysztof Kozlowski wrote: > On 18/01/2024 11:04, Arnaud Pouliquen wrote: >> The "st,stm32mp1-m4-tee" compatible is utilized in a system configuration >> where the Cortex-M4 firmware is loaded by the Trusted execution Environment >&g

Re: [PATCH v2 1/4] remoteproc: Add TEE support

2024-01-30 Thread Arnaud POULIQUEN
On 1/29/24 19:55, Mathieu Poirier wrote: > On Thu, Jan 18, 2024 at 11:04:30AM +0100, Arnaud Pouliquen wrote: >> From: Arnaud Pouliquen >> >> Add a remoteproc TEE (Trusted Execution Environment) device >> that will be probed by the TEE bus. If the associated Trusted

Re: [PATCH v2 4/4] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2024-01-30 Thread Arnaud POULIQUEN
On 1/26/24 18:11, Mathieu Poirier wrote: > On Thu, Jan 18, 2024 at 11:04:33AM +0100, Arnaud Pouliquen wrote: >> The new TEE remoteproc device is used to manage remote firmware in a >> secure, trusted context. The 'st,stm32mp1-m4-tee' compatibility is >> introduced

Re: [PATCH v2 4/4] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2024-02-01 Thread Arnaud POULIQUEN
hello Mathieu, On 1/31/24 19:52, Mathieu Poirier wrote: > On Tue, Jan 30, 2024 at 10:13:48AM +0100, Arnaud POULIQUEN wrote: >> >> >> On 1/26/24 18:11, Mathieu Poirier wrote: >>> On Thu, Jan 18, 2024 at 11:04:33AM +0100, Arnaud Pouliquen wrote: >>>> The n

Re: [PATCH v2 4/4] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2024-02-01 Thread Arnaud POULIQUEN
On 2/1/24 17:02, Mathieu Poirier wrote: > On Thu, Feb 01, 2024 at 04:06:37PM +0100, Arnaud POULIQUEN wrote: >> hello Mathieu, >> >> On 1/31/24 19:52, Mathieu Poirier wrote: >>> On Tue, Jan 30, 2024 at 10:13:48AM +0100, Arnaud POULIQUEN wrote: >>>> &

Re: [PATCH v2 4/4] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2024-02-05 Thread Arnaud POULIQUEN
On 2/2/24 20:53, Mathieu Poirier wrote: > On Thu, Feb 01, 2024 at 07:33:35PM +0100, Arnaud POULIQUEN wrote: >> >> >> On 2/1/24 17:02, Mathieu Poirier wrote: >>> On Thu, Feb 01, 2024 at 04:06:37PM +0100, Arnaud POULIQUEN wrote: >>>> hello Mathieu, &

Re: [PATCH v2 2/4] dt-bindings: remoteproc: Add compatibility for TEE support

2024-02-13 Thread Arnaud POULIQUEN
Hello Rob, On 1/30/24 18:51, Rob Herring wrote: > On Thu, Jan 18, 2024 at 11:04:31AM +0100, Arnaud Pouliquen wrote: >> The "st,stm32mp1-m4-tee" compatible is utilized in a system configuration >> where the Cortex-M4 firmware is loaded by the Trusted execution Environment

Re: [Linux-stm32] [PATCH v2 4/4] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2024-02-13 Thread Arnaud POULIQUEN
Hello Mathieu, On 2/5/24 10:13, Arnaud POULIQUEN wrote: > > > On 2/2/24 20:53, Mathieu Poirier wrote: >> On Thu, Feb 01, 2024 at 07:33:35PM +0100, Arnaud POULIQUEN wrote: >>> >>> >>> On 2/1/24 17:02, Mathieu Poirier wrote: >>>> On Thu, Fe

[PATCH v3 3/7] remoteproc: core: Add check on cached_table pointer

2024-02-14 Thread Arnaud Pouliquen
ion on stop and re-apply the configuration on the re-start. Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/remoteproc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index 283ca0

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

2024-02-14 Thread Arnaud Pouliquen
e with the st,stm32mp1-m4-tee to support signed remoteproc firmware. Based on DT properties, OP-TEE authenticates, loads, starts, and stops the firmware. - On Linux, when the compatibility is set, the Cortex-M resets should not be declared in the device tree. Signed-off-by: Arnaud Pouliquen

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

2024-02-14 Thread Arnaud Pouliquen
tation 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: Add TEE support remoteproc: Extract the firmware load

[PATCH v3 1/7] remoteproc: Add TEE support

2024-02-14 Thread Arnaud Pouliquen
From: Arnaud Pouliquen Add a remoteproc TEE (Trusted Execution Environment) driver that will be probed by the TEE bus. If the associated Trusted application is supported on secure part this device offers a client interface to load a firmware in the secure part. This firmware could be

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

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

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

2024-02-14 Thread Arnaud Pouliquen
age format defined by the TEE. A new "to_attach" field is introduced to differentiate the use cases "firmware loaded by the boot stage" and "firmware loaded by the TEE". Signed-off-by: Arnaud Pouliquen --- V2 to V3 update: - remove stm32_rproc_tee_elf_

[PATCH v3 4/7] remoteproc: core: Implement the support of an alternative boot

2024-02-14 Thread Arnaud Pouliquen
Implement a new method to load a firmware and start the remote processor. In this method the firmware is loaded first and then the loaded resource table is obtained. Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/remoteproc_core.c | 86 +++- include/linux

[PATCH v3 2/7] remoteproc: Extract the firmware load from the start

2024-02-14 Thread Arnaud Pouliquen
segments authenticated after being copied to the destination memory). Removing rproc_load_segments will allow it to be called earlier in the boot sequence. Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/remoteproc_core.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions

Re: [PATCH v3 1/7] remoteproc: Add TEE support

2024-02-21 Thread Arnaud POULIQUEN
Hi Mathieu, On 2/20/24 19:58, Mathieu Poirier wrote: > Good morning, > > On Wed, Feb 14, 2024 at 06:21:21PM +0100, Arnaud Pouliquen wrote: >> From: Arnaud Pouliquen >> >> Add a remoteproc TEE (Trusted Execution Environment) driver >> that will be probed by the T

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

2024-02-22 Thread Arnaud POULIQUEN
Hello Naman, On 2/22/24 06:43, Naman Jain wrote: > On 2/14/2024 10:51 PM, Arnaud Pouliquen wrote: >> Updates from the previous version [1]: >> >> This version proposes another approach based on an alternate load and boot >> of the coprocessor. Therefore, t

Re: [PATCH v3 7/7] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2024-02-23 Thread Arnaud POULIQUEN
Hello Mathieu, On 2/22/24 20:02, Mathieu Poirier wrote: > Hi, > > On Wed, Feb 14, 2024 at 06:21:27PM +0100, Arnaud Pouliquen wrote: >> The new TEE remoteproc device is used to manage remote firmware in a >> secure, trusted context. The 'st,stm32mp1-m4-tee' co

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

2024-02-23 Thread Arnaud POULIQUEN
On 2/22/24 10:55, Naman Jain wrote: > On 2/22/2024 2:17 PM, Arnaud POULIQUEN wrote: >> Hello Naman, >> >> On 2/22/24 06:43, Naman Jain wrote: >>> On 2/14/2024 10:51 PM, Arnaud Pouliquen wrote: >>>> Updates from the previous version [1]: >>>>

Re: [PATCH v3 1/7] remoteproc: Add TEE support

2024-02-28 Thread Arnaud POULIQUEN
Hello Mathieu, On 2/23/24 19:27, Mathieu Poirier wrote: > On Wed, Feb 14, 2024 at 06:21:21PM +0100, Arnaud Pouliquen wrote: >> From: Arnaud Pouliquen >> >> Add a remoteproc TEE (Trusted Execution Environment) driver >> that will be probed by the TEE bus. If the associ

Re: [PATCH v3 7/7] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2024-02-29 Thread Arnaud POULIQUEN
On 2/23/24 19:37, Mathieu Poirier wrote: > On Fri, Feb 23, 2024 at 02:54:13PM +0100, Arnaud POULIQUEN wrote: >> Hello Mathieu, >> >> On 2/22/24 20:02, Mathieu Poirier wrote: >>> Hi, >>> >>> On Wed, Feb 14, 2024 at 06:21:27PM +0100, Arnaud Pouliq

Re: [PATCH v3 1/7] remoteproc: Add TEE support

2024-02-29 Thread Arnaud POULIQUEN
Hello Mathieu, On 2/29/24 17:19, Mathieu Poirier wrote: > Good morning, > > On Wed, Feb 28, 2024 at 09:20:28AM +0100, Arnaud POULIQUEN wrote: >> Hello Mathieu, >> >> >> On 2/23/24 19:27, Mathieu Poirier wrote: >>> On Wed, Feb 14, 2024 at 06:21:21P

[PATCH v4 0/4] Introduction of a remoteproc tee to load signed firmware

2024-03-08 Thread Arnaud Pouliquen
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 (4): remoteproc: Add TEE support dt-bindings

[PATCH v4 3/4] remoteproc: stm32: Create sub-functions to request shutdown and release

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

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

2024-03-08 Thread Arnaud Pouliquen
age format defined by the TEE. Signed-off-by: Arnaud Pouliquen --- Updates from V3: - remove support of the attach use case. Will be addressed in a separate thread, - add st_rproc_tee_ops::parse_fw ops, - inverse call of devm_rproc_alloc()and tee_rproc_register() to manage cross reference b

[PATCH v4 2/4] dt-bindings: remoteproc: Add compatibility for TEE support

2024-03-08 Thread Arnaud Pouliquen
e with the st,stm32mp1-m4-tee to support signed remoteproc firmware. Based on DT properties, OP-TEE authenticates, loads, starts, and stops the firmware. - On Linux, when the compatibility is set, the Cortex-M resets should not be declared in the device tree. Signed-off-by: Arnaud Pouliquen R

[PATCH v4 1/4] remoteproc: Add TEE support

2024-03-08 Thread Arnaud Pouliquen
application. Signed-off-by: Arnaud Pouliquen --- Updates from V3: - rework TEE_REMOTEPROC description in Kconfig - fix some namings - add tee_rproc_parse_fw to support rproc_ops::parse_fw - add proc::tee_interface; - add rproc struct as parameter of the tee_rproc_register() function --- drivers

Re: [PATCH v4 1/4] remoteproc: Add TEE support

2024-03-26 Thread Arnaud POULIQUEN
Hello Mathieu, On 3/25/24 17:46, Mathieu Poirier wrote: > On Fri, Mar 08, 2024 at 03:47:05PM +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

Re: [PATCH v4 4/4] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2024-03-26 Thread Arnaud POULIQUEN
On 3/25/24 17:51, Mathieu Poirier wrote: > On Fri, Mar 08, 2024 at 03:47:08PM +0100, Arnaud Pouliquen wrote: >> The new TEE remoteproc device is used to manage remote firmware in a >> secure, trusted context. The 'st,stm32mp1-m4-tee' compatibility is >> introduced

Re: [PATCH v4 1/4] remoteproc: Add TEE support

2024-03-29 Thread Arnaud POULIQUEN
Hello Mathieu, On 3/27/24 18:07, Mathieu Poirier wrote: > On Tue, Mar 26, 2024 at 08:18:23PM +0100, Arnaud POULIQUEN wrote: >> Hello Mathieu, >> >> On 3/25/24 17:46, Mathieu Poirier wrote: >>> On Fri, Mar 08, 2024 at 03:47:05PM +0100, Arnaud Pouliquen wrote: >

Re: [PATCH v4 4/4] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2024-03-29 Thread Arnaud POULIQUEN
On 3/27/24 18:14, Mathieu Poirier wrote: > On Tue, Mar 26, 2024 at 08:31:33PM +0100, Arnaud POULIQUEN wrote: >> >> >> On 3/25/24 17:51, Mathieu Poirier wrote: >>> On Fri, Mar 08, 2024 at 03:47:08PM +0100, Arnaud Pouliquen wrote: >>>> The new TEE

Re: [PATCH v4 4/4] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2024-04-03 Thread Arnaud POULIQUEN
On 4/1/24 17:46, Mathieu Poirier wrote: > On Fri, Mar 29, 2024 at 11:57:43AM +0100, Arnaud POULIQUEN wrote: >> >> >> On 3/27/24 18:14, Mathieu Poirier wrote: >>> On Tue, Mar 26, 2024 at 08:31:33PM +0100, Arnaud POULIQUEN wrote: >>>> >>>>

[PATCH] rpmsg: char: fix rpmsg_eptdev structure documentation

2024-05-17 Thread Arnaud Pouliquen
unction parameter or struct member 'remote_flow_updated' not described in 'rpmsg_eptdev' Fixes: 5550201c0fe2 ("rpmsg: char: Add RPMSG GET/SET FLOWCONTROL IOCTL support") Signed-off-by: Arnaud Pouliquen --- drivers/rpmsg/rpmsg_char.c | 4 ++-- 1 file changed, 2 i

[PATCH v5 5/7] remoteproc: core: support of the tee interface

2024-05-21 Thread Arnaud Pouliquen
een shutdown. However if the TEE interface is being used, we first need to unmap the table_ptr before setting it to rproc->cached_table. The update of rproc->table_ptr to rproc->cached_table is performed in tee_remoteproc. Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/remoteproc

[PATCH v5 3/7] dt-bindings: remoteproc: Add processor identifier property

2024-05-21 Thread Arnaud Pouliquen
Signed-off-by: Arnaud Pouliquen --- .../devicetree/bindings/remoteproc/st,stm32-rproc.yaml | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml index 36

[PATCH v5 2/7] dt-bindings: remoteproc: Add compatibility for TEE support

2024-05-21 Thread Arnaud Pouliquen
e with the st,stm32mp1-m4-tee to support signed remoteproc firmware. Based on DT properties, OP-TEE authenticates, loads, starts, and stops the firmware. - On Linux, when the compatibility is set, the Cortex-M resets should not be declared in the device tree. Signed-off-by: Arnaud Pouliquen R

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

2024-05-21 Thread Arnaud Pouliquen
mage has evolved between the presentation and the integration in OP-TEE). https://resources.linaro.org/en/resource/6c5bGvZwUAjX56fvxthxds Arnaud Pouliquen (7): remoteproc: Add TEE support dt-bindings: remoteproc: Add compatibility for TEE support dt-bindings: remoteproc: Add processor identifier

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

2024-05-21 Thread Arnaud Pouliquen
age format defined by the TEE. Signed-off-by: Arnaud Pouliquen --- Update from V4: - remove hard coded remote proc ID STM32_MP1_M4_PROC_ID, get the ID from the DT, - replace find_loaded_rsc_table by get_loaded_rsc_table. --- drivers/remoteproc/stm32_rproc.c | 65 ++

[PATCH v5 1/7] remoteproc: Add TEE support

2024-05-21 Thread Arnaud Pouliquen
application. Signed-off-by: Arnaud Pouliquen --- update from V4 - fix commit message, - fix Kconfig typo, - introduce tee_rproc_release_loaded_rsc_table function to release the resource table, - reorder function variables in declaration in reverse ascending order, - introduce try_module_get and

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

2024-05-21 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 | 84 +++- 1 file changed, 51 insertions(+), 33 deletions

[PATCH v5 4/7] remoteproc: core introduce rproc_set_rsc_table_on_start function

2024-05-21 Thread Arnaud Pouliquen
rproc_reset_rsc_table_on_stop(). - rename rproc_set_rsc_table in rproc_set_rsc_table_on_attach() - move rproc_reset_rsc_table_on_stop() to be close to the rproc_set_rsc_table_on_start() function Suggested-by: Mathieu Poirier Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/remoteproc_core.c | 116

Re: [PATCH V2] remoteproc: virtio: Fix wdg cannot recovery remote processor

2023-12-15 Thread Arnaud POULIQUEN
Hello Joakim, On 12/15/23 15:50, joakim.zh...@cixtech.com wrote: > From: Joakim Zhang > > Recovery remote processor failed when wdg irq received: > [0.842574] remoteproc remoteproc0: crash detected in cix-dsp-rproc: type > watchdog > [0.842750] remoteproc remoteproc0: handling crash #1

Re: [PATCH v5 2/7] dt-bindings: remoteproc: Add compatibility for TEE support

2024-05-21 Thread Arnaud POULIQUEN
On 5/21/24 11:24, Krzysztof Kozlowski wrote: > On 21/05/2024 10:09, Arnaud Pouliquen wrote: >> The "st,stm32mp1-m4-tee" compatible is utilized in a system configuration >> where the Cortex-M4 firmware is loaded by the Trusted execution Environment >> (TEE). >

[RESEND PATCH v5 3/7] dt-bindings: remoteproc: Add processor identifier property

2024-05-21 Thread Arnaud Pouliquen
Signed-off-by: Arnaud Pouliquen --- .../devicetree/bindings/remoteproc/st,stm32-rproc.yaml | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml index 36

[RESEND PATCH v5 5/7] remoteproc: core: support of the tee interface

2024-05-21 Thread Arnaud Pouliquen
een shutdown. However if the TEE interface is being used, we first need to unmap the table_ptr before setting it to rproc->cached_table. The update of rproc->table_ptr to rproc->cached_table is performed in tee_remoteproc. Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/remoteproc

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

2024-05-21 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 | 84 +++- 1 file changed, 51 insertions(+), 33 deletions

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

2024-05-21 Thread Arnaud Pouliquen
mage has evolved between the presentation and the integration in OP-TEE). https://resources.linaro.org/en/resource/6c5bGvZwUAjX56fvxthxds Arnaud Pouliquen (7): remoteproc: Add TEE support dt-bindings: remoteproc: Add compatibility for TEE support dt-bindings: remoteproc: Add processor identifier

[RESEND PATCH v5 1/7] remoteproc: Add TEE support

2024-05-21 Thread Arnaud Pouliquen
application. Signed-off-by: Arnaud Pouliquen --- update from V4 - fix commit message, - fix Kconfig typo, - introduce tee_rproc_release_loaded_rsc_table function to release the resource table, - reorder function variables in declaration in reverse ascending order, - introduce try_module_get and

[RESEND PATCH v5 2/7] dt-bindings: remoteproc: Add compatibility for TEE support

2024-05-21 Thread Arnaud Pouliquen
e with the st,stm32mp1-m4-tee to support signed remoteproc firmware. Based on DT properties, OP-TEE authenticates, loads, starts, and stops the firmware. - On Linux, when the compatibility is set, the Cortex-M resets should not be declared in the device tree. Signed-off-by: Arnaud Pouliquen R

[RESEND PATCH v5 4/7] remoteproc: core introduce rproc_set_rsc_table_on_start function

2024-05-21 Thread Arnaud Pouliquen
rproc_reset_rsc_table_on_stop(). - rename rproc_set_rsc_table in rproc_set_rsc_table_on_attach() - move rproc_reset_rsc_table_on_stop() to be close to the rproc_set_rsc_table_on_start() function Suggested-by: Mathieu Poirier Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/remoteproc_core.c | 116

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

2024-05-21 Thread Arnaud Pouliquen
age format defined by the TEE. Signed-off-by: Arnaud Pouliquen --- Update from V4: - remove hard coded remote proc ID STM32_MP1_M4_PROC_ID, get the ID from the DT, - replace find_loaded_rsc_table by get_loaded_rsc_table. --- drivers/remoteproc/stm32_rproc.c | 65 ++

Re: [PATCH v5 5/7] remoteproc: core: support of the tee interface

2024-05-29 Thread Arnaud POULIQUEN
Hello Mathieu, On 5/28/24 23:30, Mathieu Poirier wrote: > On Tue, May 21, 2024 at 10:09:59AM +0200, Arnaud Pouliquen wrote: >> 1) on start: >> - Using the TEE loader, the resource table is loaded by an external entity. >> In such case the resource table address is not find

Re: [PATCH v5 5/7] remoteproc: core: support of the tee interface

2024-05-30 Thread Arnaud POULIQUEN
Hello Mathieu, On 5/29/24 22:35, Mathieu Poirier wrote: > On Wed, May 29, 2024 at 09:13:26AM +0200, Arnaud POULIQUEN wrote: >> Hello Mathieu, >> >> On 5/28/24 23:30, Mathieu Poirier wrote: >>> On Tue, May 21, 2024 at 10:09:59AM +0200, Arnaud Pouliquen wrote: >>

Re: [PATCH v5 5/7] remoteproc: core: support of the tee interface

2024-06-03 Thread Arnaud POULIQUEN
Hello Mathieu, On 5/31/24 19:28, Mathieu Poirier wrote: > On Thu, May 30, 2024 at 09:42:26AM +0200, Arnaud POULIQUEN wrote: >> Hello Mathieu, >> >> On 5/29/24 22:35, Mathieu Poirier wrote: >>> On Wed, May 29, 2024 at 09:13:26AM +0200, Arnaud POULIQUEN wrote: >>

Re: [RESEND PATCH v5 3/7] dt-bindings: remoteproc: Add processor identifier property

2024-06-04 Thread Arnaud POULIQUEN
Hello Rob On 6/3/24 16:35, Rob Herring wrote: > On Tue, May 21, 2024 at 02:24:54PM +0200, Arnaud Pouliquen wrote: >> Add the "st,proc-id" property allowing to identify the remote processor. >> This ID is used to define an unique ID, common between Linux, U-boot an

[PATCH v6 3/5] dt-bindings: remoteproc: Add compatibility for TEE support

2024-06-07 Thread Arnaud Pouliquen
o specify the remote processor. Signed-off-by: Arnaud Pouliquen --- update vs previous version - merge [PATCH v5 4/7] remoteproc: core introduce rproc_set_rsc_table_on_start function as new "st,proc-id" is associated to "st,stm32mp1-m4-tee" compatible - update commit mess

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

2024-06-07 Thread Arnaud Pouliquen
age format defined by the TEE. Signed-off-by: Arnaud Pouliquen --- Update from previous version - replace find_loaded_rsc_table by find_loaded_rsc_table ops. --- drivers/remoteproc/stm32_rproc.c | 63 ++-- 1 file changed, 60 insertions(+), 3 deletions(-) diff --git

[PATCH v6 0/5] Introduction of a remoteproc tee to load signed firmware

2024-06-07 Thread Arnaud Pouliquen
ration in OP-TEE). https://resources.linaro.org/en/resource/6c5bGvZwUAjX56fvxthxds Arnaud Pouliquen (5): remoteproc: core: Introduce rproc_pa_to_va helper remoteproc: Add TEE support dt-bindings: remoteproc: Add compatibility for TEE support remoteproc: stm32: Create sub-functions to request shutdown and re

[PATCH v6 1/5] remoteproc: core: Introduce rproc_pa_to_va helper

2024-06-07 Thread Arnaud Pouliquen
When a resource table is loaded by an external entity such as U-boot or OP-TEE, We not necessary 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 v6 4/5] remoteproc: stm32: Create sub-functions to request shutdown and release

2024-06-07 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 | 84 +++- 1 file changed, 51 insertions(+), 33 deletions

[PATCH v6 2/5] remoteproc: Add TEE support

2024-06-07 Thread Arnaud Pouliquen
application. Signed-off-by: Arnaud Pouliquen --- update from previous version - make tee_rproc_get_loaded_rsc_table() local and replace this API by tee_rproc_find_loaded_rsc_table() - map and unmap the resource table in tee_rproc_parse_fw to make a cached copy - use the new rproc_pa_to_va() API

Re: [PATCH v6 2/5] remoteproc: Add TEE support

2024-06-10 Thread Arnaud POULIQUEN
On 6/7/24 11:33, 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 secure part this driver offers a client > interface to load a firmware in the secure

[PATCH v7 3/5] dt-bindings: remoteproc: Add compatibility for TEE support

2024-06-11 Thread Arnaud Pouliquen
o specify the remote processor. Signed-off-by: Arnaud Pouliquen Reviewed-by: Rob Herring (Arm) --- update vs V6: Add Reviewed-by: Rob Herring (Arm) update vs V5 - merge [PATCH v5 4/7] remoteproc: core introduce rproc_set_rsc_table_on_start function as new "st,proc-id" is assoc

[PATCH v7 0/5] Introduction of a remoteproc tee to load signed firmware

2024-06-11 Thread Arnaud Pouliquen
out 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 (5): remoteproc: core: Introduce rproc_pa_to_va hel

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

2024-06-11 Thread Arnaud Pouliquen
age format defined by the TEE. Signed-off-by: Arnaud Pouliquen --- Update from V5 - replace find_loaded_rsc_table by find_loaded_rsc_table ops. --- --- drivers/remoteproc/stm32_rproc.c | 63 ++-- 1 file changed, 60 insertions(+), 3 deletions(-) diff --git a/drivers/

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

2024-06-11 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 | 84 +++- 1 file changed, 51 insertions(+), 33 deletions

  1   2   3   4   5   6   7   >