[PATCH] efi_loader: Don't warn if the TCG2 FinalEvents table is not installed

2024-11-27 Thread Ilias Apalodimas
When the TCG2 protocol installation fails, we are trying to remove all the objects we created in tcg2_uninit(). However, there are cases when this function runs before the config table was installed. So instead of printing an error unconditionally check against EFI_NOT_FOUND and don't print anythi

Re: [PATCH RFC 07/14] efi: stub: add known memory to U-Boot's EFI memory map

2024-11-27 Thread Sughosh Ganu
On Mon, 25 Nov 2024 at 01:58, Caleb Connolly wrote: > > When running U-Boot as an EFI payload with CONFIG_EFI_STUB, the reserved > regions from the previous stage EFI bootloader should be carried over > since they may not fully align with the reserved-memory regions in > devicetree. > > Implement

Re: [PATCH v2 0/5] EFI Capsule "dfu_alt_info" fixes for TI Boards

2024-11-27 Thread Jon Humphreys
Siddharth Vadapalli writes: > On Mon, Nov 25, 2024 at 07:51:54PM -0600, Jon Humphreys wrote: > > Hello Jon, > > [...] > >> >> Hi Siddharth, this is an issue that I also discovered while working on a >> separate issue with Collabora, but haven't posted a patch yet. The issue >> is that when DFU

Re: [PATCH 2/4] drivers: misc: k3_bist: Add K3 BIST driver

2024-11-27 Thread Neha Malcom Francis
Hi Udit On 28/11/24 10:26, Kumar, Udit wrote: On 11/27/2024 8:23 PM, Neha Malcom Francis wrote: Add a driver for the BIST module that support triggering of both PBIST (Memory BIST) and LBIST (Logic BIST) tests. Also expose the relevant In general , please think of treating err as error in pr

Re: [PATCH 2/4] drivers: misc: k3_bist: Add K3 BIST driver

2024-11-27 Thread Kumar, Udit
On 11/27/2024 8:23 PM, Neha Malcom Francis wrote: Add a driver for the BIST module that support triggering of both PBIST (Memory BIST) and LBIST (Logic BIST) tests. Also expose the relevant In general , please think of treating err as error in prints instead of debug , Also, few function c

Re: [PATCH 4/4] DONOTMERGE: arm: mach-k3: j784s4_init: Trigger LBIST and PBIST on MAIN R5 2_0

2024-11-27 Thread Neha Malcom Francis
On 28/11/24 09:38, Kumar, Udit wrote: Thanks Neha. On 11/27/2024 8:23 PM, Neha Malcom Francis wrote: Trigger all tests of PBIST and LBIST using appropriate calls to set the core under test (MAIN R5 2_0) to it's required state. Signed-off-by: Neha Malcom Francis ---   arch/arm/mach-k3/j784s4/j

Re: [PATCH 1/4] arm: dts: k3-j784s4-main: Add PBIST_14 node

2024-11-27 Thread Neha Malcom Francis
Hi Udit On 28/11/24 09:28, Kumar, Udit wrote: On 11/27/2024 8:23 PM, Neha Malcom Francis wrote: Add DT node for PBIST_14 that is responsible for triggering the PBIST self-tests for the MAIN_R5_2_x cores. Signed-off-by: Neha Malcom Francis ---   dts/upstream/src/arm64/ti/k3-j784s4-main.dtsi |

[PATCH] arm64: renesas: Disable AVB1 and AVB2 on R8A779G0 V4H White Hawk board

2024-11-27 Thread Marek Vasut
The U-Boot is currently not capable of handling ethernet-phy-ieee802.3-c45 PHYs correctly, and also does not handle MDIO bus wide reset-gpios property. Until proper C45 PHY support lands in U-Boot, disable AVB1/AVB2 interfaces. This only disables the two MACs with 88Q2110/88Q2112 100/1000BASE-T1 PH

Re: [PATCH 4/4] DONOTMERGE: arm: mach-k3: j784s4_init: Trigger LBIST and PBIST on MAIN R5 2_0

2024-11-27 Thread Kumar, Udit
Thanks Neha. On 11/27/2024 8:23 PM, Neha Malcom Francis wrote: Trigger all tests of PBIST and LBIST using appropriate calls to set the core under test (MAIN R5 2_0) to it's required state. Signed-off-by: Neha Malcom Francis --- arch/arm/mach-k3/j784s4/j784s4_init.c | 48 +

Re: [PATCH 1/4] arm: dts: k3-j784s4-main: Add PBIST_14 node

2024-11-27 Thread Kumar, Udit
On 11/27/2024 8:23 PM, Neha Malcom Francis wrote: Add DT node for PBIST_14 that is responsible for triggering the PBIST self-tests for the MAIN_R5_2_x cores. Signed-off-by: Neha Malcom Francis --- dts/upstream/src/arm64/ti/k3-j784s4-main.dtsi | 12 1 file changed, 12 insertion

[PATCH 2/2] config: efi-x86_payload: Enable DEBUG_UART

2024-11-27 Thread Kever Yang
The efi_stub is useing DEBUG_UART interface by default, Enable it. Signed-off-by: Kever Yang --- configs/efi-x86_payload32_defconfig | 1 + configs/efi-x86_payload64_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/efi-x86_payload32_defconfig b/configs/efi-x86_payload32_

[PATCH 1/2] efi_stub: Sync the debug UART definition like other platform

2024-11-27 Thread Kever Yang
The debug UART interface is available when CONFIG_DEBUG_UART is defined, sync with the other platforms to use the same definition. Signed-off-by: Kever Yang --- lib/efi/efi_stub.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/efi/efi_stub.c b/lib/efi/

[PATCH 4/4] ARM: imx: Deduplicate Data Modul i.MX8M eDM SBC defconfigs

