[PATCH v2 1/4] firmware: scmi: add power domain protocol support

2023-10-15 Thread AKASHI Takahiro
In this patch, added are helper functions to directly manipulate SCMI power domain management protocol. DM compliant power domain driver will be implemented on top of those interfaces in a succeeding patch. Signed-off-by: AKASHI Takahiro --- drivers/firmware/scmi/Makefile | 1 +

[PATCH v2 4/4] test: dm: add SCMI power domain protocol test

2023-10-15 Thread AKASHI Takahiro
This ut has tests for the SCMI power domain protocol as well as DM interfaces for power domain devices. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass --- v2 * remove a change at "test_scmi_cmd" because "scmi" command is no longer provided --- test/dm/scmi.c | 103

[PATCH v2 3/4] sandbox: add SCMI power domain protocol support for testing

2023-10-15 Thread AKASHI Takahiro
SCMI power domain management protocol is supported on sandbox for test purpose. Add fake agent interfaces and associated power domain devices. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass --- v2 * add a comment for a member, pstate, of struct sandbox_scmi_pwd ---

[PATCH v2 2/4] power: domain: add SCMI driver

2023-10-15 Thread AKASHI Takahiro
Add power domain driver based on SCMI power domain management protocol. Signed-off-by: AKASHI Takahiro --- v2 * remove tentative code which was enclosed by "#if 0" * free allocated memory at the failure of probe function --- drivers/firmware/scmi/scmi_agent-uclass.c | 11 ++

[PATCH v2 0/4] firmware: scmi: add SCMI power domain protocol support

2023-10-15 Thread AKASHI Takahiro
This patch series allows users to access SCMI power domain protocol provided by SCMI server (platform). See SCMI specification document v3.2 beta 2[1] for more details about SCMI power domain protocol. The implementation consists of two layers: - basic helper functions for SCMI power domain

[RESEND PATCH v6 8/9] cmd: efidebug: add uri device path

2023-10-15 Thread Masahisa Kojima
This adds the URI device path option for 'boot add' subcommand. User can add the URI load option for downloading ISO image file or EFI application through network. Currently HTTP is only supported. Signed-off-by: Masahisa Kojima --- cmd/efidebug.c | 50 +++

[RESEND PATCH v6 5/9] efi_loader: support boot from URI device path

2023-10-15 Thread Masahisa Kojima
This supports to boot from the URI device path. When user selects the URI device path, bootmgr downloads the file using wget into the address specified by loadaddr env variable. If the file is .iso or .img file, mount the image with blkmap then try to boot with the default file(e.g.

[RESEND PATCH v6 9/9] doc: uefi: add HTTP Boot support

2023-10-15 Thread Masahisa Kojima
This adds the description about HTTP Boot. Signed-off-by: Masahisa Kojima Reviewed-by: Ilias Apalodimas --- doc/develop/uefi/uefi.rst | 30 ++ 1 file changed, 30 insertions(+) diff --git a/doc/develop/uefi/uefi.rst b/doc/develop/uefi/uefi.rst index

[RESEND PATCH v6 6/9] efi_loader: add CDROM short-form device path

2023-10-15 Thread Masahisa Kojima
UEFI specification does not mandate to support the short-form of the CDROM media device path. Fedora installation ISO image is identified as CDROM media device path, supporting short-form CDROM media device path is required to automatically add the boot option having default file of Fedora

[RESEND PATCH v6 7/9] Boot var automatic management for removable medias

2023-10-15 Thread Masahisa Kojima
From: Raymond Mao Changes for complying to EFI spec §3.5.1.1 'Removable Media Boot Behavior'. Boot variables can be automatically generated during a removable media is probed. At the same time, unused boot variables will be detected and removed. Please note that currently the function

[RESEND PATCH v6 3/9] blk: blkmap: add ramdisk creation utility function

2023-10-15 Thread Masahisa Kojima
User needs to call several functions to create the ramdisk with blkmap. This adds the utility function to create blkmap device and mount the ramdisk. Signed-off-by: Masahisa Kojima Reviewed-by: Simon Glass Reviewed-by: Ilias Apalodimas --- drivers/block/Makefile| 3 +-

[RESEND PATCH v6 4/9] efi_loader: create default file boot option

2023-10-15 Thread Masahisa Kojima
Current efibootmgr automatically creates the boot options of all disks and partitions installing EFI_SIMPLE_FILE_SYSTEM_PROTOCOL. Some of the automatically created boot options are useless if the disk and partition does not have the default file(e.g. EFI/BOOT/BOOTAA64.EFI). This commit only

[RESEND PATCH v6 2/9] net: wget: add wget with dns utility function

2023-10-15 Thread Masahisa Kojima
Current wget takes the target uri in this format: ":" e.g.) 192.168.1.1:/bar The http server ip address must be resolved before calling wget. This commit adds the utility function runs wget with dhs. User can call wget with the uri like "http://foo/bar;. Signed-off-by: Masahisa Kojima

[RESEND PATCH v6 1/9] net: wget: prevent overwriting reserved memory

