RE: [Linux-stm32] [PATCH 2/2] spi: spi-mem: add stm32 qspi controller

2018-10-05 Thread Loic PALLARDY
> -Original Message- > From: Linux-stm32 > On Behalf Of Ludovic Barre > Sent: Friday, October 05, 2018 9:43 AM > To: Mark Brown ; Marek Vasut > ; Boris Brezillon ; > Rob Herring > Cc: devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; linux- > s...@vger.kernel.org; Maxime

RE: [Linux-stm32] [PATCH 2/2] spi: spi-mem: add stm32 qspi controller

2018-10-05 Thread Loic PALLARDY
> -Original Message- > From: Linux-stm32 > On Behalf Of Ludovic Barre > Sent: Friday, October 05, 2018 9:43 AM > To: Mark Brown ; Marek Vasut > ; Boris Brezillon ; > Rob Herring > Cc: devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; linux- > s...@vger.kernel.org; Maxime

RE: [PATCH v4 13/17] remoteproc: create vdev subdevice with specific dma memory pool

2018-09-27 Thread Loic PALLARDY
Hi Wendy > -Original Message- > From: Wendy Liang > Sent: Thursday, September 27, 2018 7:17 PM > To: Loic PALLARDY > Cc: Bjorn Andersson ; Ohad Ben-Cohen > ; linux-remotep...@vger.kernel.org; Linux Kernel > Mailing List ; Arnaud POULIQUEN > ; benjamin.gaign..

RE: [PATCH v4 13/17] remoteproc: create vdev subdevice with specific dma memory pool

2018-09-27 Thread Loic PALLARDY
Hi Wendy > -Original Message- > From: Wendy Liang > Sent: Thursday, September 27, 2018 7:17 PM > To: Loic PALLARDY > Cc: Bjorn Andersson ; Ohad Ben-Cohen > ; linux-remotep...@vger.kernel.org; Linux Kernel > Mailing List ; Arnaud POULIQUEN > ; benjamin.gaign..

RE: [PATCH v4 00/17] remoteproc: add fixed memory region support

2018-09-26 Thread Loic PALLARDY
Hi Anup, > -Original Message- > From: Anup Patel > Sent: Friday, September 21, 2018 8:05 AM > To: Loic PALLARDY > Cc: Bjorn Andersson ; Ohad Ben-Cohen > ; linux-remotep...@vger.kernel.org; linux- > ker...@vger.kernel.org List ; Arnaud > POULIQUEN ; Benjamin Ga

RE: [PATCH v4 00/17] remoteproc: add fixed memory region support

2018-09-26 Thread Loic PALLARDY
Hi Anup, > -Original Message- > From: Anup Patel > Sent: Friday, September 21, 2018 8:05 AM > To: Loic PALLARDY > Cc: Bjorn Andersson ; Ohad Ben-Cohen > ; linux-remotep...@vger.kernel.org; linux- > ker...@vger.kernel.org List ; Arnaud > POULIQUEN ; Benjamin Ga

RE: [PATCH 6/7] remoteproc: Add Xilinx ZynqMP R5 remoteproc

2018-09-11 Thread Loic PALLARDY
> -Original Message- > From: Jiaying Liang > Sent: Tuesday, September 11, 2018 12:10 AM > To: Loic PALLARDY ; o...@wizery.com; > bjorn.anders...@linaro.org; Michal Simek ; > robh...@kernel.org; mark.rutl...@arm.com; Rajan Vaja > ; Jolly Shah > Cc: linux-re

RE: [PATCH 6/7] remoteproc: Add Xilinx ZynqMP R5 remoteproc

2018-09-11 Thread Loic PALLARDY
> -Original Message- > From: Jiaying Liang > Sent: Tuesday, September 11, 2018 12:10 AM > To: Loic PALLARDY ; o...@wizery.com; > bjorn.anders...@linaro.org; Michal Simek ; > robh...@kernel.org; mark.rutl...@arm.com; Rajan Vaja > ; Jolly Shah > Cc: linux-re

RE: [PATCH 6/7] remoteproc: Add Xilinx ZynqMP R5 remoteproc

2018-09-10 Thread Loic PALLARDY
Hi Wendy, Please find below few comments. > -Original Message- > From: linux-remoteproc-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of Wendy Liang > Sent: Thursday, August 16, 2018 9:06 AM > To: o...@wizery.com; bjorn.anders...@linaro.org; > michal.si...@xilinx.com;

RE: [PATCH 6/7] remoteproc: Add Xilinx ZynqMP R5 remoteproc

2018-09-10 Thread Loic PALLARDY
Hi Wendy, Please find below few comments. > -Original Message- > From: linux-remoteproc-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of Wendy Liang > Sent: Thursday, August 16, 2018 9:06 AM > To: o...@wizery.com; bjorn.anders...@linaro.org; > michal.si...@xilinx.com;

[PATCH v4 03/17] remoteproc: add release ops in rproc_mem_entry struct

