[PATCH] spi: cadence_qspi: Disable the DAC mode in indirect read

2025-04-29 Thread Venkatesh Yadav Abbarapu
Hang has been observed on QEMU, as it starts with indac read and fills sram, but after dma is triggered, it tries dac read instead (based on priority) which gets blocked. Disable the DAC mode in indirect DMA read and enable back for writes as DAC mode is used. Signed-off-by: Venkatesh Yadav Abbara

Re: [PATCH 0/3] u-boot chain-loading LineageOS bootimg

2025-04-29 Thread george chan
Hi Mattijs, CC: Casey, Thx for your reply. 在 2025年4月29日週二 16:30,Mattijs Korpershoek 寫道: > Hi George, > > Thank you for contributing. > > On lun., avril 28, 2025 at 15:53, Casey Connolly < > casey.conno...@linaro.org> wrote: > > > Hi George, > > > > Thanks a lot for the series, it's super excit

[PATCH v2 1/1] bootm: improve error message when gzip decompression buffer is too small

2025-04-29 Thread Aristo Chen
Currently, when decompressing a gzip-compressed image during bootm, a generic error such as "inflate() returned -5" is shown when the buffer is too small. However, it is not immediately clear that this is caused by CONFIG_SYS_BOOTM_LEN being too small. This patch improves error handling by: - Dete

[REGRESSION] [PATCH v6 0/3] Static initcalls

2025-04-29 Thread Marcel Ziswiler
Hi Jerome On Fri, 2025-04-04 at 15:50 +0200, Jerome Forissier wrote: > This series replaces the dynamic initcalls (with function pointers) with > static calls, and gets rid of initcall_run_list(), init_sequence_f, > init_sequence_f_r and init_sequence_r. This makes the code simpler and the > binar

Re: [ANN] U-Boot v2025.07-rc1 released

2025-04-29 Thread Tom Rini
On Mon, Apr 28, 2025 at 03:40:32PM -0600, Tom Rini wrote: > Hey all, > > So it's release day and I have tagged and pushed things out. Looking at > my own TODO list, I think it's in reasonable shape. I do think there's a > few other pull requests that need to happen still and I am optimistic > wil

Re: [PATCH v1 2/3] sysreset: Implement PSCI based reset to EDL mode for QCOM SoCs

2025-04-29 Thread Sam Day
Hey Casey, Varadarajan, On Tuesday, April 29th, 2025 at 12:22 AM, Casey Connolly wrote: > > > > > On 4/10/25 14:02, Varadarajan Narayanan wrote: > > > Add SYSRESET_EDL to sysreset_t and handle the different SYSRESET_xxx > > requests in sysreset_qcom-psci.c. > > > To be honest, I'm not re

Re: [PATCH] Docker, CI: Add vexpress_fvp / vexpress_fvp_bloblist support

2025-04-29 Thread Tom Rini
On Tue, 22 Apr 2025 13:36:56 -0600, Tom Rini wrote: > This adds the vexpress_fvp and vexpress_fvp_bloblist platforms to the > list of platforms we test via emulator in CI. In order to do this we > need to first have our container runtime have TF-A builds for the > vexpress_fvp platform, both with

[PATCH] arm: dts: k3: require mandatory firmware in binman

