[U-Boot] [PATCH v2 2/7] remoteproc: fix function headers

2019-05-27 Thread Fabien Dessenne
Add full function comment headers. Fix rproc_is_initialized() return value description. Signed-off-by: Fabien Dessenne --- include/remoteproc.h | 104 +-- 1 file changed, 68 insertions(+), 36 deletions(-) diff --git a/include/remoteproc.h b

[U-Boot] [PATCH v2 4/7] remoteproc: add elf file load support

2019-05-27 Thread Fabien Dessenne
for sandbox_testproc. Add related tests. Test result: => ut dm remoteproc_elf Test: dm_test_remoteproc_elf: remoteproc.c Test: dm_test_remoteproc_elf: remoteproc.c (flat tree) Failures: 0 Signed-off-by: Loic Pallardy Signed-off-by: Fabien Dessenne --- drivers/remoteproc/rproc-uclass.c |

[U-Boot] [PATCH v2 3/7] remoteproc: add device_to_virt ops

2019-05-27 Thread Fabien Dessenne
Introduce the device_to_virt function to allow translation between device address (remote processor view) and virtual address (main processor view). Signed-off-by: Loic Pallardy Signed-off-by: Fabien Dessenne --- include/remoteproc.h | 12 1 file changed, 12 insertions(+) diff

[U-Boot] [PATCH v2 1/7] dm: core: Introduce xxx_translate_dma_address()

2019-05-27 Thread Fabien Dessenne
relies on the "dma-ranges" property instead of the "ranges" property. Add related test. Test report: => ut dm fdt_translation Test: dm_test_fdt_translation: test-fdt.c Test: dm_test_fdt_translation: test-fdt.c (flat tree) Failures: 0 Signed-off-by: Fabien Dessenne --- arch/sa

[U-Boot] [PATCH v2 7/7] configs: stm32mp15: enable stm32 remoteproc

2019-05-27 Thread Fabien Dessenne
Activate the remote processor support for stm32mp15 configs. Signed-off-by: Fabien Dessenne --- configs/stm32mp15_basic_defconfig | 2 ++ configs/stm32mp15_trusted_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/stm32mp15_basic_defconfig b/configs

[U-Boot] [PATCH v2 6/7] MAINTAINERS: Add stm32 remoteproc driver

2019-05-27 Thread Fabien Dessenne
Signed-off-by: Fabien Dessenne --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 33fd465..5c505d9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -309,6 +309,7 @@ F: drivers/power/pmic/stpmic1.c F: drivers/power/regulator/stm32-vrefbuf.c F

[U-Boot] [PATCH v2 5/7] remoteproc: Introduce STM32 Cortex-M4 remoteproc driver

2019-05-27 Thread Fabien Dessenne
This patch introduces support of Cortex-M4 remote processor for STM32 MCU and MPU families. Signed-off-by: Loic Pallardy Signed-off-by: Fabien Dessenne --- drivers/remoteproc/Kconfig | 10 ++ drivers/remoteproc/Makefile | 1 + drivers/remoteproc/stm32_copro.c | 257

[U-Boot] [PATCH v2 0/7] Add STM32 Cortex-M4 remoteproc driver

2019-05-27 Thread Fabien Dessenne
various headers -Misc minor changes Fabien Dessenne (7): dm: core: Introduce xxx_translate_dma_address() remoteproc: fix function headers remoteproc: add device_to_virt ops remoteproc: add elf file load support remoteproc: Introduce STM32 Cortex-M4 remoteproc driver MAINTAINERS:

[U-Boot] [PATCH v3 1/7] dm: core: Introduce xxx_translate_dma_address()

2019-05-31 Thread Fabien Dessenne
relies on the "dma-ranges" property instead of the "ranges" property. Add related test. Test report: => ut dm fdt_translation Test: dm_test_fdt_translation: test-fdt.c Test: dm_test_fdt_translation: test-fdt.c (flat tree) Failures: 0 Signed-off-by: Fabien Dessenne --- arch/sa

