Re: [RFC PATCH v2 38/48] lib: Kconfig: add a config symbol for getting lmb memory map updates

2024-07-23 Thread Ilias Apalodimas
Hi Sughosh, On Mon, 22 Jul 2024 at 15:59, Sughosh Ganu wrote: > > On Mon, 22 Jul 2024 at 18:00, Ilias Apalodimas > wrote: > > > > On Fri, 5 Jul 2024 at 22:51, Tom Rini wrote: > > > > > > On Thu, Jul 04, 2024 at 01:05:34PM +0530, Sughosh Ganu wrote: > > > > > > > Add a Kconfig symbol to enable

Re: [PATCH v2] tools: Add script to update git subtree projects

2024-07-23 Thread Quentin Schulz
Hi Raymond, On 7/22/24 9:30 PM, Raymond Mao wrote: Recently we are introducing multiple git subtree projects and it is the right time to have a universal script to update various subtrees and replace the dts/update-dts-subtree.sh. update-subtree.sh is a wrapper of git subtree commands. Usage:

Re: [PATCH v4 09/29] makefile: add mbedtls include directories

2024-07-23 Thread Ilias Apalodimas
On Thu, 18 Jul 2024 at 23:12, Raymond Mao wrote: > > Hi Ilias, > > On Wed, 3 Jul 2024 at 07:35, Ilias Apalodimas > wrote: >> >> On Tue, 2 Jul 2024 at 21:27, Raymond Mao wrote: >> > >> > Add the mbedtls include directories into the build system. >> > >> > Signed-off-by: Raymond Mao >> > --- >>

Re: [RFC PATCH v2 14/48] lmb: remove config symbols used for lmb region count

2024-07-23 Thread Ilias Apalodimas
On Thu, 4 Jul 2024 at 10:36, Sughosh Ganu wrote: > > The LMB memory maps are now being maintained through a couple of > alloced lists, one for the available(added) memory, and one for the > used memory. These lists are not static arrays but can be extended at > runtime. Remove the config symbols w

Re: [PATCH v4 26/29] lib/rypto: Adapt rsa_helper to MbedTLS

2024-07-23 Thread Ilias Apalodimas
On Tue, 2 Jul 2024 at 21:34, Raymond Mao wrote: > > Previous patch has introduced MbedTLS porting layer for RSA helper, > here to adjust the makefile accordingly. > > Signed-off-by: Raymond Mao > --- > Changes in v2 > - Initial patch. > Changes in v3 > - Update commit message. > Changes in v4 > -

Re: [PATCH] usb: gadget: usbhs: Add Renesas USBHS device driver

2024-07-23 Thread Mattijs Korpershoek
Hi Marek, Sorry for the review delay and thank you for the patch. On jeu., juin 20, 2024 at 02:55, Marek Vasut wrote: > From: Vitaliy Vasylskyy > > Add UDC driver for Renesas USBHS controller found in R-Car Gen3 SoCs. > This is mostly ported from the Linux kernel, with additional porting > gl

Re: [PATCH v3 7/8] dts: starfive: Add JH7110 Cadence USB dts node

2024-07-23 Thread Minda Chen
> > On Mon, Jul 22, 2024 at 6:29 PM Minda Chen > wrote: > > > > > > > > > > > > On Sat, Jul 20, 2024 at 6:47 PM E Shattow wrote: > > > > > > > > Hi, I am testing on Milk-V Mars CM Lite, and I add to these > > > > devicetree changes at runtime from > > > > board/starfive/visionfive2/spl.c > > >

[PATCH 1/1] smbios: add extended Extended BIOS ROM Size

2024-07-23 Thread Heinrich Schuchardt
U-Boot claims to create SMBIOS 3.7 tables. The type 0 table has a field Extended BIOS ROM Size since version 3.1. BIOS ROM sizes of 16 MiB or above must be written to this field. Add and fill the missing field. This patch does not cover the case of a ROM >= 8 GiB which cannot be configured in U-

RE: [PATCH v2] warp7: Convert to OF_UPSTREAM

2024-07-23 Thread Peng Fan
> Subject: [PATCH v2] warp7: Convert to OF_UPSTREAM > > Instead of using the local imx7s-warp devicetree copies from U-Boot, > convert the imx7s-warp board to OF_UPSTREAM so that the upstream > kernel devicetree can be used instead. > > Signed-off-by: Fabio Estevam Reviewed-by: Peng Fan

Re: [RFC PATCH v2 38/48] lib: Kconfig: add a config symbol for getting lmb memory map updates

2024-07-23 Thread Simon Glass
Hi Sughosh, On Mon, 22 Jul 2024 at 13:59, Sughosh Ganu wrote: > > On Mon, 22 Jul 2024 at 18:00, Ilias Apalodimas > wrote: > > > > On Fri, 5 Jul 2024 at 22:51, Tom Rini wrote: > > > > > > On Thu, Jul 04, 2024 at 01:05:34PM +0530, Sughosh Ganu wrote: > > > > > > > Add a Kconfig symbol to enable g

Re: [RFC PATCH v2 00/48] Make U-Boot memory reservations coherent

2024-07-23 Thread Simon Glass
Hi Sughosh, On Mon, 22 Jul 2024 at 18:37, Sughosh Ganu wrote: > > On Mon, 22 Jul 2024 at 23:03, Tom Rini wrote: > > > > On Mon, Jul 22, 2024 at 11:58:18AM +0530, Sughosh Ganu wrote: > > > On Mon, 8 Jul 2024 at 19:32, Tom Rini wrote: > > > > > > > > On Thu, Jul 04, 2024 at 01:04:56PM +0530, Sugh