2018-07-27 Thread Loic Pallardy
-off-by: Loic Pallardy Acked-by: Bjorn Andersson --- drivers/remoteproc/remoteproc_core.c | 23 +-- include/linux/remoteproc.h | 5 - 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc

[PATCH v4 03/17] remoteproc: add release ops in rproc_mem_entry struct

2018-07-27 Thread Loic Pallardy
-off-by: Loic Pallardy Acked-by: Bjorn Andersson --- drivers/remoteproc/remoteproc_core.c | 23 +-- include/linux/remoteproc.h | 5 - 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc

[PATCH v4 10/17] remoteproc: add helper function to check carveout device address

2018-07-27 Thread Loic Pallardy
This patch introduces a function to verify that a specified carveout is fitting request device address and associated length Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 47 1 file changed, 47 insertions(+) diff --git a/drivers

[PATCH v4 07/17] remoteproc: introduce rproc_find_carveout_by_name function

2018-07-27 Thread Loic Pallardy
This patch provides a new function to find a carveout according to a name. If match found, this function returns a pointer on the corresponding carveout (rproc_mem_entry structure). Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 42

[PATCH v4 10/17] remoteproc: add helper function to check carveout device address

2018-07-27 Thread Loic Pallardy
This patch introduces a function to verify that a specified carveout is fitting request device address and associated length Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 47 1 file changed, 47 insertions(+) diff --git a/drivers

[PATCH v4 07/17] remoteproc: introduce rproc_find_carveout_by_name function

2018-07-27 Thread Loic Pallardy
This patch provides a new function to find a carveout according to a name. If match found, this function returns a pointer on the corresponding carveout (rproc_mem_entry structure). Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 42

[PATCH v4 11/17] remoteproc: modify rproc_handle_carveout to support pre-registered region

2018-07-27 Thread Loic Pallardy
is associated with resource table request. If no name match found, new carveout is registered for allocation. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/remoteproc/remoteproc_core.c

[PATCH v4 11/17] remoteproc: modify rproc_handle_carveout to support pre-registered region

2018-07-27 Thread Loic Pallardy
is associated with resource table request. If no name match found, new carveout is registered for allocation. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/remoteproc/remoteproc_core.c

[PATCH v4 13/17] remoteproc: create vdev subdevice with specific dma memory pool

2018-07-27 Thread Loic Pallardy
This patch creates a dedicated vdev subdevice for each vdev declared in firmware resource table and associates carveout named "vdev%dbuffer" (with %d vdev index in resource table) if any as dma coherent memory pool. Then vdev subdevice is used as parent for virtio device. Signed-of

[PATCH v4 13/17] remoteproc: create vdev subdevice with specific dma memory pool

2018-07-27 Thread Loic Pallardy
This patch creates a dedicated vdev subdevice for each vdev declared in firmware resource table and associates carveout named "vdev%dbuffer" (with %d vdev index in resource table) if any as dma coherent memory pool. Then vdev subdevice is used as parent for virtio device. Signed-of

[PATCH v4 08/17] remoteproc: add alloc ops in rproc_mem_entry struct

2018-07-27 Thread Loic Pallardy
allocators. The introduction of this ops allows to perform allocation of all registered carveout at the same time, just before calling rproc_start(). It simplifies and makes uniform carveout management whatever origin. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 261

[PATCH v4 08/17] remoteproc: add alloc ops in rproc_mem_entry struct

2018-07-27 Thread Loic Pallardy
allocators. The introduction of this ops allows to perform allocation of all registered carveout at the same time, just before calling rproc_start(). It simplifies and makes uniform carveout management whatever origin. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 261

[PATCH v4 17/17] rpmsg: virtio: allocate buffer from parent

2018-07-27 Thread Loic Pallardy
Remoteproc is now capable to create one specific sub-device per virtio link to associate a dedicated memory pool. This implies to change device used by virtio_rpmsg for buffer allocation from grand-parent to parent. Signed-off-by: Loic Pallardy --- drivers/rpmsg/virtio_rpmsg_bus.c | 6 +++--- 1

[PATCH v4 05/17] remoteproc: add helper function to allocate and init rproc_mem_entry struct

2018-07-27 Thread Loic Pallardy
This patch introduces rproc_mem_entry_init helper function to simplify rproc_mem_entry structure allocation and filling by client. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 65 +++- include/linux/remoteproc.h | 6 2

[PATCH v4 12/17] remoteproc: modify vring allocation to rely on centralized carveout allocator

2018-07-27 Thread Loic Pallardy
e table. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 61 +--- drivers/remoteproc/remoteproc_internal.h | 2 ++ drivers/remoteproc/remoteproc_virtio.c | 14 +++- include/linux/remoteproc.h | 6 ++-- 4 files changed,

[PATCH v4 04/17] remoteproc: add name in rproc_mem_entry struct

2018-07-27 Thread Loic Pallardy
Add name field in struct rproc_mem_entry. This new field will be used to match memory area requested in resource table with pre-registered carveout. Signed-off-by: Loic Pallardy Acked-by: Bjorn Andersson --- drivers/remoteproc/remoteproc_core.c| 1 + drivers/remoteproc/remoteproc_debugfs.c

