Re: [PATCH 0/3] Enhance virtio rpmsg bus driver buffer allocation

2019-06-05 Thread Arnaud Pouliquen
Hi Bjorn, On 6/5/19 6:34 AM, Bjorn Andersson wrote: > On Thu 31 Jan 07:41 PST 2019, Xiang Xiao wrote: > >> Hi, >> This series enhance the buffer allocation by: >> 1.Support the different buffer number in rx/tx direction >> 2.Get the individual rx/tx buffer size from config space >> >> Here is the

Re: [PATCH 3/3] rpmsg: virtio_rpmsg_bus: get buffer size from config space

2019-06-05 Thread Arnaud Pouliquen
On 6/5/19 4:40 AM, xiang xiao wrote: > On Tue, Jun 4, 2019 at 10:25 PM Arnaud Pouliquen > wrote: >> >> Hello Xiang, >> >> On 5/9/19 3:00 PM, xiang xiao wrote: >>> On Thu, May 9, 2019 at 8:36 PM Arnaud Pouliquen >>> wrote: >>>> >

Re: [PATCH v2 2/2] tty: add rpmsg driver

2019-05-17 Thread Arnaud Pouliquen
Hello Alan, On 5/16/19 7:20 PM, Alan Cox wrote: > >> +static int rpmsg_tty_data_handler(struct rpmsg_device *rpdev, void *data, >> + int len, void *priv, u32 src) >> +{ >> +struct rpmsg_tty_port *cport = dev_get_drvdata(&rpdev->dev); >> +u8 *cbuf; >> +int

[PATCH v3 0/2] TTY: add rpmsg tty driver

2019-05-17 Thread Arnaud Pouliquen
end to not block the write - suppress useless spinlock on read - miscellaneous fixes to improve robustness Arnaud Pouliquen (2): rpmsg: core: add possibility to get message payload length tty: add rpmsg driver Documentation/serial/tty_rpmsg.txt | 38 +++ drivers/rpmsg/rp

[PATCH v3 2/2] tty: add rpmsg driver

2019-05-17 Thread Arnaud Pouliquen
This driver exposes a standard tty interface on top of the rpmsg framework through the "rpmsg-tty-channel" rpmsg service. This driver supports multi-instances, offering a /dev/ttyRPMSGx entry per rpmsg endpoint. Signed-off-by: Arnaud Pouliquen Signed-off-by: Fabien Dessenne --- Doc

[PATCH v3 1/2] rpmsg: core: add possibility to get message payload length

2019-05-17 Thread Arnaud Pouliquen
Return the rpmsg buffer payload size for sending message, so rpmsg users can split a long message in several sub rpmsg buffers. Signed-off-by: Arnaud Pouliquen Signed-off-by: Fabien Dessenne --- drivers/rpmsg/rpmsg_core.c | 20 drivers/rpmsg/rpmsg_internal.h | 2

Re: [PATCH 2/2] tty: add rpmsg driver

2019-04-12 Thread Arnaud Pouliquen
On 4/9/19 12:14 PM, xiang xiao wrote: > On Tue, Apr 9, 2019 at 3:28 PM Arnaud Pouliquen > wrote: >> >> >> >> On 4/8/19 3:29 PM, xiang xiao wrote: >>> On Mon, Apr 8, 2019 at 8:05 PM Arnaud Pouliquen >>> wrote: >>>> >>>>

Re: [PATCH v3 1/2] remoteproc: Add remoteproc character device interface

2020-06-17 Thread Arnaud POULIQUEN
On 6/16/20 9:56 PM, risha...@codeaurora.org wrote: > On 2020-04-30 01:30, Arnaud POULIQUEN wrote: >> Hi Rishabh, >> >> >> On 4/21/20 8:10 PM, Rishabh Bhatnagar wrote: >>> Add the character device interface into remoteproc framework. >>> This in

Re: [PATCH v7 2/2] tty: add rpmsg driver

2020-05-06 Thread Arnaud POULIQUEN
On 5/6/20 4:54 AM, Bjorn Andersson wrote: > On Wed 25 Mar 09:57 PDT 2020, Arnaud POULIQUEN wrote: > >> Hi Bjorn, >> >> On 3/24/20 9:52 PM, Bjorn Andersson wrote: >>> On Tue 24 Mar 10:04 PDT 2020, Arnaud Pouliquen wrote: >>> [..] >>>> di

Re: [PATCH v3 1/2] remoteproc: Fall back to using parent memory pool if no dedicated available

2020-05-07 Thread Arnaud POULIQUEN
mplementation of the legacy, that seems reasonable to me. Acked-by: Arnaud Pouliquen > > Fixes: 086d08725d34 ("remoteproc: create vdev subdevice with specific dma > memory pool") > Signed-off-by: Tero Kristo > Signed-off-by: Suman Anna > --- > v3: > - Go b

Re: [PATCH] dt-bindings: iio: adc: sd-modulator: fix io-channel-cells

2018-02-23 Thread Arnaud Pouliquen
Hello, Acked-by: Arnaud Pouliquen Regards, Arnaud On 02/23/2018 12:07 PM, Fabrice Gasnier wrote: > io-channel-cells should be <0> since sigma delta modulator exports only > one channel, as described in ../iio/iio-bindings.txt "IIO providers" > section. Only the pha

Re: [PATCH] dt-bindings: iio: adc: stm32-dfsdm: fix types, add missing pinctrl

2018-02-23 Thread Arnaud Pouliquen
Hello, Acked-by: Arnaud Pouliquen Regards, Arnaud On 02/23/2018 12:11 PM, Fabrice Gasnier wrote: > - Add missing pinctrl description. Support is made optional as dfsdm > may use internal sources (e.g. via registers) > - Fix typo in IIO STM32 DFSDM filter "MANCH_F" descr

Re: [PATCH 0/7] iio: adc: stm32-dfsdm: misc fixes and improvements

2018-02-23 Thread Arnaud Pouliquen
Hello, For the series: Acked-by: Arnaud Pouliquen Thanks, Arnaud On 02/23/2018 01:50 PM, Fabrice Gasnier wrote: > This series brings some fixes and improvements to STM32 DFSDM driver. > > Fabrice Gasnier (7): > iio: adc: stm32-dfsdm: fix compatible data use > iio: adc: s

Re: [PATCH v4 3/5] remoteproc: Pass type of shutdown to subdev remove

2017-12-05 Thread Arnaud Pouliquen
On 12/05/2017 07:46 AM, Bjorn Andersson wrote: > On Fri 01 Dec 06:50 PST 2017, Arnaud Pouliquen wrote: > >> hello Bjorn, >> >> Sorry for these late remarks/questions >> > > No worries, I'm happy to see you reading the patch! > >>

Re: [PATCH v4 3/5] remoteproc: Pass type of shutdown to subdev remove

2017-12-06 Thread Arnaud Pouliquen
Hello, I saw your new version but i 'm answering to this one to continue discussion. On 12/05/2017 06:17 PM, Bjorn Andersson wrote: > On Tue 05 Dec 02:54 PST 2017, Arnaud Pouliquen wrote: > >> >> >> On 12/05/2017 07:46 AM, Bjorn Andersson wrote: >>>

Re: [BUG] soc/sti: a possible sleep-in-atomic bug in uni_player_ctl_iec958_put

2017-12-12 Thread Arnaud Pouliquen
Hello Jia-Ju, On 12/12/2017 03:27 PM, Jia-Ju Bai wrote: > According to sound/soc/sti/uniperif_player.c, the driver may sleep under > a spinlock. > The function call path is: > uni_player_ctl_iec958_put (acquire the spinlock) >   uni_player_set_channel_status >     mutex_lock --> may sleep > > I

Re: [PATCH v2 1/2] ASoC: codec: use enable pin to control dmic start and stop

2017-09-04 Thread Arnaud Pouliquen
Hello Lin, Sorry for this late answer. I'm not maintainer, just a contributor... but as some update seems strange for me, so i prefer to highlight it to clarify them. On 08/17/2017 04:24 AM, Lin Huang wrote: > From: huang lin > > on some board use enable pin to control dmic start and stop, > so

Re: [alsa-devel] [PATCH v2 2/2] drm/bridge: adv7511: restrict audio sample sizes

2017-08-01 Thread Arnaud Pouliquen
Hello Srinivas, On 08/01/2017 12:49 AM, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > ADV7533 only supports audio samples word width from 16-24 bits. > This patch restricts the audio sample sizes to the supported ones, > so that sound card does not report wrong list of su

Re: [alsa-devel] [PATCH v2 2/2] drm/bridge: adv7511: restrict audio sample sizes

2017-08-01 Thread Arnaud Pouliquen
Hello Srinivas, On 08/01/2017 02:52 PM, Srinivas Kandagatla wrote: As example, if you configure bus in Left justified format with 24 bits sample length, 32 bits application samples should be truncated to 24 bits samples at ADV7533 I2S interface level (LSB dropped). >> >>> May be we

Re: [PATCH v4 3/5] remoteproc: Pass type of shutdown to subdev remove

2017-12-01 Thread Arnaud Pouliquen
hello Bjorn, Sorry for these late remarks/questions On 11/30/2017 02:16 AM, Bjorn Andersson wrote: > remoteproc instances can be stopped either by invoking shutdown or by an > attempt to recover from a crash. For some subdev types it's expected to > clean up gracefully during a shutdown, but are

Re: [PATCH v4 3/5] remoteproc: Pass type of shutdown to subdev remove

2017-12-07 Thread Arnaud Pouliquen
On 12/06/2017 10:53 PM, Bjorn Andersson wrote: > On Wed 06 Dec 00:55 PST 2017, Arnaud Pouliquen wrote: > >> Hello, >> >> I saw your new version but i 'm answering to this one to continue >> discussion. >> > > That's fine. > >> On

Re: [PATCH v8 15/18] ARM: STi: DT: STiH407: Add uniperif reader dt nodes

2016-09-05 Thread Arnaud Pouliquen
016, Peter Griffin wrote: >>> >>>> This patch adds the DT node for the uniperif reader >>>> IP block found on STiH407 family silicon. >>>> >>>> Signed-off-by: Arnaud Pouliquen >>>> Signed-off-by: Peter Griffin >>>> --- >&g

Re: [PATCH -next] ASoC: sti: fix missing clk_disable_unprepare() on error in uni_player_start()

2016-09-19 Thread Arnaud Pouliquen
Hello Wei, Acked-by: Arnaud Pouliquen Thanks! On 09/17/2016 03:34 AM, Wei Yongjun wrote: > From: Wei Yongjun > > Fix the missing clk_disable_unprepare() before return > from uni_player_start() in the error handling case. > > Signed-off-by: Wei Yongjun >

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

2024-10-09 Thread Arnaud Pouliquen
age format defined by the TEE. Signed-off-by: Arnaud Pouliquen --- updates vs v9 revision: - rename tee_interface to tee_rproc_itf - in stm32_rproc_probe(), test and use rproc->tee_rproc_itf instead of trproc in the tee_rproc_unregister() call - initialize release_fw ops --- drive

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

2024-10-09 Thread Arnaud Pouliquen
start of the remote processor. - after stopping the remote processor. Signed-off-by: Arnaud Pouliquen --- Update vs v9 revision: - New commit that preplace previous one to introduce ops->release_fw --- drivers/remoteproc/remoteproc_core.c | 5 + include/linux/remoteproc.h

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

2024-10-09 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 v11 0/7] Introduction of a remoteproc tee to load signed firmware