Re: [PATCH 1/1] tpm: call tpm_tis_wait_init() after tpm_tis_init()

2024-07-23 Thread Simon Glass
Hi Ilias On Mon, 22 Jul 2024 at 08:35, Ilias Apalodimas wrote: > > Hi all > > On Sun, 21 Jul 2024 at 13:08, Simon Glass wrote: > > > > Hi, > > > > On Mon, 15 Jul 2024 at 12:23, wrote: > > > > > > From: Lukas Funke > > > > > > tpm_tis_wait_init() is using the 'chip->timeout_b' field which is >

Re: [PATCH v3 7/8] dts: starfive: Add JH7110 Cadence USB dts node

2024-07-23 Thread E Shattow
On Tue, Jul 23, 2024 at 3:16 AM Minda Chen wrote: > > > > > > > On Mon, Jul 22, 2024 at 6:29 PM Minda Chen > > wrote: > > > > > > > > > > > > > > > > > On Sat, Jul 20, 2024 at 6:47 PM E Shattow wrote: > > > > > > > > > > Hi, I am testing on Milk-V Mars CM Lite, and I add to these > > > > > devic

[PATCH v2 0/4] usb: gadget: atmel: Code refactor and DM_USB_GADGET support

2024-07-23 Thread Zixun LI
Changes in v2: - Fix null pointer deference in driver unbinding - Separate code refactor into 2 parts - Remove dead code Changes in v1: - Based on [PATCH RFC] usb: gadget: atmel: Add DM_USB_GADGET support: https://lists.denx.de/pipermail/u-boot/2024-July/559503.html - Addressed comments, moved t

[PATCH v2 3/4] usb: gadget: atmel: Add attach/detach support

2024-07-23 Thread Zixun LI
Add controller attach/detach support by using usb_gadget_ops.pullup() method. Signed-off-by: Zixun LI --- drivers/usb/gadget/atmel_usba_udc.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c index 3

[PATCH v2 1/4] usb: gadget: atmel: Code refactor part 1

2024-07-23 Thread Zixun LI
- Sort includes - Forward declare controller structures Signed-off-by: Zixun LI --- drivers/usb/gadget/atmel_usba_udc.c | 59 +++-- 1 file changed, 30 insertions(+), 29 deletions(-) diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c i

[PATCH v2 2/4] usb: gadget: atmel: Code refactor part 2

2024-07-23 Thread Zixun LI
- Rename atmel_usba_start() / atmel_usba_stop() to usba_udc_enable() / usba_udc_disable(), remove atmel_ prefix to be inline with other functions. Also avoid confusion with DM start() / stop() functions. - Replace printf() by log_err() - Spelling paramter -> parameter Signed-off-by: Zixun LI

[PATCH v2 4/4] usb: gadget: atmel: Add DM_USB_GADGET support

2024-07-23 Thread Zixun LI
Add driver model support by using the uclass UCLASS_USB_GADGET_GENERIC. Disable local usb_gadget_register_driver()/usb_gadget_unregister_driver() implementation which is implemented in udc-core.c when DM_USB_GADGET is enabled. Replace dm_usb_gadget_handle_interrupts() with handle_interrupts ops w

How is it possible to flash an image (wic-file) to emmc?

2024-07-23 Thread Stahl, Michael
Hi, after I swichted to the new uboot (2024.01) I can't flash a wic-file to the emmc anymore. I use a uboot version for imx8 processors but I think the fastboot parts are equal. There is a special tool supported from NXP called uuu-tool to flash files by the fastboot protocol With the old uboo

[PATCH v3 0/7] usb: gadget: atmel: Code refactor and DM_USB_GADGET support

2024-07-23 Thread Zixun LI
Changes in v3: - Separate code refactor into individual commits - Extract the controller point from udevice private data in DM functions Changes in v2: - Fix null pointer deference in driver unbinding - Separate code refactor into 2 parts - Remove dead code Changes in v1: - Based on [PATCH RFC] u

[PATCH v3 1/7] usb: gadget: atmel: Sort includes

2024-07-23 Thread Zixun LI
Sort includes in alphabetical order. Signed-off-by: Zixun LI --- drivers/usb/gadget/atmel_usba_udc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c index f99553df8d..5f78251fdb 100644 --- a/driv

[PATCH v3 3/7] usb: gadget: atmel: Fix typo in usb_gadget_register_driver()

2024-07-23 Thread Zixun LI
Replace "paramter" by "parameter". Signed-off-by: Zixun LI --- drivers/usb/gadget/atmel_usba_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c index 83fdc36870..2e3d8f36a2 100644 --- a/drivers/usb/

[PATCH v3 2/7] usb: gadget: atmel: Replace printf() and pr_err() by log_err()

2024-07-23 Thread Zixun LI
To have a uniform printing function, also drop linux/printk.h as no longer used. Signed-off-by: Zixun LI --- drivers/usb/gadget/atmel_usba_udc.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_u

[PATCH v3 4/7] usb: gadget: atmel: Move usba_udc_pdata() with other static functions

2024-07-23 Thread Zixun LI
To make all static functions in the top, no functional change. Signed-off-by: Zixun LI --- drivers/usb/gadget/atmel_usba_udc.c | 80 ++--- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_

[PATCH v3 5/7] usb: gadget: atmel: Rename atmel_usba_start()/_stop() to usba_udc_enable()/_disable()

