[PATCH v2 01/21] sandbox: Use const in os_jump_to_file()

2024-07-13 Thread Simon Glass
The argument array is not changed by the callee, so mark it const. Signed-off-by: Simon Glass --- (no changes since v1) arch/sandbox/cpu/os.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c index d7869b2e368..6a8a5e7b89b 100

[PATCH v2 02/21] sandbox: Fix a comment in os_find_u_boot()

2024-07-13 Thread Simon Glass
Fix a missing dot in a comment, since '..' is confusing. Signed-off-by: Simon Glass --- (no changes since v1) arch/sandbox/cpu/os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c index 6a8a5e7b89b..1491d00504d 100644 --- a/arch

[PATCH v2 03/21] test: Move some SPL-loading test-code into sandbox common

2024-07-13 Thread Simon Glass
This code is useful for loading an image in sandbox_spl so move it into a place where it can be called as needed. Signed-off-by: Simon Glass --- (no changes since v1) arch/sandbox/cpu/spl.c | 67 ++ arch/sandbox/include/asm/spl.h | 14 +++ test/image

[PATCH v2 04/21] sandbox: Enable SPL_LOAD_BLOCK

2024-07-13 Thread Simon Glass
Enable this option for all sandbox boards so that the FIT-loading code can be used without generating an error about block devices not being supported. Signed-off-by: Simon Glass --- (no changes since v1) common/spl/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/common/spl/Kconfig

[PATCH v2 05/21] fdt: Don't overwrite bloblist devicetree

2024-07-13 Thread Simon Glass
When the devicetree comes from a bloblist, it is currently overwritten by the appended one, if present. It should be preserved. Adjust the logic to support this. Fixes: 70fe2385943 ("fdt: Allow the devicetree to come from a bloblist") Signed-off-by: Simon Glass --- (no changes since v1) lib/

[PATCH v2 06/21] sandbox: fdt: Avoid overwriting an existing fdt

2024-07-13 Thread Simon Glass
Since the removal of OF_HOSTFILE logic in board_fdt_blob_setup(), the logic for obtaining the DT is handed in the OF_BOARD option. If a devicetree comes from a bloblist it is immediately overwritten by this function. Fix this by skipping the function if a devicetree is already present. This is so

[PATCH v2 07/21] sandbox: Return error code from read/write/seek

2024-07-13 Thread Simon Glass
The existing API for these functions is different from the rest of U-Boot, in that any error code must be obtained from the errno variable on failure. This variable is part of the C library, so accessing it outside of the special 'sandbox' shim-functions is not ideal. Adjust the API to return an e

[PATCH v2 08/21] sandbox: Add ELF file to VPL u-boot.img

2024-07-13 Thread Simon Glass
At present sandbox builds package up u-boot.bin in the .img file. This cannot actually be executed, since it is not an ELF file. For sandbox_vpl we want to be able to run the full boot flow. Adjust the build rule for sandbox_vpl to package the ELF file and thereby allow full testing of the sandbo

[PATCH v2 09/21] sandbox: Set up global_data earlier

2024-07-13 Thread Simon Glass
It is possible for U-Boot functions such as printf() to be called within state_init(). This can end up checking gd->flags (e.g. in putc()) before global_data is set up. Move the setup earlier to avoid this. This fixes the suppression of some debug output in memory allocation (when enabled). Signe

[PATCH v2 11/21] upl: Add support for writing a upl handoff

2024-07-13 Thread Simon Glass
Universal Payload provides a standard way of handing off control between two firmware phases. Add support for writing the handoff information from a structure. Signed-off-by: Simon Glass --- (no changes since v1) boot/Kconfig | 8 + boot/Makefile| 1 + boot/upl_write.c | 622 ++

[PATCH v2 10/21] upl: Add support for reading a upl handoff

2024-07-13 Thread Simon Glass
Universal Payload provides a standard way of handing off control between two firmware phases. Add support for reading the handoff information into a structure. Signed-off-by: Simon Glass --- (no changes since v1) MAINTAINERS | 7 + boot/Kconfig | 19 ++ boot/Makef

[PATCH v2 12/21] upl: Add basic tests