2023-10-15 Thread Masahisa Kojima
This introduces the valid range check to store the received blocks using lmb. The same logic is implemented in tftp. Signed-off-by: Masahisa Kojima Acked-by: Ilias Apalodimas Reviewed-by: Simon Glass Reviewed-by: Ramon Fried --- net/wget.c | 80

[RESEND PATCH v6 0/9] Add EFI HTTP boot support

2023-10-15 Thread Masahisa Kojima
This series adds the EFI HTTP boot support. User can add the URI device path with "efidebug boot add" command. efibootmgr handles the URI device path, download the specified file using wget, mount the downloaded image with blkmap, then boot with the default file(e.g. EFI/BOOT/BOOTAA64.EFI) by

Re: [PATCH v6 0/9] Add EFI HTTP boot support

2023-10-15 Thread Masahisa Kojima
On Mon, 16 Oct 2023 at 08:50, Masahisa Kojima wrote: > > This series adds the EFI HTTP boot support. > User can add the URI device path with "efidebug boot add" command. > efibootmgr handles the URI device path, download the > specified file using wget, mount the downloaded image with > blkmap,

Re: [PATCH 4/4] test: dm: add SCMI power domain protocol test

2023-10-15 Thread AKASHI Takahiro
Hi Tom, On Fri, Oct 13, 2023 at 09:20:48PM -0400, Tom Rini wrote: > On Tue, Sep 26, 2023 at 04:00:43PM +0900, AKASHI Takahiro wrote: > > > This ut has tests for the SCMI power domain protocol as well as DM > > interfaces for power domain devices. > > > > Signed-off-by: AKASHI Takahiro > >

Re: [PATCH 1/3] arm64: Use FEAT_HAFDBS to track dirty pages when available

2023-10-15 Thread Chris Packham
On Sun, Oct 15, 2023 at 10:29 AM Chris Packham wrote: > > > > On Sat, 14 Oct 2023, 11:04 am Marc Zyngier, wrote: >> >> On 2023-10-13 03:40, Chris Packham wrote: >> > Hi Marc, Paul, >> > >> > On Sat, Mar 18, 2023 at 5:23 AM Ying-Chun Liu (PaulLiu) >> > wrote: >> >> >> >> From: Marc Zyngier >>

[PATCH v4] imx8mp-evk: Add USB0 OTG support

2023-10-15 Thread Fabio Estevam
From: Fabio Estevam Add USB0 OTG support. Currently, the USB0 OTG nodes are not enabled in the Linux kernel devicetree. For this reason, enable the USB0 OTG nodes inside imx8mp-evk-u-boot.dtsi for now. Also select several useful options such as USB gadget and fastboot. Tested by running "ums

[PATCH v3] imx8mp-evk: Add USB0 OTG support

2023-10-15 Thread Fabio Estevam
From: Fabio Estevam Add USB0 OTG support. Currently, the USB0 OTG nodes are not enabled in the Linux kernel devicetree. For this reason, enable the USB0 OTG nodes inside imx8mp-evk-u-boot.dtsi for now. Also select several useful options such as USB gadget and fastboot. Tested by running "ums

[PATCH] arm64: dts: imx8mp: Describe M24C32-D write-lockable page in DH i.MX8MP DHCOM DT

2023-10-15 Thread Marek Vasut
The i.MX8MP DHCOM SoM production rev.200 is populated with M24C32-D EEPROMs which have Additional Write lockable page at separate I2C address. Describe the page in DT to make it available. Disable the additional page in rev.100 SoM DTO as those devices contain EEPROM without an Additional Write

[PATCH] eeprom: at24: add ST M24C32-D Additional Write lockable page support

2023-10-15 Thread Marek Vasut
The ST M24C32-D behaves as a regular M24C32, except for the -D variant which uses up another I2C address for Additional Write lockable page. This page is 32 Bytes long and can contain additional data. Add entry for it, so users can describe that page in DT. Note that users still have to describe

[PATCH v6 9/9] doc: uefi: add HTTP Boot support

2023-10-15 Thread Masahisa Kojima
This adds the description about HTTP Boot. Signed-off-by: Masahisa Kojima Reviewed-by: Ilias Apalodimas --- doc/develop/uefi/uefi.rst | 30 ++ 1 file changed, 30 insertions(+) diff --git a/doc/develop/uefi/uefi.rst b/doc/develop/uefi/uefi.rst index

[PATCH v6 8/9] cmd: efidebug: add uri device path

2023-10-15 Thread Masahisa Kojima
This adds the URI device path option for 'boot add' subcommand. User can add the URI load option for downloading ISO image file or EFI application through network. Currently HTTP is only supported. Signed-off-by: Masahisa Kojima --- cmd/efidebug.c | 50 +++

[PATCH v6 7/9] Boot var automatic management for removable medias

2023-10-15 Thread Masahisa Kojima
From: Raymond Mao Changes for complying to EFI spec §3.5.1.1 'Removable Media Boot Behavior'. Boot variables can be automatically generated during a removable media is probed. At the same time, unused boot variables will be detected and removed. Please note that currently the function

[PATCH v6 6/9] efi_loader: add CDROM short-form device path