[PATCH v4 09/17] remoteproc: add helper function to allocate rproc_mem_entry from reserved memory

2018-07-27 Thread Loic Pallardy
between rproc_mem_entry and rproc sub device will be done by name. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 37 include/linux/remoteproc.h | 6 ++ 2 files changed, 43 insertions(+) diff --git a/drivers/remoteproc

[PATCH v4 01/17] remoteproc: configure IOMMU only if device address requested

2018-07-27 Thread Loic Pallardy
If there is no IOMMU associate to remote processor device, remoteproc_core won't be able to satisfy device address requested in firmware resource table. Return an error as configuration won't be coherent. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 10 +- 1

[PATCH v4 05/17] remoteproc: add helper function to allocate and init rproc_mem_entry struct

2018-07-27 Thread Loic Pallardy
This patch introduces rproc_mem_entry_init helper function to simplify rproc_mem_entry structure allocation and filling by client. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 65 +++- include/linux/remoteproc.h | 6 2

[PATCH v4 12/17] remoteproc: modify vring allocation to rely on centralized carveout allocator

2018-07-27 Thread Loic Pallardy
e table. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 61 +--- drivers/remoteproc/remoteproc_internal.h | 2 ++ drivers/remoteproc/remoteproc_virtio.c | 14 +++- include/linux/remoteproc.h | 6 ++-- 4 files changed,

[PATCH v4 04/17] remoteproc: add name in rproc_mem_entry struct

2018-07-27 Thread Loic Pallardy
Add name field in struct rproc_mem_entry. This new field will be used to match memory area requested in resource table with pre-registered carveout. Signed-off-by: Loic Pallardy Acked-by: Bjorn Andersson --- drivers/remoteproc/remoteproc_core.c| 1 + drivers/remoteproc/remoteproc_debugfs.c

[PATCH v4 09/17] remoteproc: add helper function to allocate rproc_mem_entry from reserved memory

2018-07-27 Thread Loic Pallardy
between rproc_mem_entry and rproc sub device will be done by name. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 37 include/linux/remoteproc.h | 6 ++ 2 files changed, 43 insertions(+) diff --git a/drivers/remoteproc

[PATCH v4 01/17] remoteproc: configure IOMMU only if device address requested

2018-07-27 Thread Loic Pallardy
If there is no IOMMU associate to remote processor device, remoteproc_core won't be able to satisfy device address requested in firmware resource table. Return an error as configuration won't be coherent. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 10 +- 1

[PATCH v4 17/17] rpmsg: virtio: allocate buffer from parent

2018-07-27 Thread Loic Pallardy
Remoteproc is now capable to create one specific sub-device per virtio link to associate a dedicated memory pool. This implies to change device used by virtio_rpmsg for buffer allocation from grand-parent to parent. Signed-off-by: Loic Pallardy --- drivers/rpmsg/virtio_rpmsg_bus.c | 6 +++--- 1

[PATCH v4 02/17] remoteproc: add rproc_va_to_pa function

2018-07-27 Thread Loic Pallardy
This new function translates CPU virtual address in CPU physical one according to virtual address location. Signed-off-by: Loic Pallardy Acked-by: Bjorn Andersson --- drivers/remoteproc/remoteproc_core.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git

[PATCH v4 06/17] remoteproc: introduce rproc_add_carveout function

2018-07-27 Thread Loic Pallardy
This patch introduces a new API to allow platform driver to register platform specific carveout regions. Signed-off-by: Loic Pallardy Acked-by: Bjorn Andersson --- drivers/remoteproc/remoteproc_core.c | 16 +++- include/linux/remoteproc.h | 2 ++ 2 files changed, 17

[PATCH v4 06/17] remoteproc: introduce rproc_add_carveout function

2018-07-27 Thread Loic Pallardy
This patch introduces a new API to allow platform driver to register platform specific carveout regions. Signed-off-by: Loic Pallardy Acked-by: Bjorn Andersson --- drivers/remoteproc/remoteproc_core.c | 16 +++- include/linux/remoteproc.h | 2 ++ 2 files changed, 17

[PATCH v4 02/17] remoteproc: add rproc_va_to_pa function

2018-07-27 Thread Loic Pallardy
This new function translates CPU virtual address in CPU physical one according to virtual address location. Signed-off-by: Loic Pallardy Acked-by: Bjorn Andersson --- drivers/remoteproc/remoteproc_core.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git

[PATCH v4 15/17] remoteproc: da8xx: declare reserved memory region for vdev device

2018-07-27 Thread Loic Pallardy
This patch introduces da8xx_rproc_parse_fw() to declare a carveout region based on reserved memory for vdev buffer allocation. Signed-off-by: Loic Pallardy --- drivers/remoteproc/da8xx_remoteproc.c | 38 +++ 1 file changed, 38 insertions(+) diff --git a/drivers