2024-10-09 Thread Arnaud Pouliquen
on 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 remoteproc: Add TEE suppor

[PATCH v11 1/7] remoteproc: core: Introduce rproc_pa_to_va helper

2024-10-09 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 v11 6/7] remoteproc: stm32: Create sub-functions to request shutdown and release

2024-10-09 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 --- Updates vs v9 revision: - Fix stm32_rproc_request_shutdown code, which was not an exact move of the source code from

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

2024-10-09 Thread Arnaud Pouliquen
application. Signed-off-by: Arnaud Pouliquen --- Updates vs v9 revision: - remove unused trproc variable in tee_rproc_find_loaded_rsc_table(), - add check on trproc in tee_rproc_get_loaded_rsc_table() - move REMOTEPROC_TEE declaration just after REMOTEPROC_CDEV in Makefile and Kconfig files

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

2024-10-09 Thread Arnaud Pouliquen
: Mathieu Poirier Signed-off-by: Arnaud Pouliquen --- Update vs v9 revision: - add justification of the patch in the commit message --- drivers/remoteproc/remoteproc_core.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/remoteproc/remoteproc_core.c b

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

2024-10-07 Thread Arnaud Pouliquen
application. Signed-off-by: Arnaud Pouliquen --- Updates vs previous version: - remove unused trproc variable in tee_rproc_find_loaded_rsc_table(), - add check on trproc in tee_rproc_get_loaded_rsc_table() - move REMOTEPROC_TEE declaration just after REMOTEPROC_CDEV in Makefile and Kconfig files