2023-10-15 Thread Masahisa Kojima
UEFI specification does not mandate to support the short-form of the CDROM media device path. Fedora installation ISO image is identified as CDROM media device path, supporting short-form CDROM media device path is required to automatically add the boot option having default file of Fedora

[PATCH v6 4/9] efi_loader: create default file boot option

2023-10-15 Thread Masahisa Kojima
Current efibootmgr automatically creates the boot options of all disks and partitions installing EFI_SIMPLE_FILE_SYSTEM_PROTOCOL. Some of the automatically created boot options are useless if the disk and partition does not have the default file(e.g. EFI/BOOT/BOOTAA64.EFI). This commit only

[PATCH v6 5/9] efi_loader: support boot from URI device path

2023-10-15 Thread Masahisa Kojima
This supports to boot from the URI device path. When user selects the URI device path, bootmgr downloads the file using wget into the address specified by loadaddr env variable. If the file is .iso or .img file, mount the image with blkmap then try to boot with the default file(e.g.

[PATCH v6 2/9] net: wget: add wget with dns utility function

2023-10-15 Thread Masahisa Kojima
Current wget takes the target uri in this format: ":" e.g.) 192.168.1.1:/bar The http server ip address must be resolved before calling wget. This commit adds the utility function runs wget with dhs. User can call wget with the uri like "http://foo/bar;. Signed-off-by: Masahisa Kojima

[PATCH v6 3/9] blk: blkmap: add ramdisk creation utility function

2023-10-15 Thread Masahisa Kojima
User needs to call several functions to create the ramdisk with blkmap. This adds the utility function to create blkmap device and mount the ramdisk. Signed-off-by: Masahisa Kojima Reviewed-by: Simon Glass Reviewed-by: Ilias Apalodimas --- drivers/block/Makefile| 3 +-

[PATCH v6 1/9] net: wget: prevent overwriting reserved memory

2023-10-15 Thread Masahisa Kojima
This introduces the valid range check to store the received blocks using lmb. The same logic is implemented in tftp. Signed-off-by: Masahisa Kojima Acked-by: Ilias Apalodimas Reviewed-by: Simon Glass Reviewed-by: Ramon Fried --- net/wget.c | 80

[PATCH v6 0/9] Add EFI HTTP boot support

2023-10-15 Thread Masahisa Kojima
This series adds the EFI HTTP boot support. User can add the URI device path with "efidebug boot add" command. efibootmgr handles the URI device path, download the specified file using wget, mount the downloaded image with blkmap, then boot with the default file(e.g. EFI/BOOT/BOOTAA64.EFI) by

[PATCH] arm64: dts: imx8mp: Make GPIO3 available early in U-Boot proper on i.MX8MP DHCOM

2023-10-15 Thread Marek Vasut
The GPIO3 has to be available early during U-Boot proper start up for DRAM size detect to work correctly. The GPIO3 is currently available in SPL and late in U-Boot proper, which is insufficient. Add the missing bootph-all to make the GPIO3 available also early in U-Boot proper. Signed-off-by:

[PATCH v4 8/8] rockchip: configs: sandbox: enable rkmtd command

2023-10-15 Thread Johan Jonker
Enable rkmtd command for testing with sandbox_defconfig and sandbox64_defconfig. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass --- Changed V3: New patch --- configs/sandbox64_defconfig | 1 + configs/sandbox_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git

[PATCH v4 7/8] rockchip: doc: add rkmtd.rst

2023-10-15 Thread Johan Jonker
Add documention for Rockchip rkmtd virtual block device. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang Reviewed-by: Simon Glass --- Changed V3: New patch --- doc/board/rockchip/index.rst | 1 + doc/board/rockchip/rkmtd.rst | 105 +++ 2 files changed,

[PATCH v4 6/8] rockchip: test: dm: add rkmtd test

2023-10-15 Thread Johan Jonker
Add Rockchip rkmtd test: Create/attach/detach RKMTD device. Send/read data with Rockchip boot block header. Test that reusing the same label should work. Basic test of 'rkmtd' commands. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang Reviewed-by: Simon Glass --- Changed V4: sort

[PATCH v4 5/8] rockchip: cmd: add rkmtd command

2023-10-15 Thread Johan Jonker
The command rkmtd creates a virtual block device to transfer Rockchip boot block data to and from NAND with block orientated tools like "ums" and "rockusb". It uses the Rockchip MTD driver to scan for boot blocks and copies data from the first block in a GPT formated virtual disk. Data must be

[PATCH v4 4/8] rockchip: block: blk-uclass: disable bounce buffer support for rkmtd

2023-10-15 Thread Johan Jonker
Disable bounce buffer support for rkmtd. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- Changed V3: New patch --- drivers/block/blk-uclass.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c index

[PATCH v4 3/8] rockchip: block: add rkmtd class and drivers

2023-10-15 Thread Johan Jonker
Add rkmtd class and drivers to create a virtual block device to transfer Rockchip boot block data to and from NAND with block orientated tools like "ums" and "rockusb". Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- Changed V4: sort includes replace constant by define Changed V3:

[PATCH v4 2/8] rockchip: dm: prepare rkmtd UCLASS