[PATCH v4 16/17] remoteproc: st: add reserved memory support

2018-07-27 Thread Loic Pallardy
ST remote processor needs some specified memory regions for firmware and IPC. Memory regions are defined as reserved memory and should be registered in remoteproc core thanks to rproc_add_carveout function before rproc_start. For this, st rproc driver implements prepare ops. Signed-off-by: Loic

[PATCH v4 15/17] remoteproc: da8xx: declare reserved memory region for vdev device

2018-07-27 Thread Loic Pallardy
This patch introduces da8xx_rproc_parse_fw() to declare a carveout region based on reserved memory for vdev buffer allocation. Signed-off-by: Loic Pallardy --- drivers/remoteproc/da8xx_remoteproc.c | 38 +++ 1 file changed, 38 insertions(+) diff --git a/drivers

[PATCH v4 16/17] remoteproc: st: add reserved memory support

2018-07-27 Thread Loic Pallardy
ST remote processor needs some specified memory regions for firmware and IPC. Memory regions are defined as reserved memory and should be registered in remoteproc core thanks to rproc_add_carveout function before rproc_start. For this, st rproc driver implements prepare ops. Signed-off-by: Loic

[PATCH v4 00/17] remoteproc: add fixed memory region support

2018-07-27 Thread Loic Pallardy
t by name. If match found and associated "memory device" present, device is used instead of rproc platform device for allocation. Loic Pallardy (17): remoteproc: configure IOMMU only if device address requested remoteproc: add rproc_va_to_pa function remoteproc: add release op

[PATCH v4 14/17] remoteproc: keystone: declare reserved memory region for vdev device

2018-07-27 Thread Loic Pallardy
This patch introduces keystone_rproc_parse_fw() to declare a carveout region based on reserved memory for vdev buffer allocation, if a memory region has been declared on rproc DT node. Signed-off-by: Loic Pallardy --- drivers/remoteproc/keystone_remoteproc.c | 53

[PATCH v4 00/17] remoteproc: add fixed memory region support

2018-07-27 Thread Loic Pallardy
t by name. If match found and associated "memory device" present, device is used instead of rproc platform device for allocation. Loic Pallardy (17): remoteproc: configure IOMMU only if device address requested remoteproc: add rproc_va_to_pa function remoteproc: add release op

[PATCH v4 14/17] remoteproc: keystone: declare reserved memory region for vdev device

2018-07-27 Thread Loic Pallardy
This patch introduces keystone_rproc_parse_fw() to declare a carveout region based on reserved memory for vdev buffer allocation, if a memory region has been declared on rproc DT node. Signed-off-by: Loic Pallardy --- drivers/remoteproc/keystone_remoteproc.c | 53

RE: [PATCH v2 1/1] remoteproc: correct rproc_free_vring() to avoid invalid kernel paging

2018-07-27 Thread Loic PALLARDY
Hi Suman, > -Original Message- > From: Suman Anna > Sent: Friday, July 27, 2018 1:52 AM > To: Loic PALLARDY ; bjorn.anders...@linaro.org; > o...@wizery.com > Cc: linux-remotep...@vger.kernel.org; linux-kernel@vger.kernel.org; > Arnaud POULIQUEN ; > benjamin.gaign

RE: [PATCH v2 1/1] remoteproc: correct rproc_free_vring() to avoid invalid kernel paging

2018-07-27 Thread Loic PALLARDY
Hi Suman, > -Original Message- > From: Suman Anna > Sent: Friday, July 27, 2018 1:52 AM > To: Loic PALLARDY ; bjorn.anders...@linaro.org; > o...@wizery.com > Cc: linux-remotep...@vger.kernel.org; linux-kernel@vger.kernel.org; > Arnaud POULIQUEN ; > benjamin.gaign

RE: [PATCH v2 1/1] remoteproc: correct rproc_free_vring() to avoid invalid kernel paging

2018-07-26 Thread Loic PALLARDY
Hi Suman, > -Original Message- > From: Suman Anna > Sent: Thursday, July 26, 2018 12:09 AM > To: Loic PALLARDY ; bjorn.anders...@linaro.org; > o...@wizery.com > Cc: linux-remotep...@vger.kernel.org; linux-kernel@vger.kernel.org; > Arnaud POULIQUEN ; > benj

RE: [PATCH v2 1/1] remoteproc: correct rproc_free_vring() to avoid invalid kernel paging

2018-07-26 Thread Loic PALLARDY
Hi Suman, > -Original Message- > From: Suman Anna > Sent: Thursday, July 26, 2018 12:09 AM > To: Loic PALLARDY ; bjorn.anders...@linaro.org; > o...@wizery.com > Cc: linux-remotep...@vger.kernel.org; linux-kernel@vger.kernel.org; > Arnaud POULIQUEN ; > benj

RE: [PATCH 1/1] rpmsg: virtio_rpmsg_bus: Fix rpmsg_remove() release order