2024-07-13 Thread Simon Glass
Add some unit tests to check that we can write a UPL handoff and read it back. Signed-off-by: Simon Glass --- Changes in v2: - Put the upl tests under their own subcommand to avoid bootstd init MAINTAINERS | 1 + include/test/suites.h | 1 + include/upl.h | 9 ++ test/b

[PATCH v2 13/21] upl: Add a command

2024-07-13 Thread Simon Glass
Add a 'upl' command to work with Universal Payload features. For now it only supports reading and writing a handoff structure. Signed-off-by: Simon Glass --- (no changes since v1) MAINTAINERS | 2 + boot/Kconfig | 1 + cmd/Kconfig

[PATCH v2 14/21] upl: Add support for Universal Payload in SPL

2024-07-13 Thread Simon Glass
Add the basic code to create a handoff structure in SPL, so it can be passed to the next phase. For now this is not plumbed in. Signed-off-by: Simon Glass --- Changes in v2: - Add a function to init the UPL process in SPL MAINTAINERS | 1 + boot/Kconfig | 32 commo

[PATCH v2 15/21] spl: Plumb in the Universal Payload handoff

2024-07-13 Thread Simon Glass
Specify the FIT and include information about each loaded image, as required by the UPL handoff. Write the UPL handoff into the bloblist before jumping to the next phase. Control this using a runtime flag to avoid conflicting with other handoff mechanisms. Signed-off-by: Simon Glass --- Change

[PATCH v2 16/21] upl: Plumb in universal payload to the init process

2024-07-13 Thread Simon Glass
Read the UPL early in boot so that it is available. For now none of the information is used. Signed-off-by: Simon Glass --- (no changes since v1) boot/Kconfig | 12 +++- common/board_f.c | 22 ++ common/board_r.c | 2 ++ 3 files changed, 35 insertions(+), 1 del

[PATCH v2 17/21] sandbox_vpl: Enable Universal Payload

2024-07-13 Thread Simon Glass
Use the sandbox_vpl build to test UPL since it supports a real devicetree in SPL. The sandbox_spl build uses OF_PLATDATA. Enable writing the UPL handoff in SPL and reading it in U-Boot proper. Provide a test to check that this handoff works. Note that the test uses the standard devicetree rather

[PATCH v2 19/21] sandbox: Add a flag to enable UPL

2024-07-13 Thread Simon Glass
UPL significantly alters the boot flow for sandbox. Add a flag to enable this so that it can be enabled only on tests which need it. Signed-off-by: Simon Glass --- (no changes since v1) arch/sandbox/cpu/start.c | 13 - arch/sandbox/include/asm/state.h | 1 + 2 files change

[PATCH v2 18/21] upl: Add initial documentation

2024-07-13 Thread Simon Glass
Add some documentation to explain the basic concept along with a link to the full spec. Signed-off-by: Simon Glass --- Changes in v2: - Add a link to the spec - Add a link to the command MAINTAINERS | 1 + doc/usage/cmd/upl.rst | 4 ++-- doc/usage/index.rst | 1 + doc/usage/upl.

[PATCH v2 20/21] sandbox: Add an SPL loader for UPL

2024-07-13 Thread Simon Glass
Add support for loading a UPL image from SPL. This uses the simple FIT implementation, but also loads the full FIT just to permit more testing. Signed-off-by: Simon Glass --- (no changes since v1) arch/sandbox/cpu/spl.c | 49 +- arch/sandbox/include/asm/

[PATCH v2 21/21] upl: Add an end-to-end test

2024-07-13 Thread Simon Glass
Now that sandbox_vpl supports UPL, add a test that checks that the payload can be loaded by SPL and the handoff information passed through to U-Boot proper. Signed-off-by: Simon Glass --- Changes in v2: - Support CI testing - Rework to use alist instead of fixed-length arrays MAINTAINERS

[PATCH v2 00/21] Universal Payload initial series

2024-07-13 Thread Simon Glass
Universal Payload (UPL) is an Industry Standard for firmware components[1]. UPL is designed to improve interoperability within the firmware industry, allowing mixing and matching of projects with less friction and fewer project-specific implementations. UPL is cross-platform, supporting ARM, x86 an

Re: [coreboot] Announcement: Official V0.9.1 Release for Universal Payload Sepcification