2023-10-15 Thread Johan Jonker
Prepare a rkmtd UCLASS in use for writing Rockchip boot blocks in combination with existing userspace tools and rockusb command. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- disk/part.c| 4 drivers/block/blk-uclass.c | 1 + include/dm/uclass-id.h | 1 + 3

[PATCH v4 1/8] mtd: nand: raw: rockchip_nfc: add NAND_SKIP_BBTSCAN option

2023-10-15 Thread Johan Jonker
On Rockchip SoCs the first boot stages are written on NAND with help of manufacturer software that uses a different format then the MTD framework. Skip the automatic BBT scan with the NAND_SKIP_BBTSCAN option to be able to pass the driver probe function and to let the original data unchanged.

[PATCH v4 0/8] Add rkmtd command

2023-10-15 Thread Johan Jonker
The command rkmtd creates a virtual block device to transfer Rockchip boot block data to and from NAND with block orientated tools like "ums" and "rockusb". It uses the Rockchip MTD driver to scan for boot blocks and copies data from the first block in a GPT formatted virtual disk. Data must be

Re: [PATCH] arm: mach-apple: Move M1/M2 specifics into a separate folder

2023-10-15 Thread Mark Kettenis
> Date: Wed, 11 Oct 2023 07:42:39 +0300 > From: Ivaylo Ivanov > > S5L8950X is definitely belongs to the mach-apple folder, since it's the > first truly apple-made SoC: it uses AIC, DART, Apple GPIO, etc etc. I > might be wrong but I haven't seen any references of RTKit on S5L8950X. Yes your

Re: [PATCH v2 17/29] net: bootp: Fall back to BOOTP from DHCP when unit testing

2023-10-15 Thread Tom Rini
On Sun, Oct 15, 2023 at 08:39:50AM -0600, Simon Glass wrote: > Hi Sean, > > On Sat, 14 Oct 2023 at 15:27, Sean Anderson wrote: > > > > On 10/14/23 17:22, Heinrich Schuchardt wrote: > > > > > > > > > Am 14. Oktober 2023 22:47:53 MESZ schrieb Sean Anderson > > > : > > >> If we sent a DHCP packet

Re: [PATCH v2 12/19] serial: sh: Add RZ/G2L SCIF support

2023-10-15 Thread Marek Vasut
On 10/15/23 19:59, Paul Barker wrote: On Sat, Oct 14, 2023 at 09:53:53PM +0200, Marek Vasut wrote: On 10/9/23 18:46, Paul Barker wrote: Extend the existing driver to support the SCIF serial ports on the Renesas RZ/G2L (R9A07G044) SoC. This also requires us to ensure that the relevant reset

Re: [PATCH v2 12/19] serial: sh: Add RZ/G2L SCIF support

2023-10-15 Thread Marek Vasut
On 10/15/23 19:59, Paul Barker wrote: On Sat, Oct 14, 2023 at 09:53:53PM +0200, Marek Vasut wrote: On 10/9/23 18:46, Paul Barker wrote: Extend the existing driver to support the SCIF serial ports on the Renesas RZ/G2L (R9A07G044) SoC. This also requires us to ensure that the relevant reset

Re: [PATCH] mmc: sh_sdhi: Drop unused driver

2023-10-15 Thread Paul Barker
On Sat, Oct 14, 2023 at 11:27:24PM +0200, Marek Vasut wrote: > This driver is long superseded by renesas-sdhi.c and unused. > Drop the driver. > > Signed-off-by: Marek Vasut Acked-by: Paul Barker signature.asc Description: PGP signature

Re: [PATCH v2 12/19] serial: sh: Add RZ/G2L SCIF support

2023-10-15 Thread Paul Barker
On Sat, Oct 14, 2023 at 09:53:53PM +0200, Marek Vasut wrote: > On 10/9/23 18:46, Paul Barker wrote: > > Extend the existing driver to support the SCIF serial ports on the > > Renesas RZ/G2L (R9A07G044) SoC. This also requires us to ensure that the > > relevant reset signal is de-asserted before we

Re: [PATCH v2] imx8mp-evk: Add USB0 OTG support

2023-10-15 Thread Marek Vasut
On 10/14/23 23:12, Fabio Estevam wrote: From: Fabio Estevam Add USB0 OTG support. Currently, the USB0 OTG nodes are not enabled in the Linux kernel devicetree. For this reason, enable the USB0 OTG nodes inside imx8mp-evk-u-boot.dtsi for now. Also select several useful options such as USB

Re: [PATCH v2 17/29] net: bootp: Fall back to BOOTP from DHCP when unit testing

2023-10-15 Thread Simon Glass
Hi Sean, On Sat, 14 Oct 2023 at 15:27, Sean Anderson wrote: > > On 10/14/23 17:22, Heinrich Schuchardt wrote: > > > > > > Am 14. Oktober 2023 22:47:53 MESZ schrieb Sean Anderson : > >> If we sent a DHCP packet and get a BOOTP response from the server, we > >> shouldn't try to send a DHCPREQUEST

Re: [PATCH 1/2] command.h: Add a U_BOOT_LONGHELP macro