2025-04-29 Thread Bryan Brattlof
t.dtsi index ede5d6e58f5ea..15d72105861ac 100644 --- a/arch/arm/dts/k3-j742s2-evm-u-boot.dtsi +++ b/arch/arm/dts/k3-j742s2-evm-u-boot.dtsi @@ -48,7 +48,6 @@ blob-ext { filename = "ti-dm/j742s2/ipc_echo_testb_mcu1_0_release_strip.xer5f"; - optional; }; }; diff --git a/arch/arm/dts/k3-j784s4-binman.dtsi b/arch/arm/dts/k3-j784s4-binman.dtsi index 0553825b38350..1bdc6d701f036 100644 --- a/arch/arm/dts/k3-j784s4-binman.dtsi +++ b/arch/arm/dts/k3-j784s4-binman.dtsi @@ -39,7 +39,6 @@ ti_fs_enc: ti-fs-enc.bin { type = "blob-ext"; - optional; }; combined_tifs_cfg: combined-tifs-cfg.bin { @@ -49,7 +48,6 @@ sysfw_inner_cert: sysfw-inner-cert { type = "blob-ext"; - optional; }; combined_dm_cfg: combined-dm-cfg.bin { @@ -88,7 +86,6 @@ ti_fs_enc_fs: ti-fs-enc.bin { type = "blob-ext"; - optional; }; combined_tifs_cfg_fs: combined-tifs-cfg.bin { @@ -98,7 +95,6 @@ sysfw_inner_cert_fs: sysfw-inner-cert { type = "blob-ext"; - optional; }; combined_dm_cfg_fs: combined-dm-cfg.bin { @@ -135,7 +131,6 @@ ti_fs_gp: ti-fs-gp.bin { type = "blob-ext"; - optional; }; combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin { diff --git a/arch/arm/dts/k3-j784s4-evm-u-boot.dtsi b/arch/arm/dts/k3-j784s4-evm-u-boot.dtsi index 8a60d7c61075b..cc0dc6ce5e3fa 100644 --- a/arch/arm/dts/k3-j784s4-evm-u-boot.dtsi +++ b/arch/arm/dts/k3-j784s4-evm-u-boot.dtsi @@ -57,7 +57,6 @@ blob-ext { filename = "ti-dm/j784s4/ipc_echo_testb_mcu1_0_release_strip.xer5f"; - optional; }; }; --- base-commit: b249e08ec9b71f9d0b4eb48e3e63f63e8366b7e6 change-id: 20250429-non-optional-7dbf2bbdb15f Best regards, -- Bryan Brattlof

Re: [PATCH] bootm: improve error message when gzip decompression buffer is too small

2025-04-29 Thread Tom Rini
On Tue, Apr 29, 2025 at 11:15:58PM +0800, Aristo Chen wrote: > Tom Rini 於 2025年4月29日 週二 下午10:15寫道: > > > > On Tue, Apr 29, 2025 at 06:08:50PM +0800, 陳偉銘 wrote: > > > Tom Rini 於 2025年4月29日 週二 上午1:24寫道: > > > > > > > > On Mon, Apr 28, 2025 at 02:07:57PM +0800, Aristo Chen wrote: > > > > > > > > > C

Re: [PATCH 1/2] Makefile: Strip leading spaces when preprocessing generated_defconfig

2025-04-29 Thread Tom Rini
On Tue, Apr 29, 2025 at 12:31:29PM +, Yao Zi wrote: > On Mon, Apr 28, 2025 at 08:49:43AM -0600, Tom Rini wrote: > > On Mon, Apr 28, 2025 at 03:57:27AM +, Yao Zi wrote: > > > On Sun, Apr 27, 2025 at 10:16:27AM -0600, Tom Rini wrote: > > > > On Sun, Apr 27, 2025 at 03:46:56PM +, Yao Zi wr

Re: [PATCH 1/2] mmc: rockchip_dw_mmc: Enable by default for all supported SoCs

2025-04-29 Thread Chen-Yu Tsai
On Wed, Apr 30, 2025 at 12:30 AM Quentin Schulz wrote: > > Hi Chen-Yu, > > On 4/29/25 5:44 PM, Chen-Yu Tsai wrote: > > From: Chen-Yu Tsai > > > > The rockchip_dw_mmc driver supports the MMC controller found in Rockchip > > SoCs. This controller is used for the SD card on all SoCs and eMMC on > >

Re: [PATCH 1/2] mmc: rockchip_dw_mmc: Enable by default for all supported SoCs

2025-04-29 Thread Chen-Yu Tsai
Please ignore this. I accidentally sent out the patches with incorrect patman tags. ChenYu On Wed, Apr 30, 2025 at 1:41 AM Chen-Yu Tsai wrote: > > From: Chen-Yu Tsai > > The rockchip_dw_mmc driver supports the MMC controller found in Rockchip > SoCs. This controller is used for the SD card on

Re: [PATCH 1/2] mmc: rockchip_dw_mmc: Enable by default for all supported SoCs

2025-04-29 Thread Quentin Schulz
Hi Chen-Yu, On 4/29/25 7:34 PM, Chen-Yu Tsai wrote: On Wed, Apr 30, 2025 at 12:30 AM Quentin Schulz wrote: Hi Chen-Yu, On 4/29/25 5:44 PM, Chen-Yu Tsai wrote: From: Chen-Yu Tsai The rockchip_dw_mmc driver supports the MMC controller found in Rockchip SoCs. This controller is used for the

Re: [PATCH v3 00/22] passage: Define a standard for firmware data flow

2025-04-29 Thread Tom Rini
On Mon, Apr 28, 2025 at 10:41:25AM -0400, Raymond Mao wrote: > Hi Simon, > > On Thu, 17 Apr 2025 at 14:16, Simon Glass wrote: > > > > > > This series adds a standard way of passing information between different > > firmware phases. This already exists in U-Boot at a very basic level, in > > the f

[PATCH 1/2] mmc: rockchip_dw_mmc: Enable by default for all supported SoCs

2025-04-29 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The rockchip_dw_mmc driver supports the MMC controller found in Rockchip SoCs. This controller is used for the SD card on all SoCs and eMMC on older SoCs. Almost all defconfigs for Rockchip platforms have this enabled. Enable it by default for all supported Rockchip SoCs. Disa

[PATCH 2/2] mmc: rockchip_sdhci: Enable by default for all supported SoCs

2025-04-29 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The rockchip_sdhci driver supports the alternative MMC controller found in newer Rockchip SoCs. This controller is used for eMMC. Almost all defconfigs for Rockchip platforms with this controller have it enabled. Enable it by default for all supported Rockchip SoCs. Disable it

[PATCH v2] firmware: ti_sci: Add Initialization of dev_info head node

2025-04-29 Thread Udit Kumar
On K3 devices two drivers ti_sci and ti_sci_dm are supporting firmware functions. At run time one of driver is used. Driver ti_sci already initializing head for dev_list in its probe function, but it was missed in ti_sci_dm driver. So add head list init support for ti_sci_dm driver. While at this

Re: [PATCH 1/2] mmc: rockchip_dw_mmc: Enable by default for all supported SoCs

2025-04-29 Thread Tom Rini
On Tue, Apr 29, 2025 at 06:30:42PM +0200, Quentin Schulz wrote: > Hi Chen-Yu, > > On 4/29/25 5:44 PM, Chen-Yu Tsai wrote: > > From: Chen-Yu Tsai > > > > The rockchip_dw_mmc driver supports the MMC controller found in Rockchip > > SoCs. This controller is used for the SD card on all SoCs and eMMC

[PATCH 1/2] mmc: rockchip_dw_mmc: Enable by default for all supported SoCs

2025-04-29 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The rockchip_dw_mmc driver supports the MMC controller found in Rockchip SoCs. This controller is used for the SD card on all SoCs and eMMC on older SoCs. Almost all defconfigs for Rockchip platforms have this enabled. Enable it by default for all supported Rockchip SoCs. Disa

[PATCH 2/2] mmc: rockchip_sdhci: Enable by default for all supported SoCs

2025-04-29 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The rockchip_sdhci driver supports the alternative MMC controller found in newer Rockchip SoCs. This controller is used for eMMC. Almost all defconfigs for Rockchip platforms with this controller have it enabled. Enable it by default for all supported Rockchip SoCs. Disable it

Re: [PATCH v3 00/22] passage: Define a standard for firmware data flow

2025-04-29 Thread Tom Rini
On Tue, Apr 29, 2025 at 08:33:16AM -0600, Simon Glass wrote: > Hi Raymond, > > On Mon, 28 Apr 2025 at 08:41, Raymond Mao wrote: > > > > Hi Simon, > > > > On Thu, 17 Apr 2025 at 14:16, Simon Glass wrote: > > > > > > > > > This series adds a standard way of passing information between different >

Re: [PATCH v3 00/22] passage: Define a standard for firmware data flow

2025-04-29 Thread Raymond Mao
Hi Simon, On Tue, 29 Apr 2025 at 10:33, Simon Glass wrote: > > Hi Raymond, > > On Mon, 28 Apr 2025 at 08:41, Raymond Mao wrote: > > > > Hi Simon, > > > > On Thu, 17 Apr 2025 at 14:16, Simon Glass wrote: > > > > > > > > > This series adds a standard way of passing information between different >

Re: [PATCH v3 00/22] passage: Define a standard for firmware data flow

2025-04-29 Thread Simon Glass
Hi Raymond, On Mon, 28 Apr 2025 at 08:41, Raymond Mao wrote: > > Hi Simon, > > On Thu, 17 Apr 2025 at 14:16, Simon Glass wrote: > > > > > > This series adds a standard way of passing information between different > > firmware phases. This already exists in U-Boot at a very basic level, in > > th

Re: [PATCH 2/2] mmc: rockchip_sdhci: Enable by default for all supported SoCs

2025-04-29 Thread Quentin Schulz
Hi Chen-Yu, On 4/29/25 5:44 PM, Chen-Yu Tsai wrote: From: Chen-Yu Tsai The rockchip_sdhci driver supports the alternative MMC controller found in newer Rockchip SoCs. This controller is used for eMMC. Almost all defconfigs for Rockchip platforms with this controller have it enabled. Enable it

Re: [PATCH 1/2] mmc: rockchip_dw_mmc: Enable by default for all supported SoCs

2025-04-29 Thread Quentin Schulz
Hi Chen-Yu, On 4/29/25 5:44 PM, Chen-Yu Tsai wrote: From: Chen-Yu Tsai The rockchip_dw_mmc driver supports the MMC controller found in Rockchip SoCs. This controller is used for the SD card on all SoCs and eMMC on older SoCs. Almost all defconfigs for Rockchip platforms have this enabled. Ena

Re: [PATCH] bootm: improve error message when gzip decompression buffer is too small

2025-04-29 Thread Aristo Chen
Tom Rini 於 2025年4月29日 週二 下午10:15寫道: > > On Tue, Apr 29, 2025 at 06:08:50PM +0800, 陳偉銘 wrote: > > Tom Rini 於 2025年4月29日 週二 上午1:24寫道: > > > > > > On Mon, Apr 28, 2025 at 02:07:57PM +0800, Aristo Chen wrote: > > > > > > > Currently, when decompressing a gzip-compressed image during bootm, a > > > >

Re: [PATCH v3 00/22] passage: Define a standard for firmware data flow

2025-04-29 Thread Ilias Apalodimas
Hi Simon On Thu, 17 Apr 2025 at 21:16, Simon Glass wrote: > > > This series adds a standard way of passing information between different > firmware phases. This already exists in U-Boot at a very basic level, in > the form of a bloblist containing an spl_handoff structure, but the intent > here i

RE: [PATCH V2] tiny-printf: Handle formatting of %p with an extra Kconfig

2025-04-29 Thread Christoph Niedermaier
From: Marek Vasut Sent: Tuesday, April 29, 2025 5:28 PM > On 4/29/25 4:47 PM, Christoph Niedermaier wrote: >> The formatting with %pa / %pap behaves like %x, which results in an >> incorrect value being output. To improve this, a new fine-tuning >> Kconfig SPL_USE_TINY_PRINTF_POINTER_SUPPORT for p

Re: [PATCH RFT v2 1/3] fastboot: blk: introduce fastboot block flashing support

2025-04-29 Thread neil . armstrong
Hi, But using raw partition descriptors[1] does not work with the above [1] https://docs.u-boot.org/en/latest/android/fastboot.html#raw-partition-descriptors Right, not all features will work with generic block backend, but it's a start! + +config FASTBOOT_FLASH_BLOCK_DEVICE_ID +

Re: [PATCH V2] tiny-printf: Handle formatting of %p with an extra Kconfig

2025-04-29 Thread Marek Vasut
On 4/29/25 4:47 PM, Christoph Niedermaier wrote: The formatting with %pa / %pap behaves like %x, which results in an incorrect value being output. To improve this, a new fine-tuning Kconfig SPL_USE_TINY_PRINTF_POINTER_SUPPORT for pointer formatting has been added. If it is enabled, the output of

Re: [PATCH 00/30] patman: Move to asyncio and other updates

2025-04-29 Thread Tom Rini
On Tue, Apr 29, 2025 at 08:35:24AM -0600, Simon Glass wrote: > Hi Tom, > > On Tue, 29 Apr 2025 at 07:48, Tom Rini wrote: > > > > On Tue, Apr 29, 2025 at 07:21:57AM -0600, Simon Glass wrote: > > > > > This series moves patman to use asyncio instead of ThreadPoolExecutor > > > since it makes it eas

RE: [PATCH] tiny-printf: Handle formatting of %p with an extra Kconfig

2025-04-29 Thread Christoph Niedermaier
From: Christoph Niedermaier Sent: Thursday, April 10, 2025 2:17 PM > From: Michael Walle > Sent: Thursday, April 10, 2025 12:44 PM > > On Wed Apr 9, 2025 at 5:22 PM CEST, Tom Rini wrote: > > > On Wed, Apr 09, 2025 at 02:33:08PM +0200, Michael Walle wrote: > > > > Hi, > > > > > > > > > >> The forma

Re: [PATCH 00/30] patman: Move to asyncio and other updates

2025-04-29 Thread Simon Glass
Hi Tom, On Tue, 29 Apr 2025 at 07:48, Tom Rini wrote: > > On Tue, Apr 29, 2025 at 07:21:57AM -0600, Simon Glass wrote: > > > This series moves patman to use asyncio instead of ThreadPoolExecutor > > since it makes it easier to handle requests sent from different parts > > of the code. > > > > It

Re: [PATCH 2/2] tools: Update the license specifiers

2025-04-29 Thread Tom Rini
On Tue, Apr 29, 2025 at 04:04:32PM +0200, Quentin Schulz wrote: > Hi Tom, > > On 4/29/25 3:52 PM, Tom Rini wrote: > > On Tue, Apr 29, 2025 at 03:28:35PM +0200, Quentin Schulz wrote: > > > Hi Simon, > > > > > > On 4/29/25 3:15 PM, Simon Glass wrote: > > > > Recent versions of Python complain about

Re: [PATCH] x86: efi_loader: Ensure the SMBIOS tables are sent via EFI

2025-04-29 Thread Simon Glass
Hi Niklas, On Tue, 29 Apr 2025 at 05:30, Niklas Sombert wrote: > > Hi Simon, > > this solves my problem, thanks! > > Since SMBIOS is broken again in v2025.07-rc1 (and disabling bloblist > doesn't work anymore), I applied this patch and it worked. > I probably should have tried this sooner. Thank

Re: [PATCH 1/2] bootstd: Add implementation for bootmeth rauc

2025-04-29 Thread Simon Glass
Hi Tom, On Fri, 25 Apr 2025 at 10:19, Tom Rini wrote: > > On Fri, Apr 25, 2025 at 09:03:17AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Fri, 25 Apr 2025 at 08:37, Tom Rini wrote: > > > > > > On Fri, Apr 25, 2025 at 08:35:52AM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Thu

Re: [PATCH 3/3] board: phytec: phycore_am62ax: Update Environment

2025-04-29 Thread Tom Rini
On Tue, Apr 29, 2025 at 02:14:54PM +0200, Daniel Schultz wrote: > > On 4/28/25 18:10, Tom Rini wrote: > > On Mon, Apr 28, 2025 at 07:49:04AM -0700, Daniel Schultz wrote: > > > > > Add fit_addr_r to the environment to allow us to boot from a FIT image. > > > > > > Increase the maximum Image size

Re: [PATCH] bootm: improve error message when gzip decompression buffer is too small

2025-04-29 Thread Tom Rini
On Tue, Apr 29, 2025 at 06:08:50PM +0800, 陳偉銘 wrote: > Tom Rini 於 2025年4月29日 週二 上午1:24寫道: > > > > On Mon, Apr 28, 2025 at 02:07:57PM +0800, Aristo Chen wrote: > > > > > Currently, when decompressing a gzip-compressed image during bootm, a > > > generic error such as "inflate() returned -5" is show

Re: [PATCH 2/2] tools: Update the license specifiers

2025-04-29 Thread Quentin Schulz
Hi Tom, On 4/29/25 3:52 PM, Tom Rini wrote: On Tue, Apr 29, 2025 at 03:28:35PM +0200, Quentin Schulz wrote: Hi Simon, On 4/29/25 3:15 PM, Simon Glass wrote: Recent versions of Python complain about the license being in the I believe this isn't related to Python but rather setuptools. setup

Re: [PATCH 2/2] tools: Update the license specifiers

2025-04-29 Thread Tom Rini
On Tue, Apr 29, 2025 at 03:28:35PM +0200, Quentin Schulz wrote: > Hi Simon, > > On 4/29/25 3:15 PM, Simon Glass wrote: > > Recent versions of Python complain about the license being in the > > I believe this isn't related to Python but rather setuptools. > > setuptools 77.0.3 and later support P

[PATCH v1 2/2] doc: ti: k3: add language for code-block directive

2025-04-29 Thread Anshul Dalal
The code-block directive supports the optional language property which enables syntax highlighting for the block[1]. This patch adds the relevant language property for code-blocks in k3 docs. [1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-code-block Si

[PATCH v1 1/2] doc: ti: update bash code-block directives to prompt

2025-04-29 Thread Anshul Dalal
The code-block directive requires addition of the prompt symbol for each line, using the prompt directive instead allows for auto insertion of the symbol per line[1]. For the readers, the character added by the prompt directive is un-selectable i.e the entire line can be more easily selected for c

Re: Missing UTHREAD doc annotations

2025-04-29 Thread Tom Rini
On Tue, Apr 29, 2025 at 12:16:03PM +0200, Jerome Forissier wrote: > Hi Tom, > > On 4/28/25 23:40, Tom Rini wrote: > > Hey, > > > > As part of manually building the docs before doing -rc1, I saw the > > following: > > ./include/uthread.h:56: warning: cannot understand function prototype: > > 'enum

Re: [PATCH 00/30] patman: Move to asyncio and other updates

2025-04-29 Thread Tom Rini
On Tue, Apr 29, 2025 at 07:21:57AM -0600, Simon Glass wrote: > This series moves patman to use asyncio instead of ThreadPoolExecutor > since it makes it easier to handle requests sent from different parts > of the code. > > It also includes some updates to bring patman in line with the other > ma

Re: [PATCH 1/2] tools/make_pip.sh: Use debian packages instead of pip

2025-04-29 Thread Quentin Schulz
Hi Simon, On 4/29/25 3:15 PM, Simon Glass wrote: Recent distros complain about using 'pip install'. Adjust the script to use 'apt get' instead where possible/required (e.g. with Ubuntu 24.04). I believe this should already be handled by 9d3f1ebaf875 ("tools/make_pip: Use venv when invoking p

[PATCH v2] rockchip: io-domain: Enable by default for all supported SoCs

2025-04-29 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The IO domain driver controls the I/O voltage for various pins, MMC included. Enable it by default for all supported Rockchip SoCs. Signed-off-by: Chen-Yu Tsai Reviewed-by: Quentin Schulz Reviewed-by: Paul Kocialkowski Reviewed-by: Jonas Karlman Reviewed-by: Anand Moon -

Re: [PATCH 2/2] tools: Update the license specifiers

2025-04-29 Thread Quentin Schulz
Hi Simon, On 4/29/25 3:15 PM, Simon Glass wrote: Recent versions of Python complain about the license being in the I believe this isn't related to Python but rather setuptools. setuptools 77.0.3 and later support PEP-639 which recommends to ditch the License :: classifier for a license prope

[PATCH v3 2/2] efi_loader: fix typo initd_sz to initrd_sz

2025-04-29 Thread Adriano Cordova
Signed-off-by: Adriano Cordova Reviewed-by: Ilias Apalodimas Reviewed-by: Heinrich Schuchardt --- No changes since v1 lib/efi_loader/efi_bootbin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/efi_loader/efi_bootbin.c b/lib/efi_loader/efi_bootbin.c index 6a189c31

[PATCH v3 1/2] efi_loader: bootbin: do not load an initrd if none is provided

2025-04-29 Thread Adriano Cordova
Do not try to create an initrd device path nor try to register an initrd with the EFI_LOAD_FILE2_PROTOCOL if none is provided. Handle initrd installation in efi_binary_run_dp with efi_install_initrd, imitating what is done for the fdt. Fixes: 36835a9105c ("efi_loader: binary_run: register an init

[PATCH v3 0/2] Fix initrd loading in efi_bootbin

2025-04-29 Thread Adriano Cordova
This series consists on a couple of fixes for initrd loading when booting an EFI binary. First patch fixes 36835a9105c ("efi_loader: binary_run: register an initrd"), second one fixes a small typo on efi_binary_run_dp. Patches are sent together as the typo propagates to the first patch. Adriano Co

Re: Missing UTHREAD doc annotations

2025-04-29 Thread Simon Glass
Hi Jerome, On Tue, 29 Apr 2025 at 04:16, Jerome Forissier wrote: > > Hi Tom, > > On 4/28/25 23:40, Tom Rini wrote: > > Hey, > > > > As part of manually building the docs before doing -rc1, I saw the > > following: > > ./include/uthread.h:56: warning: cannot understand function prototype: > > 'enu

[PATCH 30/30] patman: Drop the old status code

2025-04-29 Thread Simon Glass
Now that we have the new asyncio implementation, drop the unused ThreadPoolExecutor code. Signed-off-by: Simon Glass --- tools/patman/status.py | 125 - 1 file changed, 125 deletions(-) diff --git a/tools/patman/status.py b/tools/patman/status.py index d

[PATCH 29/30] patman: Use a pager when outputting status

2025-04-29 Thread Simon Glass
The pager makes it easier to review large number of comments. Add it around the output. Patman normally sends multiple concurrent requests to the patchwork server, as this is faster. Provide an option to disable this. Signed-off-by: Simon Glass --- tools/patman/status.py | 35 +

[PATCH 28/30] patman: Provide an option to run in single-threaded mode

2025-04-29 Thread Simon Glass
Patman normally sends multiple concurrent requests to the patchwork server, as this is faster. Provide an option to disable this. Signed-off-by: Simon Glass --- tools/patman/cmdline.py | 2 ++ tools/patman/control.py | 4 ++-- tools/patman/patchwork.py | 5 +++-- 3 files changed, 7 insertio

[PATCH 27/30] patman: Switch over to asyncio

2025-04-29 Thread Simon Glass
Now that all the pieces are in place, switch over from using an executor to using asyncio. While we are here, import defaultdict to avoid needing to specify its module. Signed-off-by: Simon Glass --- tools/patman/func_test.py | 4 +- tools/patman/patchwork.py | 8 +-- tools/patman/status.p

[PATCH 26/30] patman: Use defaultdict directly

2025-04-29 Thread Simon Glass
Import defaultdict to avoid needing to specify its module in multiple places. Fix an extra blank line while here. Signed-off-by: Simon Glass --- tools/patman/status.py | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/patman/status.py b/tools/patman/status.py inde

[PATCH 25/30] patman: Add more information to Patch

2025-04-29 Thread Simon Glass
The cover letter has some information on each patch, so allow this to be stored in the Patch object. Signed-off-by: Simon Glass --- tools/patman/patchwork.py | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/patman/patchwork.py b/tools/patman/patchwork.py index 3

[PATCH 24/30] patman: Show patches in yellow

2025-04-29 Thread Simon Glass
When comments are shown below patches it can be hard to see the patch subject. Use yellow instead of blue, since it stands out better. Pass the colour object into show_responses() rather than creating a new one, since that is tidier. Signed-off-by: Simon Glass --- tools/patman/func_test.py |

[PATCH 23/30] patman: Simplify test_find_new_responses()

2025-04-29 Thread Simon Glass
This test uses the find_new_responses() function which combines accessing patchwork and processing the results. Since the test is aimed at testing processing, adjust it to call process_reviews() instead. Signed-off-by: Simon Glass --- tools/patman/func_test.py | 28

[PATCH 22/30] patman: Adjust how the fake request() function is provided

2025-04-29 Thread Simon Glass
Instead of passing the URL and function to each call, put the fake into the Patchwork object instead. Signed-off-by: Simon Glass --- tools/patman/control.py | 4 ++- tools/patman/func_test.py | 41 +-- tools/patman/patchwork.py | 26 ++ tools/patman/st

[PATCH 21/30] patman: Split out the processing of find_new_responses()

2025-04-29 Thread Simon Glass
This function does patchwork calls and then processes the results. Move the processing out so we can (later) test it separately. Signed-off-by: Simon Glass --- tools/patman/status.py | 74 +++--- 1 file changed, 48 insertions(+), 26 deletions(-) diff --git a

[PATCH 20/30] patman: Split up check_and_show_status()

2025-04-29 Thread Simon Glass
This function has three phases: - collecting things from patchwork - doing some processing - showing the results to the user / creating a branch Refactor into two functions so we can eventually have the patchwork part fully separated out. Signed-off-by: Simon Glass --- tools/patman/func_test.

[PATCH 19/30] patman: Rename check_patchwork_status()

2025-04-29 Thread Simon Glass
This function actually shows the status and does some other things. Rename it to better reflect its purpose. Signed-off-by: Simon Glass --- tools/patman/control.py | 4 ++-- tools/patman/func_test.py | 14 +++--- tools/patman/status.py| 6 +++--- 3 files changed, 12 insertions(

[PATCH 18/30] patman: Add reading of series and patch status

2025-04-29 Thread Simon Glass
Expand the patchwork module so that it can match the current requirements of the 'patman status' command, i.e. reading the state of a series and the patches associated with it. Since the format of each patchwork response is a little tricky to understand, add examples in comments at the top of each

[PATCH 17/30] patman: Move Patch and Review to patchwork module

2025-04-29 Thread Simon Glass
These relate to information obtained from the patchwork server, so move their definition into the new patchwork module. Signed-off-by: Simon Glass --- tools/patman/func_test.py | 21 +++ tools/patman/patchwork.py | 113 tools/patman/status.py| 119 +

[PATCH 14/30] patman: Move code for sending into its own module

2025-04-29 Thread Simon Glass
The control module includes much of the implementation of patman's 'send' feature. As a first step to separating this out, move the sending code into its own file. Signed-off-by: Simon Glass --- tools/patman/__main__.py | 2 +- tools/patman/control.py | 161 +---

[PATCH 16/30] patman: Create a module for handling patchwork

2025-04-29 Thread Simon Glass
At present the patchwork implementation is very simple, just consisting of a function which calls the REST API. We want to create a fake patchwork for use in tests. So start a new module to encapsulate communication with the patchwork server. Use asyncio since it is easier to handle lots of concu

[PATCH 15/30] CI: Add a dependency file for patman

2025-04-29 Thread Simon Glass
Now that patman has an unusual dependency, add a requirements.txt file and use it in CI Signed-off-by: Simon Glass --- .azure-pipelines.yml | 2 ++ .gitlab-ci.yml| 2 ++ tools/patman/requirements.txt | 1 + 3 files changed, 5 insertions(+) create mode 100644 tools/patm

[PATCH 13/30] patman: Support extra test features

2025-04-29 Thread Simon Glass
Provide support for the -X flag, which preserves the working directory used by tests. Also support -N which shows captured output for tests. Finally, allow selection of a particular test to run. Signed-off-by: Simon Glass --- tools/patman/__main__.py | 4 +++- tools/patman/cmdline.py | 6

[PATCH 11/30] patman: Rename test_basic() in test_checkpatch

2025-04-29 Thread Simon Glass
This currently has the same name as a test in func_test.py so it isn't possible to select one or the other with 'patman test test_basic': both are executed. Rename this one to avoid confusion. Signed-off-by: Simon Glass --- tools/patman/test_checkpatch.py | 2 +- 1 file changed, 1 insertion(+)

[PATCH 12/30] patman: Tidy up the start-up code

2025-04-29 Thread Simon Glass
Much of this was written before the other Python tools and they have evolved. Make a few updates: - Rather than calling sys.exit(), return the exit code from the control module and use it in __main__ - Set up tout as it is used in some places - We now have quite a few tests, so update the commen

[PATCH 10/30] patman: Correct a stray quote

2025-04-29 Thread Simon Glass
A quote character was added a few years ago, but was not intended. Drop it. Signed-off-by: Simon Glass --- tools/patman/func_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/patman/func_test.py b/tools/patman/func_test.py index a31c950051b..161b5ad4288 100644 --

[PATCH 09/30] tools: Plumb in capture control

2025-04-29 Thread Simon Glass
Add control of capturing output into u_boot_pylib and the tools which use it. Signed-off-by: Simon Glass --- tools/binman/ftest.py | 3 ++- tools/binman/main.py| 4 ++-- tools/buildman/main.py | 2 +- tools/dtoc/main.py | 5 +++-- tools/dtoc/test_

[PATCH 08/30] u_boot_pylib: Allow disabling colour output

2025-04-29 Thread Simon Glass
When running tests there is no situation in which we want ANSI output as it makes it much harder to see what is going on in logs, tests, etc. Provide a way to disable this. Signed-off-by: Simon Glass --- tools/u_boot_pylib/tout.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) dif

[PATCH 07/30] u_boot_pylib: Avoid concurrent execution of only one test

2025-04-29 Thread Simon Glass
There is no point in spinning up multiple processes if there is only one test to execute. Add a check for this. Signed-off-by: Simon Glass --- tools/u_boot_pylib/test_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/u_boot_pylib/test_util.py b/tools/u_boot_pylib

[PATCH 05/30] u_boot_pylib: Improve ANSI-colour output with backgrounds

2025-04-29 Thread Simon Glass
The current implementation does not handle background colours very well: - It outputs an incorrect code in some cases, leading to wrong colours - Some functions lack a control for the background Tidy this up so that background colours can be used in more places. Signed-off-by: Simon Glass ---

[PATCH 06/30] u_boot_pylib: Add a pager

2025-04-29 Thread Simon Glass
It is useful to have a pager when outputting a lot of text. Add support for this in the terminal library, making use of a context manager. Also add a function to indicate whether the output device is a terminal or not, while we are here, to avoid duplicating this code. Signed-off-by: Simon Glass

[PATCH 04/30] u_boot_pylib: Allow control of capturing

2025-04-29 Thread Simon Glass
Tests often capture output so they can check it. This means that if the test fails it is not easy to see what the output actually was. Add a -N flag which writes out the output after it has been captured. This is not a perfect solution but it is simple and seems to work well in practice. Signed-o

[PATCH 03/30] binman: Correct a typo in the toolpath comment

2025-04-29 Thread Simon Glass
Fix the 'ist' typo in the comment for TestFunctional Signed-off-by: Simon Glass --- tools/binman/ftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index 7ee43d87b25..3fb7416a567 100644 --- a/tools/binman/ftest.py +++ b/too

[PATCH 02/30] patman: Move capture_sys_output() into terminal and rename

2025-04-29 Thread Simon Glass
This function is sometimes useful outside tests. Also it can affect how terminal output is done, e.g. whether ANSI characters should be emitted or not. Move it out of the test_util package and into terminal. Signed-off-by: Simon Glass --- doc/develop/binman_tests.rst| 6 +- tools/binman/

[PATCH 01/30] patman: Move all non-test logic into control module

2025-04-29 Thread Simon Glass
It is easier for tests if the top-level control logic is all in one module. Create a new do_patman() function to handle this. Move the existing code into it. Signed-off-by: Simon Glass --- tools/patman/__main__.py | 49 ++-- tools/patman/control.py | 54

[PATCH 00/30] patman: Move to asyncio and other updates

2025-04-29 Thread Simon Glass
This series moves patman to use asyncio instead of ThreadPoolExecutor since it makes it easier to handle requests sent from different parts of the code. It also includes some updates to bring patman in line with the other major Python tools (buildman and binman). With this series, we have a bette

[PATCH 2/2] tools: Update the license specifiers

2025-04-29 Thread Simon Glass
Recent versions of Python complain about the license being in the classifiers part. Use a 'license' property instead. Signed-off-by: Simon Glass --- tools/binman/pyproject.toml | 2 +- tools/buildman/pyproject.toml | 2 +- tools/dtoc/pyproject.toml | 2 +- tools/patman/pyproje

[PATCH 1/2] tools/make_pip.sh: Use debian packages instead of pip

2025-04-29 Thread Simon Glass
Recent distros complain about using 'pip install'. Adjust the script to use 'apt get' instead where possible/required (e.g. with Ubuntu 24.04). Signed-off-by: Simon Glass --- scripts/make_pip.sh | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/make_pip.sh b/scri

Re: [PATCH RFT v2 1/3] fastboot: blk: introduce fastboot block flashing support

2025-04-29 Thread neil . armstrong
On 29/04/2025 14:32, Mattijs Korpershoek wrote: On mar., avril 29, 2025 at 11:45, Dmitrii Merkurev wrote: Dmitrii, are you okay to re-licence this code under GPL v2 (which is common licence for this project) Yes, I'm ok with that. Fantastic, thanks a lot for answering so quickly! Thank

Re: [PATCH RFT v2 1/3] fastboot: blk: introduce fastboot block flashing support

2025-04-29 Thread Mattijs Korpershoek
On mar., avril 29, 2025 at 11:45, Dmitrii Merkurev wrote: >> >> Dmitrii, are you okay to re-licence this code under GPL v2 (which is >> common licence for this project) >> > > Yes, I'm ok with that. Fantastic, thanks a lot for answering so quickly!

Re: [PATCH 1/2] Makefile: Strip leading spaces when preprocessing generated_defconfig

2025-04-29 Thread Yao Zi
On Mon, Apr 28, 2025 at 08:49:43AM -0600, Tom Rini wrote: > On Mon, Apr 28, 2025 at 03:57:27AM +, Yao Zi wrote: > > On Sun, Apr 27, 2025 at 10:16:27AM -0600, Tom Rini wrote: > > > On Sun, Apr 27, 2025 at 03:46:56PM +, Yao Zi wrote: > > > > On Sun, Apr 27, 2025 at 05:19:04PM +0200, Heinrich

Re: [PATCH] configs: phycore_am62x_a53_defconfig: Remove CONFIG_SYS_BOOTM_LEN

2025-04-29 Thread Mattijs Korpershoek
Hi Daniel, Thank you for the patch. On mar., avril 29, 2025 at 05:08, Daniel Schultz wrote: > This config was defined with the default value of 8 MiB. However, > the default value is different when CONFIG_ARM64 is enabled and > should be 64 MiB. > > Remove this config from the A53 defconfig and

Re: [PATCH] bootm: improve error message when gzip decompression buffer is too small

2025-04-29 Thread 陳偉銘
Tom Rini 於 2025年4月29日 週二 上午1:24寫道: > > On Mon, Apr 28, 2025 at 02:07:57PM +0800, Aristo Chen wrote: > > > Currently, when decompressing a gzip-compressed image during bootm, a > > generic error such as "inflate() returned -5" is shown when the buffer is > > too small. However, it is not immediatel

[PATCH v1 1/1] arm: socfpga: agilex5: Coverity issue cleanup in jtag_usercode check

2025-04-29 Thread tingting . meng
From: Tingting Meng A redundant comparison (jtag_usercode >= 0) was removed from the condition checking jtag_usercode. Since jtag_usercode is an unsigned integer, the check for non-negativity was always true. The code was simplified to resolve the Coverity warning. Signed-off-by: Tingting Meng

[PATCH v1 1/1] arm: socfpga: agilex5: Sub-device check enabled for runtime workaround

2025-04-29 Thread tingting . meng
From: Tingting Meng Sub-device information is retrieved from the JTAG ID in Boot Scratch Cold 4 Register. This interface is introduced to allow device-specific errata workarounds to be applied in the future, based on the detected sub-device type. Signed-off-by: Tingting Meng --- arch/arm/mach-

Re: [PATCH 3/3] board: phytec: phycore_am62ax: Update Environment

2025-04-29 Thread Daniel Schultz
On 4/28/25 18:10, Tom Rini wrote: On Mon, Apr 28, 2025 at 07:49:04AM -0700, Daniel Schultz wrote: Add fit_addr_r to the environment to allow us to boot from a FIT image. Increase the maximum Image size from 23 MB to 26 MB by moving the initramfs start address up. This gives us a bigger range

[PATCH] configs: phycore_am62x_a53_defconfig: Remove CONFIG_SYS_BOOTM_LEN

2025-04-29 Thread Daniel Schultz
This config was defined with the default value of 8 MiB. However, the default value is different when CONFIG_ARM64 is enabled and should be 64 MiB. Remove this config from the A53 defconfig and use the correct default config. Signed-off-by: Daniel Schultz --- configs/phycore_am62x_a53_defconfig

Re: Fwd: New Defects reported by Coverity Scan for Das U-Boot

2025-04-29 Thread Jerome Forissier
Hi Tom, On 4/28/25 23:59, Tom Rini wrote: > Hey all, > > Here's the latest set of Coverity defects. Please let me know if some of > these are false positives for example, thanks. > > -- Forwarded message - > From: > Date: Mon, Apr 28, 2025 at 3:52 PM > Subject: New Defects repor

[PATCH] cmd: spawn: reject 0 as an invalid job ID

2025-04-29 Thread Jerome Forissier
Job IDs are positive integers greater than 1. 0 is not a valid job ID, therefore fix the comparison in do_wait(). Fixes Coverity defects: *** CID 550296: Control flow issues (NO_EFFECT) /cmd/spawn.c: 172 in do_wait() 166 for (i = 0; i < CONFIG_CMD_SPAWN_NUM_JOBS; i++) 167

Re: [PATCH] common: board: fix build condition of noncached memory initcall

2025-04-29 Thread Jerome Forissier
On 4/29/25 04:04, Weijie Gao wrote: > CONFIG_SYS_NONCACHED_MEMORY is defined as hex, not bool. It should be > replaced with CONFIG_SYS_HAS_NONCACHED_MEMORY when switched from #ifdef to > CONFIG_IS_ENABLED(). > > Fixes: 6c171f7a184 (common: board: make initcalls static) > Signed-off-by: Weijie G

Re: [PATCH v1 2/3] sysreset: Implement PSCI based reset to EDL mode for QCOM SoCs

2025-04-29 Thread Varadarajan Narayanan
On Mon, Apr 28, 2025 at 04:22:47PM +0200, Casey Connolly wrote: > > > On 4/10/25 14:02, Varadarajan Narayanan wrote: > > Add SYSRESET_EDL to sysreset_t and handle the different SYSRESET_xxx > > requests in sysreset_qcom-psci.c. > > To be honest, I'm not really excited about this. Copying the entire

Re: [PATCH] firmware: ti_sci: Add Initialization of dev_info head node

2025-04-29 Thread Nishanth Menon
On 13:19-20250429, Udit Kumar wrote: > On K3 devices two drivers ti_sci and ti_sci_dm are supporting firmware > functions. At run time one of driver is used. > > Driver ti_sci already initializing head for dev_list in its probe > function, but it was missed in ti_sci_dm driver. &

Re: [PATCH] x86: efi_loader: Ensure the SMBIOS tables are sent via EFI

2025-04-29 Thread Niklas Sombert
Hi Simon, this solves my problem, thanks! Since SMBIOS is broken again in v2025.07-rc1 (and disabling bloblist doesn't work anymore), I applied this patch and it worked. I probably should have tried this sooner. Greetings, Niklas Simon Glass wrote: The EFI-loader code has not been fully con

Re: [PATCH] firmware: ti_sci: Add Initialization of dev_info head node

2025-04-29 Thread Francis, Neha
Hi Udit On 4/29/2025 1:19 PM, Udit Kumar wrote: > On K3 devices two drivers ti_sci and ti_sci_dm are supporting firmware > functions. At run time one of driver is used. > > Driver ti_sci already initializing head for dev_list in its probe > function, but it was missed in ti_sci_dm driver. > > So

  1   2   >