[U-Boot] [PATCH v3 3/7] remoteproc: add device_to_virt ops

2019-05-31 Thread Fabien Dessenne
Introduce the device_to_virt function to allow translation between device address (remote processor view) and virtual address (main processor view). Signed-off-by: Loic Pallardy Signed-off-by: Fabien Dessenne --- include/remoteproc.h | 12 1 file changed, 12 insertions(+) diff

[U-Boot] [PATCH v3 0/7] Add STM32 Cortex-M4 remoteproc driver

2019-05-31 Thread Fabien Dessenne
. -Merged rproc_elf_is_valid() in rproc_elf_sanity_check() -Used explicit error values in rproc_elf_sanity_check() -Added and fix comments in various headers -Misc minor changes Fabien Dessenne (7): dm: core: Introduce xxx_translate_dma_address() remoteproc: fix function headers remoteproc: add device_to_vi

[U-Boot] [PATCH v3 6/7] MAINTAINERS: Add stm32 remoteproc driver

2019-05-31 Thread Fabien Dessenne
Signed-off-by: Fabien Dessenne --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 33fd465..5c505d9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -309,6 +309,7 @@ F: drivers/power/pmic/stpmic1.c F: drivers/power/regulator/stm32-vrefbuf.c F

[U-Boot] [PATCH v3 4/7] remoteproc: add elf file load support

2019-05-31 Thread Fabien Dessenne
for sandbox_testproc. Add related tests. Test result: => ut dm remoteproc_elf Test: dm_test_remoteproc_elf: remoteproc.c Test: dm_test_remoteproc_elf: remoteproc.c (flat tree) Failures: 0 Signed-off-by: Loic Pallardy Signed-off-by: Fabien Dessenne --- drivers/remoteproc/Makefile |

[U-Boot] [PATCH v3 5/7] remoteproc: Introduce STM32 Cortex-M4 remoteproc driver

2019-05-31 Thread Fabien Dessenne
This patch introduces support of Cortex-M4 remote processor for STM32 MCU and MPU families. Signed-off-by: Loic Pallardy Signed-off-by: Fabien Dessenne --- drivers/remoteproc/Kconfig | 10 ++ drivers/remoteproc/Makefile | 1 + drivers/remoteproc/stm32_copro.c | 257

[U-Boot] [PATCH v3 2/7] remoteproc: fix function headers

2019-05-31 Thread Fabien Dessenne
Add full function comment headers. Fix rproc_is_initialized() return value description. Signed-off-by: Fabien Dessenne --- include/remoteproc.h | 104 +-- 1 file changed, 68 insertions(+), 36 deletions(-) diff --git a/include/remoteproc.h b

[U-Boot] [PATCH v3 7/7] configs: stm32mp15: enable stm32 remoteproc

2019-05-31 Thread Fabien Dessenne
Activate the remote processor support for stm32mp15 configs. Signed-off-by: Fabien Dessenne --- configs/stm32mp15_basic_defconfig | 2 ++ configs/stm32mp15_trusted_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/stm32mp15_basic_defconfig b/configs

Re: [U-Boot] [PATCH v2 4/7] remoteproc: add elf file load support

2019-05-29 Thread Fabien DESSENNE
Hi Lokesh On 29/05/2019 6:21 AM, Lokesh Vutla wrote: > > On 27/05/19 5:53 PM, Fabien Dessenne wrote: >> The current implementation supports only binary file load. >> Add helpers to support ELF format (sanity check, and load). >> Note that since an ELF image is built

Re: [U-Boot] [PATCH v3 0/7] Add STM32 Cortex-M4 remoteproc driver

2019-06-19 Thread Fabien DESSENNE
Hi Are there any further comments? BR Fabien On 31/05/2019 3:11 PM, Fabien Dessenne wrote: > This patchset adds an STM32 remoteproc driver. > > Patch 1 adds the xxx_translate_dma_address() API which is the equivalent > of the xxx_translate_address() relying on the "dma