2023-10-15 Thread Simon Glass
Hi Tom, On Sat, 7 Oct 2023 at 13:13, Tom Rini wrote: > > In order to be able to discard unused long help texts without further > linker lists, add a macro for defining the long help messages which uses > __maybe_unused. This allows us to discard them as unreferenced as part > of the link. > >

Re: [PATCH] sunxi: H616: DRAM: refactor mctl_phy_configure_odt()

2023-10-15 Thread Mikhail Kalashnikov
Yes, this patch allows to reduce code size and make it easier to read. To further integrate the code for LPDDR4, will need to change two lines instead of adding 24 lines. Reviewed-by: Mikhail Kalashnikov On 14.10.2023 20:02, Andre Przywara wrote: The original H616 DDR3 ODT configuration

Re: [PATCH v2 0/2] Meson A1: add HW RNG and AO Secure nodes

2023-10-15 Thread neil . armstrong
From: Neil Armstrong Hi, On Tue, 10 Oct 2023 13:06:15 +0300, Alexey Romanov wrote: > This patchest adds HW RNG and AO Secure definition > in device tree for Amlogic A1-series. > > V2: > > - Rebased over latest amlogic U-Boot branch. > > [...] Thanks, Applied to

Re: [PATCH v3 0/1] hwrng: meson - add support for S4

2023-10-15 Thread neil . armstrong
From: Neil Armstrong Hi, On Thu, 12 Oct 2023 10:58:24 +0300, Alexey Romanov wrote: > This patch adds support for Meson S4 series > hardware number generator using new algo. > > V2: > > - Sync with Linux version. > > [...] Thanks, Applied to

Re: [PATCH v1] drivers: don't compile Secure Monitor UCLASS unconditionally

2023-10-15 Thread Neil Armstrong
Le 13/10/2023 à 15:04, Alexey Romanov a écrit : It makes no sense to compile Secure Monitor unconditionally. For example, this break the SPL build on boards with a small allowed SPL image size. Fixes: 126fbbefd89e ("drivers: introduce Secure Monitor uclass") Signed-off-by: Alexey Romanov ---

Re: [SPAM] [PATCH 20/26] test: spl: Add functions to create images

2023-10-15 Thread Sean Anderson
On 10/13/23 15:44, Xavier Drudis Ferran wrote: El Wed, Oct 11, 2023 at 09:56:20PM -0400, Sean Anderson deia: This add some basic functions to create images, and a test for said functions. This is not intended to be a test of the image parsing functions, but rather a framework for creating

[PATCH v2 07/29] arm: imx: Add function to validate i.MX8 containers

2023-10-15 Thread Sean Anderson
Add a function to abstract the common task of validating i.MX8 container image headers. Signed-off-by: Sean Anderson --- (no changes since v1) arch/arm/include/asm/mach-imx/image.h | 9 + arch/arm/mach-imx/ele_ahab.c | 2 +- arch/arm/mach-imx/image-container.c | 2 +-

[PATCH v2 04/29] arm: imx: Fix i.MX8 container load address

2023-10-15 Thread Sean Anderson
We should load images to their destination, not their entry point. Fixes: 7b86cd4274e ("imx8: support parsing i.MX8 Container file") Signed-off-by: Sean Anderson --- (no changes since v1) arch/arm/mach-imx/parse-container.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 08/29] arm: imx: Check header before calling spl_load_imx_container

2023-10-15 Thread Sean Anderson
Make sure we have an IMX header before calling spl_load_imx_container, since if we don't it will fail with -ENOENT. This allows us to fall back to legacy/raw images if they are also enabled. This is a functional change, one which likely should have been in place from the start, but a functional

[PATCH v2 20/29] sandbox: Support -T in spl

2023-10-15 Thread Sean Anderson
The test devicetree is only compiled for U-Boot proper. When accessing it in SPL we need to go up one directory. Signed-off-by: Sean Anderson --- Changes in v2: - Compare to PHASE_SPL in sandbox_cmdline_cb_test_fdt for clarity - Split off from fs test arch/sandbox/cpu/start.c | 9 +++-- 1

Re: [PATCH v3] rockchip: configs: sandbox: enable rkmtd command

2023-10-15 Thread Simon Glass
On Fri, 13 Oct 2023 at 22:21, Johan Jonker wrote: > > Enable rkmtd command for testing with sandbox_defconfig > and sandbox64_defconfig. > > Signed-off-by: Johan Jonker > --- > configs/sandbox64_defconfig | 1 + > configs/sandbox_defconfig | 1 + > 2 files changed, 2 insertions(+)

[PATCH 3/6] binman: Ensure attributes always come last in the metadata

2023-10-15 Thread Simon Glass
cbfsutil changed to write zero bytes instead of 0xff when a small padding must be added. Adjust the binman implementation to do the same. Drop the code which looks for an unused attribute tag, since it is not used. A future patch moves the attributes to the end of the header in any case, so no

[PATCH v2 06/29] arm: imx: Use log_err for errors in read_auth_container

2023-10-15 Thread Sean Anderson
To allow for more flexible handling of errors, use log_err instead of printf. Signed-off-by: Sean Anderson --- Changes in v2: - New arch/arm/mach-imx/parse-container.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/parse-container.c

