[PATCH v8 12/19] imx9: add i.MX95 Kconfig and Makefile

2025-03-28 Thread Alice Guo (OSS)
From: Ye Li This patch adds i.MX95 Kconfig and Makefile. i.MX95 uses SCMI. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/mach-imx/imx9/Kconfig | 8 arch/arm/mach-imx/imx9/Makefile | 9 +++-- 2 files changed, 15 insertions(+), 2 deletions(-) d

Re: [RFC] memtest

2025-03-28 Thread Simon Glass
Hi Andrew, On Mon, 17 Mar 2025 at 16:16, Andrew Goodbody wrote: > > As far as I can tell no one makes any use of > test/py/tests/test_memtest.py. At least there is no entry in > u-boot-hooks that will enable its use. > > This is not surprising as the code does not actually work correctly. It > wi

Re: [PATCH 2/2] tools/fit_check_sign: make key optional

2025-03-28 Thread Daniel Golle
On Sat, Mar 29, 2025 at 03:13:01AM +, Daniel Golle wrote: > Allow invoking fit_check_sig without the key parameter, allowing to > validate only checksums and hashes for unsigned images. Sadly I've missed making the munmap() of the key_blob conditional as well, and while glibc seems to be grace

[PULL] u-boot-sh/next

2025-03-28 Thread Marek Vasut
More basic DBSC5 DRAM controller clean ups and improvements. The following changes since commit 4adbf64ff8d8c730223fd8ae299d770bebb6fe86: Merge branch 'staging' of https://source.denx.de/u-boot/custodians/u-boot-tegra into next (2025-03-26 14:07:37 -0600) are available in the Git repository

Re: [PATCH 1/2] bloblist: fix the overriding of fdt from bloblist

2025-03-28 Thread Raymond Mao
Hi Simon, On Fri, 28 Mar 2025 at 11:13, Simon Glass wrote: > > Hi Raymond, > > On Fri, 28 Mar 2025 at 08:38, Raymond Mao wrote: > > > > Hi Simon, > > > > On Fri, 28 Mar 2025 at 10:26, Simon Glass wrote: > > > > > > Hi Raymond, > > > > > > On Fri, 28 Mar 2025 at 08:17, Raymond Mao wrote: > > >

Re: [PATCH 0/4] bloblist: fdt: Clean up the code

2025-03-28 Thread Raymond Mao
Hi Tom and Simon, On Fri, 28 Mar 2025 at 20:02, Tom Rini wrote: > > On Fri, Mar 28, 2025 at 11:38:14PM +, Simon Glass wrote: > > Hi Tom, > > > > On Fri, 28 Mar 2025 at 10:18, Tom Rini wrote: > > > > > > On Fri, Mar 28, 2025 at 09:43:54AM -0600, Simon Glass wrote: > > > > > > > The bloblist c

Re: [PATCH 2/2] env: point fdt address to the fdt in a bloblist

2025-03-28 Thread Simon Glass
Hi Raymond, On Fri, 28 Mar 2025 at 09:06, Raymond Mao wrote: > > Hi Simon, > > On Fri, 28 Mar 2025 at 07:35, Simon Glass wrote: > > > > Hi Raymond, > > > > On Thu, 27 Mar 2025 at 17:13, Raymond Mao wrote: > > > > > > Point fdt_addr to the fdt embedded in the bloblist since fdt_addr > > > is a d

Re: [PATCH v3 1/2] CI: Move default image under global defaults

2025-03-28 Thread Tom Rini
On Fri, Mar 28, 2025 at 11:47:12PM +, Simon Glass wrote: > Hi Tom, > > On Thu, 6 Mar 2025 at 10:13, Tom Rini wrote: > > > > On Thu, Mar 06, 2025 at 09:13:52AM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Thu, 6 Mar 2025 at 07:37, Tom Rini wrote: > > > > > > > > On Thu, Mar 06, 2025

Re: [PATCH 2/2] env: point fdt address to the fdt in a bloblist

2025-03-28 Thread Tom Rini
On Fri, Mar 28, 2025 at 11:39:13PM +, Simon Glass wrote: > Hi Raymond, > > On Fri, 28 Mar 2025 at 09:06, Raymond Mao wrote: > > > > Hi Simon, > > > > On Fri, 28 Mar 2025 at 07:35, Simon Glass wrote: > > > > > > Hi Raymond, > > > > > > On Thu, 27 Mar 2025 at 17:13, Raymond Mao wrote: > > > >

Re: [RFC PATCH 1/2 v2] tools: binman: control.py: Propagate bootph-* properties to supernodes

2025-03-28 Thread Simon Glass
Hi Quentin, On Fri, 28 Mar 2025 at 14:46, Quentin Schulz wrote: > > Hi Moteen, > > On 3/27/25 9:06 AM, Moteen Shah wrote: > > Add a function to scan through all the nodes in the device-tree > > recusively for bootph-* property. If found, propagate it to all > > of its parent nodes up the hierarch

Re: [PATCH 0/4] bloblist: fdt: Clean up the code

2025-03-28 Thread Tom Rini
On Fri, Mar 28, 2025 at 11:38:14PM +, Simon Glass wrote: > Hi Tom, > > On Fri, 28 Mar 2025 at 10:18, Tom Rini wrote: > > > > On Fri, Mar 28, 2025 at 09:43:54AM -0600, Simon Glass wrote: > > > > > The bloblist code took what I consider to be a wrong turn a year or so > > > ago. As discussed wi

Re: [PATCH 00/52] expo: Various features and improvements

