[PATCH v2 06/16] imx: imx8mn_evk: Cleanup headers

2025-01-06 Thread Peng Fan (OSS)
From: Peng Fan Drop unused headers and sort them Signed-off-by: Peng Fan --- board/freescale/imx8mn_evk/imx8mn_evk.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/board/freescale/imx8mn_evk/imx8mn_evk.c b/board/freescale/imx8mn_evk/imx8mn_evk.c index 6b6fb0a7dd217

[PATCH v2 05/16] imx: imx8mp_evk: Switch to BOOTSTD

2025-01-06 Thread Peng Fan (OSS)
From: Peng Fan Move env to imx8mp_evk.env. Switch to support BOOTSTD with a bsp bootcmd as fallback. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/Kconfig | 2 ++ board/freescale/imx8mp_evk/imx8mp_evk.env | 57 +++ configs/imx8mp_evk_defconfig

[PATCH v2 02/16] imx: imx93_qsb: switch to BOOTSTD

2025-01-06 Thread Peng Fan (OSS)
From: Peng Fan Switch to support BOOTSTD with a bsp bootcmd as fallback. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/Kconfig | 2 ++ board/freescale/imx93_qsb/imx93_qsb.env| 29 +++-- configs/imx93_9x9_qsb_defconfig| 3 +-- configs/i

[PATCH v2 01/16] imx: imx93_evk: switch to BOOTSTD

2025-01-06 Thread Peng Fan (OSS)
From: Peng Fan Switch to support BOOTSTD with a bsp bootcmd as fallback. Move the env to imx93_evk.env Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/Kconfig | 2 + board/freescale/imx93_evk/imx93_evk.env | 88 ++ configs/imx93_11x11_evk_defconfig

[PATCH v2 15/16] imx: imx8mq_evk: Switch to BOOTSTD

2025-01-06 Thread Peng Fan (OSS)
From: Peng Fan Move env to imx8mq_evk.env Switch to support BOOTSTD with a bsp bootcmd as fallback. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/Kconfig | 2 ++ board/freescale/imx8mq_evk/imx8mq_evk.env | 60 +++ configs/imx8mq_evk_defconfig

[PATCH v2 16/16] imx: imx93-11x11-evk: drop duplicated nodes

2025-01-06 Thread Peng Fan (OSS)
From: Peng Fan The upstream dts already has the lpi2c2 subnodes, so drop the duplicated ones in u-boot dtsi. Since the adp5585 compatible string changes, update the driver compatible string. i.MX93 11x11 EVK is the only user of the driver as of now, so it is safe to drop legacy compatible string

[PATCH v2 14/16] imx: imx8mq_evk: Enable dynamic settings to mmcdev and mmcroot

2025-01-06 Thread Peng Fan (OSS)
From: Peng Fan Enable dynamic settings to mmcdev and mmcroot for i.MX8MQ-EVK Since we are here, clean up the including headers Signed-off-by: Peng Fan --- board/freescale/imx8mq_evk/imx8mq_evk.c | 4 1 file changed, 4 insertions(+) diff --git a/board/freescale/imx8mq_evk/imx8mq_evk.c b/

[PATCH v2 13/16] imx: imx8mq_evk: Drop DECLARE_GLOBAL_DATA_PTR

2025-01-06 Thread Peng Fan (OSS)
From: Peng Fan There is no gd used in the board file, so drop DECLARE_GLOBAL_DATA_PTR. Signed-off-by: Peng Fan --- board/freescale/imx8mq_evk/imx8mq_evk.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/board/freescale/imx8mq_evk/imx8mq_evk.c b/board/freescale/imx8mq_evk/imx8mq_evk.c in

[PATCH v2 12/16] imx: imx8mq_evk: Cleanup headers

2025-01-06 Thread Peng Fan (OSS)
From: Peng Fan Drop unused headers and sort the order. Signed-off-by: Peng Fan --- board/freescale/imx8mq_evk/imx8mq_evk.c | 24 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/board/freescale/imx8mq_evk/imx8mq_evk.c b/board/freescale/imx8mq_evk/imx8mq_

[PATCH v2 11/16] imx: imx8mm_evk: Switch to BOOTSTD

2025-01-06 Thread Peng Fan (OSS)
From: Peng Fan Move env to imx8mm_evk.env Switch to support BOOTSTD with a bsp bootcmd as fallback. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/Kconfig | 4 ++ board/freescale/imx8mm_evk/imx8mm_evk.env | 67 +++ configs/imx8mm_evk_defconfig

[PATCH v2 10/16] imx: imx8mm_evk: Enable dynamic settings to mmcdev and mmcroot

2025-01-06 Thread Peng Fan (OSS)
From: Peng Fan Enable dynamic settings to mmcdev and mmcroot for i.MX8MM-EVK Signed-off-by: Peng Fan --- board/freescale/imx8mm_evk/imx8mm_evk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/freescale/imx8mm_evk/imx8mm_evk.c b/board/freescale/imx8mm_evk/imx8mm_evk.c index 4c44

[PATCH v2 09/16] imx: imx8mn_evk: Switch to BOOTSTD