Re: [U-Boot] [PATCH 0/4] mailbox: introduce stm32-ipcc driver for stm32mp157

2019-06-20 Thread Fabien DESSENNE
Hi Are there any further comments? BR Fabien On 14/05/2019 11:20 AM, Fabien Dessenne wrote: > This patchset adds the mailbox ipcc driver for the stm32mp1 SOC > and enables it for the stm32mp157 boards. > > Fabien Dessenne (4): >mailbox: introduce stm32-ipcc driver >

[U-Boot] [PATCH 1/4] mailbox: introduce stm32-ipcc driver

2019-05-14 Thread Fabien Dessenne
On STM32 family, the IPCC peripheral allows the communication between 2 processors offering doorbells mechanism. Signed-off-by: Fabien Dessenne Signed-off-by: Loic Pallardy --- drivers/mailbox/Kconfig | 7 ++ drivers/mailbox/Makefile | 1 + drivers/mailbox/stm32-ipcc.c | 167

[U-Boot] [PATCH 4/4] ARM: dts: stm32: Add ipcc mailbox support on stm32mp1

2019-05-14 Thread Fabien Dessenne
Add IPCC mailbox support on stm32mp157 eval and disco boards. Signed-off-by: Fabien Dessenne --- arch/arm/dts/stm32mp157a-dk1.dts | 4 arch/arm/dts/stm32mp157c-ed1.dts | 4 arch/arm/dts/stm32mp157c.dtsi| 13 + 3 files changed, 21 insertions(+) diff --git a/arch/arm

[U-Boot] [PATCH 3/4] configs: stm32mp15: enable IPCC mailbox

2019-05-14 Thread Fabien Dessenne
Activate the ipcc mailbox for stm32mp15 configs. Signed-off-by: Fabien Dessenne --- configs/stm32mp15_basic_defconfig | 2 ++ configs/stm32mp15_trusted_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/stm32mp15_basic_defconfig b/configs/stm32mp15_basic_defconfig index

[U-Boot] [PATCH 2/4] MAINTAINERS: Add stm32 mailbox IPPC driver

2019-05-14 Thread Fabien Dessenne
Signed-off-by: Fabien Dessenne --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 33fd465..5523c4a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -301,6 +301,7 @@ S: Maintained F: arch/arm/mach-stm32mp/ F: drivers/clk/clk_stm32mp1.c F

[U-Boot] [PATCH 0/4] mailbox: introduce stm32-ipcc driver for stm32mp157

2019-05-14 Thread Fabien Dessenne
This patchset adds the mailbox ipcc driver for the stm32mp1 SOC and enables it for the stm32mp157 boards. Fabien Dessenne (4): mailbox: introduce stm32-ipcc driver MAINTAINERS: Add stm32 mailbox IPPC driver configs: stm32mp15: enable IPCC mailbox ARM: dts: stm32: Add ipcc mailbox support

[U-Boot] [PATCH 6/7] MAINTAINERS: Add stm32 remoteproc driver

2019-05-22 Thread Fabien Dessenne
Signed-off-by: Fabien Dessenne --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 33fd465..5c505d9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -309,6 +309,7 @@ F: drivers/power/pmic/stpmic1.c F: drivers/power/regulator/stm32-vrefbuf.c F

[U-Boot] [PATCH 5/7] remoteproc: Introduce STM32 Cortex-M4 remoteproc driver

2019-05-22 Thread Fabien Dessenne
This patch introduces support of Cortex-M4 remote processor for STM32 MCU and MPU families. Signed-off-by: Loic Pallardy Signed-off-by: Fabien Dessenne --- drivers/remoteproc/Kconfig | 10 ++ drivers/remoteproc/Makefile | 1 + drivers/remoteproc/stm32_copro.c | 257

[U-Boot] [PATCH 4/7] remoteproc: add elf file load support