2024-11-27 Thread Marek Vasut
Deduplicate defconfigs for all Data Modul i.MX8M eDM SBC systems by factoring out the common parts into generic imx8m_data_modul.config and including those using the #include preprocessor macro in the current set of board specific defconfigs. The preprocessor macro is applicable to defconfigs as w

[PATCH 3/4] ARM: imx: Perform plain boot in altbootcmd on Data Modul i.MX8M Mini/Plus eDM SBC

2024-11-27 Thread Marek Vasut
The current A/B switching preparatory altbootcmd is confusing to users, replace it with plain 'run bootcmd' which can be replaced by proper A/B switching altbootcmd when the matching updater is added on top of the platform. By default, keep the boot counter incrementing, but do not do any A/B parti

[PATCH 2/4] ARM: dts: imx: Pick safe DRAM size on failure on Data Modul i.MX8M Mini/Plus eDM SBC

2024-11-27 Thread Marek Vasut
In case gpio_request_list_by_name_nodev() in board dmo_get_memcfg() returns error code, pick a safe default DRAM configuration instead of bailing out with some sort of hang() or panic(). The BIT(2)|BIT(0) strap option is the lowest known option of 2 GiB , use that. Signed-off-by: Marek Vasut ---

[PATCH 1/4] ARM: dts: imx: Make DRAM coding GPIOs available in all phases on Data Modul i.MX8M Mini/Plus eDM SBC

2024-11-27 Thread Marek Vasut
The DRAM configuration GPIO straps must be accessible in all boot phases because the GPIOs are sampled both in U-Boot SPL as well as early on in U-Boot proper. The already present bootph-pre-ram DT property made the GPIO controllers available in SPL, but not early on in U-Boot proper, which made gp

Re: [PATCH v3 1/4] debug_uart: Replace debug functions with dummies if CONFIG_DEBUG_UART is not set