2018-07-26 Thread Loic PALLARDY
> -Original Message- > From: Suman Anna > Sent: Thursday, July 26, 2018 12:32 AM > To: Loic PALLARDY ; bjorn.anders...@linaro.org; > o...@wizery.com > Cc: linux-remotep...@vger.kernel.org; linux-kernel@vger.kernel.org; > Arnaud POULIQUEN ; > benjamin.gaign...@

RE: [PATCH 1/1] rpmsg: virtio_rpmsg_bus: Fix rpmsg_remove() release order

2018-07-26 Thread Loic PALLARDY
> -Original Message- > From: Suman Anna > Sent: Thursday, July 26, 2018 12:32 AM > To: Loic PALLARDY ; bjorn.anders...@linaro.org; > o...@wizery.com > Cc: linux-remotep...@vger.kernel.org; linux-kernel@vger.kernel.org; > Arnaud POULIQUEN ; > benjamin.gaign...@

RE: [PATCH 1/1] rpmsg: virtio_rpmsg_bus: Fix rpmsg_create_channel memory leak

2018-07-26 Thread Loic PALLARDY
Hi Suman, > -Original Message- > From: Suman Anna > Sent: Thursday, July 26, 2018 12:37 AM > To: Loic PALLARDY ; bjorn.anders...@linaro.org; > o...@wizery.com > Cc: linux-remotep...@vger.kernel.org; linux-kernel@vger.kernel.org; > Arnaud POULIQUEN ; > benj

RE: [PATCH 1/1] rpmsg: virtio_rpmsg_bus: Fix rpmsg_create_channel memory leak

2018-07-26 Thread Loic PALLARDY
Hi Suman, > -Original Message- > From: Suman Anna > Sent: Thursday, July 26, 2018 12:37 AM > To: Loic PALLARDY ; bjorn.anders...@linaro.org; > o...@wizery.com > Cc: linux-remotep...@vger.kernel.org; linux-kernel@vger.kernel.org; > Arnaud POULIQUEN ; > benj

[PATCH 1/1] rpmsg: virtio_rpmsg_bus: Fix rpmsg_create_channel memory leak

2018-07-25 Thread Loic Pallardy
In case of rpmsg_register_device() failure, vch previously allocated must be free. fixes: 6eed598a0491 ("rpmsg: Split off generic tail of create_channel()") Signed-off-by: Loic Pallardy --- drivers/rpmsg/virtio_rpmsg_bus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[PATCH 1/1] rpmsg: virtio_rpmsg_bus: Fix rpmsg_create_channel memory leak

2018-07-25 Thread Loic Pallardy
In case of rpmsg_register_device() failure, vch previously allocated must be free. fixes: 6eed598a0491 ("rpmsg: Split off generic tail of create_channel()") Signed-off-by: Loic Pallardy --- drivers/rpmsg/virtio_rpmsg_bus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[PATCH 1/1] rpmsg: virtio_rpmsg_bus: Fix rpmsg_remove() release order

2018-07-25 Thread Loic Pallardy
: bcabbccabffe ("rpmsg: Split off generic tail of create_channel()") Signed-off-by: Loic Pallardy --- drivers/rpmsg/virtio_rpmsg_bus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/drivers/rpmsg/virtio_rpmsg_bus.c ind

[PATCH 1/1] rpmsg: virtio_rpmsg_bus: Fix rpmsg_remove() release order

2018-07-25 Thread Loic Pallardy
: bcabbccabffe ("rpmsg: Split off generic tail of create_channel()") Signed-off-by: Loic Pallardy --- drivers/rpmsg/virtio_rpmsg_bus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/drivers/rpmsg/virtio_rpmsg_bus.c ind

[PATCH 1/1] remoteproc: replace "%p" with "%pK"

2018-07-06 Thread Loic Pallardy
The format specifier "%p" can leak kernel addresses. Use "%pK" instead. This patch proposes changes for remoteproc core only. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c| 6 +++--- drivers/remoteproc/remoteproc_debugfs.c | 4 ++--

[PATCH 1/1] remoteproc: replace "%p" with "%pK"

2018-07-06 Thread Loic Pallardy
The format specifier "%p" can leak kernel addresses. Use "%pK" instead. This patch proposes changes for remoteproc core only. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c| 6 +++--- drivers/remoteproc/remoteproc_debugfs.c | 4 ++--

[PATCH 1/1] remoteproc: st_slim: replace "%p" with "%pK"

2018-07-06 Thread Loic Pallardy
The format specifier "%p" can leak kernel addresses. Use "%pK" instead. Signed-off-by: Loic Pallardy --- drivers/remoteproc/st_slim_rproc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/remoteproc/st_slim_rproc.c b/drivers/remoteproc/s

[PATCH 1/1] remoteproc: st_slim: replace "%p" with "%pK"

2018-07-06 Thread Loic Pallardy
The format specifier "%p" can leak kernel addresses. Use "%pK" instead. Signed-off-by: Loic Pallardy --- drivers/remoteproc/st_slim_rproc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/remoteproc/st_slim_rproc.c b/drivers/remoteproc/s