2025-03-28 Thread Tom Rini
On Fri, Mar 28, 2025 at 11:41:29PM +, Simon Glass wrote: > Hi Tom, > > On Fri, 28 Mar 2025 at 10:42, Tom Rini wrote: > > > > On Fri, Mar 28, 2025 at 07:05:35AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Thu, 27 Mar 2025 at 08:17, Tom Rini wrote: > > > > > > > > On Thu, Mar 27, 20

Re: [PATCH v3 19/31] rockchip: Provide a VPL phase on rk3399

2025-03-28 Thread Tom Rini
On Fri, Mar 28, 2025 at 11:40:01PM +, Simon Glass wrote: > Hi Tom, > > On Fri, 28 Mar 2025 at 10:16, Jonas Karlman wrote: > > > > Hi Simon, > > > > On 2025-03-28 16:34, Simon Glass wrote: > > > Add support for this new phase, which runs after TPL. It determines the > > > state of the machine,

Re: [PATCH 01/18] spl: mmc: properly annotate fallthrough

2025-03-28 Thread Tom Rini
On Thu, Mar 27, 2025 at 03:32:56PM +, Andre Przywara wrote: > Depending on the various MMC boot configurations, we might end up with > trying filesystem mode when a raw image boot failed. This fall-through > in the switch/case statement is explained in a comment, but this is not > visible to t

Re: [PATCH] dtc: introduce label relative path references

2025-03-28 Thread Tom Rini
On Fri, Mar 28, 2025 at 05:31:15PM +0100, Patrice Chotard wrote: > Since introduction of OF_UPSTREAM flag, U-Boot's dtc must be able > to compile Kernel's device tree. > > Since kernel commit 7de129f5389b ("ARM: dts: stm32: stm32mp151a-prtt1l: > Fix QSPI configuration"), label relative path refer

Re: [PATCH 0/4] bloblist: fdt: Clean up the code

2025-03-28 Thread Simon Glass
Hi Tom, On Fri, 28 Mar 2025 at 10:18, Tom Rini wrote: > > On Fri, Mar 28, 2025 at 09:43:54AM -0600, Simon Glass wrote: > > > The bloblist code took what I consider to be a wrong turn a year or so > > ago. As discussed with Tom, this series proposes a way to arrange things > > so that it is simple

Re: [PATCH 2/2] env: point fdt address to the fdt in a bloblist

2025-03-28 Thread Tom Rini
On Thu, Mar 27, 2025 at 04:13:17PM -0700, Raymond Mao wrote: > Point fdt_addr to the fdt embedded in the bloblist since fdt_addr > is a default address for bootefi, bootm and booti to look for the > device tree when launching the kernel. > > Signed-off-by: Raymond Mao > --- > env/common.c | 17

Re: [RFC PATCH 1/2 v2] tools: binman: control.py: Propagate bootph-* properties to supernodes

2025-03-28 Thread Simon Glass
Hi Moteen, On Thu, 27 Mar 2025 at 08:06, Moteen Shah wrote: > > Add a function to scan through all the nodes in the device-tree > recusively for bootph-* property. If found, propagate it to all > of its parent nodes up the hierarchy. > > Signed-off-by: Moteen Shah > --- > tools/binman/control.p

Re: [PATCH v3 1/2] CI: Move default image under global defaults

2025-03-28 Thread Simon Glass
Hi Tom, On Thu, 6 Mar 2025 at 10:13, Tom Rini wrote: > > On Thu, Mar 06, 2025 at 09:13:52AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 6 Mar 2025 at 07:37, Tom Rini wrote: > > > > > > On Thu, Mar 06, 2025 at 06:59:08AM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Wed,

Re: [PATCH 00/52] expo: Various features and improvements

2025-03-28 Thread Simon Glass
Hi Tom, On Fri, 28 Mar 2025 at 10:42, Tom Rini wrote: > > On Fri, Mar 28, 2025 at 07:05:35AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 27 Mar 2025 at 08:17, Tom Rini wrote: > > > > > > On Thu, Mar 27, 2025 at 07:36:02AM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Tue

Re: [PATCH v3 19/31] rockchip: Provide a VPL phase on rk3399

2025-03-28 Thread Simon Glass
Hi Peter, On Fri, 28 Mar 2025 at 10:51, Peter Robinson wrote: > > Hi Simon, > > On Fri, 28 Mar 2025 at 15:38, Simon Glass wrote: >> >> Add support for this new phase, which runs after TPL. It determines the >> state of the machine, then selects which SPL image to use. SDRAM init is >> then done

Re: [PATCH v3 19/31] rockchip: Provide a VPL phase on rk3399

2025-03-28 Thread Simon Glass
Hi Tom, On Fri, 28 Mar 2025 at 10:16, Jonas Karlman wrote: > > Hi Simon, > > On 2025-03-28 16:34, Simon Glass wrote: > > Add support for this new phase, which runs after TPL. It determines the > > state of the machine, then selects which SPL image to use. SDRAM init is > > then done in SPL, so th

Re: [PATCH] dtc: introduce label relative path references

2025-03-28 Thread Simon Glass
Hi Patrice, On Fri, 28 Mar 2025 at 11:35, Patrice CHOTARD wrote: > > > > On 3/28/25 18:06, Peter Robinson wrote: > > On Fri, 28 Mar 2025 at 16:52, Patrice Chotard > > wrote: > > > >> Since introduction of OF_UPSTREAM flag, U-Boot's dtc must be able > >> to compile Kernel's device tree. > >> > >>

Re: [PATCH v3 19/31] rockchip: Provide a VPL phase on rk3399