2024-11-27 Thread Łukasz Czechowski
Hi Kever, On 2024/11/27 03:42 Kever Yang wrote: > > Hi Lukasz, > > I got a new error base on patch [1], see full log here [2]. Looking at the file efi_stub.c that is used in the failing configuration it looks to me that some functions from debug_uart.h are used here for convenience (i.e. pr

Re: [PATCH 05/13] efi_loader: Move some memory-function comments to header

2024-11-27 Thread Tom Rini
On Wed, Nov 27, 2024 at 07:56:11AM -0700, Simon Glass wrote: > Hi Tom, > > On Wed, 27 Nov 2024 at 07:15, Tom Rini wrote: > > > > On Wed, Nov 27, 2024 at 06:07:58AM -0700, Simon Glass wrote: > > > Hi, > > > > > > On Tue, 26 Nov 2024 at 16:32, Tom Rini wrote: > > > > > > > > On Tue, Nov 26, 2024 a

Re: [v6 01/12] sandbox: efi_loader: Correct use of addresses as pointers

2024-11-27 Thread Simon Glass
Hi Heinrich, On Wed, 27 Nov 2024 at 11:40, Heinrich Schuchardt wrote: > > On 27.11.24 18:17, Tom Rini wrote: > > From: Simon Glass > > > > The cache-flush function is incorrect which causes a crash in the > > remoteproc tests with arm64. > > > > Fix both problems by using map_sysmem() to convert

Re: [v6 01/12] sandbox: efi_loader: Correct use of addresses as pointers

2024-11-27 Thread Tom Rini
On Wed, Nov 27, 2024 at 02:09:42PM -0700, Simon Glass wrote: > Hi Heinrich, > > On Wed, 27 Nov 2024 at 11:40, Heinrich Schuchardt wrote: > > > > On 27.11.24 18:17, Tom Rini wrote: > > > From: Simon Glass > > > > > > The cache-flush function is incorrect which causes a crash in the > > > remotepr

Re: [PATCH 2/2] ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM

2024-11-27 Thread Marek Vasut
On 11/27/24 11:29 AM, Pascal Zimmermann wrote: Please CC me on the entire series. diff --git a/configs/stm32mp15_dhsom.config b/configs/stm32mp15_dhsom.config index efc149577e..22d8bd3241 100644 --- a/configs/stm32mp15_dhsom.config +++ b/configs/stm32mp15_dhsom.config @@ -10,6 +10,9 @@ CONFIG_B

Re: [v6 01/12] sandbox: efi_loader: Correct use of addresses as pointers

2024-11-27 Thread Heinrich Schuchardt
On 27.11.24 19:40, Heinrich Schuchardt wrote: On 27.11.24 18:17, Tom Rini wrote: From: Simon Glass The cache-flush function is incorrect which causes a crash in the remoteproc tests with arm64. Fix both problems by using map_sysmem() to convert an address to a pointer and map_to_sysmem() to c

Re: [v6 01/12] sandbox: efi_loader: Correct use of addresses as pointers

2024-11-27 Thread Heinrich Schuchardt
On 27.11.24 19:51, Tom Rini wrote: On Wed, Nov 27, 2024 at 07:40:05PM +0100, Heinrich Schuchardt wrote: On 27.11.24 18:17, Tom Rini wrote: From: Simon Glass The cache-flush function is incorrect which causes a crash in the remoteproc tests with arm64. Fix both problems by using map_sysmem()

Re: [PATCH] dm: core: ofnode: safely fallback in ofnode_lookup_fdt

2024-11-27 Thread Simon Glass
Hi Caleb, On Wed, 27 Nov 2024 at 10:12, Caleb Connolly wrote: > > Hi Simon, > > On 27/11/2024 17:52, Simon Glass wrote: > > Hi Caleb, > > > > On Tue, 12 Nov 2024 at 22:21, Caleb Connolly > > wrote: > >> > >> Under some conditions it's possible to hit the null condition here like > >> when runni

Re: Pull request for u-boot-nand-20241126 External

2024-11-27 Thread Tom Rini
On Wed, Nov 27, 2024 at 11:12:46AM +0100, Michael Nazzareno Trimarchi wrote: > Hi Tom > > The following changes since commit 3881c6b90350b0b04085ad46ef64989b43967eef: > > configs: Resync with savedefconfig (2024-11-26 08:17:35 -0600) > > are available in the Git repository at: > > g...@sou

Re: [GIT PULL] u-boot-riscv/master

2024-11-27 Thread Tom Rini
On Wed, Nov 27, 2024 at 09:08:43PM +0800, Leo Liang wrote: > Hi Tom, > > The following changes since commit 3881c6b90350b0b04085ad46ef64989b43967eef: > > configs: Resync with savedefconfig (2024-11-26 08:17:35 -0600) > > are available in the Git repository at: > > https://source.denx.de/u-

Re: [v6 01/12] sandbox: efi_loader: Correct use of addresses as pointers

2024-11-27 Thread Tom Rini
On Wed, Nov 27, 2024 at 07:40:05PM +0100, Heinrich Schuchardt wrote: > On 27.11.24 18:17, Tom Rini wrote: > > From: Simon Glass > > > > The cache-flush function is incorrect which causes a crash in the > > remoteproc tests with arm64. > > > > Fix both problems by using map_sysmem() to convert an

Re: [v6 01/12] sandbox: efi_loader: Correct use of addresses as pointers

2024-11-27 Thread Heinrich Schuchardt
On 27.11.24 18:17, Tom Rini wrote: From: Simon Glass The cache-flush function is incorrect which causes a crash in the remoteproc tests with arm64. Fix both problems by using map_sysmem() to convert an address to a pointer and map_to_sysmem() to convert a pointer to an address. Also update th

[v6 04/12] docker: Use "make -j$(nproc)" when invoking make

2024-11-27 Thread Tom Rini
We had a few places that were not using "make -j$(nproc)" but instead just plain "make" and so slowing down the overall build. Signed-off-by: Tom Rini --- Changes in v6: - New patch --- tools/docker/Dockerfile | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/dock

Re: [PATCH 1/2] config_distro_bootcmd: make possible to substitute 'part list' in distro_bootcmd

2024-11-27 Thread Pascal Zimmermann
Hello Simon, On Wed, 27 Nov 2024 at 14:08, Simon Glass wrote: > > Hi Pascal, > > On Wed, 27 Nov 2024 at 03:30, Pascal Zimmermann electronics.com> wrote: > > > > Make it possible to substitute the 'part list' command inside > > 'scan_dev_for_boot_part' with a custom board specific implementatio

[PATCH] power: axp: sunxi: configure charge current

2024-11-27 Thread Marcin Ślusarz
Allows decreasing initial charge current, e.g. when power supply is too weak to support both charging and other operations. Signed-off-by: Marcin Ślusarz Cc: Jagan Teki Cc: Andre Przywara --- board/sunxi/board.c| 4 drivers/power/Kconfig | 7 +++ drivers/power/axp221.c | 33 +++

[v6 12/12] CI: Add platform variable

2024-11-27 Thread Tom Rini
From: Simon Glass Add a list of possible platforms that can be used by gitlab runners. Signed-off-by: Simon Glass Reviewed-by: Tom Rini Reviewed-by: Ilias Apalodimas --- Changes in v6: - None --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.y

[v6 11/12] docker: Install toolchains on arm64 host

2024-11-27 Thread Tom Rini
From: Simon Glass Refactor the code to support downloading toolchains for arm64 as well as x86_64 There doesn't seem to be an xtensa toolchain for arm64 at the same location, so download that only on x86 Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v6: - Add x86_64 to the t

[v6 10/12] docker: Fix LegacyKeyValueFormat warning with PYTHONPATH

2024-11-27 Thread Tom Rini
From: Simon Glass Fix a warning due to the syntax used for PYTHONPATH: LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 304) Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt Reviewed-by: Tom Rini --- Changes in v6: - None

[v6 09/12] docker: Adjust installed packages slightly

2024-11-27 Thread Tom Rini
From: Simon Glass We no longer need to install libc6-i386 so we can drop that. Switch to installing linux-image-generic as that will be available on all hosts, to provide the /boot/vmlinu* file that's requires for various tools. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v

[v6 08/12] docker: Support building for multiple architectures

2024-11-27 Thread Tom Rini
From: Simon Glass Add instructions on how to build the file for multiple architectures. Add a message indicating what is happening. Update the documentation as well. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v6: - None --- doc/build/docker.rst| 23 ++

[v6 03/12] docker: Add kernel.org x86_64 toolchain

2024-11-27 Thread Tom Rini
Add in the x86_64 toolchain, but do not enforce using it for sandbox. Signed-off-by: Tom Rini --- Changes in v6: - New patch --- tools/docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index 967ac89fbde8..0f689

[v6 07/12] docker: Use cache mounts for apt

2024-11-27 Thread Tom Rini
Instead of deleting /var/lib/apt/lists after each relevant RUN line, use a cache mount as is the current best practices. Signed-off-by: Tom Rini --- Changes in v6: - New patch --- tools/docker/Dockerfile | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tools/docker

[v6 06/12] docker: Build grub for all architectures

2024-11-27 Thread Tom Rini
For consistency now, and future ease of testing with non-amd64 hosts, build grub for all architectures rather than relying on host binaries for i386/x86_64. Signed-off-by: Tom Rini --- Changes in v6: - New patch --- .azure-pipelines.yml| 6 ++ .gitlab-ci.yml | 6 ++ tools/