2024-07-23 Thread Zixun LI
Rename atmel_usba_start() / atmel_usba_stop() to usba_udc_enable() / usba_udc_disable(), remove atmel_ prefix to be inline with other functions. Also avoid confusion with DM start() / stop() functions. Signed-off-by: Zixun LI --- drivers/usb/gadget/atmel_usba_udc.c | 8 1 file changed,

[PATCH v3 6/7] usb: gadget: atmel: Add attach/detach support

2024-07-23 Thread Zixun LI
Add controller attach/detach support by using usb_gadget_ops.pullup() method. Signed-off-by: Zixun LI --- drivers/usb/gadget/atmel_usba_udc.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c index e

[PATCH v3 7/7] usb: gadget: atmel: Add DM_USB_GADGET support

2024-07-23 Thread Zixun LI
Add driver model support by using the uclass UCLASS_USB_GADGET_GENERIC. Disable local usb_gadget_register_driver()/usb_gadget_unregister_driver() implementation which is implemented in udc-core.c when DM_USB_GADGET is enabled. Replace dm_usb_gadget_handle_interrupts() with handle_interrupts ops w

Re: [PATCH 1/1] tpm: call tpm_tis_wait_init() after tpm_tis_init()

2024-07-23 Thread Ilias Apalodimas
Hi Simon On Tue, 23 Jul 2024 at 15:47, Simon Glass wrote: > > Hi Ilias > > On Mon, 22 Jul 2024 at 08:35, Ilias Apalodimas > wrote: > > > > Hi all > > > > On Sun, 21 Jul 2024 at 13:08, Simon Glass wrote: > > > > > > Hi, > > > > > > On Mon, 15 Jul 2024 at 12:23, wrote: > > > > > > > > From: Luka

Aw: [ANN] U-Boot v2024.10-rc1 released

2024-07-23 Thread Frank Wunderlich
Hi, i notice build-error because of CONFIG_TOOLS_MKEFICAPSULE is set automaticly and does not find an include https://github.com/frank-w/u-boot/actions/runs/10059612312/job/27805232284 tools/mkeficapsule.c:20:10: fatal error: gnutls/gnutls.h: No such file or directory 20 | #include |

Re: [PATCH 1/4] lib: sha256: add feature sha256_hmac

2024-07-23 Thread Philippe REYNES
Hi Tom, Le 17/07/2024 à 19:58, Tom Rini a écrit : On Wed, Jul 17, 2024 at 07:08:27PM +0200, Philippe REYNES wrote: Hi Peter, Le 16/07/2024 à 18:56, Peter Robinson a écrit : This Mail comes from Outside of SoftAtHome: Do not answer, click links or open attachments unless you recognize the se

Re: [PATCH v3 1/7] usb: gadget: atmel: Sort includes

2024-07-23 Thread Marek Vasut
On 7/23/24 3:18 PM, Zixun LI wrote: Sort includes in alphabetical order. Reviewed-by: Marek Vasut Thanks !

Re: [PATCH v3 2/7] usb: gadget: atmel: Replace printf() and pr_err() by log_err()

2024-07-23 Thread Marek Vasut
On 7/23/24 3:18 PM, Zixun LI wrote: To have a uniform printing function, also drop linux/printk.h as no longer used. Reviewed-by: Marek Vasut Thanks !

Re: [PATCH v3 3/7] usb: gadget: atmel: Fix typo in usb_gadget_register_driver()

2024-07-23 Thread Marek Vasut
On 7/23/24 3:18 PM, Zixun LI wrote: Replace "paramter" by "parameter". Signed-off-by: Zixun LI Reviewed-by: Marek Vasut This is really MUCH better and MUCH easier to review, thank you!

Re: [PATCH v3 4/7] usb: gadget: atmel: Move usba_udc_pdata() with other static functions

2024-07-23 Thread Marek Vasut
On 7/23/24 3:18 PM, Zixun LI wrote: To make all static functions in the top, no functional change. Reviewed-by: Marek Vasut Thanks !

Re: [PATCH v3 5/7] usb: gadget: atmel: Rename atmel_usba_start()/_stop() to usba_udc_enable()/_disable()

2024-07-23 Thread Marek Vasut
On 7/23/24 3:18 PM, Zixun LI wrote: Rename atmel_usba_start() / atmel_usba_stop() to usba_udc_enable() / usba_udc_disable(), remove atmel_ prefix to be inline with other functions. Also avoid confusion with DM start() / stop() functions. Reviewed-by: Marek Vasut Thanks !

Re: [PATCH v3 6/7] usb: gadget: atmel: Add attach/detach support

2024-07-23 Thread Marek Vasut
On 7/23/24 3:18 PM, Zixun LI wrote: Add controller attach/detach support by using usb_gadget_ops.pullup() method. It is called 'function' in C, not 'method'. I think 'method' is C++ or maybe Java ? In any case: Reviewed-by: Marek Vasut Thanks !

Re: [PATCH v2] tools: Add script to update git subtree projects

2024-07-23 Thread Raymond Mao
Hi Quentin, On Tue, 23 Jul 2024 at 03:16, Quentin Schulz wrote: > Hi Raymond, > > On 7/22/24 9:30 PM, Raymond Mao wrote: > > Recently we are introducing multiple git subtree projects and > > it is the right time to have a universal script to update > > various subtrees and replace the dts/update

Re: [PATCH 1/1] smbios: add extended Extended BIOS ROM Size