[PATCH v2 1/1] remoteproc: correct rproc_free_vring() to avoid invalid kernel paging

2018-07-06 Thread Loic Pallardy
are reloaded at each rproc boot. rproc_trigger_recovery() not impacted as resources not touched during recovery procedure. Signed-off-by: Loic Pallardy --- Changes from V1: typo fixes in commit message drivers/remoteproc/remoteproc_core.c | 6 -- 1 file changed, 6 deletions(-) diff --git

[PATCH v2 1/1] remoteproc: correct rproc_free_vring() to avoid invalid kernel paging

2018-07-06 Thread Loic Pallardy
are reloaded at each rproc boot. rproc_trigger_recovery() not impacted as resources not touched during recovery procedure. Signed-off-by: Loic Pallardy --- Changes from V1: typo fixes in commit message drivers/remoteproc/remoteproc_core.c | 6 -- 1 file changed, 6 deletions(-) diff --git

[PATCH 1/1] remoteproc: correct rproc_free_vring() to avoid invalid kernel paging

2018-07-05 Thread Loic Pallardy
are reloaded at each rproc boot. rproc_trigger_recovery() not impacted as resources not touched during recovery procedure. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers

[PATCH 1/1] remoteproc: correct rproc_free_vring() to avoid invalid kernel paging

2018-07-05 Thread Loic Pallardy
are reloaded at each rproc boot. rproc_trigger_recovery() not impacted as resources not touched during recovery procedure. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers

RE: [PATCH v3 00/13] remoteproc: add fixed memory region support

2018-06-26 Thread Loic PALLARDY
Hi Anup, Sorry busy on ST internal stuff. I'll send V4 integrating Bjorn's comments in the coming days. Regards, Loic > -Original Message- > From: Anup Patel [mailto:a...@brainfault.org] > Sent: Monday, June 25, 2018 5:23 AM > To: Loic PALLARDY ; Bjorn Andersson > >

RE: [PATCH v3 00/13] remoteproc: add fixed memory region support

2018-06-26 Thread Loic PALLARDY
Hi Anup, Sorry busy on ST internal stuff. I'll send V4 integrating Bjorn's comments in the coming days. Regards, Loic > -Original Message- > From: Anup Patel [mailto:a...@brainfault.org] > Sent: Monday, June 25, 2018 5:23 AM > To: Loic PALLARDY ; Bjorn Andersson > >

RE: [PATCH v3 11/13] remoteproc: create vdev subdevice with specific dma memory pool

2018-05-14 Thread Loic PALLARDY
> -Original Message- > From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] > Sent: Thursday, May 10, 2018 3:06 AM > To: Loic PALLARDY <loic.palla...@st.com> > Cc: o...@wizery.com; linux-remotep...@vger.kernel.org; linux- > ker...@vger.kernel.org; Arnaud

RE: [PATCH v3 11/13] remoteproc: create vdev subdevice with specific dma memory pool

2018-05-14 Thread Loic PALLARDY
> -Original Message- > From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] > Sent: Thursday, May 10, 2018 3:06 AM > To: Loic PALLARDY > Cc: o...@wizery.com; linux-remotep...@vger.kernel.org; linux- > ker...@vger.kernel.org; Arnaud POULIQUEN ; > benjami

RE: [PATCH v3 10/13] remoteproc: modify vring allocation to support pre-registered region

2018-05-14 Thread Loic PALLARDY
> -Original Message- > From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] > Sent: Thursday, May 10, 2018 2:59 AM > To: Loic PALLARDY <loic.palla...@st.com> > Cc: o...@wizery.com; linux-remotep...@vger.kernel.org; linux- > ker...@vger.kernel.org; Arnaud

RE: [PATCH v3 10/13] remoteproc: modify vring allocation to support pre-registered region

2018-05-14 Thread Loic PALLARDY
> -Original Message- > From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] > Sent: Thursday, May 10, 2018 2:59 AM > To: Loic PALLARDY > Cc: o...@wizery.com; linux-remotep...@vger.kernel.org; linux- > ker...@vger.kernel.org; Arnaud POULIQUEN ; > benjami

RE: [PATCH v3 08/13] remoteproc: add prepare and unprepare ops

2018-05-14 Thread Loic PALLARDY
> -Original Message- > From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] > Sent: Thursday, May 10, 2018 2:53 AM > To: Loic PALLARDY <loic.palla...@st.com> > Cc: o...@wizery.com; linux-remotep...@vger.kernel.org; linux- > ker...@vger.kernel.org; Arnaud

RE: [PATCH v3 08/13] remoteproc: add prepare and unprepare ops

2018-05-14 Thread Loic PALLARDY
> -Original Message- > From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] > Sent: Thursday, May 10, 2018 2:53 AM > To: Loic PALLARDY > Cc: o...@wizery.com; linux-remotep...@vger.kernel.org; linux- > ker...@vger.kernel.org; Arnaud POULIQUEN ; > benjami