2024-07-13 Thread Simon Glass
+U-Boot Mailing List +Tom Rini On Fri, 12 Jul 2024 at 15:37, Lean Sheng Tan via coreboot wrote: > > Hi everyone, > After 2 years of endless discussions and relentless effort, we officially > landed the V0.9 (and V0.9.1) of Universal Payload Specification (UPL) > yesterday!!! > > V0.9 formally i

Re: [PATCH v1 1/2] dm: exynos: Correct CONFIG_SYS_BOARD setting for Odroid XU3 boards

2024-07-13 Thread Anand Moon
Hi All, On Wed, 26 Jun 2024 at 21:07, Sam Protsenko wrote: > > On Wed, Jun 26, 2024 at 10:15 AM Anand Moon wrote: > > > > Fix the issue where CONFIG_SYS_BOARD was incorrectly set on > > Odroid XU3 boards, causing boot failure. This was resolved by > > correcting the SYS_BOARD entry in Kconfig to

[PATCH 1/1] efi_loader: find distro device-path for media devices

2024-07-13 Thread Heinrich Schuchardt
The auto-generated load options for media device do not contain a partition node. We cannot expect the simple file protocol here. Get the partition device-path via the loaded image protocol. Fixes: e91b68fd6b83 ("efi_loader: load distro dtb in bootmgr") Reported-by: E Shattow Signed-off-by: Hein

Re: [PATCH v2 00/21] Universal Payload initial series

2024-07-13 Thread Mark Kettenis
> From: Simon Glass > Date: Sat, 13 Jul 2024 08:00:34 +0100 > > Universal Payload (UPL) is an Industry Standard for firmware > components[1]. I think you have some trouble understanding the concept of industry standard ;). I guess you want this to become an industry standard. Firmly https://xkc

[PATCH 01/45] api: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- api/api.c | 6 -- api/api_storage.c | 8 2 files changed, 14 deletions(-) diff --git a/api

[PATCH 02/45] arc: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arc/include/asm/io.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arc/include/asm/io.h b/arch/

[PATCH 03/45] arm: cpu: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/cpu/arm926ejs/cpu.c | 1 - arch/arm/cpu/armv7/arch_timer.c| 1 - arch/arm/cpu/armv7/b

[PATCH 04/45] arm: dts: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/dts/vf610-pinfunc.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/vf610-pinfunc.h b/a

[PATCH 05/45] arm: include: fsl: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h | 1 - arch/arm/include/asm/arch-fsl-layerscape/strea

[PATCH 06/45] arm: include: hisilicon: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/include/asm/arch-hi3798cv200/hi3798cv200.h | 1 - arch/arm/include/asm/arch-hi6220/hi6220.h |

[PATCH 07/45] arm: include: nxp: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/include/asm/arch-lpc32xx/config.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/include/a

[PATCH 08/45] arm: include: amlogic: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/include/asm/arch-meson/gpio.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/include/asm/a

[PATCH 09/45] arm: include: imx: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/include/asm/arch-mx27/gpio.h | 1 - arch/arm/include/asm/arch-mx27/imx-regs.h | 1 - arch/arm/i

[PATCH 10/45] arm: include: ti: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/include/asm/arch-omap3/mem.h | 1 - arch/arm/include/asm/arch-omap3/mmc_host_def.h | 1 - arch

[PATCH 11/45] arm: include: rockchip: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/include/asm/arch-rockchip/edp_rk3288.h | 1 - arch/arm/include/asm/arch-rockchip/lvds_rk3288.h | 1 -

[PATCH 12/45] arm: include: sunxi: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/include/asm/arch-sunxi/clock_sun8i_a83t.h | 2 -- arch/arm/include/asm/arch-sunxi/clock_sun9i.h |

[PATCH 13/45] arm: include: tegra: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/include/asm/arch-tegra/bpmp_abi.h | 3 --- arch/arm/include/asm/arch-tegra/clock.h| 1 - arch/arm/i

[PATCH 14/45] arm: include: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/include/asm/byteorder.h| 1 - arch/arm/include/asm/emif.h | 3 --- arch/arm/include

[PATCH 15/45] arm: mach: at91: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/mach-at91/include/mach/at91_pio.h | 1 - arch/arm/mach-at91/include/mach/atmel_mpddrc.h | 1 - arch