2024-07-23 Thread Ilias Apalodimas
Hi Heinrich, On Tue, 23 Jul 2024 at 13:46, Heinrich Schuchardt wrote: > > U-Boot claims to create SMBIOS 3.7 tables. The type 0 table has > a field Extended BIOS ROM Size since version 3.1. > > BIOS ROM sizes of 16 MiB or above must be written to this field. > > Add and fill the missing field. >

Re: [PATCH v2] tools: Add script to update git subtree projects

2024-07-23 Thread Quentin Schulz
Hi Raymond, On 7/23/24 4:05 PM, Raymond Mao wrote: Hi Quentin, On Tue, 23 Jul 2024 at 03:16, Quentin Schulz wrote: Hi Raymond, On 7/22/24 9:30 PM, Raymond Mao wrote: Recently we are introducing multiple git subtree projects and it is the right time to have a universal script to update vari

Fwd: New Defects reported by Coverity Scan for Das U-Boot

2024-07-23 Thread Tom Rini
Here's the latest report. -- Forwarded message - From: Date: Mon, Jul 22, 2024, 8:07 PM Subject: New Defects reported by Coverity Scan for Das U-Boot To: Hi, Please find the latest report on new defect(s) introduced to Das U-Boot found with Coverity Scan. 8 new defect(s) intr

Re: [RFC PATCH v2 38/48] lib: Kconfig: add a config symbol for getting lmb memory map updates

2024-07-23 Thread Tom Rini
On Tue, Jul 23, 2024 at 01:42:59PM +0100, Simon Glass wrote: > Hi Sughosh, > > On Mon, 22 Jul 2024 at 13:59, Sughosh Ganu wrote: > > > > On Mon, 22 Jul 2024 at 18:00, Ilias Apalodimas > > wrote: > > > > > > On Fri, 5 Jul 2024 at 22:51, Tom Rini wrote: > > > > > > > > On Thu, Jul 04, 2024 at 01:

Re: [PATCH 1/1] smbios: add extended Extended BIOS ROM Size

2024-07-23 Thread Ilias Apalodimas
On Tue, 23 Jul 2024 at 17:12, Ilias Apalodimas wrote: > > Hi Heinrich, > > On Tue, 23 Jul 2024 at 13:46, Heinrich Schuchardt > wrote: > > > > U-Boot claims to create SMBIOS 3.7 tables. The type 0 table has > > a field Extended BIOS ROM Size since version 3.1. > > > > BIOS ROM sizes of 16 MiB or a

Re: [PATCH 1/1] smbios: add extended Extended BIOS ROM Size

2024-07-23 Thread Heinrich Schuchardt
On 23.07.24 16:12, Ilias Apalodimas wrote: Hi Heinrich, On Tue, 23 Jul 2024 at 13:46, Heinrich Schuchardt wrote: U-Boot claims to create SMBIOS 3.7 tables. The type 0 table has a field Extended BIOS ROM Size since version 3.1. BIOS ROM sizes of 16 MiB or above must be written to this field.

[PATCHv1 0/5] Add a subcommand 'release' to cmd/cpu.c

2024-07-23 Thread Zhiqiang Hou
From: Hou Zhiqiang This patch set is to add a subcommand 'release' to the 'cpu' command in cmd/cpu.c, making the command is able to release a core to run baremetal and RTOS applications. And enabled the 'cpu' command and imx CPU driver for i.MX 8M series EVK boards and i.MX 93 EVK board. Hou Zh

[PATCHv1 2/5] cpu: imx: implement release_core callback

2024-07-23 Thread Zhiqiang Hou
From: Hou Zhiqiang Release the secondary cores through the PSCI request. Signed-off-by: Hou Zhiqiang --- drivers/cpu/imx8_cpu.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c index 4781a56554..5942a

[PATCHv1 4/5] configs: imx8m: enable the 'cpu' command

2024-07-23 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the 'cpu' command and the depended imx CPU driver to display the CPU info and release CPU core to run baremetal or RTOS applications. Signed-off-by: Hou Zhiqiang --- configs/imx8mm_evk_defconfig | 3 +++ configs/imx8mn_evk_defconfig | 3 +++ configs/imx8mp_evk_defconf

[PATCHv1 5/5] configs: imx93: enable the 'cpu' command

2024-07-23 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the 'cpu' command to display the CPU info and release CPU core to run baremetal or RTOS applications. Signed-off-by: Hou Zhiqiang --- configs/imx93_11x11_evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx93_11x11_evk_defconfig b/configs/imx

[PATCHv1 3/5] cmd: cpu: add release subcommand

2024-07-23 Thread Zhiqiang Hou
From: Hou Zhiqiang Add a new subcommand 'release' to bring up a core to run baremetal and RTOS applications. For example on i.MX8M Plus EVK, release the LAST core to run a RTOS application, passing the sequence number of the CPU core to release, here it is 3: u-boot=> cpu list 0: cpu@0

[PATCHv1 1/5] cpu: add release_core callback

2024-07-23 Thread Zhiqiang Hou
From: Hou Zhiqiang Add a new callback release_core to the cpu_ops, which is used to release a CPU core to run baremetal or RTOS application on a SoC with multiple CPU cores. Signed-off-by: Hou Zhiqiang --- drivers/cpu/cpu-uclass.c | 10 ++ include/cpu.h| 15 +++

[PATCH v2 1/1] smbios: add extended Extended BIOS ROM Size