2019-05-22 Thread Fabien Dessenne
Signed-off-by: Fabien Dessenne --- drivers/remoteproc/rproc-uclass.c | 128 ++ include/remoteproc.h | 29 - 2 files changed, 156 insertions(+), 1 deletion(-) diff --git a/drivers/remoteproc/rproc-uclass.c b/drivers/remoteproc/rproc

[U-Boot] [PATCH 1/7] fdt: Introduce fdt_translate_dma_address()

2019-05-22 Thread Fabien Dessenne
Add the fdt_translate_dma_address() function to translate DMA address to CPU address. This function works the same way as fdt_translate_address(), with the difference that the translation relies on the "dma-ranges" property instead of the "ranges" property. Signed-off

[U-Boot] [PATCH 7/7] configs: stm32mp15: enable stm32 remoteproc

2019-05-22 Thread Fabien Dessenne
Activate the remote processor support for stm32mp15 configs. Signed-off-by: Fabien Dessenne --- configs/stm32mp15_basic_defconfig | 2 ++ configs/stm32mp15_trusted_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/stm32mp15_basic_defconfig b/configs

[U-Boot] [PATCH 0/7] Add STM32 Cortex-M4 remoteproc driver

2019-05-22 Thread Fabien Dessenne
of the ELF image loading (the current implementation supports only binary image loading). The 5th patch is about the driver, and the two last patches are about MAINTAINERS and configs update. Fabien Dessenne (7): fdt: Introduce fdt_translate_dma_address() dm: core: Introduce xxx_translate_dma_add

[U-Boot] [PATCH 3/7] remoteproc: add da_to_pa ops

2019-05-22 Thread Fabien Dessenne
This patch introduces da_to_pa function to allow translation between device address (remote processor view) and physical address (main processor view). Signed-off-by: Loic Pallardy Signed-off-by: Fabien Dessenne --- include/remoteproc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git

[U-Boot] [PATCH 2/7] dm: core: Introduce xxx_translate_dma_address()

2019-05-22 Thread Fabien Dessenne
anges" property instead of the "ranges" property. Signed-off-by: Fabien Dessenne --- drivers/core/of_addr.c | 4 drivers/core/ofnode.c | 8 drivers/core/read.c| 5 + include/dm/of_addr.h | 18 ++ include/dm/ofnode.h| 16 +++

Re: [U-Boot] [PATCH 04/25] remoteproc: elf-loader: Add 64 bit elf loading support

2019-08-29 Thread Fabien DESSENNE
Hi Lokesh On 28/08/2019 2:55 PM, Lokesh Vutla wrote: > The current rproc-elf-loader supports loading of only 32 bit elf files. > Introduce support for loading of 64 bit elf files in rproc-elf-loader. > > Signed-off-by: Lokesh Vutla > --- > drivers/remoteproc/rproc-elf-loader.c | 109

Re: [U-Boot] [PATCH 02/25] remoteproc: ops: Add elf section size as input parameter to device_to_virt api

2019-08-29 Thread Fabien DESSENNE
Hi Lokesh On 28/08/2019 2:55 PM, Lokesh Vutla wrote: > Introduce a new parameter size that accepts elf section size to remoteproc > ops callback device_to_virt(). This can enforce more checks on the > elf section that is being loaded. It would be better to talk about "size" instead of "elf

Re: [U-Boot] [PATCH 08/25] dt-bindings: remoteproc: Add bindings for R5F subsystem on TI K3 SoCs

2019-08-29 Thread Fabien DESSENNE
Hi Lokes, Suman On 28/08/2019 2:55 PM, Lokesh Vutla wrote: > From: Suman Anna > > The Texas Instruments K3 family of SoCs have one of more dual-core > Arm Cortex R5F processor subsystems/clusters (R5FSS). Add the device > tree bindings document for these R5F subsystem devices. These R5F >

Re: [U-Boot] [PATCH 05/25] remoteproc: elf_loader: Introduce a common elf loader function