[PATCH 16/45] arm: mach: ti: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/mach-davinci/da850_lowlevel.c | 1 - arch/arm/mach-keystone/include/mach/psc_defs.h | 1 - arch

[PATCH 17/45] arm: mach: exynos: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/mach-exynos/common_setup.h | 1 - arch/arm/mach-exynos/exynos4_setup.h| 2 -- arch/arm/

[PATCH 18/45] arm: mach: imx: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/mach-imx/cache.c | 1 - arch/arm/mach-imx/imx8/cpu.c | 2 -- arch/arm/mach-imx/i

[PATCH 19/45] arm: mach: marvell: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/mach-kirkwood/mpp.c | 1 - arch/arm/mach-mvebu/mbus.c

[PATCH 20/45] arm: mach: renesas: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/mach-renesas/include/mach/rcar-base.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-

[PATCH 21/45] arm: mach: socfpga: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/mach-socfpga/clock_manager_gen5.c | 1 - arch/arm/mach-socfpga/freeze_controller.c

[PATCH 22/45] arm: mach: stm32: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/

[PATCH 23/45] arm: mach: sunxi: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/mach-sunxi/clock_sun8i_a83t.c | 1 - arch/arm/mach-sunxi/clock_sun9i.c | 2 -- arch/arm/mach-sunxi

[PATCH 24/45] boot: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- boot/pxe_utils.c | 1 - 1 file changed, 1 deletion(-) diff --git a/boot/pxe_utils.c b/boot/pxe_utils.c index 53

[PATCH 25/45] cmd: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- cmd/ab_select.c | 1 - cmd/bootm.c | 2 -- cmd/bootstage.c | 1 - cmd/cache.c |

[PATCH 26/45] common: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- common/bootstage.c | 1 - common/cli_hush.c | 4 -- common/cli_hush_upstream.c | 26 -

[PATCH 27/45] disk: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- disk/part_amiga.c | 1 - disk/part_amiga.h | 2 -- disk/part_dos.c | 1 - disk/part_iso.h | 5 - disk/pa

[PATCH 28/45] env: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- env/common.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/env/common.c b/env/common.c index d8c276dddfd.

[PATCH 29/45] examples: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- examples/api/glue.c | 1 - examples/standalone/sched.c | 3 --- 2 files changed, 4 deletions(-) diff --

[PATCH 30/45] fs: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- fs/btrfs/ctree.h| 1 - fs/btrfs/disk-io.c | 1 - fs/btrfs/kernel-shared/b

[PATCH 32/45] m68k: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/m68k/include/asm/bitops.h | 1 - arch/m68k/include/asm/cache.h | 1 - arch/m68k/include/asm/immap_

[PATCH 33/45] microblaze: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/microblaze/include/asm/bitops.h | 2 -- arch/microblaze/include/asm/posix_types.h | 2 -- arch/microbl

[PATCH 31/45] lib: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- lib/blake2/blake2b.c | 4 -- lib/bzip2/bzlib.c | 41 --

[PATCH 34/45] mips: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/mips/include/asm/io.h | 1 - arch/mips/include/asm/isa-rev.h | 1 - arch/mips/

[PATCH 35/45] net: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- net/bootp.h | 1 - net/dns.c | 1 - net/net.c | 1 - net/nfs.c | 1 - net/nfs.h | 1 - net/rarp.c | 2 -

[PATCH 36/45] nios2: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/nios2/cpu/interrupts.c| 2 -- arch/nios2/include/asm/bitops/atomic.h | 1 - arch/nios2/include/

[PATCH 37/45] post: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- post/drivers/flash.c | 1 - post/drivers/memory.c | 2 -- post/lib_powerpc/cpu_asm.h | 1 - post/test

[PATCH 38/45] ppc: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/powerpc/cpu/mpc83xx/interrupts.c | 5 - arch/powerpc/cpu/mpc83xx/traps.c | 2 -- a

[PATCH 39/45] sandbox: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/sandbox/cpu/os.c| 1 - arch/sandbox/include/asm/byteorder.h | 1 - 2 files changed, 2 delet

[PATCH 40/45] scripts: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- scripts/dtc/checks.c | 2 -- scripts/dtc/dtc.h | 3 --- scripts/dtc/flattree.c