2024-07-23 Thread Heinrich Schuchardt
U-Boot claims to create SMBIOS 3.7 tables. The type 0 table has a field Extended BIOS ROM Size since version 3.1. BIOS ROM sizes of 16 MiB or above must be written to this field. Add and fill the missing field. Signed-off-by: Heinrich Schuchardt --- v2: Replace 0x0100 by SZ_16M ---

Re: [RFC PATCH v2 00/48] Make U-Boot memory reservations coherent

2024-07-23 Thread Tom Rini
On Mon, Jul 22, 2024 at 11:07:45PM +0530, Sughosh Ganu wrote: > On Mon, 22 Jul 2024 at 23:03, Tom Rini wrote: > > > > On Mon, Jul 22, 2024 at 11:58:18AM +0530, Sughosh Ganu wrote: > > > On Mon, 8 Jul 2024 at 19:32, Tom Rini wrote: > > > > > > > > On Thu, Jul 04, 2024 at 01:04:56PM +0530, Sughosh

Re: [PATCHv1 3/5] cmd: cpu: add release subcommand

2024-07-23 Thread Fabio Estevam
On Tue, Jul 23, 2024 at 11:43 AM Zhiqiang Hou wrote: > > From: Hou Zhiqiang > > Add a new subcommand 'release' to bring up a core to run baremetal > and RTOS applications. > > For example on i.MX8M Plus EVK, release the LAST core to run a RTOS > application, passing the sequence number of the CPU

Re: [RFC PATCH v2 00/48] Make U-Boot memory reservations coherent

2024-07-23 Thread Sughosh Ganu
On Tue, 23 Jul 2024 at 20:18, Tom Rini wrote: > > On Mon, Jul 22, 2024 at 11:07:45PM +0530, Sughosh Ganu wrote: > > On Mon, 22 Jul 2024 at 23:03, Tom Rini wrote: > > > > > > On Mon, Jul 22, 2024 at 11:58:18AM +0530, Sughosh Ganu wrote: > > > > On Mon, 8 Jul 2024 at 19:32, Tom Rini wrote: > > > >

Re: [RFC PATCH v2 00/48] Make U-Boot memory reservations coherent

2024-07-23 Thread Tom Rini
On Tue, Jul 23, 2024 at 08:21:11PM +0530, Sughosh Ganu wrote: > On Tue, 23 Jul 2024 at 20:18, Tom Rini wrote: > > > > On Mon, Jul 22, 2024 at 11:07:45PM +0530, Sughosh Ganu wrote: > > > On Mon, 22 Jul 2024 at 23:03, Tom Rini wrote: > > > > > > > > On Mon, Jul 22, 2024 at 11:58:18AM +0530, Sughosh

RE: usb gadget driver initialization issue

2024-07-23 Thread Zixun Li
> -Original Message- > From: Zixun Li > Sent: Monday, July 22, 2024 17:53 > To: 'Marek Vasut' ; Lukasz Majewski ; > open list ; Mattijs Korpershoek > > Subject: RE: usb gadget driver initialization issue > > Hi, this issue only affects usb_ether, as g_dnl will enter event loop right > af

Re: [PATCH v4 09/29] makefile: add mbedtls include directories

2024-07-23 Thread Raymond Mao
Hi Ilias, On Tue, 23 Jul 2024 at 03:45, Ilias Apalodimas wrote: > On Thu, 18 Jul 2024 at 23:12, Raymond Mao wrote: > > > > Hi Ilias, > > > > On Wed, 3 Jul 2024 at 07:35, Ilias Apalodimas < > ilias.apalodi...@linaro.org> wrote: > >> > >> On Tue, 2 Jul 2024 at 21:27, Raymond Mao > wrote: > >> >

[PATCH v3 0/5] arm: exynos: Enable TRNG for E850-96 board

2024-07-23 Thread Sam Protsenko
This series enables True Random Number Generator (TRNG) for E850-96 board. Here is a short breakdown of features implemented in this series: 1. Load LDFW (Loadable Firmware) on E850-96 board. It's needed to make TRNG SMC commands functional. To do so, add the default eMMC partition tab

[PATCH v3 2/5] board: samsung: e850-96: Load LDFW firmware on board init

2024-07-23 Thread Sam Protsenko
LDFW is a Loadable Firmware which provides additional security capabilities in EL3 monitor. For example, True Random Number Generator (TRNG) block registers can't be accessed from EL1 (where U-Boot and Linux kernel are running), but it's possible to access TRNG capabilities via corresponding SMC ca

[PATCH v3 1/5] board: samsung: e850-96: Add default partitions

2024-07-23 Thread Sam Protsenko
Add an environment file for E850-96 board with default eMMC partition list. It follows the Samsung's partition list used for Android-Q on Exynos850 devices. It was verified on E850-96 board with: => gpt verify mmc 0 "$partitions" Verify GPT: success! Signed-off-by: Sam Protsenko --- Chang

[PATCH v3 3/5] clk: exynos: Add SSS clocks for Exynos850

2024-07-23 Thread Sam Protsenko
Add ACLK (operating clock) and PCLK (bus clock) for Security Sub System (SSS) in Exynos850. Those clocks are needed for RNG enablement. Signed-off-by: Sam Protsenko --- Changes in v3: - (none) Changes in v2: - (none) drivers/clk/exynos/clk-exynos850.c | 10 ++ 1 file changed, 10 in

[PATCH v3 4/5] rng: Add Exynos TRNG driver