[v6 05/12] docker: Update to grub-2.12

2024-11-27 Thread Tom Rini
The current release of grub is 2.12 and it will be good to pick this up now so that we can update other parts of our stack. Signed-off-by: Tom Rini --- Changes in v6: - New patch --- tools/docker/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/docker/Doc

[v6 02/12] test: Adjust print_ut test to use unsigned char

2024-11-27 Thread Tom Rini
From: Simon Glass Since char is unsigned on arm64, this test currently fails. It seems better to use unsigned anyway, since 0xff is written into the string at the start. Update the terminator-assert to use a character instead of a byte. Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchard

[v6 01/12] sandbox: efi_loader: Correct use of addresses as pointers

2024-11-27 Thread Tom Rini
From: Simon Glass The cache-flush function is incorrect which causes a crash in the remoteproc tests with arm64. Fix both problems by using map_sysmem() to convert an address to a pointer and map_to_sysmem() to convert a pointer to an address. Also update the image-loader's cache-flushing logic

[v6 0/12] CI: Set up for an arm64 runner

2024-11-27 Thread Tom Rini
Hey all, This is picking up Simon's v5 of the above-named series and making a few more changes so that the follow-up series I have leads to arm64 being supported for almost all jobs. To quote Simon's cover letter: All gitlab runners are currently amd64 machines. This series attempts to create a d

Re: [PATCH] dm: core: ofnode: safely fallback in ofnode_lookup_fdt

2024-11-27 Thread Caleb Connolly
Hi Simon, On 27/11/2024 17:52, Simon Glass wrote: > Hi Caleb, > > On Tue, 12 Nov 2024 at 22:21, Caleb Connolly > wrote: >> >> Under some conditions it's possible to hit the null condition here like >> when running with OF_LIVE and using the ofnode API before >> initr_of_live() is called. There

Re: [PATCH] dm: core: ofnode: safely fallback in ofnode_lookup_fdt

2024-11-27 Thread Simon Glass
Hi Caleb, On Tue, 12 Nov 2024 at 22:21, Caleb Connolly wrote: > > Under some conditions it's possible to hit the null condition here like > when running with OF_LIVE and using the ofnode API before > initr_of_live() is called. There is very little null > checking for this in the FDT framework, so

[PATCH] stm32: remove dt-binding headers that are available upstream

2024-11-27 Thread Patrick Delaunay
Some dt-binding headers mask the upstream ones which can lead to build failures, or worse: super weird bugs, if they get out of sync. Remove these headers so our devicetree and binding headers will both be in sync with upstream. Signed-off-by: Patrick Delaunay --- drivers/clk/stm32/clk-stm32h7

RE: [PATCH V3 3/3] board: dhelectronics: Sync env variable dh_som_serial_number with SN

2024-11-27 Thread Christoph Niedermaier
From: Marek Vasut Sent: Sunday, November 24, 2024 11:11 PM > On 11/24/24 10:10 PM, Marek Vasut wrote: >> On 11/21/24 6:21 PM, Christoph Niedermaier wrote: >>> The env variable "SN" is used to store the serial number on DH >>> electronics >>> SoMs. New SoMs will use the variable "dh_som_serial_numb

Re: [BUG regression in HEAD] efi: memory: use the lmb API's for allocating and freeing memory

2024-11-27 Thread Heinrich Schuchardt
On 27.11.24 16:21, Sughosh Ganu wrote: On Wed, 27 Nov 2024 at 19:41, E Shattow wrote: Replying my own message postscript On Wed, Nov 27, 2024 at 4:47 AM E Shattow wrote: Following up on this with some positive results: On Thu, Nov 21, 2024 at 4:22 AM Heinrich Schuchardt wrote: On 21.11

Re: [BUG regression in HEAD] efi: memory: use the lmb API's for allocating and freeing memory

2024-11-27 Thread Sughosh Ganu
On Wed, 27 Nov 2024 at 19:41, E Shattow wrote: > > Replying my own message postscript > > On Wed, Nov 27, 2024 at 4:47 AM E Shattow wrote: > > > > Following up on this with some positive results: > > > > On Thu, Nov 21, 2024 at 4:22 AM Heinrich Schuchardt > > wrote: > > > > > > On 21.11.24 09:0

Re: [PATCH 05/13] efi_loader: Move some memory-function comments to header

2024-11-27 Thread Simon Glass
Hi Tom, On Wed, 27 Nov 2024 at 07:15, Tom Rini wrote: > > On Wed, Nov 27, 2024 at 06:07:58AM -0700, Simon Glass wrote: > > Hi, > > > > On Tue, 26 Nov 2024 at 16:32, Tom Rini wrote: > > > > > > On Tue, Nov 26, 2024 at 11:50:40PM +0100, Heinrich Schuchardt wrote: > > > > On 11/26/24 23:33, Tom Rin

Re: [PATCH v2 4/6] net: eth_bootdev_hunt() must not try to boot

2024-11-27 Thread Simon Glass
Hi Heinrich, On Wed, 27 Nov 2024 at 06:43, Heinrich Schuchardt wrote: > > On 27.11.24 14:08, Simon Glass wrote: > > Hi Heinrich, > > > > On Tue, 26 Nov 2024 at 09:16, Heinrich Schuchardt > > wrote: > >> > >> On 26.11.24 16:38, Simon Glass wrote: > >>> Hi Heinrich, > >>> > >>> On Tue, 26 Nov 2024

[PATCH 3/4] configs: j784s4_evm_a72_defconfig: Enable BIST

2024-11-27 Thread Neha Malcom Francis
Enable the BIST driver to be able to successfully probe and trigger BIST tests on MAIN_R5 cores. Signed-off-by: Neha Malcom Francis --- configs/j784s4_evm_a72_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/j784s4_evm_a72_defconfig b/configs/j784s4_evm_a72_defconfig index c