[PATCH 41/45] sh: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/sh/include/asm/cpu_sh7722.h | 1 - arch/sh/include/asm/cpu_sh7734.h | 1 - arch/sh/include/asm/cpu_sh7752

[PATCH 42/45] test: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- test/boot/bootdev.c | 1 - test/cmd/setexpr.c | 1 - test/compression.c | 1 - test/dm/devres.c | 1 -

[PATCH 43/45] tools: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- tools/env/fw_env.h | 2 -- tools/envcrc.c | 1 - tools/fdtgrep.c| 1 - tools/gdb/remote.c | 2 -- tools/

[PATCH 44/45] x86: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/x86/cpu/intel_common/itss.c | 1 - arch/x86/cpu/intel_common/me_status.c | 1 - arch

[PATCH 45/45] xtensa: Remove duplicate newlines

2024-07-13 Thread Marek Vasut
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut --- Cc: Francesco Dolcini Cc: Sean Anderson Cc: Simon Glass Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/xtensa/include/asm/arch-dc232b/core.h| 13 - arch/xtensa/include/asm/arch-dc232b/tie-asm.h

[PATCH] turris_1x: Normalize Kconfig usage

2024-07-13 Thread Tom Rini
We don't set many options in the board Kconfig entry file but instead use defconfigs, select in some cases on the target itself, or update the "default" options of the main entries when needed. In this case we can remove most of the board Kconfig entries and just add them to the defconfig like othe

Re: [PATCH 0/6] Add Turris 1.x board

2024-07-13 Thread Tom Rini
On Thu, 06 Jun 2024 18:33:20 +0200, Marek Mojík wrote: > this is a continuation of previous work by Pali to add support for the > Turris 1.x board. As the patches were based on u-boot v2022.04, a > nontrivial rebasing was needed. > > Some notes: > - Some options that are in SD defconfig are disab

Re: [PATCH v2 1/5] usb: tcpm: add core framework

2024-07-13 Thread Simon Glass
Hi Sebastian, On Tue, 4 Jun 2024 at 17:35, Sebastian Reichel wrote: > > This adds TCPM framework in preparation for fusb302 support, which can > handle USB power delivery messages. This is needed to solve issues with > devices, t

Re: [PATCH v5 1/2] led: Implement software led blinking

2024-07-13 Thread Simon Glass
Hi Mikhail, On Fri, 12 Jul 2024 at 06:25, Mikhail Kshevetskiy wrote: > > From: Michael Polyntsov > > If hardware (or driver) doesn't support leds blinking, it's > now possible to use software implementation of blinking instead. > This relies on cyclic functions. > > Signed-off-by: Michael Polynt

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

2024-07-13 Thread Simon Glass
Hi Sam, On Sat, 13 Jul 2024 at 00:44, Sam Protsenko wrote: > > 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 S

Re: [PATCH v5 2/2] led: Add dts property to specify blinking of the led

2024-07-13 Thread Simon Glass
Hi Mikhail, On Fri, 12 Jul 2024 at 06:25, Mikhail Kshevetskiy wrote: > > From: Michael Polyntsov > > The standard property > > linux,default-trigger = "pattern"; > > used to get an effect. No blinking parameters can be set yet. > > Signed-off-by: Michael Polyntsov > Signed-off-by: Mikhail K

Re: [PATCH v5 05/23] soc: qcom: cmd-db: replace cmd_db_ready() with cmd_db_init()

2024-07-13 Thread Simon Glass
Hi Caleb, On Thu, 11 Jul 2024 at 17:47, Caleb Connolly wrote: > > Using the driver model for cmd-db is fine, but it's unnecessary > complexity which we can just avoid in U-Boot. Instead let's just have a > function to initialize it and call said function when initializing rpmh. > > Acked-by: Sumi

Re: [PATCH 1/6] board_f: Add support for CONFIG_OF_BOARD_FIXUP for XIP images

2024-07-13 Thread Simon Glass
Hi Marek, On Thu, 6 Jun 2024 at 17:33, Marek Mojík wrote: > > From: Pali Rohár > > When U-Boot is running from flash memory (execute in place) then > gd->fdt_blob before relocation points to read-only flash memory. > > So U-Boot calls board_fix_fdt() with read-only gd->fdt_blob pointer which > c

Re: [PATCH v3 5/5] bootstd: Add test for bootmeth_android