RE: [PATCH v3 09/13] remoteproc: modify rproc_handle_carveout to support pre-registered region

2018-05-14 Thread Loic PALLARDY
> -Original Message- > From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] > Sent: Thursday, May 10, 2018 2:43 AM > To: Loic PALLARDY <loic.palla...@st.com> > Cc: o...@wizery.com; linux-remotep...@vger.kernel.org; linux- > ker...@vger.kernel.org; Arnaud

RE: [PATCH v3 09/13] remoteproc: modify rproc_handle_carveout to support pre-registered region

2018-05-14 Thread Loic PALLARDY
> -Original Message- > From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] > Sent: Thursday, May 10, 2018 2:43 AM > To: Loic PALLARDY > Cc: o...@wizery.com; linux-remotep...@vger.kernel.org; linux- > ker...@vger.kernel.org; Arnaud POULIQUEN ; > benjami

RE: [PATCH v3 07/13] remoteproc: introduce rproc_find_carveout_by_name function

2018-05-14 Thread Loic PALLARDY
Hi Bjorn, Thanks for the review > -Original Message- > From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] > Sent: Thursday, May 10, 2018 2:19 AM > To: Loic PALLARDY <loic.palla...@st.com> > Cc: o...@wizery.com; linux-remotep...@vger.kernel.org; linux- >

RE: [PATCH v3 07/13] remoteproc: introduce rproc_find_carveout_by_name function

2018-05-14 Thread Loic PALLARDY
Hi Bjorn, Thanks for the review > -Original Message- > From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] > Sent: Thursday, May 10, 2018 2:19 AM > To: Loic PALLARDY > Cc: o...@wizery.com; linux-remotep...@vger.kernel.org; linux- > ker...@vger.kernel.org

RE: [PATCH 2/3] rpmsg: Only invoke announce_create for rpdev with endpoints

2018-04-10 Thread Loic PALLARDY
Hi Bjorn, > -Original Message- > From: Loic PALLARDY > Sent: Tuesday, April 03, 2018 11:13 AM > To: 'Bjorn Andersson' <bjorn.anders...@linaro.org>; Ohad Ben-Cohen > <o...@wizery.com> > Cc: linux-remotep...@vger.kernel.org; linux-kernel@vger.kernel.org; li

RE: [PATCH 2/3] rpmsg: Only invoke announce_create for rpdev with endpoints

