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
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
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
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
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
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
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
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
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
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
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
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 is that
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
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
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
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
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
---
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
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
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
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
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:
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
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
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
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
> proces
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() can
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
> acco
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 sect
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 +
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
>
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
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
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
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
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 |
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
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
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
rged 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
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 for t
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
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
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
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
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 |
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
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
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:
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 +++
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
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
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
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
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
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 a
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
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
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
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
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
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
62 matches
Mail list logo