2024-07-23 Thread Sam Protsenko
Add True Random Number Generator (TRNG) driver for Exynos chips. This implementation is heavily based on Linux kernel's counterpart [1]. It also follows upstream dt-bindings [2]. TRNG block is usually a part of SSS (Security Sub System) IP-core on Exynos chips. Because SSS access on Exynos850 is p

[PATCH v3 5/5] arm: exynos: Enable TRNG on E850-96 board

2024-07-23 Thread Sam Protsenko
Enable True Random Number Generator (TRNG) on E850-96 board. To do so: 1. Enable DM_RNG and RNG_EXYNOS for TARGET_E850_96 2. Add TRNG node to E850-96 device tree 3. Enable 'rng' command support for easy TRNG testing TRNG node is already applied in Linux kernel device tree, but it hasn't appe

Re: [PATCH v2 0/5] arm: exynos: Enable TRNG for E850-96 board

2024-07-23 Thread Sam Protsenko
[snip] > > Your patch was failed to apply to u-boot-samsung due to the e850-96_defconfig. > please rebase the patch. > Just sent v3, please take a look. > and about mmc patches, those have delegated to mmc maintainers. > Do you know if I should I ask some specific MMC maintainer to apply that s

Re: How is it possible to flash an image (wic-file) to emmc?

2024-07-23 Thread Fabio Estevam
Hi Michael, On Tue, Jul 23, 2024 at 10:37 AM Stahl, Michael wrote: > > Hi, > after I swichted to the new uboot (2024.01) I can't flash a wic-file to the > emmc anymore. Not so new :-) 2024.07 is the new one. > I use a uboot version for imx8 processors but I think the fastboot parts are > equa

Re: [PATCH v4 00/29] Integrate MbedTLS v3.6 LTS with U-Boot

2024-07-23 Thread Raymond Mao
Hi Tom, On Tue, 2 Jul 2024 at 21:26, Tom Rini wrote: > On Tue, Jul 02, 2024 at 11:22:36AM -0700, Raymond Mao wrote: > > > Integrate MbedTLS v3.6 LTS (currently v3.6.0-RC1) with U-Boot. > > > > Motivations: > > > > > > 1. MbedTLS is well maintained with LTS versions. > > 2. LWIP is i

[PATCH v2] board: rpi: Update memory layout for Aarch64

2024-07-23 Thread Walter Lozano
ARM and Aarch64 have different restrictions and trying to accommodate larger kernels like the ones used in distros can be challenging. For this reason, separate the layout and rearrange the map for Aarch64 to support kernels larger than 36 MB. The current approach is to reserve 128 MB for the kern

Re: [PATCH 1/1] smbios: add extended Extended BIOS ROM Size

2024-07-23 Thread Mark Kettenis
> From: Heinrich Schuchardt > Date: Tue, 23 Jul 2024 12:46:34 +0200 > > U-Boot claims to create SMBIOS 3.7 tables. The type 0 table has > a field Extended BIOS ROM Size since version 3.1. > > BIOS ROM sizes of 16 MiB or above must be written to this field. > > Add and fill the missing field. >

Re: [PATCH 1/1] smbios: add extended Extended BIOS ROM Size

2024-07-23 Thread Mark Kettenis
> Date: Tue, 23 Jul 2024 22:12:57 +0200 > From: Mark Kettenis > > > From: Heinrich Schuchardt > > Date: Tue, 23 Jul 2024 12:46:34 +0200 > > > > U-Boot claims to create SMBIOS 3.7 tables. The type 0 table has > > a field Extended BIOS ROM Size since version 3.1. > > > > BIOS ROM sizes of 16 MiB

Re: [PATCH V2] clk: Propagate clk_set_rate() if CLK_SET_PARENT_RATE present for gate and mux

2024-07-23 Thread Sam Protsenko
On Fri, Jul 5, 2024 at 2:14 AM Michael Trimarchi wrote: > > Gate and mux does not have .set_rate operation, but they could have > CLK_SET_PARENT_RATE flag set. In that case it's usually possible to find a > parent up the tree which is capable of setting the rate (div, pll, etc). > Add clk_generic_

Re: [PATCH v2 2/5] phy: rockchip: naneng-combphy: Introduce PHY-IDs to fix RK3588 muxing

2024-07-23 Thread Sebastian Kropatsch
Hi Jonas, Am 21.07.2024 um 20:40 schrieb Jonas Karlman: Hi Sebastian, On 2024-07-16 22:42, Sebastian Kropatsch wrote: Fix multiplex configuration for PCIe1L0 and PCIe1L1 in PCIESEL_CON for RK3588 to correctly select between Combo PHYs and PCIe3 PHY. Currently, the code incorrectly muxes both p

Re: [PATCH v4 00/29] Integrate MbedTLS v3.6 LTS with U-Boot

2024-07-23 Thread Tom Rini
On Tue, Jul 23, 2024 at 03:24:29PM -0400, Raymond Mao wrote: > Hi Tom, > > On Tue, 2 Jul 2024 at 21:26, Tom Rini wrote: > > > On Tue, Jul 02, 2024 at 11:22:36AM -0700, Raymond Mao wrote: > > > > > Integrate MbedTLS v3.6 LTS (currently v3.6.0-RC1) with U-Boot. > > > > > > Motivations: > > > -

Re: [PATCH] clk: Propagate clk_set_rate() if CLK_SET_PARENT_RATE present

2024-07-23 Thread Sam Protsenko
On Wed, Jul 3, 2024 at 10:00 AM Michael Nazzareno Trimarchi wrote: > > Hi all > > Working on the clock now. I have done a different implementation > > clk-mux, clk-gate I have added a clk_generic_set_rate that is a stub > that propagate to the parent, I think that should work the same but > wihout