[PATCH v2 00/29] test: spl: Test some load methods

2023-10-15 Thread Sean Anderson
This series adds some tests for various SPL load methods, with the intent of helping debug v6 of [1]. With that in mind, notable omissions include NAND and ROMAPI, which both lack sandbox implementations, and OS_BOOT, which I have deferred due to its complexity. Semihosting is also omitted, but I

[PATCH v2 09/29] Move i.MX8 container image loading support to common/spl

2023-10-15 Thread Sean Anderson
To facilitate testing loading i.MX8 container images, move the parse-container code to common/spl. Signed-off-by: Sean Anderson --- (no changes since v1) MAINTAINERS| 1 + arch/arm/mach-imx/Kconfig | 13 -

[PATCH v2 12/29] fs: Disable sandbox filesystem in SPL

2023-10-15 Thread Sean Anderson
Don't bother compiling the sandbox filesystem in SPL for now, as it is not needed. Signed-off-by: Sean Anderson --- Changes in v2: - Disable sandbox filesystem in SPL instead of compiling it in fs/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fs.c b/fs/fs.c index

[PATCH v2 17/29] net: bootp: Fall back to BOOTP from DHCP when unit testing

2023-10-15 Thread Sean Anderson
If we sent a DHCP packet and get a BOOTP response from the server, we shouldn't try to send a DHCPREQUEST packet, since it won't be DHCPACKed. Transition straight to BIND. This is only enabled for UNIT_TEST to avoid bloat, since I suspect the number of BOOTP servers in the wild is vanishingly

[PATCH v2 02/29] spl: nor: Don't allocate header on stack

2023-10-15 Thread Sean Anderson
spl_image_info.name contains a reference to legacy_img_hdr. If we allocate the latter on the stack, it will be clobbered after we return. This was addressed for NAND back in 06377c5a1fc ("spl: spl_legacy: Fix NAND boot on OMAP3 BeagleBoard"), but that commit didn't fix NOR. Signed-off-by: Sean

[PATCH v2 27/29] test: spl: Add a test for the NET load method

2023-10-15 Thread Sean Anderson
Add a test for loading U-Boot over TFTP. As with other sandbox net routines, we need to initialize our packets manually since things like net_set_ether and net_set_udp_header always use "our" addresses. We use BOOTP instead of DHCP, since DHCP has a tag/length-based format which is harder to

Re: [PATCH v3 6/7] rockchip: test: dm: add rkmtd test

2023-10-15 Thread Simon Glass
Hi, On Fri, 13 Oct 2023 at 00:17, Kever Yang wrote: > > > On 2023/10/13 04:52, Johan Jonker wrote: > > Add Rockchip rkmtd test: > > Create/attach/detach RKMTD device. > > Send/read data with Rockchip boot block header. > > Test that reusing the same label should work. > > Basic test of 'rkmtd'

Re: [PATCH] firmware: scmi: Fix clearing variable

2023-10-15 Thread Tom Rini
On Tue, Oct 10, 2023 at 07:44:32PM +0200, Francois Berder wrote: > The sess variable in open_channel was not entirely > cleared to zero at the start of this function. > > This commit ensures that the entire struct is cleared. > > Signed-off-by: Francois Berder Applied to u-boot/master,

[PATCH v2 10/29] spl: Allow enabling SPL_OF_REAL and SPL_OF_PLATDATA at the same time

2023-10-15 Thread Sean Anderson
Sandbox unit tests in U-Boot proper load a test device tree to have some devices to work with. In order to do the same in SPL, we must enable SPL_OF_REAL. However, we already have SPL_OF_PLATDATA enabled. When generating platdata from a devicetree, it is expected that we will not need devicetree

[PATCH 6/6] binman: Move stage header into a CBFS attribute

2023-10-15 Thread Simon Glass
cbfsutil completely changed the way that stages are formatted in CBFS. Adjust the binman implementation to do the same. This mirrors commit 81dc20e744 in coreboot. Signed-off-by: Simon Glass --- tools/binman/cbfs_util.py | 64 +-

Re: [PATCH v1] drivers: don't compile Secure Monitor UCLASS unconditionally

2023-10-15 Thread Simon Glass
On Fri, 13 Oct 2023 at 09:57, Alexey Romanov wrote: > > It makes no sense to compile Secure Monitor unconditionally. > For example, this break the SPL build on boards with a small > allowed SPL image size. > > Fixes: 126fbbefd89e ("drivers: introduce Secure Monitor uclass") > > Signed-off-by:

[PATCH v2] imx8mp-evk: Add USB0 OTG support

2023-10-15 Thread Fabio Estevam
From: Fabio Estevam Add USB0 OTG support. Currently, the USB0 OTG nodes are not enabled in the Linux kernel devicetree. For this reason, enable the USB0 OTG nodes inside imx8mp-evk-u-boot.dtsi for now. Also select several useful options such as USB gadget and fastboot. Tested by running "ums

[PATCH v2 13/29] fs: ext4: Fix building ext4 in SPL if write is enabled