2025-01-06 Thread Peng Fan (OSS)
From: Peng Fan Move env to imx8mn_evk.env Switch to support BOOTSTD with a bsp bootcmd as fallback. Signed-off-by: Peng Fan --- board/freescale/imx8mn_evk/imx8mn_evk.env | 67 +++ configs/imx8mn_evk_defconfig | 2 +- include/configs/imx8mn_evk.h

[PATCH v2 08/16] imx: imx8mn_evk: Enable dynamic settings to mmcdev and mmcroot

2025-01-06 Thread Peng Fan (OSS)
From: Peng Fan Enable dynamic settings to mmcdev and mmcroot for i.MX8MN-EVK Signed-off-by: Peng Fan --- board/freescale/imx8mn_evk/imx8mn_evk.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board/freescale/imx8mn_evk/imx8mn_evk.c b/board/freescale/imx8mn_evk/imx8mn_evk.c index 1b

[PATCH v2 07/16] imx: imx8mn_evk: Drop DECLARE_GLOBAL_DATA_PTR

2025-01-06 Thread Peng Fan (OSS)
From: Peng Fan There is no users of global data in imx8mn_evk.c, drop it. Signed-off-by: Peng Fan --- board/freescale/imx8mn_evk/imx8mn_evk.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/board/freescale/imx8mn_evk/imx8mn_evk.c b/board/freescale/imx8mn_evk/imx8mn_evk.c index f20ffbc5

[PATCH v2 03/16] imx: imx91_evk: switch to BOOTSTD

2025-01-06 Thread Peng Fan (OSS)
From: Peng Fan Switch to support BOOTSTD with a bsp bootcmd as fallback. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/Kconfig | 2 ++ board/freescale/imx91_evk/imx91_evk.env | 29 ++-- configs/imx91_11x11_evk_defconfig| 3 +-- conf

[PATCH v2 04/16] imx: imx8mp_evk: Enable dynamic settings to mmcdev and mmcroot

2025-01-06 Thread Peng Fan (OSS)
From: Peng Fan Enable dynamic settings to mmcdev and mmcroot for i.MX8MP-EVK Signed-off-by: Peng Fan --- board/freescale/common/Makefile | 2 +- board/freescale/imx8mp_evk/imx8mp_evk.c | 5 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/board/freescale/common/Makef

[PATCH v2 00/16] imx9: switch to bootstd for i.MX93/1 EVK/QSB and i.MX8M EVK

2025-01-06 Thread Peng Fan (OSS)
Switch to bootstd for NXP i.MX9/8M boards with a bsp_bootcmd as fallback. Some cleanups are also included together with this patchset CI: https://dev.azure.com/pengfan/uboot-ci/_build/results?buildId=16&view=results Signed-off-by: Peng Fan --- Changes in v2: - Separate cleanup headers to separ

回复: 回复: [EXT] Re: [PATCH v3 03/17] pinctrl: nxp: add SCMI pin control protocol driver

2025-01-06 Thread Alice Guo (OSS)
> -邮件原件- > 发件人: Marek Vasut > 发送时间: 2025年1月7日 4:46 > 收件人: Alice Guo (OSS) ; Tom Rini > ; Stefano Babic ; Fabio Estevam > ; dl-uboot-imx ; Lukasz > Majewski ; Sean Anderson ; Simon > Glass ; Alper Nebi Yasak > 抄送: u-boot@lists.denx.de; thar...@gateworks.com; Peng Fan > ; Ranjani Vaidyanath

Re: 回复: [EXT] Re: [PATCH v3 01/17] mailbox: add i.MX95 Messaging Unit (MU) driver

2025-01-06 Thread Peng Fan
On Mon, Jan 06, 2025 at 09:39:57PM +0100, Marek Vasut wrote: >On 1/6/25 6:27 AM, Alice Guo (OSS) wrote: >> > 主题: [EXT] Re: [PATCH v3 01/17] mailbox: add i.MX95 Messaging Unit (MU) >> > driver >> > >> > Caution: This is an external email. Please take care when clicking links or >> > opening attachm

Re: [PATCH] binman: Fill in most of the imx8mimage and imx8mcst tests

2025-01-06 Thread Simon Glass
Hi Marek, On Mon, 6 Jan 2025 at 13:51, Marek Vasut wrote: > > On 1/6/25 3:38 PM, Simon Glass wrote: > > [...] > > > I wonder if the cst needs to be updated (binman tool -f cst)? At > > present it is using apt-get and has: > > > > $ dpkg -l imx-code-signing-tool > > Desired=Unknown/Install/Remove/

回复: 回复: [EXT] Re: [PATCH v3 02/17] firmware: scmi: smt: Interrupt communication enable

2025-01-06 Thread Alice Guo (OSS)
> 主题: Re: 回复: [EXT] Re: [PATCH v3 02/17] firmware: scmi: smt: Interrupt > communication enable > > On 1/6/25 7:17 AM, Alice Guo (OSS) wrote: > >> On 1/3/25 7:45 AM, Alice Guo wrote: > >>> From: Viorel Suman > >>> > >>> When interrupt driven communication is supported > >> > >> U-Boot does not use

Re: [PATCH v2 00/33] upl: Prerequite patches for updated spec

