Re: [PATCH] mtd: spi-nor: scale up timeout for full-chip erase

2024-09-19 Thread Tom Rini
On Tue, 02 Jan 2024 18:23:03 +0530, Venkatesh Yadav Abbarapu wrote: > This patch fixes timeout issues seen on large NOR flash. > For full-chip erase, where we use the SPINOR_OP_CHIP_ERASE (0xc7) > opcode. Use a different timeout for full-chip erase than for other > commands. > > [Ported from Lin

Re: [PATCH v4 14/35] efi_loader: Allocate and write ACPI tables

2024-09-19 Thread Ilias Apalodimas
Hi Simon, On Thu, 19 Sept 2024 at 18:36, Simon Glass wrote: > > Hi Ilias, > > On Thu, 19 Sept 2024 at 17:20, Ilias Apalodimas > wrote: > > > > Hi Simon, > > > > On Thu, 19 Sept 2024 at 18:00, Simon Glass wrote: > > > > > > Hi Ilias, > > > > > > > [...] > > > > > > > > + > > > > > > +

Re: [PATCH v13 0/8] spi-nor: Add parallel and stacked memories support

2024-09-19 Thread Tom Rini
On Wed, Sep 18, 2024 at 01:18:10PM +0200, Michal Simek wrote: > Hi Tom, > > On 9/5/24 05:21, Venkatesh Yadav Abbarapu wrote: > > This series adds support for Xilinx qspi parallel and > > stacked memeories. > > > > In parallel mode, the current implementation assumes that a maximum > > of two flas

Re: Pull request for fwu-next-19092024

2024-09-19 Thread Tom Rini
On Thu, Sep 19, 2024 at 05:34:35PM +0300, Ilias Apalodimas wrote: > This is a PR for the firmware A/B updates going via the TPM tree. > Sughosh and Michal have verified and tested the changes. > > The following changes since commit 650883a568653f37ee4ff43beda56152b594a49c: > > cmd: osd: Depend

Re: [GIT PULL] Please pull u-boot-imx-next-20240919

2024-09-19 Thread Tom Rini
19 -0600) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git > tags/u-boot-imx-next-20240919 > > for you to fetch changes up to effe934e50f03c92ba6febecfe132c9cb34ecf59: > > imx6q-lxr: Add board support (2024-09

Re: [PATCH v2 3/3] configs: versal2: Add support for AMD UFS platform driver

2024-09-19 Thread Michal Simek
On 9/20/24 06:16, Venkatesh Yadav Abbarapu wrote: Enable AMD UFS platform driver. Signed-off-by: Venkatesh Yadav Abbarapu --- configs/amd_versal2_virt_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/amd_versal2_virt_defconfig b/configs/amd_versal2_vi

[PATCH v6 00/19] labgrid: Provide an integration with Labgrid

2024-09-19 Thread Simon Glass
Labgrid provides access to a hardware lab in an automated way. It is possible to boot U-Boot on boards in the lab without physically touching them. It relies on relays, USB UARTs and SD muxes, among other things. By way of background, about 4 years ago I wrong a thing called Labman[1] which allowe

[PATCH v6 05/19] test: Avoid failing skipped tests

2024-09-19 Thread Simon Glass
When a test returns -EAGAIN this should not be considered a failure. Fix what seems to be a problem case, where the pytests see a failure when a test has merely been skipped. We cannot squash the -EAGAIN error in ut_run_test() since the failure count is incremented by its caller, ut_run_test_live_

[PATCH v6 03/19] test: Release board after tests complete

2024-09-19 Thread Simon Glass
When a board is finished with, the lab may want to power it off, or perform some other function. Add a new script which is called when tests are complete. Signed-off-by: Simon Glass --- (no changes since v1) test/py/u_boot_console_exec_attach.py | 10 ++ 1 file changed, 10 insertions(+

[PATCH v6 02/19] test: Use a constant for the test timeout

2024-09-19 Thread Simon Glass
Declare a constant rather than open-coding the same value twice. Signed-off-by: Simon Glass --- (no changes since v1) test/py/u_boot_console_base.py | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py index

[PATCH v6 01/19] test: Allow signaling that U-Boot is ready

2024-09-19 Thread Simon Glass
When Labgrid is used, it can get U-Boot ready for running tests. It prints a message when it has done so. Add logic to detect this message and accept it. Signed-off-by: Simon Glass --- (no changes since v1) test/py/u_boot_console_base.py | 9 + 1 file changed, 5 insertions(+), 4 delet

[PATCH v6 10/19] test: Detect dead connections

2024-09-19 Thread Simon Glass
When the connection to a board dies, assume it is dead forever until some user action is taken. Skip all remaining tests. This avoids CI runs taking an hour, with hundreds of 30-second timeouts all to no avail. Signed-off-by: Simon Glass --- (no changes since v1) test/py/conftest.py | 19 +

[PATCH v6 09/19] test: Separate out the exception handling

2024-09-19 Thread Simon Glass
The tests currently catch a very board Exception in each case. This is thrown even in the event of a coding error. We want to handle exceptions differently depending on their severity, so that we can avoid hour-long delays waiting for a board that is clearly broken. As a first step, create some n

[PATCH v6 04/19] test: Allow connecting to a running board

2024-09-19 Thread Simon Glass
Sometimes we know that the board is already running the right software, so provide an option to allow running of tests directly, without first resetting the board. This saves time when re-running a test where only the Python code is changing. Signed-off-by: Simon Glass --- (no changes since v1)

[PATCH v6 11/19] test: Tidy up remaining exceptions

2024-09-19 Thread Simon Glass
Use the new handle_exception() function from ConsoleBase also. Signed-off-by: Simon Glass --- (no changes since v1) test/py/u_boot_console_base.py | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py in

[PATCH v6 06/19] test: Create a common function to get the config

2024-09-19 Thread Simon Glass
The settings are decoded in two places. Combine them into a new function, before (in a future patch) expanding the number of items. Signed-off-by: Simon Glass --- (no changes since v1) test/py/conftest.py | 41 - 1 file changed, 28 insertions(+), 13 dele

[PATCH v6 12/19] test: Introduce lab mode

2024-09-19 Thread Simon Glass
There is quite a bit of code in pytest to try to start up U-Boot on a board, with timeouts, expects, etc. This is tedious to maintain and is peripheral to the test system's purpose. It seems better to put this logic in the lab itself, where is can provide such support. With Labgrid we can use the

[PATCH v6 08/19] test: Move the receive code into a function

2024-09-19 Thread Simon Glass
There is quite a bit of code to deal with receiving data from the target so move it into its own receive() function. Signed-off-by: Simon Glass --- (no changes since v1) test/py/u_boot_spawn.py | 39 +++ 1 file changed, 27 insertions(+), 12 deletions(-) dif

[PATCH v6 13/19] test: Improve handling of sending commands

2024-09-19 Thread Simon Glass
We expect commands to be echoed and this should happen quite quickly, since U-Boot is sitting at the prompt waiting for a command. Reduce the timeout for this situation. Try to produce a more useful error message when something goes wrong. Also handle the case where the connection has gone away si

[PATCH v6 16/19] test: Try to shut down the lab console gracefully

2024-09-19 Thread Simon Glass
Send the Labgrid quit characters to ask it to exit gracefully. This typically allows it to power off the board being used. Only do this when labgrid is being used (detected with an env var). If that doesn't work, try the less graceful approach. Signed-off-by: Simon Glass --- Changes in v6: - Av

[PATCH v6 15/19] test: Avoid double echo when starting up

2024-09-19 Thread Simon Glass
There is a very annoying bug at present where the terminal echos part of the first command sent to the board. This happens because the terminal is still set to echo for a period until Labgrid starts up and can change this. Fix this by disabling echo (and other terminal features) as soon as the spa

[PATCH v6 17/19] test: Add a section for closing the connection

2024-09-19 Thread Simon Glass
This can take a while and involve multiple steps (e.g. turning the board back off). Add a section for it and show the output. Signed-off-by: Simon Glass --- (no changes since v1) test/py/u_boot_console_base.py | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/py/u_bo

[PATCH v6 14/19] test: Fix mulptiplex_log typo

2024-09-19 Thread Simon Glass
Fix a typo in a comment. Signed-off-by: Simon Glass --- (no changes since v1) test/py/u_boot_console_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py index e2e78179555..f610fa9a6f8 100644 --- a/test/py/u

[PATCH v6 19/19] CI: Allow running tests on sjg lab

2024-09-19 Thread Simon Glass
Add a way to run tests on a real hardware lab. This is in the very early experimental stages. There are only 23 boards and 3 of those are broken! (bob, ff3399, samus). A fourth fails due to problems with the TPM tests. To try this, assuming you have gitlab access, set SJG_LAB=1, e.g.: git push

[PATCH v6 18/19] test: Support testing with two board-builds

2024-09-19 Thread Simon Glass
The Beagleplay board uses two entirely separate builds to produce an image, rather than using an SPL build for this purpose. Handle this in test.py by adding more parameters. Signed-off-by: Simon Glass --- (no changes since v5) Changes in v5: - Add a patch to support testing with two board-bui

[PATCH v6 07/19] test: Introduce the concept of a role

2024-09-19 Thread Simon Glass
In Labgrid there is the concept of a 'role', which is similar to the U-Boot board ID in U-Boot's pytest subsystem. The role indicates both the target and information about the U-Boot build to use. It can also provide any amount of other configuration. The information is obtained using the 'labgrid

Re: [PATCH 02/16] lmb: add a flag to allow suppressing memory map change notification

2024-09-19 Thread Sughosh Ganu
On Thu, 19 Sept 2024 at 19:42, Simon Glass wrote: > > Hi, > > On Tue, 17 Sept 2024 at 13:55, Sughosh Ganu wrote: > > > > On Sat, 14 Sept 2024 at 20:14, Heinrich Schuchardt > > wrote: > > > > > > On 9/5/24 10:27, Sughosh Ganu wrote: > > > > Add a flag LMB_NONOTIFY that can be passed to the LMB A

Re: [PATCH v2] Kconfig: clean up the efi configuration status

2024-09-19 Thread Ilias Apalodimas
Akashi-san On Fri, 20 Sept 2024 at 04:39, Takahiro AKASHI wrote: > > > > On Fri, 30 Aug 2024 at 20:45, Ilias Apalodimas > wrote: > > > > The EFI_LOADER and EFI config options are randomly scattered under lib/ > > making it cumbersome to navigate and enable options, unless you really > > know wh

Re: [PATCH v3 14/30] efi_loader: Allocate and write ACPI tables

2024-09-19 Thread Tom Rini
On Thu, Sep 19, 2024 at 02:45:30PM +0200, Patrick Rudolph wrote: > On Thu, Sep 19, 2024 at 2:39 PM Heinrich Schuchardt > wrote: > > > > On 11.09.24 08:24, Patrick Rudolph wrote: > > > Allocate memory for ACPI tables inside the efi_loader and write out > > > the tables similar to SMBIOS tables. Wh

[PATCH v2 0/3] Add AMD UFS platfrom driver support

2024-09-19 Thread Venkatesh Yadav Abbarapu
Enable UFS DWC controller driver support and add AMD UFS platform driver support. NOTE: These changes are rebased on top of this series [PATCH 00/13] ufs: enhancements to support Qualcomm UFS controllers Changes in v2: - Removed the ufshcd_vops_phy_initialization function. - Removed the ufshcd_se

[PATCH v2 2/3] ufs: ufs-amd-versal2: Add support for AMD UFS controller

2024-09-19 Thread Venkatesh Yadav Abbarapu
Add UFS AMD platform support on top of the UFS DWC and UFS platform driver. UFS AMD platform requires some platform specific configurations like M-PHY/RMMI/UniPro and vendor specific registers programming before doing the LINKSTARTUP. Signed-off-by: Venkatesh Yadav Abbarapu Reviewed-by: Neil Arms

[PATCH v2 1/3] ufs: add support for DesignWare Controller

2024-09-19 Thread Venkatesh Yadav Abbarapu
This patch has the goal to add support for DesignWare UFS Controller specific operations. This is based on linux kernel commit: "drivers/scsi/ufs/ufshcd-dwc.c: ufs: add support for DesignWare Controller" (sha1: 4b9ffb5a353bdee49f1f477ffe2b95ab3f9cbc0c) It is ported from linux kernel 6.11-rc1. Sig

[PATCH v2 3/3] configs: versal2: Add support for AMD UFS platform driver

2024-09-19 Thread Venkatesh Yadav Abbarapu
Enable AMD UFS platform driver. Signed-off-by: Venkatesh Yadav Abbarapu --- configs/amd_versal2_virt_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/amd_versal2_virt_defconfig b/configs/amd_versal2_virt_defconfig index c4bf77186c..666d76c449 100644 --- a/co

Re: [PATCH] imx6q-lxr: Add board support

2024-09-19 Thread Fabio Estevam
On Fri, Sep 13, 2024 at 9:56 PM Fabio Estevam wrote: > > From: Fabio Estevam > > Add support for the Comvetia i.MX6Q LXR2 board, which is > uses the Phytec PFLA02 SoM. Applied to u-boot-imx/next, thanks.

Re: [PATCH v3 00/21] imx9: various update

2024-09-19 Thread Fabio Estevam
On Wed, Sep 18, 2024 at 11:58 PM Peng Fan (OSS) wrote: > > Several updates to i.MX9 SOC and i.MX93 EVK, the related code > has been in NXP downstream for some time and gone through several > public releases. Some are directly cherry-picked(with R-b kept), > some are modified from downstream. Appl

Re: [PATCH v3 14/30] efi_loader: Allocate and write ACPI tables

2024-09-19 Thread Patrick Rudolph
On Thu, Sep 19, 2024 at 2:39 PM Heinrich Schuchardt wrote: > > On 11.09.24 08:24, Patrick Rudolph wrote: > > Allocate memory for ACPI tables inside the efi_loader and write out > > the tables similar to SMBIOS tables. When ACPI is enabled and wasn't > > installed in other places, install the ACPI

Re: [PATCH v3 14/30] efi_loader: Allocate and write ACPI tables

2024-09-19 Thread Heinrich Schuchardt
On 12.09.24 02:58, Simon Glass wrote: Hi Patrick, On Wed, 11 Sept 2024 at 00:25, Patrick Rudolph wrote: Allocate memory for ACPI tables inside the efi_loader and write out the tables similar to SMBIOS tables. When ACPI is enabled and wasn't installed in other places, install the ACPI table in

Re: [PATCH v3 14/30] efi_loader: Allocate and write ACPI tables

2024-09-19 Thread Ilias Apalodimas
Hi Simon, On Thu, 19 Sept 2024 at 16:01, Simon Glass wrote: > > Hi Ilias, > > On Thu, 19 Sept 2024 at 09:30, Ilias Apalodimas > wrote: > > > > On Thu, 19 Sept 2024 at 09:41, Patrick Rudolph > > wrote: > > > > > > On Thu, Sep 12, 2024 at 8:55 AM Ilias Apalodimas > > > wrote: > > > > > > > > Hi

Re: [PATCH v3 14/30] efi_loader: Allocate and write ACPI tables

2024-09-19 Thread Simon Glass
Hi Heinrich, On Thu, 19 Sept 2024 at 14:58, Heinrich Schuchardt wrote: > > On 12.09.24 02:58, Simon Glass wrote: > > Hi Patrick, > > > > On Wed, 11 Sept 2024 at 00:25, Patrick Rudolph > > wrote: > >> > >> Allocate memory for ACPI tables inside the efi_loader and write out > >> the tables similar

Re: [PATCH v3 14/30] efi_loader: Allocate and write ACPI tables

2024-09-19 Thread Ilias Apalodimas
On Thu, 19 Sept 2024 at 15:51, Heinrich Schuchardt wrote: > > On 12.09.24 02:58, Simon Glass wrote: > > Hi Patrick, > > > > On Wed, 11 Sept 2024 at 00:25, Patrick Rudolph > > wrote: > >> > >> Allocate memory for ACPI tables inside the efi_loader and write out > >> the tables similar to SMBIOS tab

Re: [PATCH v3 14/30] efi_loader: Allocate and write ACPI tables

2024-09-19 Thread Simon Glass
Hi Patrick, On Thu, 19 Sept 2024 at 08:41, Patrick Rudolph wrote: > > On Thu, Sep 12, 2024 at 8:55 AM Ilias Apalodimas > wrote: > > > > Hi Patrick > > > > On Wed, 11 Sept 2024 at 09:25, Patrick Rudolph > > wrote: > > > > > > Allocate memory for ACPI tables inside the efi_loader and write out >

Re: [PATCH 1/1] efi_loader: correct efi_set_variable_int() description

2024-09-19 Thread Ilias Apalodimas
On Thu, 19 Sept 2024 at 00:51, Heinrich Schuchardt wrote: > > The name used in the function description must match the function. > > Signed-off-by: Heinrich Schuchardt > --- > include/efi_variable.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/efi_variable.h b

Re: [PATCH 3/3] env: mmc: rework mmc_env_partition_by_guid() to work with two separate partitions

2024-09-19 Thread Rasmus Villemoes
Quentin Schulz writes: > Hi Rasmus, > > For this patch and the previous one, should we have test(s) to make > sure we don't regress? > That's obviously a good idea. But I don't have any idea how I'd go about writing such tests. AFAICT, there is no existing tests of the "find env partition by GUI

Re: [PATCH 1/1] efi_loader: fix some function descriptions

2024-09-19 Thread Ilias Apalodimas
On Thu, 19 Sept 2024 at 00:37, Heinrich Schuchardt wrote: > > * The function name must be provided in the description. > * The function name must match the name used in the description. > > Signed-off-by: Heinrich Schuchardt > --- > @Tom > This is one of the fixes needed before we can update scri

Re: [PATCH 1/1] cmd/efidebug: fix some function descriptions

2024-09-19 Thread Ilias Apalodimas
On Thu, 19 Sept 2024 at 00:43, Heinrich Schuchardt wrote: > > The function name must match the name used in the description. > > Signed-off-by: Heinrich Schuchardt > --- > cmd/efidebug.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/cmd/efidebug.c b/cmd/efidebug.c

Re: [PATCH 1/1] lmb: add missing LMB_NOOVERWRITE description

2024-09-19 Thread Ilias Apalodimas
On Thu, 19 Sept 2024 at 00:39, Heinrich Schuchardt wrote: > > Without a LMB_NOOVERWRITE building the HTML documentation leads to a > warning which should be treated as an error. > > Fixes: 5e9553cc72b8 ("lmb: allow for resizing lmb regions") > Reported-by: Tom Rini > Signed-off-by: Heinrich Schuc

Re: [PATCH 00/13] ufs: enhancements to support Qualcomm UFS controllers

2024-09-19 Thread neil . armstrong
On 18/09/2024 12:47, Michal Simek wrote: On 9/18/24 12:40, neil.armstr...@linaro.org wrote: Hi, On 18/09/2024 11:03, Michal Simek wrote: Hi Neil, On 9/18/24 10:06, Neil Armstrong wrote: Hi Marek, Manorit, Tom, Michal, On 10/09/2024 11:20, Neil Armstrong wrote: This serie regroups all the

[PATCH v2 1/1] lmb: add missing LMB_NOOVERWRITE description

2024-09-19 Thread Heinrich Schuchardt
Without a LMB_NOOVERWRITE description building the HTML documentation leads to a warning which should be treated as an error. Fixes: 5e9553cc72b8 ("lmb: allow for resizing lmb regions") Reported-by: Tom Rini Signed-off-by: Heinrich Schuchardt --- v2: change description text: %s/resized/o

Re: [PATCH v3 14/30] efi_loader: Allocate and write ACPI tables

2024-09-19 Thread Patrick Rudolph
On Thu, Sep 12, 2024 at 8:55 AM Ilias Apalodimas wrote: > > Hi Patrick > > On Wed, 11 Sept 2024 at 09:25, Patrick Rudolph > wrote: > > > > Allocate memory for ACPI tables inside the efi_loader and write out > > the tables similar to SMBIOS tables. When ACPI is enabled and wasn't > > installed in

Re: [PATCH v2 1/1] lmb: add missing LMB_NOOVERWRITE description

2024-09-19 Thread Ilias Apalodimas
On Thu, 19 Sept 2024 at 13:55, Heinrich Schuchardt wrote: > > Without a LMB_NOOVERWRITE description building the HTML documentation leads > to a warning which should be treated as an error. > > Fixes: 5e9553cc72b8 ("lmb: allow for resizing lmb regions") > Reported-by: Tom Rini > Signed-off-by: He

Re: [PATCH 1/1] lmb: add missing LMB_NOOVERWRITE description

2024-09-19 Thread Sughosh Ganu
On Thu, 19 Sept 2024 at 12:35, Ilias Apalodimas wrote: > > On Thu, 19 Sept 2024 at 00:39, Heinrich Schuchardt > wrote: > > > > Without a LMB_NOOVERWRITE building the HTML documentation leads to a > > warning which should be treated as an error. > > > > Fixes: 5e9553cc72b8 ("lmb: allow for resizin

[PATCH 2/3] ufs: ufs-amd-versal2: Add support for AMD UFS controller

2024-09-19 Thread Venkatesh Yadav Abbarapu
Add UFS AMD platform support on top of the UFS DWC and UFS platform driver. UFS AMD platform requires some platform specific configurations like M-PHY/RMMI/UniPro and vendor specific registers programming before doing the LINKSTARTUP. Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/ufs/Kconf

[PATCH] Add mkimage secp521r1 ECDSA curve support

2024-09-19 Thread Joakim Tjernlund
Signed-off-by: Joakim Tjernlund --- include/u-boot/ecdsa.h | 1 + lib/ecdsa/ecdsa-libcrypto.c | 2 +- tools/image-sig-host.c | 7 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/include/u-boot/ecdsa.h b/include/u-boot/ecdsa.h index 53490c6b287..8f9f5e7d6e7 100644 -

Re: [PATCH v3 14/30] efi_loader: Allocate and write ACPI tables

2024-09-19 Thread Simon Glass
Hi Ilias, On Thu, 19 Sept 2024 at 15:18, Ilias Apalodimas wrote: > > Hi Simon, > > On Thu, 19 Sept 2024 at 16:01, Simon Glass wrote: > > > > Hi Ilias, > > > > On Thu, 19 Sept 2024 at 09:30, Ilias Apalodimas > > wrote: > > > > > > On Thu, 19 Sept 2024 at 09:41, Patrick Rudolph > > > wrote: > >

[PATCH] FSL DDR: Errata A009942 clears board cpo_sample

2024-09-19 Thread Joakim Tjernlund
LSB in debug_28 register is cleared here so previous setting by errata A009942 is lost. Save and restore LSB in debug_28 Signed-off-by: Joakim Tjernlund --- drivers/ddr/fsl/fsl_ddr_gen4.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/ddr/fsl/fsl_ddr_gen4.c b/drivers/ddr/fsl/fsl

[PATCH v1] eth: asix88179: drop ADVERTISE_LPACK and ADVERTISE_NPAGE advertise flags

2024-09-19 Thread bigunclemax
From: Maksim Kiselev Some USB-ETH adapters based on the AX88179 (ex. D-link DUB-2312) has link issue if ADVERTISE_NPAGE flag is set. Also Linux drivers for ASIX chips doesn't use these flags. Signed-off-by: Maksim Kiselev --- drivers/usb/eth/asix88179.c | 4 ++-- 1 file changed, 2 insertions(

Re: [PATCH v4 0/6] rpi5: initial support

2024-09-19 Thread Stefan Agner
Hi Ivan, Thanks for the quick response! On 2024-09-19 11:52, Ivan T. Ivanov wrote: > Hi Stefan, > >> On 19 Sep 2024, at 12:36, Stefan Agner wrote: >> >> Hi Ivan, >> >> I am looking into enabling NVMe boot support using U-Boot on Raspberry >> Pi 5. Which brings me to some questions wrt PCIe su

[PATCH V2 1/4] board: rockchip: Convert Anbernic RGxx3 to OF_UPSTREAM

2024-09-19 Thread Chris Morgan
From: Chris Morgan Refactor the board detection logic (again) to make it compatible with the upstream device-trees, and switch to OF_UPSTREAM. Now the device boots with the device-tree for the 353P, and then loads the correct device tree (of 10) in the later stages of SPL. Signed-off-by: Chris

[PATCH V2 0/4] Anbernic RGxx3 Bootloader Fixes

2024-09-19 Thread Chris Morgan
From: Chris Morgan Update the Anbernic RGxx3 "device" to use upstream device-trees, add logic to detect a different vdd_cpu regulator, and implement a fix to allow the panel auto-detection to run when using mainline A-TF. Note that *Linux* still cannot use mainline A-TF because of the missing SC

[PATCH V2 2/4] board: rockchip: Add vdd_cpu reg fixup for RGXX3 Series

2024-09-19 Thread Chris Morgan
From: Chris Morgan Some of the Powkiddy devices switched to using a different vendor for the vdd_cpu regulator. Unfortunately the device does not have a new revision to denote this, so users have no way of knowing in advance. Add code to detect if a device is present at addresses 0x1c or 0x40 on

[PATCH V2 3/4] board: rockchip: Remove ARM SCMI Support from RGxx3

2024-09-19 Thread Chris Morgan
From: Chris Morgan Remove config options for ARM SCMI. It is not required to boot the board and when using the most recent mainline A-TF it actually causes the device to freeze during boot due to missing SCMI support. Signed-off-by: Chris Morgan --- configs/anbernic-rgxx3-rk3566_defconfig | 2

[PATCH V2 4/4] board: rockchip: Enable PD_VO before driver access

2024-09-19 Thread Chris Morgan
From: Chris Morgan Enable the PD_VO power domain before driver access on the rk3568 SoC. Signed-off-by: Chris Morgan --- arch/arm/mach-rockchip/rk3568/rk3568.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3568/rk3568.c b/arch/arm/mach-rockchip/rk3568/rk35

Re: [PATCH v3 14/30] efi_loader: Allocate and write ACPI tables

2024-09-19 Thread Ilias Apalodimas
On Thu, 19 Sept 2024 at 09:41, Patrick Rudolph wrote: > > On Thu, Sep 12, 2024 at 8:55 AM Ilias Apalodimas > wrote: > > > > Hi Patrick > > > > On Wed, 11 Sept 2024 at 09:25, Patrick Rudolph > > wrote: > > > > > > Allocate memory for ACPI tables inside the efi_loader and write out > > > the table

Re: [PATCH v4 0/6] rpi5: initial support

2024-09-19 Thread Ivan T. Ivanov
Hi Stefan, > On 19 Sep 2024, at 12:36, Stefan Agner wrote: > > Hi Ivan, > > I am looking into enabling NVMe boot support using U-Boot on Raspberry > Pi 5. Which brings me to some questions wrt PCIe support (see below). > > On 2024-01-10 13:29, Ivan T. Ivanov wrote: >> >> * I am dropping P

Re: [PATCH v4 0/6] rpi5: initial support

2024-09-19 Thread Stefan Agner
Hi Ivan, I am looking into enabling NVMe boot support using U-Boot on Raspberry Pi 5. Which brings me to some questions wrt PCIe support (see below). On 2024-01-10 13:29, Ivan T. Ivanov wrote: > Hi, > > These patches are slight update for patches posted earlier here[1]. > They are adding basic s

Re: [PATCH 0/2] mux: mmio: support "reg-mux" compatible

2024-09-19 Thread Roger Quadros
On 18/09/2024 16:49, Roger Quadros wrote: > TI upstream has moved from "mmio-mux" to "reg-mux" that doesn't > require the Mux device node's parent to be a syscon type. > > Add support for "reg-mux" compatible. > > Signed-off-by: Roger Quadros This fixes USB on J721e after moving to OF_UPSTRE

Re: [PATCH 00/13] ufs: enhancements to support Qualcomm UFS controllers

2024-09-19 Thread neil.armstr...@linaro.org
On 19/09/2024 11:21, Abbarapu, Venkatesh wrote: Hi, -Original Message- From: neil.armstr...@linaro.org Sent: Thursday, September 19, 2024 1:22 PM To: Simek, Michal ; Marek Vasut ; Neha Malcom Francis ; Manorit Chawdhry ; Tom Rini ; bmeng...@gmail.com; Abbarapu, Venkatesh Cc: u-boot@li

Re: [PATCH 00/13] ufs: enhancements to support Qualcomm UFS controllers

2024-09-19 Thread neil . armstrong
On 19/09/2024 10:56, Neha Malcom Francis wrote: Hi Neil On 18/09/24 13:36, Neil Armstrong wrote: Hi Marek, Manorit, Tom, Michal, On 10/09/2024 11:20, Neil Armstrong wrote: This serie regroups all the fixes and base enhancements required to support the Qualcomm UFS controllers in U-Boot. This

[GIT PULL] Please pull u-boot-imx-next-20240919

2024-09-19 Thread Fabio Estevam
ot-imx.git tags/u-boot-imx-next-20240919 for you to fetch changes up to effe934e50f03c92ba6febecfe132c9cb34ecf59: imx6q-lxr: Add board support (2024-09-19 00:13:20 -0300) u-boot-imx-next-20240919 CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipel

Re: [PATCH 1/1] efi_leader: delete rng-seed if having EFI RNG protocol

2024-09-19 Thread Heinrich Schuchardt
On 19.09.24 17:00, Simon Glass wrote: Hi, On Thu, 19 Sept 2024 at 16:32, Ilias Apalodimas wrote: Hi all, On Thu, 19 Sept 2024 at 17:20, Heinrich Schuchardt wrote: On 19.09.24 16:10, Simon Glass wrote: Hi Heinrich, On Sat, 14 Sept 2024 at 18:06, Heinrich Schuchardt wrote: For measured

[PATCH] doc: Move the generic memory-documentation to doc/

2024-09-19 Thread Simon Glass
Move this section of the README into doc/ with some minor updates to mention SPL and user lower-case hex. Signed-off-by: Simon Glass --- README | 45 -- doc/develop/index.rst | 1 + doc/develop/memory.rst | 45 +++

Re: [PATCH 1/1] efi_leader: delete rng-seed if having EFI RNG protocol

2024-09-19 Thread Ilias Apalodimas
On Thu, Sep 19, 2024, 18:05 Heinrich Schuchardt < heinrich.schucha...@canonical.com> wrote: > On 19.09.24 17:00, Simon Glass wrote: > > Hi, > > > > On Thu, 19 Sept 2024 at 16:32, Ilias Apalodimas > > wrote: > >> > >> Hi all, > >> > >> On Thu, 19 Sept 2024 at 17:20, Heinrich Schuchardt > >> wrote

Re: [PATCH v3 22/30] board: emulation: Add QEMU sbsa support

2024-09-19 Thread Simon Glass
Hi Patrick, On Wed, 18 Sept 2024 at 08:29, Patrick Rudolph wrote: > > On Mon, Sep 16, 2024 at 5:41 PM Simon Glass wrote: > > > > Hi Patrick, > > > > On Thu, 12 Sept 2024 at 00:23, Patrick Rudolph > > wrote: > > > > > > On Thu, Sep 12, 2024 at 2:58 AM Simon Glass wrote: > > > > > > > > Hi Patri

Re: [PATCH v4 24/35] common: Enable BLOBLIST_TABLES on arm

2024-09-19 Thread Simon Glass
On Wed, 18 Sept 2024 at 17:26, Patrick Rudolph wrote: > > Allow to use BLOBLIST_TABLES on arm to store ACPI or other tables. > > Signed-off-by: Patrick Rudolph > Cc: Tom Rini > --- > common/Kconfig | 1 + > lib/Kconfig| 15 +-- > 2 files changed, 10 insertions(+), 6 deletions(-

Re: [PATCH v4 35/35] configs: Add RPI4 ACPI defconfig

2024-09-19 Thread Simon Glass
On Wed, 18 Sept 2024 at 17:23, Patrick Rudolph wrote: > > Allows to build the RPi4 with ACPI enabled. > > TEST: - Boots on qemu-system-aarch64 -machine raspi4b > - Boots on real hardware with arm_64bit=1 in config.txt > > Signed-off-by: Patrick Rudolph > Cc: Simon Glass > Cc: Matthias Brug

Re: [PATCH v3 2/3] buildman: Allow skipping the dtc build

2024-09-19 Thread Simon Glass
Hi Tom, On Thu, 12 Sept 2024 at 19:44, Tom Rini wrote: > > On Wed, Sep 11, 2024 at 07:01:37PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Tue, 10 Sept 2024 at 16:07, Tom Rini wrote: > > > > > > On Tue, Sep 10, 2024 at 02:14:35PM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On T

Re: [PATCH 1/1] boot: correct struct expo_action description

2024-09-19 Thread Simon Glass
On Wed, 18 Sept 2024 at 23:58, Heinrich Schuchardt wrote: > > Correct the description of the select.id member to fix a kernel-doc > warning. > > Signed-off-by: Heinrich Schuchardt > --- > include/expo.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass

Re: [PATCH] Makefile: pass external DTB provided by make variable EXT_DTB to binman

2024-09-19 Thread Simon Glass
Hi, On Wed, 18 Sept 2024 at 11:04, wrote: > > From: Alexander Kochetkov > > Yocto build is using EXT_DTB to repack U-boot during signed > FIT kernel creation. First, it takes the DTB from U-boot, than U-Boot (please fix both) s/than/then/ > it creates signed FIT kernel image and places kernel

Re: [PATCH 1/1] efi_leader: delete rng-seed if having EFI RNG protocol

2024-09-19 Thread Simon Glass
Hi Heinrich, On Sat, 14 Sept 2024 at 18:06, Heinrich Schuchardt wrote: > > For measured be boot we must avoid any volatile values in the device-tree. > We already delete /chosen/kaslr-seed if we provide and EFI RNG protocol. Could you explain a bit why this is, and where this is checked? > > Add

Re: [PATCH 1/1] efi_leader: delete rng-seed if having EFI RNG protocol

2024-09-19 Thread Ilias Apalodimas
Hi all, On Thu, 19 Sept 2024 at 17:20, Heinrich Schuchardt wrote: > > On 19.09.24 16:10, Simon Glass wrote: > > Hi Heinrich, > > > > On Sat, 14 Sept 2024 at 18:06, Heinrich Schuchardt > > wrote: > >> > >> For measured be boot we must avoid any volatile values in the device-tree. > >> We already

Re: [PATCH v4 14/35] efi_loader: Allocate and write ACPI tables

2024-09-19 Thread Ilias Apalodimas
Hi Simon, On Thu, 19 Sept 2024 at 18:00, Simon Glass wrote: > > Hi Ilias, > [...] > > > > + > > > > + if (!addr) > > > > + return log_msg_ret("mem", -ENOMEM); > > > > + } else { > > > > + pages = efi_size_in_pages(TABLE_SIZE); > > > > + >

Re: [PATCH 1/1] efi_leader: delete rng-seed if having EFI RNG protocol

2024-09-19 Thread Simon Glass
Hi, On Thu, 19 Sept 2024 at 17:13, Ilias Apalodimas wrote: > > > > On Thu, Sep 19, 2024, 18:05 Heinrich Schuchardt > wrote: >> >> On 19.09.24 17:00, Simon Glass wrote: >> > Hi, >> > >> > On Thu, 19 Sept 2024 at 16:32, Ilias Apalodimas >> > wrote: >> >> >> >> Hi all, >> >> >> >> On Thu, 19 Sept

[PATCHv2 1/1] Makefile: pass external DTB provided by make variable EXT_DTB to binman

2024-09-19 Thread al . kochet
From: Alexander Kochetkov Yocto build is using EXT_DTB to repack U-Boot during signed FIT kernel creation. First, it takes the DTB from U-Boot, then it creates signed FIT kernel image and places kernel key into the DTB. After that it executes: make EXT_DTB=/path/to/dtb/with/kernel/key Despit

[PATCHv2 0/1] Makefile: pass external DTB provided by make variable EXT_DTB to binman

2024-09-19 Thread al . kochet
From: Alexander Kochetkov Changes in v2: - fix syntax errors in the description - impelement handling multiple DTB files in the EXT_DTB Alexander Kochetkov (1): Makefile: pass external DTB provided by make variable EXT_DTB to binman Makefile | 12 +++- 1 file changed, 11 ins

[PATCH v1] i2c: muxes: pca954x: Add MAX735x/MAX736x support

2024-09-19 Thread bigunclemax
From: Maksim Kiselev Add support for the following Maxim chips using the existing PCA954x driver: - MAX7356 - MAX7357 - MAX7358 - MAX7367 - MAX7368 - MAX7369 All added Maxim chips behave like the PCA954x, where a single SMBUS byte write selects up to 8 channels to be bridged to the primary bus.

[PATCH v1] net: xilinx: axi_emac: DMA transfer termination fix

2024-09-19 Thread bigunclemax
From: Maksim Kiselev According to Xilinx AXI DMA Spec: "There can be a lag of time between when DMACR.RS = 0 and when DMASR.Halted = 1" So to ensure that DMA transfer is really terminated we need to wait for DMASR.Halted status, which was missed in the Xilinx AXI EMAC driver. This issue resulte

Re: [PATCH v3 1/9] led: turn LED ON on initial SW blink

2024-09-19 Thread Heinrich Schuchardt
On 22.08.24 12:47, Christian Marangi wrote: On Tue, Aug 13, 2024 at 12:00:59AM +0200, Heinrich Schuchardt wrote: Am 12. August 2024 12:32:43 MESZ schrieb Christian Marangi : We currently init the LED OFF when SW blink is triggered when on_state_change() is called. This can be problematic for

Re: [PATCH 3/3] board: rockchip: Fix panel detection for mainline A-TF

2024-09-19 Thread Chris Morgan
On Thu, Sep 19, 2024 at 09:48:58AM +0800, Kever Yang wrote: > Hi Chris, > > On 2024/9/18 21:38, Chris Morgan wrote: > > On Wed, Sep 18, 2024 at 11:06:34AM +0800, Kever Yang wrote: > > > Hi Chris, > > > > > > Please update the subject with something like "Enable the VO PD before > > > driver acces

Re: [PATCH 00/19] vbe: Series part E

2024-09-19 Thread Simon Glass
Hi Caleb, On Fri, 30 Aug 2024 at 14:18, Caleb Connolly wrote: > > Hi Simon, > > On 29/08/2024 15:57, Simon Glass wrote: > > > > This includes various patches towards implementing the VBE abrec > > bootmeth in U-Boot. It mostly focuses on SPL tweaks and adjusting what > > fatures are available in

[PATCH] arm: imx: fix board_mmc_init for google coral

2024-09-19 Thread Connor Rigby
This fixes a typo in the mxc_get_clock function preventing SPL from initializing USDHC1 and USDHC2. Signed-off-by: Connor Rigby --- board/google/imx8mq_phanbell/spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/google/imx8mq_phanbell/spl.c b/board/google/imx8m

Re: [PATCH v4 27/35] arm: mach-bcm283x: Bring in some header files from tianocore

2024-09-19 Thread Matthias Brugger
On 18/09/2024 17:20, Patrick Rudolph wrote: From: Simon Glass > These header files presumably duplicate things already in the U-Boot devicetree. For now, bring them in to get the ASL code and ACPI table code to compile. Signed-off-by: Simon Glass Signed-off-by: Patrick Rudolph Reviewed-by:

Re: [PATCH v4 26/35] arm: mach-bcm283x: Map the ARM local MMIO as well

2024-09-19 Thread Matthias Brugger
On 18/09/2024 17:20, Patrick Rudolph wrote: Cover the "ARM local MMIO" range as well in the default MMU mapping in order to allow future code to access the GIC-400 without crashing. For now the GIC is not touched in u-boot, thus this change is a noop. See [1](BCM2711 ARM Peripherals) for refe

Re: [PATCH v5 12/14] efi_loader: Avoid using sandbox virtio devices

2024-09-19 Thread Tom Rini
On Thu, Sep 19, 2024 at 04:10:12PM +0200, Simon Glass wrote: > Hi Tom, > > On Tue, 17 Sept 2024 at 19:03, Tom Rini wrote: > > > > On Mon, Sep 16, 2024 at 05:42:31PM +0200, Simon Glass wrote: > > > Hi Heinrich, > > > > > > On Thu, 12 Sept 2024 at 09:12, Heinrich Schuchardt > > > wrote: > > > > >

Re: [PATCH 00/10] SMBIOS improvements

2024-09-19 Thread Tom Rini
On Thu, Sep 19, 2024 at 04:13:02PM +0200, Simon Glass wrote: > Hi, > > On Sun, 15 Sept 2024 at 20:28, Tom Rini wrote: > > > > On Sun, Sep 15, 2024 at 07:57:19PM +0200, Heinrich Schuchardt wrote: > > > On 8/26/24 21:59, Tom Rini wrote: > > > > On Mon, Aug 26, 2024 at 01:12:16PM -0600, Simon Glass

Re: u-boot: rpi: Enlarge space available for kernel.

2024-09-19 Thread Simon Glass
Hi, On Mon, 16 Sept 2024 at 23:06, Vagrant Cascadian wrote: > > On 2024-09-16, Herman Rimm wrote: > > --- /dev/null > > +++ b/gnu/packages/patches/u-boot-50M-kernel.patch > > @@ -0,0 +1,51 @@ > > +This patch configures the U-Boot for Raspberry Pis to reserve 50 MB for > > +linux kernels, because

Re: [PATCH v5 12/14] efi_loader: Avoid using sandbox virtio devices

2024-09-19 Thread Simon Glass
Hi Tom, On Tue, 17 Sept 2024 at 19:03, Tom Rini wrote: > > On Mon, Sep 16, 2024 at 05:42:31PM +0200, Simon Glass wrote: > > Hi Heinrich, > > > > On Thu, 12 Sept 2024 at 09:12, Heinrich Schuchardt > > wrote: > > > > > > On 02.09.24 03:18, Simon Glass wrote: > > > > While sandbox supports virtio

Re: [PATCH v4 32/35] arm: mach-bcm283x: Add ARMV8_MULTIENTRY support

2024-09-19 Thread Simon Glass
Hi Patrick, On Wed, 18 Sept 2024 at 17:27, Patrick Rudolph wrote: > > When ACPI is enabled over FDT the APs cannot be brought out of reset > by the OS using the "FDT spin-table" mechanism, as no FDT is provided > to the OS. The APs must be released out of reset in u-boot and then > brought up in

Re: [PATCH v4 26/35] arm: mach-bcm283x: Map the ARM local MMIO as well

2024-09-19 Thread Simon Glass
On Wed, 18 Sept 2024 at 17:26, Patrick Rudolph wrote: > > Cover the "ARM local MMIO" range as well in the default MMU mapping in > order to allow future code to access the GIC-400 without crashing. For > now the GIC is not touched in u-boot, thus this change is a noop. U-Boot > > See [1](BCM2711

Re: [PATCH v4 34/35] bloblist: Fix use of uninitialized variable

2024-09-19 Thread Simon Glass
On Wed, 18 Sept 2024 at 17:28, Patrick Rudolph wrote: > > Initialize addr to zero which allows to build on the CI > which is more strict. > > Signed-off-by: Patrick Rudolph > --- > common/bloblist.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass New patch,

Re: [PATCH v2] bootstd: android: Add U-Boot version to cmdline

2024-09-19 Thread Simon Glass
On Thu, 12 Sept 2024 at 16:00, Mattijs Korpershoek wrote: > > When booting into Android fastbootd (a subset of recovery), the default > UI shows the bootloader version in the screen [1]. > This is done via the ro.bootloader property which should come from the > bootloader. > > Provide the U-Boot v

  1   2   >