[PATCH v10 1/7] remoteproc: core: Introduce rproc_pa_to_va helper

2024-10-07 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 v10 0/7] Introduction of a remoteproc tee to load signed firmware

2024-10-07 Thread Arnaud Pouliquen
lable 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 remoteproc: Add TEE support remote

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

2024-10-07 Thread Arnaud Pouliquen
: Mathieu Poirier Signed-off-by: Arnaud Pouliquen --- Update vs previous revision: - add justification of the patch in the commit message --- drivers/remoteproc/remoteproc_core.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/remoteproc

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

2024-10-07 Thread Arnaud Pouliquen
age format defined by the TEE. Signed-off-by: Arnaud Pouliquen --- update vs previous version - rename tee_interface to tee_rproc_itf - in stm32_rproc_probe(), test and use rproc->tee_rproc_itf instead of trproc in the tee_rproc_unregister() call - initialize release_fw ops - add select REMO

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

2024-10-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 --- Update vs previous version - Fix stm32_rproc_request_shutdown code, which was not an exact move of the source code

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

2024-10-07 Thread Arnaud Pouliquen
start of the remote processor. - after stopping the remote processor. Signed-off-by: Arnaud Pouliquen --- Update vs previous revision: - New commit that preplace previous one to introduce ops->release_fw --- drivers/remoteproc/remoteproc_core.c | 5 + include/linux/remotepro

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