2025-01-06 Thread Tom Rini
On Mon, Jan 06, 2025 at 07:31:56AM -0700, Simon Glass wrote: > The current UPL spec[1] has been tidied up and improved over the last > year, since U-Boot's original UPL support was written. > > This series includes some prerequisite patches needed for the real UPL > patches. It is split from [2]

[PATCH v2 00/33] upl: Prerequite patches for updated spec

2025-01-06 Thread Simon Glass
The current UPL spec[1] has been tidied up and improved over the last year, since U-Boot's original UPL support was written. This series includes some prerequisite patches needed for the real UPL patches. It is split from [2] [1] g...@github.com:UniversalPayload/spec.git commit 3f1450d [2] https:

RE: [PATCH 00/12] imx9: switch to bootstd for i.MX93/1 EVK/QSB and i.MX8M EVK

2025-01-06 Thread Peng Fan
Hi Simon, > Subject: Re: [PATCH 00/12] imx9: switch to bootstd for i.MX93/1 > EVK/QSB and i.MX8M EVK > > Hi Peng, > > On Sun, 5 Jan 2025 at 18:14, Peng Fan wrote: > > > > > Subject: Re: [PATCH 00/12] imx9: switch to bootstd for i.MX93/1 > > > EVK/QSB and i.MX8M EVK > > > > > > Hi Peng, > > > >

[ANN] U-Boot v2025.01 released

2025-01-06 Thread Tom Rini
Hey all, It's late in the day, but here's v2025.01. Note that this isn't late due to any issues with the master branch but rather because I've been bisect'ing a stubborn issue in -next. Our January release is always tricky due to holidays, but the extra -rc may have helped. We won't really know I

Re: [PATCH 00/12] imx9: switch to bootstd for i.MX93/1 EVK/QSB and i.MX8M EVK

2025-01-06 Thread Tony Dinh
Hi Peng & Simon, On Mon, Jan 6, 2025 at 4:15 AM Simon Glass wrote: > > Hi Peng, > > On Sun, 5 Jan 2025 at 18:14, Peng Fan wrote: > > > > > Subject: Re: [PATCH 00/12] imx9: switch to bootstd for i.MX93/1 > > > EVK/QSB and i.MX8M EVK > > > > > > Hi Peng, > > > > > > On Sun, 5 Jan 2025 at 17:27, Pe

Re: Proposal for a New Command to U-Boot Fuse Programming

2025-01-06 Thread Tom Rini
On Mon, Jan 06, 2025 at 12:06:25PM +0530, Harsha Vardhan V M wrote: > I would like to propose a new command for U-Boot's fuse programming > functionality to address the challenges posed by the current implementation. > While the existing fuse prog command works well for programming individual > fu

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

2025-01-06 Thread Tom Rini
On Mon, Jan 06, 2025 at 02:46:53PM +0800, Kever Yang wrote: > Hi Heinrich and Simon, > >     I send these two change because I want to fix the build error > below(from[1]) which is for disable the DEBUG_UART[2]. > Do you have clear suggestion on how to do this in efi_stub, since I have no > idea

Re: [PATCH v2 03/33] bloblist: Make BLOBLIST_ALLOC the default

2025-01-06 Thread Tom Rini
On Mon, Jan 06, 2025 at 07:31:59AM -0700, Simon Glass wrote: > We want to encourage people to use an allocated bloblist since it is > more flexible than a fixed one. Make this the default, being sure not to > change existing users. > > The unit tests require BLOBLIST_FIXED so add a dependency in

Re: [PATCH v2 21/33] emulation: fdt: Relax condition for OF_HAS_PRIOR_STAGE

2025-01-06 Thread Tom Rini
On Mon, Jan 06, 2025 at 07:32:17AM -0700, Simon Glass wrote: > QEMU always gets its devicetree from the OF_BOARD mechanism so we should > not depend on !BLOBLIST here. > > The logic of PRIOR_STAGE is quite a mess, unfortuantely. We should rely > only standard passage to receive things from the pri

[PATCH] pinctrl: rockchip: rk3328: Fix pinmux for GPIO2-B and GPIO3-B pins

2025-01-06 Thread Jonas Karlman
The pinmux bits for GPIO2-B0 to GPIO2-B6 actually have 2 bits width, correct the bank flag for GPIO2-B. The pinmux bits for GPIO2-B7 is recalculated so it remain unchanged. Add missing GPIO3-B1 to GPIO3-B7 pinmux data to rk3328_mux_recalced_data as mux register offset for these pins does not follow

Re: 回复: [EXT] Re: [PATCH v3 08/17] scmi_protocols: update struct scmi_base_discover_list_protocols_out