2018-04-10 Thread Loic PALLARDY
Hi Bjorn, > -Original Message- > From: Loic PALLARDY > Sent: Tuesday, April 03, 2018 11:13 AM > To: 'Bjorn Andersson' ; Ohad Ben-Cohen > > Cc: linux-remotep...@vger.kernel.org; linux-kernel@vger.kernel.org; linux- > arm-...@vger.kernel.org > Subject: RE: [PATCH

RE: [PATCH v3 00/13] remoteproc: add fixed memory region support

2018-04-03 Thread Loic PALLARDY
Hi Bjorn, Just a gentle ping... As discussed during Linaro connect, I'll appreciate if you can share me your comments... Regards, Loic > -Original Message- > From: Loic PALLARDY > Sent: Thursday, March 01, 2018 5:24 PM > To: bjorn.anders...@linaro.org; o...@wizery.com

RE: [PATCH v3 00/13] remoteproc: add fixed memory region support

2018-04-03 Thread Loic PALLARDY
Hi Bjorn, Just a gentle ping... As discussed during Linaro connect, I'll appreciate if you can share me your comments... Regards, Loic > -Original Message- > From: Loic PALLARDY > Sent: Thursday, March 01, 2018 5:24 PM > To: bjorn.anders...@linaro.org; o...@wizery.com

RE: [PATCH 2/3] rpmsg: Only invoke announce_create for rpdev with endpoints

2018-04-03 Thread Loic PALLARDY
Hi Bjorn, > -Original Message- > From: linux-remoteproc-ow...@vger.kernel.org [mailto:linux-remoteproc- > ow...@vger.kernel.org] On Behalf Of Bjorn Andersson > Sent: Tuesday, March 27, 2018 11:07 PM > To: Ohad Ben-Cohen ; Bjorn Andersson > >

RE: [PATCH 2/3] rpmsg: Only invoke announce_create for rpdev with endpoints

2018-04-03 Thread Loic PALLARDY
Hi Bjorn, > -Original Message- > From: linux-remoteproc-ow...@vger.kernel.org [mailto:linux-remoteproc- > ow...@vger.kernel.org] On Behalf Of Bjorn Andersson > Sent: Tuesday, March 27, 2018 11:07 PM > To: Ohad Ben-Cohen ; Bjorn Andersson > > Cc: linux-remotep...@vger.kernel.org;

[PATCH v3 00/13] remoteproc: add fixed memory region support

2018-03-01 Thread Loic Pallardy
uot;memory device" associated to a carveout with a dedicated DMA memory pool. Different resource handlers are modified to look-up for specific carveout by name. If match found and associated "memory device" present, device is used instead of rproc platform device for allocati

[PATCH v3 00/13] remoteproc: add fixed memory region support

2018-03-01 Thread Loic Pallardy
uot;memory device" associated to a carveout with a dedicated DMA memory pool. Different resource handlers are modified to look-up for specific carveout by name. If match found and associated "memory device" present, device is used instead of rproc platform device for allocati

[PATCH v3 02/13] remoteproc: add rproc_va_to_pa function

2018-03-01 Thread Loic Pallardy
This new function translates CPU virtual address in CPU physical one according to virtual address location. Signed-off-by: Loic Pallardy <loic.palla...@st.com> --- drivers/remoteproc/remoteproc_core.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/d

[PATCH v3 02/13] remoteproc: add rproc_va_to_pa function

2018-03-01 Thread Loic Pallardy
This new function translates CPU virtual address in CPU physical one according to virtual address location. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/remoteproc

[PATCH v3 03/13] remoteproc: add release ops in rproc_mem_entry struct

2018-03-01 Thread Loic Pallardy
-off-by: Loic Pallardy <loic.palla...@st.com> --- drivers/remoteproc/remoteproc_core.c | 23 +-- include/linux/remoteproc.h | 5 - 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remo

[PATCH v3 03/13] remoteproc: add release ops in rproc_mem_entry struct

2018-03-01 Thread Loic Pallardy
-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 23 +-- include/linux/remoteproc.h | 5 - 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index eb1b779

[PATCH v3 01/13] remoteproc: configure IOMMU only if device address requested

2018-03-01 Thread Loic Pallardy
If there is no IOMMU associate to remote processor device, remoteproc_core won't be able to satisfy device address requested in firmware resource table. Return an error as configuration won't be coherent. Signed-off-by: Loic Pallardy <loic.palla...@st.com> --- drivers/remo

[PATCH v3 06/13] remoteproc: introduce rproc_add_carveout function

2018-03-01 Thread Loic Pallardy
This patch introduces a new API to allow platform driver to register platform specific carveout regions. Signed-off-by: Loic Pallardy <loic.palla...@st.com> --- drivers/remoteproc/remoteproc_core.c | 14 ++ include/linux/remoteproc.h | 2 ++ 2 files changed, 16 inse

[PATCH v3 01/13] remoteproc: configure IOMMU only if device address requested

2018-03-01 Thread Loic Pallardy
If there is no IOMMU associate to remote processor device, remoteproc_core won't be able to satisfy device address requested in firmware resource table. Return an error as configuration won't be coherent. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 10 +- 1

[PATCH v3 06/13] remoteproc: introduce rproc_add_carveout function

2018-03-01 Thread Loic Pallardy
This patch introduces a new API to allow platform driver to register platform specific carveout regions. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 14 ++ include/linux/remoteproc.h | 2 ++ 2 files changed, 16 insertions(+) diff --git

[PATCH v3 04/13] remoteproc: add name in rproc_mem_entry struct

2018-03-01 Thread Loic Pallardy
Add name field in struct rproc_mem_entry. This new field will be used to match memory area requested in resource table with pre-registered carveout. Signed-off-by: Loic Pallardy <loic.palla...@st.com> --- drivers/remoteproc/remoteproc_core.c| 1 + drivers/remoteproc/remoteproc_debugfs

[PATCH v3 04/13] remoteproc: add name in rproc_mem_entry struct

2018-03-01 Thread Loic Pallardy
Add name field in struct rproc_mem_entry. This new field will be used to match memory area requested in resource table with pre-registered carveout. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c| 1 + drivers/remoteproc/remoteproc_debugfs.c | 1 + include/linux

[PATCH v3 08/13] remoteproc: add prepare and unprepare ops

2018-03-01 Thread Loic Pallardy
On some SoC architecture, it is needed to enable HW like clock, bus, regulator, memory region... before loading co-processor firmware. This patch introduces prepare and unprepare ops to execute platform specific function before firmware loading and after stop execution. Signed-off-by: Loic

[PATCH v3 08/13] remoteproc: add prepare and unprepare ops

2018-03-01 Thread Loic Pallardy
On some SoC architecture, it is needed to enable HW like clock, bus, regulator, memory region... before loading co-processor firmware. This patch introduces prepare and unprepare ops to execute platform specific function before firmware loading and after stop execution. Signed-off-by: Loic

[PATCH v3 09/13] remoteproc: modify rproc_handle_carveout to support pre-registered region

2018-03-01 Thread Loic Pallardy
allocation is used. Signed-off-by: Loic Pallardy <loic.palla...@st.com> --- drivers/remoteproc/remoteproc_core.c | 49 +++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c

[PATCH v3 09/13] remoteproc: modify rproc_handle_carveout to support pre-registered region

2018-03-01 Thread Loic Pallardy
allocation is used. Signed-off-by: Loic Pallardy --- drivers/remoteproc/remoteproc_core.c | 49 +++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index 0ebbc4f..49b28a0 100644

<    1   2   3   4   5   6   7   >