2024-10-07 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 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 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 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 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 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 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

Re: [PATCH v9 4/7] remoteproc: core: Add TEE interface support for firmware release

2024-09-17 Thread Arnaud POULIQUEN
Hello Mathieu, On 9/12/24 17:26, Mathieu Poirier wrote: > On Fri, Aug 30, 2024 at 11:51:44AM +0200, Arnaud Pouliquen wrote: >> Add support for releasing remote processor firmware through >> the Trusted Execution Environment (TEE) interface. >> >> The tee_rproc_release

Re: [PATCH v9 4/7] remoteproc: core: Add TEE interface support for firmware release

2024-09-27 Thread Arnaud POULIQUEN
Hello Bjorn, On 9/26/24 05:51, Bjorn Andersson wrote: > On Fri, Aug 30, 2024 at 11:51:44AM GMT, Arnaud Pouliquen wrote: >> Add support for releasing remote processor firmware through >> the Trusted Execution Environment (TEE) interface. >> >> The tee_rproc_release_fw(

Re: [PATCH v9 4/7] remoteproc: core: Add TEE interface support for firmware release

2024-09-18 Thread Arnaud POULIQUEN
Hello Mathieu, On 8/30/24 11:51, Arnaud Pouliquen wrote: > Add support for releasing remote processor firmware through > the Trusted Execution Environment (TEE) interface. > > The tee_rproc_release_fw() function is called in the following cases: > > - An error occurs in rpr

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

2024-10-25 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

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

2024-10-25 Thread Arnaud Pouliquen
application. Signed-off-by: Arnaud Pouliquen --- Updates vs previous version: - 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

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

2024-10-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 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

Re: [RFC PATCH] remoteproc: core: Add support for predefined notifyids

2024-10-25 Thread Arnaud POULIQUEN
hello On 10/23/24 17:32, Mathieu Poirier wrote: > Hello Daniel, > > On Fri, Oct 18, 2024 at 02:09:29PM +0300, Daniel Baluta wrote: >> Currently we generate notifyids in the linux kernel and override >> those found in rsc_table. >> >> This doesn't play well with users expecting to use the exact id

[PATCH v12 1/7] remoteproc: core: Introduce rproc_pa_to_va helper

2024-10-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 v12 5/7] dt-bindings: remoteproc: Add compatibility for TEE support

2024-10-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 v12 4/7] remoteproc: Introduce release_fw optional operation

2024-10-25 Thread Arnaud Pouliquen
start of the remote processor. - after stopping the remote processor. Signed-off-by: Arnaud Pouliquen --- Update vs previous revision: - fix typo in @release_fw comment --- drivers/remoteproc/remoteproc_core.c | 5 + include/linux/remoteproc.h | 3 +++ 2 files changed, 8

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

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

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

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

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

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

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

<    1   2   3   4   5   6   7   >