2025-01-06 Thread Marek Vasut
On 1/6/25 11:41 AM, Alice Guo (OSS) wrote: @@ -141,11 +141,14 @@ struct scmi_base_discover_impl_version_out { * @status: SCMI command status * @num_protocols: Number of SCMI protocols in @protocol * @protocols: Array of packed SCMI protocol ID's + * + * The numbe

Re: [PATCH] binman: Fill in most of the imx8mimage and imx8mcst tests

2025-01-06 Thread Marek Vasut
On 1/6/25 3:38 PM, Simon Glass wrote: [...] I wonder if the cst needs to be updated (binman tool -f cst)? At present it is using apt-get and has: $ dpkg -l imx-code-signing-tool Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-

Re: 回复: [EXT] Re: [PATCH v3 03/17] pinctrl: nxp: add SCMI pin control protocol driver

2025-01-06 Thread Marek Vasut
On 1/6/25 10:56 AM, Alice Guo (OSS) wrote: This patch provides a driver for the SCMI pin control protocol which is based on ARM's System Control and Management Interface (SCMI) 3.2. Currently, only the PINCTRL_CONFIG_SET command is implemented. What is the SCMI provider for this platform ? Hi

Re: 回复: [EXT] Re: [PATCH v3 02/17] firmware: scmi: smt: Interrupt communication enable

2025-01-06 Thread Marek Vasut
On 1/6/25 7:17 AM, Alice Guo (OSS) wrote: On 1/3/25 7:45 AM, Alice Guo wrote: From: Viorel Suman When interrupt driven communication is supported U-Boot does not use interrupts. , the transport allows the caller to choose between interrupt and polling driven communications. To make the cho

Re: 回复: [EXT] Re: [PATCH v3 01/17] mailbox: add i.MX95 Messaging Unit (MU) driver

2025-01-06 Thread Marek Vasut
On 1/6/25 6:27 AM, Alice Guo (OSS) wrote: 主题: [EXT] Re: [PATCH v3 01/17] mailbox: add i.MX95 Messaging Unit (MU) driver Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button On 1/3

Re: LwIP and multiple network interfaces

2025-01-06 Thread E Shattow
On 1/6/25 07:43, Jerome Forissier wrote: On 1/4/25 04:05, E Shattow wrote: On 1/3/25 09:58, E Shattow wrote: On 1/3/25 02:03, Jerome Forissier wrote: On 1/3/25 02:52, E Shattow wrote: On 1/2/25 17:40, Tom Rini wrote: On Thu, Jan 02, 2025 at 05:34:57PM -0800, E Shattow wrote: Tom

[PATCH] rockchip: rk3588-nanopc-t6-lts: Add missing board -u-boot.dtsi

2025-01-06 Thread Jonas Karlman
The commit 7cec3e701940 ("rockchip: rk3588-nanopc-t6: Add support for NanoPC-T6 LTS") added support for the LTS variant of NanoPC T6. However, a board specific -u-boot.dtsi file was never added. Due to the missing -u-boot.dtsi file the LTS fdt included in the FIT is never tagged with bootph props.

Re: [PATCH 0/8] efi_loader: Complete the bootflow_efi() test

2025-01-06 Thread Heinrich Schuchardt
On 06.01.25 15:47, Simon Glass wrote: This test was hamstrung in code review so this series is an attempt to complete the intended functionality: - Check memory allocations look correct - Check that exit-boot-services removes active-DMA devices - Check that the bootflow is still present after te

Re: [PATCH v4 1/2] common: board: make static calls

2025-01-06 Thread Caleb Connolly
Hi Jerome, Thanks for this! On 06/01/2025 15:40, Jerome Forissier wrote: > Change board_init_f(), board_init_f_r() and board_init_r() to make > static calls instead of iterating over the init_sequence_f, > init_sequence_f_r and init_sequence_r arrays, respectively. This makes > the code a simpler

Re: LwIP and multiple network interfaces

2025-01-06 Thread Jerome Forissier
On 1/4/25 04:05, E Shattow wrote: > On 1/3/25 09:58, E Shattow wrote: >> >> >> On 1/3/25 02:03, Jerome Forissier wrote: >>> >>> >>> On 1/3/25 02:52, E Shattow wrote: On 1/2/25 17:40, Tom Rini wrote: > On Thu, Jan 02, 2025 at 05:34:57PM -0800, E Shattow wrote: > >> Tom

Re: [PATCH v3 7/8] usb: dwc2: Unify flush and reset logic with v4.20a support

2025-01-06 Thread Marek Vasut
On 1/6/25 10:14 AM, Junhui Liu wrote: Hi Marek, On 05/01/2025 20:19, Marek Vasut wrote: On 1/4/25 4:37 AM, Junhui Liu wrote: From: Kongyang Liu This patch merges flush and reset logic for both host and gadget code into a common set of functions, reducing duplication. It also adds support for

Re: [PATCH] arch: arm: mach-k3: j784s4_init: Set CTRL_MMR for AUDIO_REFCLK1 clk_sel

2025-01-06 Thread Andrew Davis
On 1/6/25 4:04 AM, Jayesh Choudhary wrote: The default value for the mux to select the parent clock, AUDIO_REFCLK1_CTRL_CLK_SEL is '1' (31) but the mux input for 31 is marked as 'Reserved' so the ti-sci-clk call for get-parent fails. Mark it to a valid value, '11100' (28) for MAIN_PLL4_HSDIV2

Re: [PATCH 1/2] tools: mkimage: Add Amlogic Boot Image type

2025-01-06 Thread Tom Rini
On Mon, Jan 06, 2025 at 10:27:39AM +0100, Neil Armstrong wrote: [snip] > > Reviewed-by: Neil Armstrong > > Via which tree this should be merged ? Your amlogic tree when ready, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 01/18] scripts: Add a script for building and booting QEMU