[PATCH 4/4] DONOTMERGE: arm: mach-k3: j784s4_init: Trigger LBIST and PBIST on MAIN R5 2_0

2024-11-27 Thread Neha Malcom Francis
Trigger all tests of PBIST and LBIST using appropriate calls to set the core under test (MAIN R5 2_0) to it's required state. Signed-off-by: Neha Malcom Francis --- arch/arm/mach-k3/j784s4/j784s4_init.c | 48 +++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/mac

[PATCH 1/4] arm: dts: k3-j784s4-main: Add PBIST_14 node

2024-11-27 Thread Neha Malcom Francis
Add DT node for PBIST_14 that is responsible for triggering the PBIST self-tests for the MAIN_R5_2_x cores. Signed-off-by: Neha Malcom Francis --- dts/upstream/src/arm64/ti/k3-j784s4-main.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/dts/upstream/src/arm64/ti/k3-j784s4-m

[PATCH 2/4] drivers: misc: k3_bist: Add K3 BIST driver

2024-11-27 Thread Neha Malcom Francis
Add a driver for the BIST module that support triggering of both PBIST (Memory BIST) and LBIST (Logic BIST) tests. Also expose the relevant operations and functions that would be required for an end user to trigger the tests. Signed-off-by: Neha Malcom Francis --- drivers/misc/Kconfig

[PATCH 0/4] Add support for K3 BIST

2024-11-27 Thread Neha Malcom Francis
This series implements a driver for the BIST (Built-In Self Test) module for K3 devices. The BIST driver must ideally support triggering of BIST tests, both PBIST (Memory BIST) and LBIST (Logic BIST) on a core. Both tests are destructive in nature. Please see links [1] and [2] for further informati

Re: [BUG regression in HEAD] efi: memory: use the lmb API's for allocating and freeing memory

2024-11-27 Thread E Shattow
Replying my own message postscript On Wed, Nov 27, 2024 at 4:47 AM E Shattow wrote: > > Following up on this with some positive results: > > On Thu, Nov 21, 2024 at 4:22 AM Heinrich Schuchardt > wrote: > > > > On 21.11.24 09:04, Sughosh Ganu wrote: > > > On Wed, 20 Nov 2024 at 13:49, E Shattow

Re: [PATCH 05/13] efi_loader: Move some memory-function comments to header

2024-11-27 Thread Tom Rini
On Wed, Nov 27, 2024 at 06:07:58AM -0700, Simon Glass wrote: > Hi, > > On Tue, 26 Nov 2024 at 16:32, Tom Rini wrote: > > > > On Tue, Nov 26, 2024 at 11:50:40PM +0100, Heinrich Schuchardt wrote: > > > On 11/26/24 23:33, Tom Rini wrote: > > > > On Tue, Nov 26, 2024 at 01:04:25PM -0700, Simon Glass

Re: [PATCH v2 4/6] net: eth_bootdev_hunt() should not run DHCP

2024-11-27 Thread Simon Glass
Hi Heinrich, On Wed, 27 Nov 2024 at 07:00, Heinrich Schuchardt wrote: > > On 27.11.24 14:07, Simon Glass wrote: > > Hi Heinrich, > > > > On Wed, 27 Nov 2024 at 00:07, Heinrich Schuchardt > > wrote: > >> > >> Currently when booting dhcp_run() may be executed multiple times: > >> once in eth_bootd

Re: [PATCH v2 4/6] net: eth_bootdev_hunt() should not run DHCP

2024-11-27 Thread Heinrich Schuchardt
On 27.11.24 14:07, Simon Glass wrote: Hi Heinrich, On Wed, 27 Nov 2024 at 00:07, Heinrich Schuchardt wrote: Currently when booting dhcp_run() may be executed multiple times: once in eth_bootdev_hunt() and once in the network booting bootmeth. We need to call eth_bootdev_hunt() when setting u

Re: [PATCH 00/13] efi: Tidy up confusion between pointers and addresses

2024-11-27 Thread Mark Kettenis
> From: Simon Glass > Date: Wed, 27 Nov 2024 06:08:10 -0700 Hi Simon, > Hi Tom, > > On Tue, 26 Nov 2024 at 09:08, Tom Rini wrote: > > > > On Tue, Nov 26, 2024 at 08:39:05AM -0700, Simon Glass wrote: > > > Hi Heinrich, > > > > > > On Tue, 26 Nov 2024 at 02:10, Heinrich Schuchardt > > > wrote:

Re: [PATCH 1/2] config_distro_bootcmd: make possible to substitute 'part list' in distro_bootcmd

2024-11-27 Thread Simon Glass
Hi Pascal, On Wed, 27 Nov 2024 at 03:30, Pascal Zimmermann wrote: > > Make it possible to substitute the 'part list' command inside > 'scan_dev_for_boot_part' with a custom board specific implementation. > > For this the new define 'SCAN_DEV_FOR_BOOT_PARTS' is introduced. > > Signed-off-by: Pasca

Re: [PATCH v2 4/6] net: eth_bootdev_hunt() must not try to boot

2024-11-27 Thread Heinrich Schuchardt
On 27.11.24 14:08, Simon Glass wrote: Hi Heinrich, On Tue, 26 Nov 2024 at 09:16, Heinrich Schuchardt wrote: On 26.11.24 16:38, Simon Glass wrote: Hi Heinrich, On Tue, 26 Nov 2024 at 00:42, Heinrich Schuchardt wrote: On 11/26/24 01:32, Simon Glass wrote: Hi Heinrich, On Sat, 23 Nov 2024

Re: [PATCH v2 4/6] net: eth_bootdev_hunt() should not run DHCP