Re: [PATCH v2 0/9] Generalize PHYTEC Overlay Handling

2024-07-23 Thread Tom Rini
On Tue, 16 Jul 2024 22:11:25 -0700, Daniel Schultz wrote: > The overlays are specified in the bootenv.txt file that is loaded into > the environment. Then these overlays get loaded and applied via a script. > These scripts for loading and applying devicetree overlays are identical > for many phyte

Re: [PATCH v2] board: keymile: convert to CONFIG_DM_I2C

2024-07-23 Thread Tom Rini
On Sat, 20 Jul 2024 01:24:22 +0200, Anatolij Gustschin wrote: > The conversion to DM_I2C is mandatory, rework to remove > use of legacy I2C API. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH] pxm2: switch to DM_I2C

2024-07-23 Thread Tom Rini
On Sat, 20 Jul 2024 18:54:39 +0200, Anatolij Gustschin wrote: > Enable DM_I2C to avoid board removal warning. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH] board: beagle: convert to CONFIG_DM_I2C

2024-07-23 Thread Tom Rini
On Fri, 19 Jul 2024 23:51:23 +0200, Anatolij Gustschin wrote: > Rework to remove use of legacy I2C API. > > Applied to u-boot/master, thanks! -- Tom

[PATCH v3 0/1] phy: rockchip: snps-pcie3: Fix bifurcation and spelling

2024-07-23 Thread Sebastian Kropatsch
This is only patch 2/5 from the previous v2 patch series since the other patches are already merged. The title has been kept the same as v2 for patch management purposes. Cheers, Sebastian --- Changes v2 -> v3: - Select only patch 2/5 - Call 'dev_read_addr(udev)' only once by using 'addr' in '

[PATCH v3 1/1] phy: rockchip: naneng-combphy: Introduce PHY-IDs to fix RK3588 muxing

2024-07-23 Thread Sebastian Kropatsch
Fix multiplex configuration for PCIe1L0 and PCIe1L1 in PCIESEL_CON for RK3588 to correctly select between Combo PHYs and PCIe3 PHY. Currently, the code incorrectly muxes both ports to Combo PHYs, interfering with PCIe3 PHY settings. Introduce PHY identifiers to identify the correct Combo PHY and se

Re: [PATCH 3/3] arm: dts: k3-j721e: Move to OF_UPSTREAM

2024-07-23 Thread Robert Nelson
On Mon, May 20, 2024 at 8:44 AM Neha Malcom Francis wrote: > > Move to using OF_UPSTREAM config and thus using the devicetree-rebasing > subtree. > > Signed-off-by: Neha Malcom Francis > --- > arch/arm/dts/Makefile |4 +- > arch/arm/dts/k3-j721e-binman.dtsi

RE: [PATCHv1 3/5] cmd: cpu: add release subcommand

2024-07-23 Thread Z.Q. Hou
Hi Fabio, > -Original Message- > From: Fabio Estevam > Sent: Tuesday, July 23, 2024 10:51 PM > To: Z.Q. Hou > Cc: u-boot@lists.denx.de; tr...@konsulko.com; Peng Fan > ; s...@chromium.org > Subject: Re: [PATCHv1 3/5] cmd: cpu: add release subcommand > > On Tue, Jul 23, 2024 at 11:43 AM Z

Re: [PATCHv1 3/5] cmd: cpu: add release subcommand

2024-07-23 Thread Fabio Estevam
Hi Zhiqiang, On Tue, Jul 23, 2024 at 10:02 PM Z.Q. Hou wrote: > The i.MX8M Plus name isn't added to the imx8_cpu.c, will add the i.MX8M > series names. Ok, thanks. Please also fix the CPU frequency.

Re: [PATCH v3 7/8] dts: starfive: Add JH7110 Cadence USB dts node

2024-07-23 Thread Minda Chen
> -邮件原件- > 发件人: E Shattow > 发送时间: 2024年7月23日 21:06 > 收件人: Minda Chen > 抄送: Marek Vasut ; Tom Rini ; Roger > Quadros ; Neil Armstrong ; > Alexey Romanov ; Sumit Garg > ; Mark Kettenis ; Nishanth > Menon ; Rick Chen ; Leo Yu-Chi Liang > ; u-boot@lists.denx.de; Heinrich Schuchardt > ; Simo

[PATCH 01/40] malloc: Support testing with realloc()

2024-07-23 Thread Sughosh Ganu
From: Simon Glass At present in tests it is possible to cause an out-of-memory condition with malloc() but not realloc(). Add support to realloc() too, so code which uses that function can be tested. Signed-off-by: Simon Glass Signed-off-by: Sughosh Ganu --- common/dlmalloc.c | 4 1 file

[PATCH 00/40] Make LMB memory map global and persistent

2024-07-23 Thread Sughosh Ganu
This is a follow-up from an earlier RFC series [1] for making the LMB and EFI memory allocations work together. This is a non-rfc version with only the LMB part of the patches, for making the LMB memory map global and persistent. This is part one of a set of patches which aim to have the LMB an

[PATCH 02/40] lib: Handle a special case with str_to_list()

2024-07-23 Thread Sughosh Ganu
From: Simon Glass The current implementation can return an extra result at the end when the string ends with a space. Fix this by adding a special case. Signed-off-by: Simon Glass Signed-off-by: Sughosh Ganu --- lib/strto.c | 4 +++- test/str_ut.c | 4 +--- 2 files changed, 4 insertions(+),