2025-01-06 Thread Tom Rini
On Fri, Nov 15, 2024 at 09:14:03AM -0600, Tom Rini wrote: > On Fri, Nov 15, 2024 at 07:21:47AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Tue, 12 Nov 2024 at 17:54, Tom Rini wrote: > > > > > > On Wed, Nov 13, 2024 at 01:49:30AM +0100, Heinrich Schuchardt wrote: > > > > Am 12. November 2024

[PATCH 8/8] efi_loader: Test that active-DMA devices are removed

2025-01-06 Thread Simon Glass
When exit-boot-services is called, active devices should be removed. Update testapp to call this method and check that the USB controller is removed as expected. Signed-off-by: Simon Glass --- lib/efi_loader/testapp.c | 9 + test/boot/bootflow.c | 11 +++ 2 files changed,

[PATCH 7/8] efi_loader: Check that the bootflow is not removed by app

2025-01-06 Thread Simon Glass
The bootflow should not be affected by the app running and returning. Add a check that it is still valid after the app completes execution. Signed-off-by: Simon Glass --- test/boot/bootflow.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/boot/bootflow.c b/test/boot/bootflow.c inde

[PATCH 6/8] efi_loader: Update testapp to get memory map correctly

2025-01-06 Thread Simon Glass
Allocate enough memory for the memory map so that it can be received successfully. Signed-off-by: Simon Glass --- lib/efi_loader/testapp.c | 28 1 file changed, 28 insertions(+) diff --git a/lib/efi_loader/testapp.c b/lib/efi_loader/testapp.c index 804ca7e4679..171

[PATCH 5/8] efi_loader: Check memory allocations in bootflow_efi test()

2025-01-06 Thread Simon Glass
Add checks that all memory allocations complete successfully and that only expected parameters are provided. Check that memory addresses are within range. Signed-off-by: Simon Glass --- test/boot/bootflow.c | 64 +++- 1 file changed, 63 insertions(+), 1 d

[PATCH 4/8] efi_loader: Correct bounce-buffer setup

2025-01-06 Thread Simon Glass
This should set the bounce buffer to a pointer, not an address. Fix it. Signed-off-by: Simon Glass --- lib/efi_loader/efi_memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c index 2e197e94edd..9374f77d3b7 100

[PATCH 3/8] efi_loader: Return the memory map in pointer format

2025-01-06 Thread Simon Glass
An EFI app expects pointers to be returned, cast to u64. The conversion to use addresses missed this, so fix the call. Signed-off-by: Simon Glass --- lib/efi_loader/efi_memory.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader

[PATCH 2/8] efi_loader: Fix display of addresses in log

2025-01-06 Thread Simon Glass
The allocate/free-pages functions return an address, so there is no need to convert it. Fix this. Signed-off-by: Simon Glass Fixes: c824a96d76d ("efi_loader: Use the log with memory-related...") --- lib/efi_loader/efi_log.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

[PATCH 1/8] sandbox: Make USB controller as having active DMA

2025-01-06 Thread Simon Glass
Set the DM_FLAG_ACTIVE_DMA flag on this device so that it is removed before booting. Signed-off-by: Simon Glass --- drivers/usb/host/usb-sandbox.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/usb-sandbox.c b/drivers/usb/host/usb-sandbox.c index f687fe2c430..6d75ce80dcd 1

[PATCH 0/8] efi_loader: Complete the bootflow_efi() test

2025-01-06 Thread Simon Glass
This test was hamstrung in code review so this series is an attempt to complete the intended functionality: - Check memory allocations look correct - Check that exit-boot-services removes active-DMA devices - Check that the bootflow is still present after testapp finishes The EFI functionality du

[PATCH v4 1/2] common: board: make static calls

2025-01-06 Thread Jerome Forissier
Change board_init_f(), board_init_f_r() and board_init_r() to make static calls instead of iterating over the init_sequence_f, init_sequence_f_r and init_sequence_r arrays, respectively. This makes the code a simpler (and even more so when initcall_run_list() is later removed) and it reduces the bi

[PATCH v4 2/2] initcall: remove initcall_run_list()

2025-01-06 Thread Jerome Forissier
Now that all initcalls have been converted to static calls, remove initcall_run_list(). Signed-off-by: Jerome Forissier --- include/initcall.h | 24 --- lib/Makefile | 1 - lib/initcall.c | 102 - 3 files changed, 127 deletions(-)

[PATCH v4 0/2] Static initcalls

2025-01-06 Thread Jerome Forissier
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 binary slighlty smaller: -2281 bytes/-0.21 % with LTO enabled and -510 bytes/-0.05

Integrated EFI tests better?

2025-01-06 Thread Simon Glass
Hi Heinrich, I notice that the EFI 'self tests' use their own runner. Would it be possible for them to use the main test-runner in test-main.c ? Then they would show up separately in CI, rather than being all lumped together into one. Regards, Simon

Re: [PATCH v1 0/2] Risc-V ISA Extension Probing

2025-01-06 Thread Simon Glass
Hi Mayuresh, On Mon, 6 Jan 2025 at 06:04, Mayuresh Chitale wrote: > > This series aims to enchance the ISA probing support by porting the > corresponding code from kernel and using it when probing for CMO > extensions. > > Mayuresh Chitale (2): > riscv: Enhance extension probing > riscv: Fall