2024-11-27 Thread Simon Glass
Hi Heinrich, On Wed, 27 Nov 2024 at 00:07, Heinrich Schuchardt wrote: > > Currently when booting dhcp_run() may be executed multiple times: > once in eth_bootdev_hunt() and once in the network booting bootmeth. > > We need to call eth_bootdev_hunt() when setting up the EFI sub-system to > supply

Re: [PATCH 06/13] efi_loader: Use the enum for memory type

2024-11-27 Thread Mark Kettenis
> From: Simon Glass > Date: Wed, 27 Nov 2024 06:07:05 -0700 > > Hi Heinrich, > > On Tue, 26 Nov 2024 at 08:37, Simon Glass wrote: > > > > Hi Heinrich, > > > > On Tue, 26 Nov 2024 at 02:44, Heinrich Schuchardt > > wrote: > > > > > > On 25.11.24 21:44, Simon Glass wrote: > > > > Rather than an

Re: [PATCH 06/13] efi_loader: Use the enum for memory type

2024-11-27 Thread Simon Glass
Hi Heinrich, On Tue, 26 Nov 2024 at 08:37, Simon Glass wrote: > > Hi Heinrich, > > On Tue, 26 Nov 2024 at 02:44, Heinrich Schuchardt wrote: > > > > On 25.11.24 21:44, Simon Glass wrote: > > > Rather than an integer, it is better to use the enum provided, when > > > referring to an EFI memory-typ

[GIT PULL] u-boot-riscv/master

2024-11-27 Thread Leo Liang
Hi Tom, The following changes since commit 3881c6b90350b0b04085ad46ef64989b43967eef: configs: Resync with savedefconfig (2024-11-26 08:17:35 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-riscv.git for you to fetch changes up to bdca70632dad

Re: [PATCH] common/board_f: init malloc earlier

2024-11-27 Thread Simon Glass
Hi Caleb, On Tue, 26 Nov 2024 at 09:15, Caleb Connolly wrote: > > Hi Simon, > > On 26/11/2024 16:38, Simon Glass wrote: > > Hi Caleb, > > > > On Tue, 26 Nov 2024 at 05:22, Caleb Connolly > > wrote: > >> > >> Hi Simon, > >> > >> On 26/11/2024 01:32, Simon Glass wrote: > >>> Hi Caleb, > >>> > >>>

Re: [PATCH 00/13] efi: Tidy up confusion between pointers and addresses

2024-11-27 Thread Simon Glass
Hi Tom, On Tue, 26 Nov 2024 at 09:08, Tom Rini wrote: > > On Tue, Nov 26, 2024 at 08:39:05AM -0700, Simon Glass wrote: > > Hi Heinrich, > > > > On Tue, 26 Nov 2024 at 02:10, Heinrich Schuchardt > > wrote: > > > > > > On 25.11.24 21:44, Simon Glass wrote: > > > > The EFI-loader implementation co

Re: [PATCH v2 4/6] net: eth_bootdev_hunt() must not try to boot

2024-11-27 Thread Simon Glass
Hi Heinrich, On Tue, 26 Nov 2024 at 09:16, Heinrich Schuchardt wrote: > > On 26.11.24 16:38, Simon Glass wrote: > > Hi Heinrich, > > > > On Tue, 26 Nov 2024 at 00:42, Heinrich Schuchardt > > wrote: > >> > >> On 11/26/24 01:32, Simon Glass wrote: > >>> Hi Heinrich, > >>> > >>> On Sat, 23 Nov 2024

Re: [PATCH 05/13] efi_loader: Move some memory-function comments to header

2024-11-27 Thread Simon Glass
Hi, On Tue, 26 Nov 2024 at 16:32, Tom Rini wrote: > > On Tue, Nov 26, 2024 at 11:50:40PM +0100, Heinrich Schuchardt wrote: > > On 11/26/24 23:33, Tom Rini wrote: > > > On Tue, Nov 26, 2024 at 01:04:25PM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Tue, 26 Nov 2024 at 08:55, Tom Ri

Re: [PATCH 2/2] drivers: serial: serial_omap: Fix TI OMAP UART U-Boot driver to support higher baudrates

2024-11-27 Thread Simon Glass
On Tue, 26 Nov 2024 at 03:51, Gokul Praveen wrote: > > Move to OMAP specific implementation of certain ops functions as the UART > prints on the serial console fail for baudrates greater than 460800. > > The MDR1 register is responsible for determining the speed mode at which > the UART should ope

Re: [PATCH 1/2] serial: ns16550: Increase scope of ops functions

2024-11-27 Thread Simon Glass
On Tue, 26 Nov 2024 at 03:51, Gokul Praveen wrote: > > Increase scope of ops functions and do some clean up for usage in device > -specific UART drivers. > > Remove the static functionality of ops functions and migrate certain macros > to header file for usage in device-specific drivers. > > Signe

Re: [PATCH 02/13] efi_loader: Convert efi_get_memory_map() to return pointers

2024-11-27 Thread Simon Glass
Hi again Heinrich, On Tue, 26 Nov 2024 at 08:38, Simon Glass wrote: > > Hi Heinrich, > > On Tue, 26 Nov 2024 at 02:27, Heinrich Schuchardt wrote: > > > > On 25.11.24 21:44, Simon Glass wrote: > > > This function should return pointers, not addresses. Add the conversion. > > > > > > Signed-off-by

Re: [BUG regression in HEAD] efi: memory: use the lmb API's for allocating and freeing memory

2024-11-27 Thread E Shattow
Following up on this with some positive results: On Thu, Nov 21, 2024 at 4:22 AM Heinrich Schuchardt wrote: > > On 21.11.24 09:04, Sughosh Ganu wrote: > > On Wed, 20 Nov 2024 at 13:49, E Shattow wrote: > >> > >> Hi all, (on-list) > >> > >> On Tue, Nov 19, 2024 at 9:14 PM Sughosh Ganu > >> wrot

Re: [PATCH] Makefile: avoid non-standard sed expressions

2024-11-27 Thread Quentin Schulz
Hi Mark, On 11/26/24 8:12 PM, Mark Kettenis wrote: The '?' that is used in the sed expression that determines MK_ARCH is part of the extended regular expression syntax, but the default behaviour of sed as specified by POSIX is to use only basic regular expression syntax. Use the equivalent '\{0

[PATCH 2/2] ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM

2024-11-27 Thread Pascal Zimmermann
For the STM32MP15 DHSOM, change the default environment so an AB schema on a device can be detected. For this the define "SCAN_DEV_FOR_BOOT_PARTS" is overwritten and appended. The detection works by looking for the partitions with specific lables. The name of those partitions are in the variables

[PATCH] board: solidrun: clearfog: enable ddr odt0 on write for both chip-select

2024-11-27 Thread Josua Mayer
, /* ODT configuration */ + 0x3,/* ODT configuration */ 0x3,/* clock enable mask */ }; --- base-commit: 3881c6b90350b0b04085ad46ef64989b43967eef change-id: 20241127-a388-sr-som-odt-89f8dd6b6410 Best regards, -- Josua Mayer