2025-03-28 Thread Jonas Karlman
Hi Simon, On 2025-03-28 16:34, Simon Glass wrote: > Add support for this new phase, which runs after TPL. It determines the > state of the machine, then selects which SPL image to use. SDRAM init is > then done in SPL, so that it is updatable. > > Signed-off-by: Simon Glass > --- > > (no change

Re: [PATCH v3 10/31] rockchip: dts: Use the new binman template for the SPI image too

2025-03-28 Thread Simon Glass
Hi Jonas, On Fri, 28 Mar 2025 at 12:19, Jonas Karlman wrote: > > Hi Simon, > > Patch 05 to 10 should still be split out to a separate series. > > They help fix an issue that already have a different conflicting patch > on mailing list [1]. > > The request to split these patches out was to help/ea

Re: [PATCH v3 10/31] rockchip: dts: Use the new binman template for the SPI image too

2025-03-28 Thread Jonas Karlman
Hi Simon, Patch 05 to 10 should still be split out to a separate series. They help fix an issue that already have a different conflicting patch on mailing list [1]. The request to split these patches out was to help/ease work for other U-Boot developers such as myself. I have a follow up patch t

Re: [PATCH 0/4] usb: gadget: f_mass_storage: Fix crashes on low memory devices

2025-03-28 Thread Zixun LI
On Fri, Mar 28, 2025 at 9:15 AM Mattijs Korpershoek wrote: > This series fixes the above mentioned crash by introducing proper error > handling and freeing the buffers in the unbind callback. Hi Mattijs, Thank you for the quick fix, I've tested on SAM9X60 with multiple ums commands and it works.

Re: [PATCH] efi_loader: remove EFI_BOUNCE_BUFFER

2025-03-28 Thread Mark Kettenis
> Date: Fri, 28 Mar 2025 10:04:19 -0600 > From: Tom Rini > > On Fri, Mar 28, 2025 at 02:26:39PM +0200, Ilias Apalodimas wrote: > > On Fri, 28 Mar 2025 at 13:34, Simon Glass wrote: > > > > > > Hi Ilias, > > > > > > On Thu, 27 Mar 2025 at 15:19, Ilias Apalodimas > > > wrote: > > > > > > > > Hi Si

Re: [PATCH] dtc: introduce label relative path references

2025-03-28 Thread Patrice CHOTARD
On 3/28/25 18:06, Peter Robinson wrote: > On Fri, 28 Mar 2025 at 16:52, Patrice Chotard > wrote: > >> Since introduction of OF_UPSTREAM flag, U-Boot's dtc must be able >> to compile Kernel's device tree. >> >> Since kernel commit 7de129f5389b ("ARM: dts: stm32: stm32mp151a-prtt1l: >> Fix QSPI

Re: [PATCH v3 21/31] rockchip: rk3399: Adjust initial TPL-stack to match SPL

2025-03-28 Thread Jonas Karlman
Hi Simon, On 2025-03-28 16:35, Simon Glass wrote: > There doesn't seem to be a good reason to use a different value for TPL > than SPL. This reference to SPL stack addr is still a little bit confusing, all RK3399 boards now use a SPL stack addr in DRAM and not i SRAM. So SPL and TPL stack addr w

Re: [PATCH 1/3] fastboot: lift restrictions on !NET_LWIP for USB

2025-03-28 Thread Mattijs Korpershoek
Hi Michael, Tom, On ven., mars 28, 2025 at 09:59, Tom Rini wrote: > On Fri, Mar 28, 2025 at 10:06:12AM +0100, Michael Walle wrote: >> Hi Mattijs, >> >> > > Fastboot works either over TCP, UDP or USB. The latter doesn't have >> > > anything to do with networking, thus should work just fine with

Re: [PATCH] dtc: introduce label relative path references

2025-03-28 Thread Peter Robinson
On Fri, 28 Mar 2025 at 16:52, Patrice Chotard wrote: > Since introduction of OF_UPSTREAM flag, U-Boot's dtc must be able > to compile Kernel's device tree. > > Since kernel commit 7de129f5389b ("ARM: dts: stm32: stm32mp151a-prtt1l: > Fix QSPI configuration"), label relative path references has be

[PATCH v3 26/31] rockchip: Set the skip-at-start property correctly

2025-03-28 Thread Simon Glass
The rockchip image is written to the media at block 64, which is a 32K offset, so set the skip-at-start property to 0x8000 Update CONFIG_SPL_PAD_TO to point to the offset in the image, since Binman is dealing with the 'missing' 32K now. Signed-off-by: Simon Glass --- (no changes since v2) Chan

Re: [PATCH] efi_loader: remove EFI_BOUNCE_BUFFER

2025-03-28 Thread Heinrich Schuchardt
On 28.03.25 17:04, Tom Rini wrote: On Fri, Mar 28, 2025 at 02:26:39PM +0200, Ilias Apalodimas wrote: On Fri, 28 Mar 2025 at 13:34, Simon Glass wrote: Hi Ilias, On Thu, 27 Mar 2025 at 15:19, Ilias Apalodimas wrote: Hi Simon On Thu, 27 Mar 2025 at 15:33, Simon Glass wrote: Hi Ilias, On

Re: [PATCH v3 19/31] rockchip: Provide a VPL phase on rk3399

2025-03-28 Thread Peter Robinson
Hi Simon, On Fri, 28 Mar 2025 at 15:38, Simon Glass wrote: > Add support for this new phase, which runs after TPL. It determines the > state of the machine, then selects which SPL image to use. SDRAM init is > then done in SPL, so that it is updatable. > > Signed-off-by: Simon Glass > --- > > (

[PATCH] dtc: introduce label relative path references

2025-03-28 Thread Patrice Chotard
Since introduction of OF_UPSTREAM flag, U-Boot's dtc must be able to compile Kernel's device tree. Since kernel commit 7de129f5389b ("ARM: dts: stm32: stm32mp151a-prtt1l: Fix QSPI configuration"), label relative path references has been introduced. These label relative path references is not suppo

Re: dtc: "syntax error" linked to &{label/subnode} syntax

2025-03-28 Thread Patrice CHOTARD
On 2/24/25 15:58, Patrice CHOTARD wrote: > > > On 2/3/25 08:23, Patrice CHOTARD wrote: >> >> >> On 1/31/25 17:01, Tom Rini wrote: >>> On Fri, Jan 31, 2025 at 03:41:37PM +0100, Patrice CHOTARD wrote: On 1/29/25 23:01, Tom Rini wrote: > On Tue, Jan 28, 2025 at 09:04:26AM -0600

Re: [PATCH v3 20/31] rockchip: Add symbols for spl_reloc

2025-03-28 Thread Jonas Karlman
Hi Simon, On 2025-03-28 16:35, Simon Glass wrote: > Add various symbols so that this feature works as intended. This allows > xPL to copy the relocating-jump code up to the top of memory, then use > it to decompress and start the next phase. > > Signed-off-by: Simon Glass > --- > > (no changes

Re: [PATCH 00/52] expo: Various features and improvements

2025-03-28 Thread Tom Rini
On Fri, Mar 28, 2025 at 07:05:35AM -0600, Simon Glass wrote: > Hi Tom, > > On Thu, 27 Mar 2025 at 08:17, Tom Rini wrote: > > > > On Thu, Mar 27, 2025 at 07:36:02AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Tue, 25 Mar 2025 at 10:24, Tom Rini wrote: > > > > > > > > On Fri, Mar 21, 20

Re: [PATCH v3 18/31] rockchip: Update rk3399 bootph-tags for VPL

2025-03-28 Thread Jonas Karlman
Hi Simon, On 2025-03-28 16:34, Simon Glass wrote: > When VPL is in use, memory init happens in SPL, so there is no need to > include the DMC device before that. Adjust the tags to save space. > > Signed-off-by: Simon Glass > --- > > (no changes since v2) > > Changes in v2: > - Only enable MMC

[PATCH] MAINTAINERS: Update email of Mattijs Korpershoek

2025-03-28 Thread Mattijs Korpershoek
My preferred email address is mkorpersh...@kernel.org now. This updates the MAINTAINERS files and adds an entry in the .mailmap file. Signed-off-by: Mattijs Korpershoek --- .mailmap| 1 + MAINTAINERS | 10 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.mailmap b

Re: [PATCH v4 00/12] Add imx8mp video support

2025-03-28 Thread Miquel Raynal
>> > I see that the Azure failure is: >> > https://dev.azure.com/u-boot/u-boot/_build/results?buildId=10824&view=results >> > which was the unfortunate "next is broken because master has a fix and >> > next has a test that needed updating now" that happened this week with >> > -rc5 being merged. So

Re: [PATCH] efi_loader: remove EFI_BOUNCE_BUFFER

2025-03-28 Thread Tom Rini
On Fri, Mar 28, 2025 at 05:17:36PM +0100, Heinrich Schuchardt wrote: > On 28.03.25 17:04, Tom Rini wrote: > > On Fri, Mar 28, 2025 at 02:26:39PM +0200, Ilias Apalodimas wrote: > > > On Fri, 28 Mar 2025 at 13:34, Simon Glass wrote: > > > > > > > > Hi Ilias, > > > > > > > > On Thu, 27 Mar 2025 at

[PATCH] test/py: memtest: Fix test for non-trivial parameters

2025-03-28 Thread Andrew Goodbody
When using non-trivial values for parameters for this test it will cause a spurious failure as the test passes a decimal value to the mtest command which will interpret it as hexadecimal and result in failure as below. test/py/tests/test_memtest.py:66: in test_memtest_ddr assert expected_respo

Re: [PATCH v5 38/46] boot: Consider non-bootable partitions

2025-03-28 Thread Tom Rini
On Fri, Mar 21, 2025 at 07:38:27PM +0100, Simon Glass wrote: > Hi Tom, > > On Thu, 20 Mar 2025 at 15:22, Tom Rini wrote: > > > > On Thu, Mar 20, 2025 at 03:43:36AM +, Simon Glass wrote: > > > Hi Tom, > > > > > > On Wed, 19 Mar 2025 at 16:40, Tom Rini wrote: > > > > > > > > On Wed, Mar 19, 20

Re: [PATCH v3 08/31] rockchip: dts: Create a template for the FIT

2025-03-28 Thread Jonas Karlman
Hi Simon, On 2025-03-28 16:34, Simon Glass wrote: > Move the FIT description into a template so that it can (later) be used > in multiple places in the image. > > Signed-off-by: Simon Glass > Reviewed-by: Jonas Karlman > --- > > Changes in v3: > - Use HAS_FIT for the SPI node also > - Leave fi

[PATCH 4/4] fdt: Obtain the FDT from bloblist without parsing it

2025-03-28 Thread Simon Glass
We don't need or want to parse the bloblist to obtain the FDT. Use the feature in the transfer list that was designed for this situation. This avoids the complexity of trying to init the bloblist twice before relocation. Signed-off-by: Simon Glass --- common/bloblist.c | 32 ++

Re: [PATCH 0/4] bloblist: fdt: Clean up the code

2025-03-28 Thread Tom Rini
On Fri, Mar 28, 2025 at 09:43:54AM -0600, Simon Glass wrote: > The bloblist code took what I consider to be a wrong turn a year or so > ago. As discussed with Tom, this series proposes a way to arrange things > so that it is simpler to understand and manage. > > - Unwind some of the nesting in bl

Re: [PATCH v3 19/31] rockchip: Provide a VPL phase on rk3399

2025-03-28 Thread Jonas Karlman
Hi Simon, On 2025-03-28 16:34, Simon Glass wrote: > Add support for this new phase, which runs after TPL. It determines the > state of the machine, then selects which SPL image to use. SDRAM init is > then done in SPL, so that it is updatable. > > Signed-off-by: Simon Glass > --- > > (no change

[PATCH v3 23/31] rockchip: Add a generic-ddr3 rk3399 board

2025-03-28 Thread Simon Glass
This build-target is used to build an image which can run on multiple rk3399 boards, using VBE to boot. To use it, the TPL binary for a particular board must be placed into the first part of the image. The rest of the image (i.e. VPL, SPL and U-Boot) are largely generic and can work on any support

Re: [PATCH] efi_loader: remove EFI_BOUNCE_BUFFER

2025-03-28 Thread Tom Rini
On Fri, Mar 28, 2025 at 02:26:39PM +0200, Ilias Apalodimas wrote: > On Fri, 28 Mar 2025 at 13:34, Simon Glass wrote: > > > > Hi Ilias, > > > > On Thu, 27 Mar 2025 at 15:19, Ilias Apalodimas > > wrote: > > > > > > Hi Simon > > > > > > On Thu, 27 Mar 2025 at 15:33, Simon Glass wrote: > > > > > > >

[PATCH v3 00/31] VBE serial part H: Implement VBE on Rockchip RK3399

2025-03-28 Thread Simon Glass
This series completes the work to enable VBE on a suitable board. Most of it is rockchip-specific patches to support the VPL phase, i.e. the one which decides which boot patch to take (A, B or recovery). A good chunk of this series is adding an image for VBE, by creating a new Binman image. Future

[PATCH v3 09/31] rockchip: dts: Un-indent the FIT template

2025-03-28 Thread Simon Glass
Fix the indentation on the template. This is done in a separate patch so that it is easier to review. Signed-off-by: Simon Glass Reviewed-by: Jonas Karlman --- (no changes since v1) arch/arm/dts/rockchip-u-boot.dtsi | 176 +++--- 1 file changed, 88 insertions(+), 88 de

Re: [PATCH 2/2] power: regulator: add qcom-usb-vbus

2025-03-28 Thread Rui Miguel Silva
Hey Caleb, On Thu Mar 20, 2025 at 5:34 PM WET, Caleb Connolly wrote: > > Jaehoon: do you mind if I just take these both through the Qualcomm tree? > > If not then feel free to pick this one up > > Acked-by: Caleb Connolly Maybe it is easier/faster for you to pick this ones, one month passed. Tha

Re: [PATCH v3 29/31] RFC: Revert "bloblist: Load the bloblist from the previous loader"

2025-03-28 Thread Tom Rini
On Fri, Mar 28, 2025 at 11:50:14AM -0400, Raymond Mao wrote: > Hi Simon, > > > On Fri, 28 Mar 2025 at 11:36, Simon Glass wrote: > > > > The logic of this has become too confusing. > > > > The primary issue with the patch is that U-Boot needs to set up a > > bloblist in the first phase where BLOB

Re: [PATCH v4 00/12] Add imx8mp video support

2025-03-28 Thread Tom Rini
On Fri, Mar 28, 2025 at 09:39:23AM +0100, Miquel Raynal wrote: > On 27/03/2025 at 08:14:42 -06, Tom Rini wrote: > > > On Thu, Mar 27, 2025 at 10:31:18AM -0300, Fabio Estevam wrote: > >> Hi Miquel, > >> > >> On Wed, Mar 26, 2025 at 12:01 PM Miquel Raynal > >> wrote: > >> > >> > I rebased this w

[PATCH v2 48/56] expo: Support highlighting menu items

2025-03-28 Thread Simon Glass
Expo normally uses a pointer to show the current item. Add support for highlighting as well, since this makes it easier for the user to see the current item. Signed-off-by: Simon Glass --- (no changes since v1) boot/cedit.c | 1 + boot/scene.c | 31 +-- b

Re: [PATCH 1/3] fastboot: lift restrictions on !NET_LWIP for USB

2025-03-28 Thread Tom Rini
On Fri, Mar 28, 2025 at 10:06:12AM +0100, Michael Walle wrote: > Hi Mattijs, > > > > Fastboot works either over TCP, UDP or USB. The latter doesn't have > > > anything to do with networking, thus should work just fine with > > > regardless which network stack is selected. In practice, header symbo

[PATCH v3 14/31] rockchip: Include a compatible string in each configuration

2025-03-28 Thread Simon Glass
Provide a compatible string so that U-Boot can decide which configuration to use. Signed-off-by: Simon Glass Reviewed-by: Jonas Karlman --- (no changes since v1) arch/arm/dts/rockchip-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/rockchip-u-boot.dtsi b/arch/arm

[PATCH v3 12/31] rockchip: Provide a bootstd configuration

2025-03-28 Thread Simon Glass
Add bootstd information for VBE. Put it in a separate file to avoid cluttering the main one. Signed-off-by: Simon Glass --- Changes in v3: - Add a comment about the offsets Changes in v2: - Move VPL things into a separate file arch/arm/dts/rockchip-u-boot.dtsi | 4 +++ arch/arm/dts/rockc

[PATCH 1/4] bloblist: Simplify bloblist init

2025-03-28 Thread Simon Glass
This has become quite complicated now, with much of the code indented, gd->bloblist set in multiple places, multiple error paths and ret set to different things in different places. Make an attempt to simplify it, without changing functionality. Signed-off-by: Simon Glass --- common/bloblist.c

Re: [PATCH v3 29/31] RFC: Revert "bloblist: Load the bloblist from the previous loader"

2025-03-28 Thread Raymond Mao
Hi Simon, On Fri, 28 Mar 2025 at 11:36, Simon Glass wrote: > > The logic of this has become too confusing. > > The primary issue with the patch is that U-Boot needs to set up a > bloblist in the first phase where BLOBLIST is enabled. Subsequent > phases can then use that bloblist. > > But the fi

[PATCH 3/4] bloblist: Provide access to the FDT address

2025-03-28 Thread Simon Glass
The firmware handoff specification provides for a devicetree pointer in a register. Provide access to that so we don't have to parse the bloblist to get it. Signed-off-by: Simon Glass --- arch/arm/lib/xferlist.c | 6 -- common/bloblist.c | 5 +++-- include/bloblist.h | 5 +++-- 3

[PATCH 2/4] fdt: Introduce OF_BLOBLIST

2025-03-28 Thread Simon Glass
Add an option which indicates that the devicetree comes from the bloblist. After discussions with Tom, it seems we are comfortable with introducing this option, ensuring of course that the transfer list is properly supported. Signed-off-by: Simon Glass --- doc/develop/devicetree/control.rst |

[PATCH 0/4] bloblist: fdt: Clean up the code

2025-03-28 Thread Simon Glass
The bloblist code took what I consider to be a wrong turn a year or so ago. As discussed with Tom, this series proposes a way to arrange things so that it is simpler to understand and manage. - Unwind some of the nesting in bloblist_init() - Avoid needing to init the bloblist just to get the FDT -

[PATCH v2 07/24] clk: clk-gate: Use struct udevice instead of struct device

2025-03-28 Thread Marek Vasut
Use U-Boot specific struct udevice instead of Linux compatibility struct device in clk-gate registration. Signed-off-by: Marek Vasut --- Cc: Adam Ford Cc: Christoph Niedermaier Cc: Dong Aisheng Cc: Fabio Estevam Cc: Hou Zhiqiang Cc: Michael Trimarchi Cc: Peng Fan Cc: Tim Harvey Cc: Tom Ri

[PATCH v3 31/31] bloblist: Allow using a different bloblist address

2025-03-28 Thread Simon Glass
Where the bloblist is located in internal memory and TF-A's BL31 blob removes access to this memory, the best option seems to be to relocate the bloblist just before running TF-A. We can do the relocation in board-specific code, but need an option to pick up the correct address within U-Boot prope

[PATCH v3 28/31] rockchip: Update binman image for new skip-at-start setup

2025-03-28 Thread Simon Glass
Now that the skip-at-start feature is properly used in Binman, drop the various workarounds in the image. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Split out the fixes for skip-at-start into a new patch arch/arm/dts/rockchip-vpl-u-boot.dtsi | 7 +++ 1 file chan

[PATCH v3 30/31] rockchip: Relocate bloblist at the end of the SPL phase

2025-03-28 Thread Simon Glass
Where the bloblist is located in internal memory and TF-A's BL31 blob removes access to this memory, the best option seems to be to relocate the bloblist just before running TF-A. Do this at the end of SPL. Signed-off-by: Simon Glass Suggested-by: Raymond Mao --- Changes in v3: - Add the BLOBL

[PATCH v3 29/31] RFC: Revert "bloblist: Load the bloblist from the previous loader"

2025-03-28 Thread Simon Glass
The logic of this has become too confusing. The primary issue with the patch is that U-Boot needs to set up a bloblist in the first phase where BLOBLIST is enabled. Subsequent phases can then use that bloblist. But the first phase of U-Boot cannot assume that one exists. Reverting this commit se

[PATCH v3 27/31] vbe: Add a bootmeth driver for abrec

2025-03-28 Thread Simon Glass
Add a VBE-ABrec bootmeth so that the VBE state can be accessed. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Add new patch with a bootmeth driver for abrec boot/vbe_abrec.c | 99 1 file changed, 99 insertions(+) diff -

[PATCH v3 25/31] gitlab: Add an VBE board to the sjg lab

2025-03-28 Thread Simon Glass
Add a rockchip rk3399 board which runs Verified Boot for Embedded. Signed-off-by: Simon Glass --- (no changes since v1) .gitlab-ci.yml | 5 + 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0a7eef0a1d7..32c7b8e4a09 100644 --- a/.gitlab-ci.yml +++ b/.gitl

[PATCH v3 24/31] rockchip: Add documentation for VBE

2025-03-28 Thread Simon Glass
Now that VBE is running at a basic level on rk3399, add mention of it in the documentation. Signed-off-by: Simon Glass --- (no changes since v1) doc/board/rockchip/rockchip.rst | 13 + 1 file changed, 13 insertions(+) diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockch

[PATCH v3 22/31] rockchip: Allow SPL to set up SDRAM

2025-03-28 Thread Simon Glass
The current logic assumes that if TPL exists then it must be setting up the SDRAM. This is not true with VBE, so allow this to be controlled by whether CONFIG_TPL_RAM is enabled, or not. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/mach-rockchip/tpl.c | 10 ++ 1 file c

[PATCH v3 21/31] rockchip: rk3399: Adjust initial TPL-stack to match SPL

2025-03-28 Thread Simon Glass
There doesn't seem to be a good reason to use a different value for TPL than SPL. Change the TPL value, since it allows a 256-byte bloblist to be safely located above the stack in all phases. Note that for most boards, SDRAM init happens in TPL so the SPL stack ends up in DRAM, at address CONFIG_S

[PATCH v3 20/31] rockchip: Add symbols for spl_reloc

2025-03-28 Thread Simon Glass
Add various symbols so that this feature works as intended. This allows xPL to copy the relocating-jump code up to the top of memory, then use it to decompress and start the next phase. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/mach-rockchip/u-boot-tpl-v8.lds | 13 +

[PATCH v3 19/31] rockchip: Provide a VPL phase on rk3399

2025-03-28 Thread Simon Glass
Add support for this new phase, which runs after TPL. It determines the state of the machine, then selects which SPL image to use. SDRAM init is then done in SPL, so that it is updatable. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Rewrite help for VPL_ROCKCHIP_COMMON_

[PATCH v3 18/31] rockchip: Update rk3399 bootph-tags for VPL

2025-03-28 Thread Simon Glass
When VPL is in use, memory init happens in SPL, so there is no need to include the DMC device before that. Adjust the tags to save space. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Only enable MMC when VPM is in use. arch/arm/dts/rk3399-u-boot.dtsi | 11 ++-

[PATCH v3 17/31] rockchip: Add TPL alternatives

2025-03-28 Thread Simon Glass
The TPL image must be built for each board we need to support. It is the only part of the image which is board-specific. This helps to save space and reduce the size of TPL, so that it can fit within the internal 192K IRAM of the RK3399 SoC. As with other phases, the TPL devicetree is run through

[PATCH v3 16/31] rockchip: Add a VPL image

2025-03-28 Thread Simon Glass
The VPL image is immutable and has a single VPL binary plus a devicetree for each board we need to support. The devicetree is run through fdtgrep to remove unwanted nodes and properties and reduce its size. Changes in v2: - Move VPL things into a separate file Signed-off-by: Simon Glass --- (n

[PATCH v3 15/31] rockchip: Add a template for SPL

2025-03-28 Thread Simon Glass
The SPL phase has a single SPL binary plus a devicetree for each board we need to support. The devicetree is run through fdtgrep to remove unwanted nodes and properties and reduce its size. While it would be nicer to just have a single FIT holding both the SPL and U-Boot images, there may not be

[PATCH v3 11/31] rockchip: dts: Specify the phase in the image

2025-03-28 Thread Simon Glass
Add 'u-boot' as the phase for the images intended for use with U-Boot proper. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/dts/rockchip-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/rockchip-u-boot.dtsi b/arch/arm/dts/rockchip-u-boot.dtsi in

[PATCH v3 13/31] rockchip: Add SPL into the main FIT

2025-03-28 Thread Simon Glass
VBE may want to load the SPL image from the same FIT as contains U-Boot, if there is enough memory, so add it. Changes in v2: - Move VPL things into a separate file Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/dts/rockchip-vpl-u-boot.dtsi | 29 +++ 1 f

[PATCH v3 10/31] rockchip: dts: Use the new binman template for the SPI image too

2025-03-28 Thread Simon Glass
At present simple-bin-spi relies on the u-boot.itb file created by the simple-bin image. Use the template to avoid this, since Binman may change to process images in parallel in the future. Signed-off-by: Simon Glass Reviewed-by: Jonas Karlman Suggested-by: Jonas Karlman --- Changes in v3: - K

[PATCH v3 06/31] rockchip: dts: Factor out arch and compression

2025-03-28 Thread Simon Glass
Declare these at the top of the file to avoid needing #ifdefs in every usage. Add a few comments to help with the remaining #ifdefs Signed-off-by: Simon Glass Reviewed-by: Jonas Karlman --- (no changes since v1) arch/arm/dts/rockchip-u-boot.dtsi | 44 +++ 1 file c

[PATCH v3 08/31] rockchip: dts: Create a template for the FIT

2025-03-28 Thread Simon Glass
Move the FIT description into a template so that it can (later) be used in multiple places in the image. Signed-off-by: Simon Glass Reviewed-by: Jonas Karlman --- Changes in v3: - Use HAS_FIT for the SPI node also - Leave fit { node open within #ifdef HAS_FIT - Move placement of CONFIG_SPL_PAD_

[PATCH v3 07/31] rockchip: dts: Add an fdtmap

2025-03-28 Thread Simon Glass
Add an fdtmap so it is possible to look at the image with 'binman ls'. Signed-off-by: Simon Glass Reviewed-by: Jonas Karlman --- Changes in v3: - Add blank lines before the node arch/arm/dts/rockchip-u-boot.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/rockchip-u

[PATCH v3 05/31] rockchip: dts: Correct the OS for U-Boot

2025-03-28 Thread Simon Glass
The U-Boot section is currently getting an invalid OS. Use the correct value to fix this. Signed-off-by: Simon Glass Reviewed-by: Jonas Karlman --- (no changes since v2) Changes in v2: - Put this patch before 'Factor out arch and compression' arch/arm/dts/rockchip-u-boot.dtsi | 2 +- 1 file

[PATCH v3 04/31] rockchip: Allow RAM init to happen in SPL on rk3399

2025-03-28 Thread Simon Glass
TPL runs before VPL. The earliest updatable phase with VBE is SPL. We want to be able to update the RAM-init code in the field. So when VPL is being used, init the RAM later, in SPL. Signed-off-by: Simon Glass --- (no changes since v1) drivers/ram/rockchip/sdram_rk3399.c | 6 -- 1 file ch

[PATCH v3 01/31] spl: Adjust xPL symbols

2025-03-28 Thread Simon Glass
Update for the new xPL naming, which was missed in a previous patch which purported to do this. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- (no changes since v1) common/spl/spl_reloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/spl/spl_reloc.c b/common

[PATCH v3 03/31] vbe: Show the margin when using SPL_RELOC

2025-03-28 Thread Simon Glass
Collect information about the memory-margin in each phase which uses this feature. Update the 'vbe state' command to show it. Signed-off-by: Simon Glass --- (no changes since v1) cmd/vbe.c | 8 ++-- common/spl/spl_reloc.c | 12 include/vbe.h | 3 +++ 3

[PATCH v3 02/31] spl: Allow VBE to handle xPL size

2025-03-28 Thread Simon Glass
When VBE is in use, the size of each phase is obtained by reading it from a FIT. Avoid using binman symbols unless necessary, i.e. in TPL. Signed-off-by: Simon Glass --- (no changes since v1) common/spl/spl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/spl/spl.c b/common/spl/s

Re: [PATCH] arm64: zynqmp: Use CONFIG_SPL_FS_LOAD_PAYLOAD_NAME in binman

2025-03-28 Thread Michal Simek
On 3/28/25 16:08, Quentin Schulz wrote: Hi Michal, On 3/27/25 10:11 AM, Michal Simek wrote: Hi, On 3/25/25 10:48, Quentin Schulz wrote: Hi Michal, On 3/19/25 2:08 PM, Michal Simek wrote: u-boot.itb name is coming via CONFIG_SPL_FS_LOAD_PAYLOAD_NAME and it's They are unrelated as far as

Re: [PATCH 2/2] env: point fdt address to the fdt in a bloblist

2025-03-28 Thread Raymond Mao
Hi Simon, On Fri, 28 Mar 2025 at 07:35, Simon Glass wrote: > > Hi Raymond, > > On Thu, 27 Mar 2025 at 17:13, Raymond Mao wrote: > > > > Point fdt_addr to the fdt embedded in the bloblist since fdt_addr > > is a default address for bootefi, bootm and booti to look for the > > device tree when lau

Re: [PATCH 1/2] bloblist: fix the overriding of fdt from bloblist

2025-03-28 Thread Simon Glass
Hi Raymond, On Fri, 28 Mar 2025 at 08:38, Raymond Mao wrote: > > Hi Simon, > > On Fri, 28 Mar 2025 at 10:26, Simon Glass wrote: > > > > Hi Raymond, > > > > On Fri, 28 Mar 2025 at 08:17, Raymond Mao wrote: > > > > > > Hi Simon, > > > > > > On Fri, 28 Mar 2025 at 07:34, Simon Glass wrote: > > >

Re: [PATCH] arm64: zynqmp: Use CONFIG_SPL_FS_LOAD_PAYLOAD_NAME in binman

2025-03-28 Thread Quentin Schulz
Hi Michal, On 3/27/25 10:11 AM, Michal Simek wrote: Hi, On 3/25/25 10:48, Quentin Schulz wrote: Hi Michal, On 3/19/25 2:08 PM, Michal Simek wrote: u-boot.itb name is coming via CONFIG_SPL_FS_LOAD_PAYLOAD_NAME and it's They are unrelated as far as I can tell? Isn't CONFIG_SPL_FS_LOAD_PAYLO

[PATCH v1 11/11] arch: arm: axg: Optimus protocol support

2025-03-28 Thread Arseniy Krasnov
From: Vladimir Mitrofanov During Optimus protocol operations, BootROM may request to enter Optimus mode after boot. So to support this, let's check for values in sticky registers after boot (such registers could be updated earlier by boot ROM, telling U-boot to enter Optimus mode). Signed-off-by

Re: [PATCH] ufs: amd-versal2: Use raw read/write for SLCR/CACHE registers

2025-03-28 Thread Michal Simek
On 3/20/25 10:13, Michal Simek wrote: From: Venkatesh Yadav Abbarapu Update the firmware driver UFS APIs zynqmp_pm_ufs_* to directly read/write to the pmc_iou_slcr and efuse_cache registers. Replace these raw reads/writes with the xilinx_pm_request() API with the correct arguments once the P

Re: [PATCH] arm64: versal2: Update the text base and dtb address

2025-03-28 Thread Michal Simek
On 3/20/25 10:05, Michal Simek wrote: From: Venkatesh Yadav Abbarapu Update the TEXT_BASE and DTB address as per the new memory map. Signed-off-by: Venkatesh Yadav Abbarapu Signed-off-by: Michal Simek --- configs/amd_versal2_virt_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 del

Re: [PATCH] arm64: versal2: Disable DEBUG uart for mini configurations

2025-03-28 Thread Michal Simek
On 3/20/25 09:43, Michal Simek wrote: There is no reason to enable DEBUG uart used for early debugging by default that's why disable it. Signed-off-by: Michal Simek --- configs/amd_versal2_mini_defconfig | 6 -- configs/amd_versal2_mini_emmc_defconfig | 6 -- configs/amd_ve

  1   2   3   >