Re: [PATCH] binman: Fill in most of the imx8mimage and imx8mcst tests

2025-01-06 Thread Simon Glass
Hi Marek, On Sun, 5 Jan 2025 at 13:37, Marek Vasut wrote: > > Rename the test .dts and tests and include the M suffix to indicate > those tests are for i.MX8M, not for i.MX8, which is a different SoC. > > Update 339_nxp_imx8m.dts, add testNxpImx8MImageMkimageMissing and > update nxp_imx8mimage.py

[PATCH v2 33/33] dm: core: Provide ofnode_find_subnode_unit()

2025-01-06 Thread Simon Glass
The ofnode_find_subnode() function currently processes things two different ways, so the treatment of unit addresses differs depending on whether OF_LIVE is enabled or not. Add a new version which uses the ofnode API and add a test to check that unit addresses can be matched correctly. Leave the o

[PATCH v2 32/33] dm: core: Provide ofnode_name_eq_unit() to accept a unit address

2025-01-06 Thread Simon Glass
When a unit-address is provided, use it to match against the node name. Since this increases code size, put it into a separate function. Signed-off-by: Simon Glass --- Changes in v2: - Split this into its own function drivers/core/ofnode.c | 23 +++ include/dm/ofnode.h |

[PATCH v2 31/33] dm: core: Clarify behaviour of ofnode_name_eq()

2025-01-06 Thread Simon Glass
This function is somewhat ambiguous, so expand the comments and add a test for the undefined behaviour. Signed-off-by: Simon Glass --- (no changes since v1) include/dm/ofnode.h | 7 +++ test/dm/core.c | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/dm/of

[PATCH v2 28/33] x86: Move tables to use SZ macros

2025-01-06 Thread Simon Glass
Update the tables to use linux/sizes rather than open-coped values. Signed-off-by: Simon Glass Suggested-by: Heinrich Schuchardt --- Changes in v2: - Add new patch to move x86 tables to use SZ macros arch/x86/lib/tables.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH v2 30/33] x86: emulation: Enable bloblist

2025-01-06 Thread Simon Glass
Add bloblist support so that tables can be generated and placed in a bloblist, then passed to a payload using UPL Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to enable bloblist on x86 configs/qemu-x86_64_defconfig | 2 ++ configs/qemu-x86_defconfig| 2 ++ 2 files changed,

[PATCH v2 29/33] x86: Align the SMBIOS table to a 4K boundary

2025-01-06 Thread Simon Glass
This isn't strictly needed, but with UPL we use the reserved-memory nodes to indicate where the SMBIOS table is. Tianocore requires 4KB alignment on these regions, so it is easier to adjust the alignment to match. Signed-off-by: Simon Glass --- Changes in v2: - Use 4K instead of 4KB arch/x86/l

[PATCH v2 27/33] x86: Enable UPL handoff for SPL

2025-01-06 Thread Simon Glass
Add the GD_FLG_UPL so that a UPL-handoff is created. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/spl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c index aad748532d0..7a033505101 100644 --- a/arch/x86/lib/spl.c +++ b/arch/

[PATCH v2 26/33] x86: Support jumping to a UPL image

2025-01-06 Thread Simon Glass
Add a function to allow x86 boards to jump to a UPL images. Currently only 32-bit entry is supported. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/bootm.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/x86/lib/bootm.c b/arch/x86/lib/bootm.c index bbd

[PATCH v2 25/33] x86: Show an error if video fails

2025-01-06 Thread Simon Glass
If video is enabled we expect it to work. Avoid silent failure by adding a panic if things go wrong. Expand the SPL malloc-area for qemu-x86_64 to avoid a panic. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/spl.c| 9 +++-- configs/qemu-x86_64_defconfig | 2

[PATCH v2 24/33] pci: video: Set up the pixel-format field

2025-01-06 Thread Simon Glass
Add this information to the handoff structure so that it is available to U-Boot proper. Update bochs and the video handoff. Signed-off-by: Simon Glass --- (no changes since v1) drivers/pci/pci_rom.c| 3 +++ drivers/video/bochs.c| 1 + drivers/video/video-uclass.c | 1 + include

[PATCH v2 23/33] x86: Create more space for SPL with qemu-x86_64

2025-01-06 Thread Simon Glass
The space here is quite tight and there is plenty of room in the ROM. Move SPL earlier to allow for expansion. Signed-off-by: Simon Glass --- (no changes since v1) configs/qemu-x86_64_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/qemu-x86_64_defconfig b/

[PATCH v2 22/33] emulation: Use bloblist to hold tables

2025-01-06 Thread Simon Glass
QEMU can have its own internal ACPI and SMBIOS tables. At present U-Boot copies out the SMBIOS tables but points directly to the ACPI ones. The ACPI tables are not aligned on a 4KB boundary, which means that UPL cannot use them directly, since it uses a reserved-memory node for the tables and that

[PATCH v2 21/33] emulation: fdt: Relax condition for OF_HAS_PRIOR_STAGE

2025-01-06 Thread Simon Glass
QEMU always gets its devicetree from the OF_BOARD mechanism so we should not depend on !BLOBLIST here. The logic of PRIOR_STAGE is quite a mess, unfortuantely. We should rely only standard passage to receive things from the prior stage. QEMU should implement standard passage to provide its devicet