[PATCH 0/2] ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM

2024-11-27 Thread Pascal Zimmermann
For the STM32MP15 DHSOM, change the default environment so an AB schema on a device can be detected. The first patch makes possible to substitute the 'part list' command inside 'scan_dev_for_boot_part' with a custom board specific implementation. The second patch uses the change of the first patc

Re: [PATCH v2 0/7] arm64: zynqmp: Convert platforms to use binman

2024-11-27 Thread Michal Simek
On 11/1/24 10:17, Michal Simek wrote: Hi, I have put togethere couple of patches to convert platforms to use binman. The first patch has been sent separately. The third (SOM description) has been also sent out for ilustration as RFC. The last one is just cherry-pick the patch which has been r

[PATCH 1/2] config_distro_bootcmd: make possible to substitute 'part list' in distro_bootcmd

2024-11-27 Thread Pascal Zimmermann
Make it possible to substitute the 'part list' command inside 'scan_dev_for_boot_part' with a custom board specific implementation. For this the new define 'SCAN_DEV_FOR_BOOT_PARTS' is introduced. Signed-off-by: Pascal Zimmermann --- Cc: Tom Rini Cc: Simon Glass Cc: u-boot@lists.denx.de --- i

[PATCH 3/4] board: phytec: k3: Add EFI capsule update support

2024-11-27 Thread Wadim Egorov
Implement EFI capsule update functionality for PHYTEC K3-based SoMs. These SoMs feature various flash device options, including eMMC, OSPI NOR, and uSD card at the board level. This update provides the necessary logic to enable EFI capsule updates across all three flash devices, ensuring flexible

[PATCH 2/4] arm: dts: k3-am642-phycore-som-binman: Provide capsule nodes

2024-11-27 Thread Wadim Egorov
Fill in phycore-am64x capsule GUID properties of the base binman capsule nodes. Signed-off-by: Wadim Egorov --- arch/arm/dts/k3-am642-phycore-som-binman.dtsi | 38 +++ 1 file changed, 38 insertions(+) diff --git a/arch/arm/dts/k3-am642-phycore-som-binman.dtsi b/arch/arm/dts/k3-

[PATCH 4/4] configs: phycore_am6*_a53_defconfig: Enable capsule update

2024-11-27 Thread Wadim Egorov
Enable raw & on disk capsule updates and provide configs required for updating MTD devices. Also resync after savedefconfig. Signed-off-by: Wadim Egorov --- configs/phycore_am62x_a53_defconfig | 10 ++ configs/phycore_am64x_a53_defconfig | 8 2 files changed, 18 insertions(+)

[PATCH 0/4] Enable EFI capsule updates for PHYTEC K3 SoMs

2024-11-27 Thread Wadim Egorov
This implements capsule updates for all our K3 SoMs for eMMC, OSPI NOR and uSD cards. We can use capsule updates to update the bootloader on all our supported flash devices. Wadim Egorov (4): arm: dts: k3-am625-phycore-som-binman: Provide capsule nodes arm: dts: k3-am642-phycore-som-binman: P

[PATCH 1/4] arm: dts: k3-am625-phycore-som-binman: Provide capsule nodes

2024-11-27 Thread Wadim Egorov
Fill in phycore-am62x capsule GUID properties of the base binman capsule nodes. Signed-off-by: Wadim Egorov --- arch/arm/dts/k3-am625-phycore-som-binman.dtsi | 39 +++ 1 file changed, 39 insertions(+) diff --git a/arch/arm/dts/k3-am625-phycore-som-binman.dtsi b/arch/arm/dts/k3-

Re: [PATCH 13/39] boot: pxe: Use bootm_...() functions where possible

2024-11-27 Thread Quentin Schulz
Hi Simon, On 11/19/24 2:18 PM, Simon Glass wrote: Rather than building a command line for each operation, use the functions provided by the bootm API. Make sure that the bootm functions are available if pxe_utils is used. Since SYS_BOOTM_LEN is not present for the tools-only build, adjust the

Re: [PATCH v2 3/6] CI: xilinx_versal_virt: disable USB_DWC3

2024-11-27 Thread Michal Simek
On 11/27/24 08:06, Heinrich Schuchardt wrote: The CI uses the following command to launch xilinx_versal_virt_defconfig: qemu-system-aarch64 -M xlnx-versal-virt \ -display none -m 4G -serial mon:stdio \ -device loader,file=u-boot,cpu-num=0 'usb start' or invoking eth_bootdev_hu