2024-07-13 Thread Simon Glass
On Wed, 10 Jul 2024 at 09:40, Mattijs Korpershoek wrote: > > Add a unit test for testing the Android bootmethod. > > This requires another mmc image (mmc7) to contain the following partitions: > - misc: contains the Bootloader Control Block (BCB) > - boot_a: contains a fake generic kernel image >

Re: [PATCH] test/py/requirements.txt: Bump zipp to current release

2024-07-13 Thread Simon Glass
On Wed, 10 Jul 2024 at 00:07, Tom Rini wrote: > > A security issue exists with zipp before v3.19.1, and the current > release is now v3.19.2. While the change in versions numbers is large, a > manual inspection of the changelog shows that it's not as big as might > be implied. > > Reported-by: Git

Re: [PATCH] doc/sphinx/requirements.txt: Bump certifi and urllib3

2024-07-13 Thread Simon Glass
On Mon, 8 Jul 2024 at 16:18, Tom Rini wrote: > > As reported by GitHub dependabot, both of these packages should be > bumped to their latest versions to address security issues (neither of > which has a CVE assigned). > > Reported-by: GitHub dependabot > Signed-off-by: Tom Rini > --- > doc/sphin

Re: [PATCH] regulator: fixed: fix regulator-fixed-clock

2024-07-13 Thread Simon Glass
On Tue, 9 Jul 2024 at 10:25, John Keeping wrote: > > For regulator-fixed-clock, the device's private data is never set so in > fixed_clock_regulator_set_enable() is null and the function cannot > complete successfully. > > Rename the _plat structure to _priv to better represent its role and set >

Re: [RFC PATCH v2 08/48] lmb: staticize __lmb_alloc_base()

2024-07-13 Thread Simon Glass
On Thu, 4 Jul 2024 at 08:36, Sughosh Ganu wrote: > > 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: S

Re: avoid syscon fallback class for getting regmap

2024-07-13 Thread Simon Glass
Hi Frank, On Wed, 10 Jul 2024 at 14:43, Frank Wunderlich wrote: > > Hi, > > i'm working on OF_UPSTREAM for mediatek boards and noticed missing > syscon-fallback on some (mt7988) devicetree nodes. > > i know that u-boot uses this fallback to get the regmap shared across > drivers, but only initi

Re: [PATCH v3 0/5] video: Improve syncing performance with cyclic

2024-07-13 Thread Simon Glass
Hi Caleb, On Thu, 4 Jul 2024 at 16:17, Caleb Connolly wrote: > > Hi Simon, > > On 04/07/2024 09:48, Simon Glass wrote: > > Now that U-Boot has a background-processing feature, it is possible to > > reduce the amount of 'foreground' syncing of the display. At present > > this happens quite often.

Re: [PATCH v3 2/5] bootstd: Add bootflow_iter_check_mmc() helper

2024-07-13 Thread Simon Glass
On Wed, 10 Jul 2024 at 09:40, Mattijs Korpershoek wrote: > > Some bootflows might be able to only boot from MMC devices. > > Add a helper function these bootflows can use. > > Reviewed-by: Igor Opaniuk > Reviewed-by: Julien Masson > Reviewed-by: Guillaume La Roque > Tested-by: Guillaume La Roqu

Re: [RFC PATCH v2 07/48] lmb: remove the unused lmb_is_reserved() function

2024-07-13 Thread Simon Glass
On Thu, 4 Jul 2024 at 08:36, Sughosh Ganu wrote: > > 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 Apalodima

Re: [PATCH v4] bloblist: fix bloblist convention check.