[PATCH v2 18/33] boot: Use fit_image_get_data() to get data

2025-01-06 Thread Simon Glass
Use this function instead of fit_image_get_emb_data() data, since it works will FITs that use external data. Signed-off-by: Simon Glass --- Changes in v2: - Fix unbalanced {} arch/arm/cpu/armv8/sec_firmware.c | 12 ++-- arch/arm/mach-k3/r5/sysfw-loader.c | 9 + arch/x86/lib/b

[PATCH v2 20/33] test: Fix inpected typo in upl test

2025-01-06 Thread Simon Glass
Fix a typo in the test comment. Signed-off-by: Simon Glass --- (no changes since v1) test/py/tests/test_upl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/py/tests/test_upl.py b/test/py/tests/test_upl.py index 3164bda6b71..90125c4dc1b 100644 --- a/test/py/tests/tes

[PATCH v2 19/33] boot: Update fit_image_get_data() to use abuf

2025-01-06 Thread Simon Glass
This function uses separate arguments for data and size. Use the new abuf instead, so that they are paired and in one place. In some cases it also saves an argument, thus potentially reducing code size. Move the prototype to the header file while here. Signed-off-by: Simon Glass --- (no changes

[PATCH v2 16/33] boot: Rename fit_image_get_data_and_size()

2025-01-06 Thread Simon Glass
This function is really just getting the data. The size comes along for the ride. In fact this function is only reliable way to obtain the data for an image in a FIT, since the FIT may use external data. Rename it to fit_image_get_data() Signed-off-by: Simon Glass --- (no changes since v1) bo

[PATCH v2 17/33] boot: Update fit_image_get_emb_data to use abuf

2025-01-06 Thread Simon Glass
This function uses separate arguments for data and size. Use the new abuf instead, so that they are paired and in one place. In some cases it also saves an argument, thus potentially reducing code size. Move the prototype to the header file while here. Signed-off-by: Simon Glass --- (no changes

[PATCH v2 15/33] boot: Rename fit_image_get_data()

2025-01-06 Thread Simon Glass
This function can only be used with FITs that use embedded data. Rename it so this is clear. Signed-off-by: Simon Glass Acked-by: Heinrich Schuchardt --- (no changes since v1) arch/arm/cpu/armv8/sec_firmware.c | 4 ++-- arch/arm/mach-k3/r5/sysfw-loader.c | 2 +- arch/x86/lib/bootm.c

[PATCH v2 14/33] ofnode: Update of_add_subnode() to indicate name is alloced

2025-01-06 Thread Simon Glass
This function allocates memory for the node name, so mention this in the function comment. Signed-off-by: Simon Glass --- (no changes since v1) include/dm/ofnode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index 0787758926f..0

[PATCH v2 13/33] ofnode: Indicate when out of space in a few places

2025-01-06 Thread Simon Glass
Update ofnode_add_subnode() and ofnode_add_prop() to return a suitable error when space is exhausted in the FDT. This makes it easier to see what is going wrong. Signed-off-by: Simon Glass --- (no changes since v1) drivers/core/ofnode.c | 13 + 1 file changed, 9 insertions(+), 4 de

[PATCH v2 12/33] ofnode: Use 4K for a default tree-size

2025-01-06 Thread Simon Glass
At some point it would be nice to have the ofnode API automatically expand the tree as required, to accommodate new nodes. For now, expand the default size so that UPL can be supported. Signed-off-by: Simon Glass --- (no changes since v1) drivers/core/ofnode.c | 2 +- 1 file changed, 1 inserti

[PATCH v2 11/33] x86: Show the timestamp counter with bdinfo

2025-01-06 Thread Simon Glass
Add a line to the 'bdinfo' command which shows the current value of the TSC. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/bdinfo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/lib/bdinfo.c b/arch/x86/lib/bdinfo.c index bd2cf0b9fcb..4b016d4a0fc 100644 ---

[PATCH v2 10/33] x86: Enable meminfo command

2025-01-06 Thread Simon Glass
Enable this command for x86 boards as it is quite useful for seeing where memory is. Signed-off-by: Simon Glass --- Changes in v2: - Fix 'Emable' typo - Enable the command in cmd/Kconfig instead cmd/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/Kconfig b/c

[PATCH v2 09/33] mkimage: Update map_to_sysmem() to match its prototype

2025-01-06 Thread Simon Glass
Update the version of this function in mkimage so that it uses a const pointer, as is done in the mapmem.h header file. Signed-off-by: Simon Glass --- (no changes since v1) tools/mkimage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mkimage.h b/tools/mkimage.h ind

[PATCH v2 08/33] serial: Support info() method in ns16550 xPL with UPL

2025-01-06 Thread Simon Glass
UPL needs to pass the serial details onto the next stage, so adjust the condition to support this. Signed-off-by: Simon Glass --- (no changes since v1) drivers/serial/ns16550.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550

[PATCH v2 07/33] cpu: Provide a way to get the physical-address size

2025-01-06 Thread Simon Glass
This concept exists on x86. Declare it as a generic function so that the value can be accessed by UPL. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/include/asm/cpu.h | 9 - arch/x86/lib/bdinfo.c | 1 + include/cpu.h | 14 ++ 3 files chan

[PATCH v2 06/33] abuf: Provide a constant buffer

2025-01-06 Thread Simon Glass
Add a new initialiser which can accept a constant pointer. Signed-off-by: Simon Glass --- (no changes since v1) include/abuf.h | 13 + lib/abuf.c | 6 ++ test/lib/abuf.c | 22 ++ 3 files changed, 41 insertions(+) diff --git a/include/abuf.h b/include

[PATCH v2 05/33] abuf: Allow use in host tools

2025-01-06 Thread Simon Glass
Some header files included on the host are moving to use abuf, so adjust the header-inclusion to bring in size_t correctly. Signed-off-by: Simon Glass --- (no changes since v1) include/abuf.h | 4 1 file changed, 4 insertions(+) diff --git a/include/abuf.h b/include/abuf.h index 76e314b9

[PATCH v2 04/33] abuf: Provide a way to get the buffer address

2025-01-06 Thread Simon Glass
In many cases it is useful to get the address of a buffer, e.g. when booting from it. Add a function to handle this. Signed-off-by: Simon Glass --- (no changes since v1) include/abuf.h | 8 lib/abuf.c | 6 ++ test/lib/abuf.c | 4 +++- 3 files changed, 17 insertions(+), 1 del

[PATCH v2 03/33] bloblist: Make BLOBLIST_ALLOC the default

2025-01-06 Thread Simon Glass
We want to encourage people to use an allocated bloblist since it is more flexible than a fixed one. Make this the default, being sure not to change existing users. The unit tests require BLOBLIST_FIXED so add a dependency in the Makefile to avoid build errors. Signed-off-by: Simon Glass --- (n

[PATCH v2 02/33] bloblist: Drop BSD license

2025-01-06 Thread Simon Glass
Linaro has decided to write their own version of bloblist from scratch, so there is no point in having a non-GPL license on this file. Change it, to better fit with the U-Boot project. Signed-off-by: Simon Glass Link: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/22215 --- (no

[PATCH v2 01/33] bloblist: add api to get blob with size

2025-01-06 Thread Simon Glass
From: Raymond Mao bloblist_find function only returns the pointer of blob data, which is fine for those self-describing data like FDT. But as a common scenario, an interface is needed to retrieve both the pointer and the size of the blob data. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalo

Re: [PATCH 3/3] arm: mach-k3: am62p: Fixup a53 max cpu frequency by speed-grade

2025-01-06 Thread Aparna Patra
Hi Bryan, On 20/12/24 01:28, Bryan Brattlof wrote: Hi Aparna! On December 18, 2024 thus sayeth Aparna Patra: AM62P SoC has multiple speed grades. Add function to delete non-relevant CPU frequency nodes, based on the information retrieved from hardware registers. Fastest grade's maximum frequen

Re: [PATCH v3 7/8] usb: dwc2: Unify flush and reset logic with v4.20a support

2025-01-06 Thread Junhui Liu
Hi Marek, On 05/01/2025 20:19, Marek Vasut wrote: > On 1/4/25 4:37 AM, Junhui Liu wrote: >> From: Kongyang Liu >> >> This patch merges flush and reset logic for both host and gadget code >> into a common set of functions, reducing duplication. It also adds support >> for the updated reset logic

Proposal for a New Command to U-Boot Fuse Programming

2025-01-06 Thread Harsha Vardhan V M
I would like to propose a new command for U-Boot's fuse programming functionality to address the challenges posed by the current implementation. While the existing fuse prog command works well for programming individual fuse values, it becomes cumbersome especially when dealing with large-scale

[PATCH v1 2/2] riscv: Fallback to riscv,isa

2025-01-06 Thread Mayuresh Chitale
Update the cpu probing to fallback to "riscv,isa" property if "riscv,isa-extensions" is not available and modify the riscv CMO code to use the block size that was probed during cpu setup. Signed-off-by: Mayuresh Chitale --- arch/riscv/cpu/cpu.c | 71 +-

[PATCH v1 1/2] riscv: Enhance extension probing

2025-01-06 Thread Mayuresh Chitale
Enhance the existing extension probing mechanism by adding support for more extensions and probing using the "riscv,isa" property. This patch is ported from the latest upstream linux. Signed-off-by: Mayuresh Chitale --- arch/riscv/cpu/cpu.c| 557 arch

[PATCH v1 0/2] Risc-V ISA Extension Probing

2025-01-06 Thread Mayuresh Chitale
This series aims to enchance the ISA probing support by porting the corresponding code from kernel and using it when probing for CMO extensions. Mayuresh Chitale (2): riscv: Enhance extension probing riscv: Fallback to riscv,isa arch/riscv/cpu/cpu.c| 600 +

Re: Proposal for a New Command to U-Boot Fuse Programming

2025-01-06 Thread Simon Glass
Hi Harsha, On Sun, 5 Jan 2025 at 23:36, Harsha Vardhan V M wrote: > > I would like to propose a new command for U-Boot's fuse programming > functionality to address the challenges posed by the current > implementation. While the existing fuse prog command works well for > programming individual f

  1   2   >