2019-08-29 Thread Fabien DESSENNE
Hi Lokesh, Then a common rproc_elf_sanity_check() 32/64-bit common API would be great :) BR Fabien On 28/08/2019 2:55 PM, Lokesh Vutla wrote: > Introduce a common remoteproc elf loader function that automatically > detects the 64 bit elf file or 32 bit elf file and loads the sections >

Re: [U-Boot] [PATCH 03/25] remoteproc: elf_loader: Always check the validity of the image before loading

2019-08-29 Thread Fabien DESSENNE
Hi Lokesh I would prefer you keep the rproc_elf32_sanity_check() API available (not static). Some u-boot drivers (eg ti_power_proc.c) handle binary (raw) firmwares while some other handle ELF format ones. We may think about drivers that can handle both formats. rproc_elf32_sanity_check()

[U-Boot] [PATCH] remoteproc: elf_loader: fix program header parsing

2019-09-04 Thread Fabien Dessenne
Fix an issue where some sections are never loaded : if p_type is different from PT_LOAD the phdr pointer must be incremented. Signed-off-by: Fabien Dessenne --- drivers/remoteproc/rproc-elf-loader.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/remoteproc/rproc

Re: [U-Boot] [PATCH v2 05/26] remoteproc: elf_loader: Introduce a common elf loader and checker functions

2019-09-04 Thread Fabien DESSENNE
Hi Lokesh On 04/09/2019 12:31 PM, Lokesh Vutla wrote: > Introduce a common remoteproc elf loader and checker functions that > automatically detects the 64 bit elf file or 32 bit elf file and > loads/checks the sections accordingly. > > Signed-off-by: Lokesh Vutla Reviewed-by:

Re: [U-Boot] [PATCH v2 02/26] remoteproc: ops: Add elf section size as input parameter to device_to_virt api

2019-09-04 Thread Fabien DESSENNE
> on the region that device_to_virt() is dealing with. > > Signed-off-by: Lokesh Vutla Tested-by: Fabien Dessenne Reviewed-by: Fabien Dessenne > --- > drivers/remoteproc/rproc-elf-loader.c | 3 ++- > drivers/remoteproc/sandbox_testproc.c | 4 +++- > drivers/remoteproc/stm32_copro

Re: [U-Boot] [PATCH v2 03/26] remoteproc: elf_loader: Always check the validity of the image before loading

2019-09-04 Thread Fabien DESSENNE
elf_loading. > > Signed-off-by: Lokesh Vutla Reviewed-by: Fabien Dessenne > --- > drivers/remoteproc/rproc-elf-loader.c | 11 --- > drivers/remoteproc/stm32_copro.c | 9 + > include/remoteproc.h | 6 -- > test/dm/remoteproc.c

Re: [U-Boot] [PATCH v2 04/26] remoteproc: elf-loader: Add 64 bit elf loading support

2019-09-04 Thread Fabien DESSENNE
Hi Lokesh Thank you for the patch. BR Fabien On 04/09/2019 12:31 PM, Lokesh Vutla wrote: > The current rproc-elf-loader supports loading of only 32 bit elf files. > Introduce support for loading of 64 bit elf files in rproc-elf-loader. > > Signed-off-by: Lokesh Vutla Reviewe

Re: [U-Boot] [PATCH 1/5] remoteproc: elf_loader: Add elf resource table load support

2019-10-30 Thread Fabien DESSENNE
Hi Simon On 30/10/2019 2:49 AM, Simon Glass wrote: > Hi Fabien, > > On Tue, 22 Oct 2019 at 03:08, Fabien DESSENNE wrote: >> Hi Simon, >> >> >> On 22/10/2019 1:47 AM, Simon Glass wrote: >>> Hi Fabien, >>> >>> On Wed, 9 Oct 2019 at 09:3

[U-Boot] [PATCH v2 2/6] stm32mp1: declare backup registers for coprocessor

2019-10-30 Thread Fabien Dessenne
Use the backup register #17 as coprocessor resource table address and backup register #18 as coprocessor state. Signed-off-by: Fabien Dessenne --- arch/arm/mach-stm32mp/include/mach/stm32.h | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/mach-stm32mp/include/mach/stm32.h