2023-10-15 Thread Sean Anderson
If EXT4_WRITE is enabled, write capabilities will be compiled into SPL, but not CRC16. Add an option to enable CRC16 to avoid linker errors. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) common/spl/Kconfig | 1 + lib/Kconfig| 6 ++ lib/Makefile

[PATCH v2 22/29] test: spl: Fix spl_test_load not failing if fname doesn't exist

2023-10-15 Thread Sean Anderson
Returning a negative value from a unit test doesn't automatically fail the test. We have to fail an assertion. Modify the test to do so. This now causes the test to count as a failure on VPL. This is because the fname of SPL (and U-Boot) is generated with make_exec in os_jump_to_image. The

Re: [PATCH 1/3] arm64: Use FEAT_HAFDBS to track dirty pages when available

2023-10-15 Thread Chris Packham
On Sat, 14 Oct 2023, 11:04 am Marc Zyngier, wrote: > On 2023-10-13 03:40, Chris Packham wrote: > > Hi Marc, Paul, > > > > On Sat, Mar 18, 2023 at 5:23 AM Ying-Chun Liu (PaulLiu) > > wrote: > >> > >> From: Marc Zyngier > >> > >> Some recent arm64 cores have a facility that allows the page > >>

Re: Please pull u-boot-dm

2023-10-15 Thread Tom Rini
On Fri, Oct 13, 2023 at 03:01:12PM -0700, Simon Glass wrote: > Hi Tom, > > > https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/18115 > > https://dev.azure.com/simon0972/u-boot/_build/results?buildId=53=results > > > The following changes since commit

[PATCH v2 03/29] spl: fit: Fix entry point for SPL_LOAD_FIT_FULL

2023-10-15 Thread Sean Anderson
The entry point is not always the same as the load address. Use the value of the entry property if it exists. Fixes: 8a9dc16e4d0 ("spl: Add full fitImage support") Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- Changes in v2: - Remove check for zero entry point in spl_load_fit_image

Re: [PATCH] sunxi: H616: DRAM: refactor mctl_phy_configure_odt()

2023-10-15 Thread Jernej Škrabec
Dne sobota, 14. oktober 2023 ob 19:02:36 CEST je Andre Przywara napisal(a): > The original H616 DDR3 ODT configuration code wrote board specific values > into a sequence of paired registers. > For LPDDR3 support we needed to special-case one group of registers, > because for that DRAM type we need

[PATCH v2 21/29] test: spl: Split tests up and use some configs

2023-10-15 Thread Sean Anderson
In order to make adding new spl unit tests easier, especially when they may have many dependencies, add some Kconfigs for the existing image test. Split it into the parts which are generic (such as callbacks) and the test-specific parts. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass ---

[PATCH v2 6/6] smbios: Require the caller to align the SMBIOS table

2023-10-15 Thread Simon Glass
All callers handle this alignment, so drop the unnecessary code. This simplifies things a little. Signed-off-by: Simon Glass --- (no changes since v1) include/smbios.h | 5 + lib/smbios.c | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/include/smbios.h

[PATCH 5/6] binman: Rename TYPE_STAGE to TYPE_LEGACY_STAGE

2023-10-15 Thread Simon Glass
In preparation for changing how stages are stored, rename the existing stage tag. Signed-off-by: Simon Glass --- cmd/cbfs.c | 2 +- include/cbfs.h | 2 +- tools/binman/cbfs_util.py | 12 ++-- tools/binman/cbfs_util_test.py | 3 ++- 4 files

[PATCH v2 23/29] test: spl: Add functions to create images

2023-10-15 Thread Sean Anderson
This add some basic functions to create images, and a test for said functions. This is not intended to be a test of the image parsing functions, but rather a framework for creating minimal images for testing load methods. That said, it does do an OK job at finding bugs in the image parsing

Re: [RESEND PATCH v3 0/3] rpi: Convert to standard boot

2023-10-15 Thread Simon Glass
Hi Peter, On Tue, 10 Oct 2023 at 08:58, Simon Glass wrote: > > Hi Peter, > > On Sun, 8 Oct 2023 at 14:20, Simon Glass wrote: > > > > Hi Peter, > > > > On Sun, 8 Oct 2023 at 12:02, Peter Robinson wrote: > > > > > > Hi Simon, > > > > > > > > So with more testing of 2023.10 in Fedora we found a

Re: [PATCH v2 24/29] test: spl: Add functions to create filesystems

2023-10-15 Thread Simon Glass
On Sat, 14 Oct 2023 at 14:48, Sean Anderson wrote: > > Add some functions for creating fat/ext2 filesystems with a single file and > a test for them. Filesystems require block devices, and it is easiest to > just use MMC for this. To get an MMC, we must also pull in the test device > tree.

[PATCH v2 5/6] efi: Use the correct GUID for the SMBIOS table

2023-10-15 Thread Simon Glass
EFI does not use the 'anchor string' to determine the SMBIOS table version, instead preferring to have two separate GUIDs. Use the correct one, depending on the table version. Call unmap_system() to balance to the use of map_sysmem() Signed-off-by: Simon Glass --- Changes in v2: - Add a note