2024-07-13 Thread Simon Glass
On Wed, 10 Jul 2024 at 17:46, Raymond Mao wrote: > > Hi Levi, > > On Wed, 10 Jul 2024 at 09:53, Levi Yun wrote: >> >> According to recently firmware handsoff spec [1]'s "Register usage at handoff >> boundary", Transfer List's signature value was changed from 0x40_b10b >> (3 bytes) to 4a0f_b10b (4

Re: [PATCH] reloc_bootstage: Fix out-of-bounds read

2024-07-13 Thread Simon Glass
Hi Richard, On Fri, 12 Jul 2024 at 09:11, Richard Weinberger wrote: > > bootstage_get_size() returns the total size of the data structure > including associated records. > When copying from gd->bootstage, only the allocation size of gd->bootstage > must be used. Otherwise too much memory is copie

Re: [RFC v4 2/2] doc: add missing table of content links

2024-07-13 Thread Simon Glass
On Mon, 8 Jul 2024 at 17:48, Sam Povilus wrote: > > add missing table of content links, make alphabetical > > Signed-off-by: Sam Povilus > --- > doc/usage/fit/index.rst | 21 + > 1 file changed, 17 insertions(+), 4 deletions(-) > Reviewed-by: Simon Glass

Re: [RFC v4 1/2] doc: Remove FIT documentation that is elsewhere

2024-07-13 Thread Simon Glass
On Mon, 8 Jul 2024 at 17:48, Sam Povilus wrote: > > FIT documentation is now a separate project, instead of having a > duplicate, we should point at the other project. > > Signed-off-by: Sam Povilus > --- > doc/usage/fit/index.rst | 4 +- > doc/usage/fit/source_file_format.rst | 6

Re: [PATCH v3 4/5] sandbox: Increase cyclic CPU-time limit

2024-07-13 Thread Simon Glass
Hi Caleb, On Thu, 4 Jul 2024 at 16:02, Caleb Connolly wrote: > > Hi Simon, > > On 04/07/2024 09:48, Simon Glass wrote: > > Now that sandbox is using cyclic for video, it trips the 1us time > > limit. Updating the sandbox display often takes 20ms or more. > > > > Increase the limit to 100ms to avo

Re: [v2] bootstash: Do not provide a default address for all

2024-07-13 Thread Simon Glass
Hi Tom, On Thu, 11 Jul 2024 at 22:27, Tom Rini wrote: > > A valid memory location to stash bootstage information at will be > architecture dependent. Move the existing defaults to the main Kconfig > file for this option and set 0x0 as the default only for sandbox. > > Signed-off-by: Tom Rini > -

Re: [PATCH v3 08/19] test: Introduce the concept of a role

2024-07-13 Thread Simon Glass
Hi Tom, On Wed, 3 Jul 2024 at 00:12, Tom Rini wrote: > > On Thu, Jun 27, 2024 at 09:37:18AM +0100, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 26 Jun 2024 at 15:29, Tom Rini wrote: > > > > > > On Wed, Jun 26, 2024 at 09:00:33AM +0100, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Tue,

Re: [RFC PATCH v2 45/48] efi_memory: do not add RAM memory to the memory map

2024-07-13 Thread Simon Glass
On Thu, 4 Jul 2024 at 08:38, Sughosh Ganu wrote: > > The EFI_CONVENTIONAL_MEMORY type, which is the usable RAM memory is > now being managed by the LMB module. Remove the addition of this > memory type to the EFI memory map. This memory now gets added to the > EFI memory map as part of the LMB mem

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

2024-07-13 Thread Simon Glass
Hi Sugosh, On Mon, 8 Jul 2024 at 15:35, Tom Rini wrote: > > On Thu, Jul 04, 2024 at 01:04:56PM +0530, Sughosh Ganu wrote: I don't believe coherent is the right word here. Perhaps 'more persistent' is better? > > > The aim of this patch series is to fix the current state of > > incoherence betwe

Re: [RFC PATCH v2 11/48] lmb: pass a flag to image_setup_libfdt() for lmb reservations

2024-07-13 Thread Simon Glass
On Thu, 4 Jul 2024 at 08:36, Sughosh Ganu wrote: > > The image_setup_libfdt() function optionally calls the LMB API to > reserve the region of memory occupied by the FDT blob. This was > earlier determined through the presence of the pointer to the lmb > structure, which is no longer present. Pass

Re: [RFC PATCH v2 12/48] lmb: allow for resizing lmb regions

2024-07-13 Thread Simon Glass
Hi Sughosh, On Thu, 4 Jul 2024 at 08:36, Sughosh Ganu wrote: > > 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 -- th

Re: [RFC PATCH v2 17/48] lmb: allow lmb module to be used in SPL

2024-07-13 Thread Simon Glass
Hi Sughosh, On Thu, 4 Jul 2024 at 08:37, Sughosh Ganu wrote: > > 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

  1   2   >