[U-Boot] [PATCH v2 3/6] stm32mp1: reset coprocessor status at cold boot

2019-10-30 Thread Fabien Dessenne
Reset ResourceTableAddress and CoprocessorState at cold boot, preserve these values at standby wakeup. Signed-off-by: Fabien Dessenne --- arch/arm/mach-stm32mp/cpu.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-stm32mp/cpu.c b/arch/arm/mach-stm32mp/cpu.c index

[U-Boot] [PATCH v2 4/6] remoteproc: stm32: track the coprocessor state in a backup register

2019-10-30 Thread Fabien Dessenne
Update the dedicated backup register to track the coprocessor state and rely on that register to compute the .is_running() value (which expects a return value of 0 -not 1- if the processor is running). Signed-off-by: Fabien Dessenne --- drivers/remoteproc/stm32_copro.c | 17 + 1

[U-Boot] [PATCH v2 1/6] remoteproc: elf_loader: Add elf resource table load support

2019-10-30 Thread Fabien Dessenne
Add rproc_elf_load_rsc_table(), which searches for a resource table in an elf64/elf32 image, and if found, copies it to device memory. Add also the elf32 and elf64 variants of this API. Add a test for this. Signed-off-by: Fabien Dessenne --- drivers/remoteproc/rproc-elf-loader.c | 269

[U-Boot] [PATCH v2 0/6] remoteproc: add elf resource table loader

2019-10-30 Thread Fabien Dessenne
state. Instead of this, use a dedicated register. Fabien Dessenne (6): remoteproc: elf_loader: Add elf resource table load support stm32mp1: declare backup registers for coprocessor stm32mp1: reset coprocessor status at cold boot remoteproc: stm32: track the coprocessor state in a backup

[U-Boot] [PATCH v2 6/6] remoteproc: stm32: load resource table from firmware

2019-10-30 Thread Fabien Dessenne
Load the optional resource table from the firmware, and write its address in the dedicated backup register. Signed-off-by: Fabien Dessenne --- drivers/remoteproc/stm32_copro.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/remoteproc/stm32_copro.c b/drivers

[U-Boot] [PATCH v2 5/6] stm32mp1: remove copro_state environment variable

2019-10-30 Thread Fabien Dessenne
Since the coprocessor state is tracked in a backup register, there is no more need for tracking it in an environment variable : remove it. Signed-off-by: Fabien Dessenne --- board/st/stm32mp1/stm32mp1.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/board/st/stm32mp1

Re: [PATCH 1/5] remoteproc: elf_loader: Add elf resource table load support

2019-12-10 Thread Fabien DESSENNE
Hi Simon, On 10/12/2019 4:18 PM, Simon Glass wrote: > Hi Fabien, > > On Wed, 30 Oct 2019 at 03:50, Fabien DESSENNE wrote: >> Hi Simon >> >> On 30/10/2019 2:49 AM, Simon Glass wrote: >>> Hi Fabien, >>> >>> On Tue, 22 Oct 201

Re: [PATCH 1/5] remoteproc: elf_loader: Add elf resource table load support

2019-12-10 Thread Fabien DESSENNE
Btw, I sent a v2 for this patch: https://www.mail-archive.com/u-boot@lists.denx.de/msg346085.html On 10/12/2019 4:18 PM, Simon Glass wrote: > Hi Fabien, > > On Wed, 30 Oct 2019 at 03:50, Fabien DESSENNE wrote: >> Hi Simon >> >> On 30/10/2019 2:49 AM, Simon

Re: [U-Boot] [PATCH 1/5] remoteproc: elf_loader: Add elf resource table load support

2019-10-22 Thread Fabien DESSENNE
Hi Simon, On 22/10/2019 1:47 AM, Simon Glass wrote: > Hi Fabien, > > On Wed, 9 Oct 2019 at 09:36, Fabien Dessenne wrote: >> Add rproc_elf_load_rsc_table(), which searches for a resource table in >> an elf64/elf32 image, and if found, copies it to device memory. >> A