[PATCH 03/40] alist: Add support for an allocated pointer list

2024-07-23 Thread Sughosh Ganu
From: Simon Glass In various places it is useful to have an array of structures, but allow it to grow. In some cases we work around it by setting maximum number of entries, using a Kconfig option. In other places we use a linked list, which does not provide for random access and can complicate th

[PATCH 04/40] lib: Convert str_to_list() to use alist

2024-07-23 Thread Sughosh Ganu
From: Simon Glass Use this new data structure in the utility function. Signed-off-by: Simon Glass Signed-off-by: Sughosh Ganu --- lib/strto.c | 35 +++ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/lib/strto.c b/lib/strto.c index f83ac67c66..2

[PATCH 05/40] spl: alloc: call full alloc functions if malloc pool is available

2024-07-23 Thread Sughosh Ganu
If the malloc simple functionality is enabled in SPL, it is not possible to call the full-implementation alloc functions even after the heap is set-up in ram memory. Check for this condition and call the functions when enabled. Signed-off-by: Sughosh Ganu --- Changes since rfc: New patch common

[PATCH 06/40] alist: add a couple of helper functions

2024-07-23 Thread Sughosh Ganu
Add a couple of helper functions to detect an empty and full alist. Signed-off-by: Sughosh Ganu --- Changes since rfc: None include/alist.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/include/alist.h b/include/alist.h index 6cc3161dcd..06ae137102 100644 --- a/inc

[PATCH 07/40] lmb: ut: disable unit tests for lmb changes

2024-07-23 Thread Sughosh Ganu
The LMB module code is being overhauled to make it's memory map global and persistent. This involves extensive changes to the LMB code. Disable the unit test code temporarily till the changes are in place. These tests will be enabled in a subsequent commit once all the LMB module and the correspond

[PATCH 08/40] lmb: remove the unused lmb_is_reserved() function

2024-07-23 Thread Sughosh Ganu
The lmb_is_reserved() API is not used. There is another API, lmb_is_reserved_flags() which can be used to check if a particular memory region is reserved. Remove the unused API. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas Reviewed-by: Simon Glass --- Changes since rfc: None incl

[PATCH 09/40] lmb: staticize __lmb_alloc_base()

2024-07-23 Thread Sughosh Ganu
The __lmb_alloc_base() function is only called from within the lmb module. Moreover, the lmb_alloc() and lmb_alloc_base() API's are good enough for the allocation API calls. Make the __lmb_alloc_base() function static. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas Reviewed-by: Simon

[PATCH 10/40] lmb: use the BIT macro for lmb flags

2024-07-23 Thread Sughosh Ganu
Use the BIT macro for assigning values to the LMB flags instead of assigning random values to them. Signed-off-by: Sughosh Ganu --- Changes since rfc: None include/lmb.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/lmb.h b/include/lmb.h index 7b87181b9e..a1de

[PATCH 12/40] lmb: allow for resizing lmb regions

2024-07-23 Thread Sughosh Ganu
Allow for resizing of LMB regions if the region attributes match. The current code returns a failure status on detecting an overlapping address. This worked up until now since the LMB calls were not persistent and global -- the LMB memory map was specific and private to a given caller of the LMB AP

[PATCH 11/40] lmb: make LMB memory map persistent and global

2024-07-23 Thread Sughosh Ganu
The current LMB API's for allocating and reserving memory use a per-caller based memory view. Memory allocated by a caller can then be overwritten by another caller. Make these allocations and reservations persistent using the alloced list data structure. Two alloced lists are declared -- one for

[PATCH 14/40] test: lmb: remove the test for max regions

2024-07-23 Thread Sughosh Ganu
The LMB memory map is now persistent and global, and the CONFIG_LMB_USE_MAX_REGIONS config symbol has now been removed. Remove the corresponding lmb test case. Signed-off-by: Sughosh Ganu Reviewed-by: Simon Glass Reviewed-by: Ilias Apalodimas --- Changes since rfc: None test/lib/lmb.c | 67 --

[PATCH 13/40] lmb: remove config symbols used for lmb region count

2024-07-23 Thread Sughosh Ganu
The LMB memory maps are now being maintained through a couple of alloced lists, one for the available(added) memory, and one for the used memory. These lists are not static arrays but can be extended at runtime. Remove the config symbols which were being used to define the size of these lists with

[PATCH 15/40] lmb: config: add lmb config symbols for SPL

2024-07-23 Thread Sughosh Ganu
Add separate config symbols for enabling the LMB module for the SPL phase. The LMB module implementation now relies on alloced list data structure which requires heap area to be present. Add specific config symbol for the SPL phase of U-Boot so that this can be enabled on platforms which support a

[PATCH 17/40] lmb: introduce a function to add memory to the lmb memory map

2024-07-23 Thread Sughosh Ganu
Introduce a function lmb_add_memory() to add available memory to the LMB memory map. Call this function during board init once the LMB data structures have been initialised. Signed-off-by: Sughosh Ganu --- Changes since rfc: None include/lmb.h | 12 lib/lmb.c | 42 +

[PATCH 16/40] lmb: allow lmb module to be used in SPL

2024-07-23 Thread Sughosh Ganu
With the introduction of separate config symbols for the SPL phase of U-Boot, the condition checks need to be tweaked so that platforms that enable the LMB module in SPL are also able to call the LMB API's. Use the appropriate condition checks to achieve this. Signed-off-by: Sughosh Ganu --- Chan

  1   2   >