Re: [PATCH] configs: enable CONFIG_PCI_REGION_MULTI_ENTRY=y in sifive_unmatched_defconfig

2024-11-27 Thread Leo Liang
On Tue, Nov 19, 2024 at 09:59:59PM +0100, Yuri Zaporozhets wrote: > Currently, the PCI subsystem selects the small "region 2" (which starts at > 0x700) > as bus_addr/phys_addr. As a consequence, the BAR0 on PCIe video card cannot > be initialized, > because it simply doesn't fit into 0x10

Re: [PATCH] Revert "efi_memory: do not add U-Boot memory to the memory map"

2024-11-27 Thread Sughosh Ganu
On Tue, 26 Nov 2024 at 21:09, Simon Glass wrote: > > Hi Sughosh, > > On Thu, 21 Nov 2024 at 00:53, Sughosh Ganu wrote: > > > > On Tue, 12 Nov 2024 at 18:48, Simon Glass wrote: > > > > > > A bisect of Ubuntu 2022.04 boot-failure on qemu-x86_64 resulted in this > > > patch. I am not sure how to in

Re: [PATCH 11/39] boot: Pass just the FDT argument to label_process_fdt()

2024-11-27 Thread Quentin Schulz
Hi Simon, On 11/19/24 2:18 PM, Simon Glass wrote: Since this function only adjusts one element of the bootm command, pass just that. This will make it easier to refactor things to remove the bootm command. Signed-off-by: Simon Glass Reviewed-by: Quentin Schulz Thanks! Quentin

Re: [PATCH 09/39] boot: Split pxe label_boot() into two parts

2024-11-27 Thread Quentin Schulz
Hi Simon, On 11/19/24 2:18 PM, Simon Glass wrote: This function is far too long. Split out the part which builds and runs the bootm/i/z commands into its own function. Add a function comment for the new label_run_boot() function. Also change a strncpy() to strlcpy() to keep checkpatch happy.

Re: [PATCH 12/39] bootm: Allow building bootm.c without CONFIG_SYS_BOOTM_LEN

2024-11-27 Thread Quentin Schulz
Hi Simon, On 11/19/24 2:18 PM, Simon Glass wrote: This code cannot be compiled by boards which don't have this option. Add an accessor in the header file to avoid another #ifdef Signed-off-by: Simon Glass Reviewed-by: Quentin Schulz Thanks! Quentin

Re: [PATCH 10/39] boot: Split pxe label_run_boot() into two parts

2024-11-27 Thread Quentin Schulz
On 11/27/24 12:39 PM, Quentin Schulz wrote: Hi Simon, On 11/19/24 2:18 PM, Simon Glass wrote: This function is quite long. Split out the FDT processing into its own function. Add a function comment for the new label_process_fdt() function. Signed-off-by: Simon Glass ---   boot/pxe_utils.c |

Re: [PATCH 10/39] boot: Split pxe label_run_boot() into two parts

2024-11-27 Thread Quentin Schulz
Hi Simon, On 11/19/24 2:18 PM, Simon Glass wrote: This function is quite long. Split out the FDT processing into its own function. Add a function comment for the new label_process_fdt() function. Signed-off-by: Simon Glass --- boot/pxe_utils.c | 100

Re: [PATCH] configs: versal2: Enable OPTEE support

2024-11-27 Thread Michal Simek
On 11/27/24 05:37, Venkatesh Yadav Abbarapu wrote: Add OPTEE support for versal2 platform. Signed-off-by: Venkatesh Yadav Abbarapu --- configs/amd_versal2_virt_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/amd_versal2_virt_defconfig b/configs/amd_versal2_virt_d

Pull request for u-boot-nand-20241126 External

2024-11-27 Thread Michael Nazzareno Trimarchi
Hi Tom The following changes since commit 3881c6b90350b0b04085ad46ef64989b43967eef: configs: Resync with savedefconfig (2024-11-26 08:17:35 -0600) are available in the Git repository at: g...@source.denx.de:u-boot/custodians/u-boot-nand-flash.git mike/u-boot-nand-20241126 for you to fetch

Re: [PATCH 1/1] cmd/rng: fix long help text

2024-11-27 Thread Marek Behún
Acked-by: Marek Behún On Tue, Nov 26, 2024 at 03:20:26PM +0100, Heinrich Schuchardt wrote: > The number of bytes may only be specified if a device number id provided. > > Correct the formatting. > > Signed-off-by: Heinrich Schuchardt > --- > cmd/rng.c | 4 ++-- > doc/usage/cmd/rng

Re: [PATCH 2/3] riscv: dts: sophgo: add device tree for LicheeRV Nano

2024-11-27 Thread Thomas Bonnefille
On Mon Nov 25, 2024 at 10:59 AM CET, Leo Liang wrote: > On Tue, Nov 19, 2024 at 09:35:32PM +0100, Thomas Bonnefille wrote: > > [EXTERNAL MAIL] > > > > On Mon Nov 18, 2024 at 11:01 AM CET, Leo Liang wrote: > > > On Tue, Nov 12, 2024 at 03:57:37PM +0100, Thomas Bonnefille wrote: > > > > [EXTERNAL MA

Re: [PATCH] test/py: zynqmp_rpu: Fix tcminit mode value

2024-11-27 Thread Michal Simek
On 11/15/24 13:02, Love Kumar wrote: Update the tcminit value to string and number both as per commit 342ccba5586a ("arm64: zynqmp: Fix tcminit mode value based on argv") and also adds negative cases based on invalid command sequences. Signed-off-by: Love Kumar --- test/py/tests/test_zynqm

  1   2   >