[U-Boot] [PATCH 1/5] remoteproc: elf_loader: Add elf resource table load support

2019-10-09 Thread Fabien Dessenne
Add rproc_elf_load_rsc_table(), which searches for a resource table in an elf64/elf32 image, and if found, copies it to device memory. Add also the elf32 and elf64 variants of this API. Add a test for this. Signed-off-by: Fabien Dessenne --- drivers/remoteproc/rproc-elf-loader.c | 269

[U-Boot] [PATCH 2/5] stm32mp1: declare backup register for copro resource table address

2019-10-09 Thread Fabien Dessenne
Use the backup register #17 as coprocessor resource table address. Signed-off-by: Fabien Dessenne --- arch/arm/mach-stm32mp/include/mach/stm32.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-stm32mp/include/mach/stm32.h b/arch/arm/mach-stm32mp/include/mach/stm32.h index

[U-Boot] [PATCH 0/5] remoteproc: add elf resource table loader

2019-10-09 Thread Fabien Dessenne
d DSP processors" series [1] proposed by Lokesh Vutla which introduces the elf64 support. [1]: https://patchwork.ozlabs.org/project/uboot/list/?series=128946 Fabien Dessenne (5): remoteproc: elf_loader: Add elf resource table load support stm32mp1: declare backup register for copro resource tab

[U-Boot] [PATCH 4/5] stm32mp1: Fixup the Linux DeviceTree with coprocessor information

2019-10-09 Thread Fabien Dessenne
When the coprocessor has been started, provide the context to Linux kernel so it can handle it: - update the coprocessor node of kernel DeviceTree with the "early-booted" property. - write the resource table address in a dedicated backup register. Signed-off-by: Fabien Dessenne ---

[U-Boot] [PATCH 3/5] remoteproc: stm32: load resource table from firmware

2019-10-09 Thread Fabien Dessenne
Load the optional resource table from the firmware, and write its address in the dedicated backup register. Signed-off-by: Fabien Dessenne --- drivers/remoteproc/stm32_copro.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/remoteproc/stm32_copro.c b/drivers

[U-Boot] [PATCH 5/5] remoteproc: stm32: invert the is_running() return value

2019-10-09 Thread Fabien Dessenne
The .is_running() ops expects a return value of 0 if the processor is running, 1 if not running : align to this. Signed-off-by: Fabien Dessenne --- drivers/remoteproc/stm32_copro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/remoteproc/stm32_copro.c b/drivers

Re: [U-Boot] [PATCH 5/5] remoteproc: stm32: invert the is_running() return value

2019-10-14 Thread Fabien DESSENNE
On 11/10/2019 10:00 PM, Suman Anna wrote: > On 10/9/19 10:36 AM, Fabien Dessenne wrote: >> The .is_running() ops expects a return value of 0 if the processor is >> running, 1 if not running : align to this. >> >> Signed-off-by: Fabien Dessenne > This patch should

Re: [U-Boot] [PATCH 4/5] stm32mp1: Fixup the Linux DeviceTree with coprocessor information

2019-10-14 Thread Fabien DESSENNE
Hi Suman, Thank you for your comments. On 11/10/2019 9:57 PM, Suman Anna wrote: > Hi Fabien, > > On 10/9/19 10:36 AM, Fabien Dessenne wrote: >> When the coprocessor has been started, provide the context to Linux >> kernel so it can handle it: >> - update the

Re: [U-Boot] [PATCH 3/5] remoteproc: stm32: load resource table from firmware

2019-10-14 Thread Fabien DESSENNE
On 11/10/2019 10:09 PM, Suman Anna wrote: > Hi Fabien, > > On 10/9/19 10:36 AM, Fabien Dessenne wrote: >> Load the optional resource table from the firmware, and write its >> address in the dedicated backup register. > What processor is this? Reason I ask