Re: [PATCH v6 01/14] scmi: refactor the code to hide a channel from devices

2023-10-15 Thread Tom Rini
On Wed, Oct 11, 2023 at 07:06:54PM +0900, AKASHI Takahiro wrote: > The commit 85dc58289238 ("firmware: scmi: prepare uclass to pass channel > reference") added an explicit parameter, channel, but it seems to make > the code complex. > > Hiding this parameter will allow for adding a generic

Re: [PATCH v2 14/29] fs: ext4: Add some defines for testing

2023-10-15 Thread Simon Glass
On Sat, 14 Oct 2023 at 14:48, Sean Anderson wrote: > > Add various defines which are not necessary for reading/writing > filesystems, but which are useful for creating them. These mostly come from > Linux v6.5-rc2 (what I had checked out). > > Signed-off-by: Sean Anderson > --- > > Changes in

[PATCH] mmc: sh_sdhi: Drop unused driver

2023-10-15 Thread Marek Vasut
This driver is long superseded by renesas-sdhi.c and unused. Drop the driver. Signed-off-by: Marek Vasut --- Cc: Jaehoon Chung Cc: Nobuhiro Iwamatsu Cc: Peng Fan --- drivers/mmc/Kconfig | 6 - drivers/mmc/Makefile | 1 - drivers/mmc/sh_sdhi.c | 910

Re: [PATCH v2 12/29] fs: Disable sandbox filesystem in SPL

2023-10-15 Thread Simon Glass
On Sat, 14 Oct 2023 at 14:48, Sean Anderson wrote: > > Don't bother compiling the sandbox filesystem in SPL for now, as it is not > needed. > > Signed-off-by: Sean Anderson > --- > > Changes in v2: > - Disable sandbox filesystem in SPL instead of compiling it in > > fs/fs.c | 2 +- > 1 file

[PATCH v2 4/6] smbios: Correct gd_smbios_start()

2023-10-15 Thread Simon Glass
This should access arch-specific properties. Fix it and update the existing usage. Signed-off-by: Simon Glass --- Changes in v2: - Add a new patch to correct gd_smbios_start() include/asm-generic/global_data.h | 2 +- lib/efi_loader/efi_smbios.c | 2 +- 2 files changed, 2 insertions(+),

Re: [PATCH v2 11/19] serial: sh: Fix error handling

2023-10-15 Thread Marek Vasut
On 10/9/23 18:46, Paul Barker wrote: The current SCIF error handling is broken for the RZ/G2L. After a break condition has been triggered, the current code is unable to clear the error and serial port output never resumes. The RZ/G2L datasheet says that most error conditions are cleared by

Re: [PATCH v2 17/29] net: bootp: Fall back to BOOTP from DHCP when unit testing

2023-10-15 Thread Heinrich Schuchardt
Am 14. Oktober 2023 22:47:53 MESZ schrieb Sean Anderson : >If we sent a DHCP packet and get a BOOTP response from the server, we >shouldn't try to send a DHCPREQUEST packet, since it won't be DHCPACKed. >Transition straight to BIND. This is only enabled for UNIT_TEST to avoid >bloat, since I

[PATCH v2 2/6] smbios: Move the rest of the SMBIOS2 code

2023-10-15 Thread Simon Glass
Move all of this logic into the else clause, since it will not be used for SMBIOS3 Signed-off-by: Simon Glass --- (no changes since v1) lib/smbios.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/lib/smbios.c b/lib/smbios.c index 96f67cd6ad7b..c7a557bc9b7b

Re: [PATCH v2 16/29] net: bootp: Move port numbers to header

2023-10-15 Thread Heinrich Schuchardt
Am 14. Oktober 2023 22:47:52 MESZ schrieb Sean Anderson : >These defines are useful when testing bootp. > >Signed-off-by: Sean Anderson >Reviewed-by: Simon Glass >Reviewed-by: Heinrich Schuchardt >--- > >(no changes since v1) > > net/bootp.c | 3 --- > net/bootp.h | 3 +++ > 2 files changed, 3

Re: [PATCH v2 12/19] serial: sh: Add RZ/G2L SCIF support

2023-10-15 Thread Marek Vasut
On 10/9/23 18:46, Paul Barker wrote: Extend the existing driver to support the SCIF serial ports on the Renesas RZ/G2L (R9A07G044) SoC. This also requires us to ensure that the relevant reset signal is de-asserted before we try to talk to the SCIF module. Signed-off-by: Paul Barker

[PATCH 0/6] binman: Update CBFS implementation

2023-10-15 Thread Simon Glass
There isn't really a solid spec for CBFS and it changes from time to time. This series updates binman to deal with four changes in the file format, with the earliest being in October 2020. No changes are made to the CBFS-filesystem implementation. This has fallen behind, but can still be used for

[PATCH v2 19/29] spl: Use map_sysmem where appropriate

2023-10-15 Thread Sean Anderson
All "physical" addresses in SPL must be converted to virtual addresses before access in order for sandbox to work. Add some calls to map_sysmem in appropriate places. We do not generally call unmap_sysmem, since we need the image memory to still be mapped when we jump to the image. This doesn't

  1   2   >