[PATCH 09/10] config: add falcon boot config fragment for am62x

2025-03-06 Thread Anshul Dalal
This fragment enables falcon boot for the am62x, 62a and 62p. To have enough stack and heap space for loading kernel image as FIT, the memory map was modified as shown below, the PRELOADED_BL33_BASE in ATF has to also be updated to 0x8020 since the kernel requires to be loaded at 2MiB aligned

[PATCH 06/10] mach-k3: add eMMC FS boot support for am62[ap]

2025-03-06 Thread Anshul Dalal
This makes spl_mmc_boot_mode consistent across am62x, 62a and 62p. If MMCSD_MODE_EMMCBOOT is returned, FS boot fails since it checks for FS on the hardware partitions, not the UDA. So to allow FS boot from EMMC, the function should return MMCSD_MODE_FS instead which allows us to read from FS on th

[PATCH 04/10] arm: dts: am62a: allow booting from eMMC

2025-03-06 Thread Anshul Dalal
The bootph-all property in u-boot enables driver initialization prior to relocation, this is necessary to use the device as boot media. sdhci0 is the phandle for eMMC on am62a, so this change allows us to use eMMC as a boot media. Signed-off-by: Anshul Dalal --- arch/arm/dts/k3-am62a7-sk-u-boot

[PATCH 03/10] mach-k3: fix reading size and addr from fdt on R5

2025-03-06 Thread Anshul Dalal
fdtdec_get_addr_size uses architecture dependent datatypes which causes the 32-bit R5 to fail when reading the 64-bit size and addr fields of reg nodes from the fdt. This changes it to a common api for both 64 and 32 bit platforms. Now fdt fixups can be applied to the fdt from R5. Signed-off-by:

Re: [PATCH v3 1/8] dt-bindings: clock: rename at91.h to at91-pmc-status.h

2025-03-06 Thread Sumit Garg
On Thu, Mar 06, 2025 at 10:39:28AM +, manikanda...@microchip.com wrote: > Hi Sumit, > > On 06/03/25 12:30 pm, Sumit Garg wrote: > > [Some people who received this message don't often get email from > > sumit.g...@kernel.org. Learn why this is important at > > https://aka.ms/LearnAboutSenderI

Re: [PATCH] efi_loader: Install the ACPI table from the bloblist

2025-03-06 Thread Patrick Rudolph
Hi Simon, On Thu, Mar 6, 2025 at 5:11 PM Simon Glass wrote: > > Hi Heinrich, > > On Thu, 6 Mar 2025 at 08:16, Heinrich Schuchardt wrote: > > > > On 06.03.25 15:31, Simon Glass wrote: > > > When BLOBLIST_TABLES is used, the ACPI tables are not currently added to > > > the list of EFI tables. While

[PATCH v7 8/8] MAINTAINERS: Update Starfive visionfive2 maintain files.

2025-03-06 Thread Minda Chen
Add USB related files to Starfive visionfive2 MAINTAINERS. Signed-off-by: Minda Chen Reviewed-by: Marek Vasut --- board/starfive/visionfive2/MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/starfive/visionfive2/MAINTAINERS b/board/starfive/visionfive2/MAINTAINERS index d

[PATCH] xilinx: Allow alternative boot strategies in zynq-common.h

2025-03-06 Thread Mike Looijmans
Allow config headers that include zynq-common.h to provide their own (distro) boot strategies. This is implemented by skipping the section when BOOT_ENV has already been defined. Signed-off-by: Mike Looijmans --- include/configs/zynq-common.h | 6 ++ 1 file changed, 6 insertions(+) diff --

Re: [PATCH] cmd: version: Get information about GCC and LD back

2025-03-06 Thread Michal Simek
On 3/6/25 15:02, Tom Rini wrote: On Thu, Mar 06, 2025 at 11:12:30AM +0100, Michal Simek wrote: U-Boot version command is no longer showing information about GCC and LD. The reason is that version.h has been removed that's why CC_VERSION_STRING and LD_VERSION_STRING are not pass. Values are ge

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

2025-03-06 Thread Simon Glass
Hi Marek, On Thu, 6 Mar 2025 at 17:19, Marek Vasut wrote: > > On 3/7/25 12:30 AM, Simon Glass wrote: > > Hi, > > >>> One of the main goals of binman is to reduce the work needed to create > >>> a working image. If people have to go spelunking around the Internet, > >>> build it themselves, etc. t

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

2025-03-06 Thread Marek Vasut
On 3/7/25 3:18 AM, Simon Glass wrote: Hi, One of the main goals of binman is to reduce the work needed to create a working image. If people have to go spelunking around the Internet, build it themselves, etc. that is not good. What you are asking me for is not the tool itself, but key material

[PATCH] net: miiphybb: Update documentation

2025-03-06 Thread Marek Vasut
Update the miiphybb documentation to match current implementation. The static struct bb_miiphy_bus bb_miiphy_buses[] array is removed. The example is updated to match current Renesas RAVB driver, which is one of the miiphybb users. Signed-off-by: Marek Vasut --- Cc: Jim Liu Cc: Joe Hershberger

Re: [EXTERNAL] Re: [RFC PATCH 1/2 v1] arch: arm: Kconfig: Add config to use subnode's bootph property for binding drivers

2025-03-06 Thread Moteen Shah
On 26/02/25 02:57, Simon Glass wrote: Hi Moteen, On Thu, 13 Feb 2025 at 22: 05, Moteen Shah wrote: > > > On 13/02/25 19: 31, Simon Glass wrote: > > Hi Moteen, On Wed, 12 Feb 2025 at 02: 18, Moteen Shah > > ti. com> wrote: > ZjQcmQRYFpfptBannerStart This message was sent from outside of Texas

[PATCH v4 34/47] x86: qemu: Use the new e820 API

2025-03-06 Thread Simon Glass
Move over to use this API before making the code even more complicated. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to use the new e820 API arch/x86/cpu/qemu/e820.c | 48 ++-- 1 file changed, 12 insertions(+), 36 dele

Re: [PATCH 09/10] doc/develop/py_testing.rst: Update section on filesystem images

2025-03-06 Thread Tom Rini
On Fri, Mar 07, 2025 at 01:08:33AM +0100, Heinrich Schuchardt wrote: > Am 7. März 2025 00:17:11 MEZ schrieb Tom Rini : > >Now that we have no users of "virt-make-fs" nor users of "sudo" for > >creating disk images update the documentation. We remove packages that > >are no longer required (and rela

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

2025-03-06 Thread Marek Vasut
On 3/7/25 12:30 AM, Simon Glass wrote: Hi, One of the main goals of binman is to reduce the work needed to create a working image. If people have to go spelunking around the Internet, build it themselves, etc. that is not good. What you are asking me for is not the tool itself, but key materia

Re: [PATCH 01/11] net: miiphybb: Split off struct bb_miiphy_bus_ops

2025-03-06 Thread Marek Vasut
On 3/4/25 11:32 AM, Paul Barker wrote: On 03/03/2025 23:16, Marek Vasut wrote: On 3/3/25 8:29 PM, Paul Barker wrote: On 02/03/2025 01:24, Marek Vasut wrote: Move miiphybb operations into separate struct bb_miiphy_bus_ops structure, add pointer to struct bb_miiphy_bus_ops into the base struct b

Re: [PATCH 09/10] doc/develop/py_testing.rst: Update section on filesystem images

2025-03-06 Thread Heinrich Schuchardt
Am 7. März 2025 00:17:11 MEZ schrieb Tom Rini : >Now that we have no users of "virt-make-fs" nor users of "sudo" for >creating disk images update the documentation. We remove packages that >are no longer required (and related text) as well as be firm in our >wording around not using "sudo". > >Sign

[PATCH v4 36/47] x86: Support a 64-bit ramdisk address

2025-03-06 Thread Simon Glass
Add some missing pieces to bootparams so that a 64-bit ramdisk address can be used. Tidy up the logging while we are here. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to support a 64-bit ramdisk address arch/x86/include/asm/bootparam.h | 15

Re: [PATCH v2 28/28] test: Add a test for booting Ubuntu 24.04

2025-03-06 Thread Simon Glass
Hi Tom, On Thu, 6 Mar 2025 at 09:43, Tom Rini wrote: > > On Thu, Mar 06, 2025 at 09:11:28AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 6 Mar 2025 at 07:32, Tom Rini wrote: > > > > > > On Thu, Mar 06, 2025 at 07:16:08AM -0700, Simon Glass wrote: > > > > Hi Heiko, > > > > > > > > On Thu

Re: [PATCH] checkpatch.pl: Report an error for CONFIG_xPL_BUILD in device trees

2025-03-06 Thread Simon Glass
Hi Hendrik, On Thu, 6 Mar 2025 at 13:16, Hendrik Donner wrote: > > The defines for the different build phases shouldn't be used in device > trees, currently they aren't even defined for device tree pre processing, > resulting in build errors. > > Link: https://lists.denx.de/pipermail/u-boot/2025-

[PATCH 00/10] Improve pytest runtime

2025-03-06 Thread Tom Rini
Hey all, One thing that Simon Glass has noted is that our pytest run time keeps getting longer. Looking at: https://source.denx.de/u-boot/u-boot/-/pipelines/25011/test_report?job_name=sandbox%20test.py%3A%20%5Bfast%20amd64%5D we can see that some of the longest running tests are a little puzzling.

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

2025-03-06 Thread Simon Glass
Hi Marek, On Sat, 15 Feb 2025 at 08:30, Marek Vasut wrote: > > On 2/15/25 2:38 PM, Simon Glass wrote: > > Hi Marek, > > > > On Sat, 8 Feb 2025 at 14:27, Marek Vasut wrote: > >> > >> On 2/7/25 1:49 AM, Simon Glass wrote: > >>> Hi Marek, > >>> > >>> On Thu, 6 Feb 2025 at 13:52, Marek Vasut wrote:

[PATCH 09/10] doc/develop/py_testing.rst: Update section on filesystem images

2025-03-06 Thread Tom Rini
Now that we have no users of "virt-make-fs" nor users of "sudo" for creating disk images update the documentation. We remove packages that are no longer required (and related text) as well as be firm in our wording around not using "sudo". Signed-off-by: Tom Rini --- Cc: Heinrich Schuchardt ---

[PATCH 10/10] Dockerfile: Update to drop virt-make-fs packages

2025-03-06 Thread Tom Rini
Now that we do not need nor want people to use virt-make-fs for filesystem tests, remove the related packages from the installation list. Signed-off-by: Tom Rini --- tools/docker/Dockerfile | 5 - 1 file changed, 5 deletions(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile

[PATCH 08/10] test/py: Rework test_efi_secboot to not use virt-make-fs

2025-03-06 Thread Tom Rini
The problem with using "virt-make-fs" to make a filesystem image is that it is extremely slow. Switch to using the fs_helper functions we have instead from the filesystem tests as these can add files to images and are significantly faster and still do not require root access. Signed-off-by: Tom Ri

[PATCH 03/10] test/py/tests: Move "setup_image" from test_ut.py to fs_helper.py

2025-03-06 Thread Tom Rini
The generic function in test_ut.py to create a disk image with partition table can be useful outside of test_ut.py so move it to be available more clearly. To make this a bit more easily used library function, make use of check_call directly rather than calling things though u_boot_utils. In turn,

[PATCH 07/10] test/py: Rework test_efi_capsule to not use virt-make-fs

2025-03-06 Thread Tom Rini
The problem with using "virt-make-fs" to make a filesystem image is that it is extremely slow. Switch to using the fs_helper functions we have instead from the filesystem tests as these can add files to images and are significantly faster and still do not require root access. The main change here

[PATCH 05/10] test/py: Rework test_efi_bootmgr to not use virt-make-fs

2025-03-06 Thread Tom Rini
The problem with using "virt-make-fs" to make a filesystem image is that it is extremely slow. Switch to using the fs_helper functions we have instead from the filesystem tests as these can add files to images and are significantly faster and still do not require root access. Signed-off-by: Tom Ri

[PATCH 06/10] test/py: Rework test_eficonfig to not use virt-make-fs

2025-03-06 Thread Tom Rini
The problem with using "virt-make-fs" to make a filesystem image is that it is extremely slow. Switch to using the fs_helper functions we have instead from the filesystem tests as these can add files to images and are significantly faster and still do not require root access. As this test already

[PATCH 04/10] test/py: Fix two problems with setup_image

2025-03-06 Thread Tom Rini
There are two issues with this function currently. One is that while we can be passed an image size to use, we always called qemu-img with 20M as the size. Fix this by using the size parameter. The second issue is that reserving 2MiB at the end is not enough room to add a GPT (and the backup GPT th

[PATCH 01/10] test/py: Rework test_cat to not use virt-make-fs

2025-03-06 Thread Tom Rini
The problem with using "virt-make-fs" to make a filesystem image is that it is extremely slow. Switch to using the fs_helper functions we have instead from the filesystem tests as these can add files to images and are significantly faster and still do not require root access. Signed-off-by: Tom Ri

Re: [PATCH RFC/RFT 0/3] omap24xx_i2c: Enable Repeated Start functionality

2025-03-06 Thread Tom Rini
On Thu, Mar 06, 2025 at 06:28:54PM +0530, Aniket Limaye wrote: > Hello Tom, Heiko, > > On 06/03/25 11:15, Heiko Schocher wrote: > > Hello Tom, Aniket, > > > > On 05.03.25 16:50, Tom Rini wrote: > > > On Wed, Mar 05, 2025 at 03:34:08AM +0530, Aniket Limaye wrote: > > > > This series implements Rep

Re: [PATCH v4 00/12] Add imx8mp video support

2025-03-06 Thread Fabio Estevam
On Wed, Mar 5, 2025 at 3:17 PM Tom Rini wrote: > The series is delayed until someone has a chance to look harder at > what's causing the handoff test to now fail. Ok, I marked this series as "Changes Requested" in patchwork. Miquel, please make sure the next version passes CI.

[PATCH v4 25/47] x86: Correct msr operation on amd64

2025-03-06 Thread Simon Glass
The CONFIG option is no-longer correct since we can have SPL and PPL with different bitness. Fix this and sync up with Linux 6.13 in this area, since this is where the code came from many years ago. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to correct

[PATCH v4 17/47] x86: Disable paging before changing to long mode

2025-03-06 Thread Simon Glass
This is required as part of the procedure. The existing code works because it changes the GDT at the same time, but this makes kvm unhappy. Update the algorithm to disable and then re-enable paging. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/cpu/i386/call64.S | 8 +++-

[PATCH v4 35/47] x86: emulation: Support BLOBLIST_TABLES properly

2025-03-06 Thread Simon Glass
The existing QEMU implementation mostly ignored BLOBLIST_TABLES and allocates the bulk of the tables with malloc(). Update it to place all tables in the bloblist. Since QEMU declares a size of 128KB regardless of the size of its tables, this requires a larger bloblist. Fix up the e820 table to han

Re: [PATCH RFC/RFT 2/3] i2c: omap24xx_i2c: support CONFIG_I2C_REPEATED_START in DM_I2C xfer

2025-03-06 Thread Aniket Limaye
On 06/03/25 11:24, Heiko Schocher wrote: Hello Aniket, On 04.03.25 23:04, Aniket Limaye wrote: Repeated Start Condition (Sr) can be used to transfer multiple i2c msgs without sending a Stop condition (P). So far, the driver default was to always send a Stop condition after every i2c msg. Ad

[PATCH] checkpatch.pl: Report an error for CONFIG_xPL_BUILD in device trees

2025-03-06 Thread Hendrik Donner
The defines for the different build phases shouldn't be used in device trees, currently they aren't even defined for device tree pre processing, resulting in build errors. Link: https://lists.denx.de/pipermail/u-boot/2025-March/582787.html Signed-off-by: Hendrik Donner --- scripts/checkpatch.pl

Re: [RFC PATCH] Kbuild: Always use $(PHASE_)

2025-03-06 Thread Simon Glass
Hi Tom, On Wed, 5 Mar 2025 at 08:49, Tom Rini wrote: > > On Wed, Mar 05, 2025 at 07:15:50AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Tue, 4 Mar 2025 at 13:41, Tom Rini wrote: > > > > > > It is confusing to have both "$(PHASE_)" and "$(XPL_)" be used in our > > > Makefiles as part of the

[PATCH 5/5] ARM: dts: stm32: Add TIMERS inverted PWM channel 3 on STM32MP135F-DK

2025-03-06 Thread Cheick Traore
The pwm source TIM1_CH3N channel (on PE12) in inverted polarity mode will be used to manage the brightness of the panel backlight on STM32MP135F-DK. Signed-off-by: Cheick Traore --- arch/arm/dts/stm32mp13-pinctrl.dtsi | 15 +++ arch/arm/dts/stm32mp135f-dk.dts | 14 ++

Re: [PATCH v2 0/4] USB-PD TCPM improvements

2025-03-06 Thread Anand Moon
Hi Sebastian, On Tue, 4 Mar 2025 at 20:20, Anand Moon wrote: > > Hi Sebastian, > > On Tue, 4 Mar 2025 at 18:12, Sebastian Reichel > wrote: > > > > Hi, > > > > On Tue, Mar 04, 2025 at 10:35:03AM +0530, Anand Moon wrote: > > > However, I have a question regarding the Type-C controller's > > > conn

[PATCH v4 11/47] x86: Add 64-bit entries to the GDT

2025-03-06 Thread Simon Glass
At present it is not possible to execution 64-bit code without installing an entire new Global Descriptor Table. This is inconvenient since kvm does not seem to like switching into long mode with a new table. It isn't actually necessary, since we can just extend the existing table. Add some new en

[PATCH 1/1] test: use truncate in mk_fs()

2025-03-06 Thread Heinrich Schuchardt
While the dd command actually writes to the block device the truncate command only updates the metadata (at least on ext4). This is faster and reduces wear on the block device. Signed-off-by: Heinrich Schuchardt --- Gitlab CI showed no issues: https://source.denx.de/u-boot/custodians/u-boot-efi/-

Re: [PATCH 05/10] serial: mxc: Support bulk enabling clocks

2025-03-06 Thread Adam Ford
On Thu, Mar 6, 2025 at 9:55 AM Fabio Estevam wrote: > > On Sun, Mar 2, 2025 at 1:53 PM Adam Ford wrote: > > > @@ -312,7 +313,17 @@ int mxc_serial_setbrg(struct udevice *dev, int > > baudrate) > > static int mxc_serial_probe(struct udevice *dev) > > { > > struct mxc_serial_plat *plat =

Re: [PATCH 2/2] Makefile.lib: Set xPL build related defines for DTB build

2025-03-06 Thread Quentin Schulz
Hi Hendrik, On 3/6/25 5:28 PM, Hendrik Donner wrote: [You don't often get email from h...@os-cillation.de. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] Hello, On 06.03.25 11:18, Quentin Schulz wrote: Hi Hendrik, On 3/5/25 7:35 PM, Hendrik Donner wrote: [Yo

Re: [PATCH v3 1/2] CI: Move default image under global defaults

2025-03-06 Thread Tom Rini
On Thu, Mar 06, 2025 at 09:13:52AM -0700, Simon Glass wrote: > Hi Tom, > > On Thu, 6 Mar 2025 at 07:37, Tom Rini wrote: > > > > On Thu, Mar 06, 2025 at 06:59:08AM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Wed, 5 Mar 2025 at 09:06, Tom Rini wrote: > > > > > > > > On Wed, Mar 05, 2025

Re: [PATCH v2 28/28] test: Add a test for booting Ubuntu 24.04

2025-03-06 Thread Tom Rini
On Thu, Mar 06, 2025 at 09:11:28AM -0700, Simon Glass wrote: > Hi Tom, > > On Thu, 6 Mar 2025 at 07:32, Tom Rini wrote: > > > > On Thu, Mar 06, 2025 at 07:16:08AM -0700, Simon Glass wrote: > > > Hi Heiko, > > > > > > On Thu, 27 Feb 2025 at 22:26, Heiko Schocher wrote: > > > > > > > > Hi Simon, >

Re: [PATCH RFC] doc: Include pytests directly in documentation

2025-03-06 Thread Heinrich Schuchardt
On 25.02.25 21:50, Tom Rini wrote: As there is support within the Sphinx framework to take Python docstrings and generate documentation from it, we can make use of that to more clearly and consistently document our pytests and how to configure them. To do this we: - Add PYTHONPATH to DOC_TARGETS

Re: [PATCH 2/2] Makefile.lib: Set xPL build related defines for DTB build

2025-03-06 Thread Hendrik Donner
Hello, On 06.03.25 11:18, Quentin Schulz wrote: Hi Hendrik, On 3/5/25 7:35 PM, Hendrik Donner wrote: [You don't often get email from h...@os-cillation.de. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] The CONFIG_*PL_BUILD defines are currently not defined w

[PATCH v4 19/47] x86: Use a simple jump into long mode

2025-03-06 Thread Simon Glass
With the 64-bit descriptor we can use a jump instruction, rather than pushing things on the stack. Since the processor is in 64-bit mode by this point, pop a 64-bit value from the stack, containing the target address. This simplifies the code slightly, in particular its use of the stack. Signed-

Re: [PATCH v3 1/2] CI: Move default image under global defaults

2025-03-06 Thread Simon Glass
Hi Tom, On Thu, 6 Mar 2025 at 07:37, Tom Rini wrote: > > On Thu, Mar 06, 2025 at 06:59:08AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 5 Mar 2025 at 09:06, Tom Rini wrote: > > > > > > On Wed, Mar 05, 2025 at 07:18:40AM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Tue,

Re: [PATCH v2 28/28] test: Add a test for booting Ubuntu 24.04

2025-03-06 Thread Simon Glass
Hi Tom, On Thu, 6 Mar 2025 at 07:32, Tom Rini wrote: > > On Thu, Mar 06, 2025 at 07:16:08AM -0700, Simon Glass wrote: > > Hi Heiko, > > > > On Thu, 27 Feb 2025 at 22:26, Heiko Schocher wrote: > > > > > > Hi Simon, > > > > > > On 27.02.25 20:26, Simon Glass wrote: > > > > Hi Tom, > > > > > > > >

Re: [PATCH 0/8] membuff: Add tests and update to support a flag for empty/full

2025-03-06 Thread Simon Glass
Hi Rasmus, On Thu, 6 Mar 2025 at 07:21, Rasmus Villemoes wrote: > > On Wed, Mar 05 2025, Simon Glass wrote: > > > Hi Rasmus, > > > > On Tue, 4 Mar 2025 at 11:55, Rasmus Villemoes wrote: > >> > >> On Tue, Mar 04 2025, Simon Glass wrote: > >> > >> > Hi Rasmus, > >> > > >> > On Fri, 18 Oct 2024 a

Re: Rate of innovation in the project (Was: Re: Rate of change in the project)

2025-03-06 Thread Simon Glass
Hi Tom, On Wed, 5 Mar 2025 at 09:22, Tom Rini wrote: > > On Wed, Mar 05, 2025 at 07:19:25AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Tue, 4 Mar 2025 at 08:29, Tom Rini wrote: > > > > > > On Tue, Mar 04, 2025 at 06:13:36AM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > (I chang

[PATCH v4 47/47] test: Add a test for booting Ubuntu 24.04

2025-03-06 Thread Simon Glass
Now that U-Boot can boot this quickly, using kvm, add a test that the installer starts up correctly. Use the qemu-x86_64 board in the SJG lab. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Significantly expanded to correct e820 and other issues Changes in v2: - Add mor

[PATCH v4 46/47] RFC: test/py: Deal with timeouts

2025-03-06 Thread Simon Glass
The distro test takes a little longer to shut down and restart, so add more time to this operation. Disable the sleep command for now, as it seems to be unreliable on QEMU with '-cpu host'. More thought will be needed for both of these problems. Signed-off-by: Simon Glass --- (no changes since

[PATCH v4 45/47] acpi: Support checking checksums

2025-03-06 Thread Simon Glass
When the ACPI tables come from an earlier bootloader it is helpful to see whether the checksums are correct or not. Add a -c flag to the 'acpi list' command to support that. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to support checking checksums with AC

[PATCH v4 44/47] test: acpi: Correct memory leaks

2025-03-06 Thread Simon Glass
Free the memory used in tests to avoid a leak. Also unmap the addresses for sandbox. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to correct memory leaks in the ACPI test test/dm/acpi.c | 13 + 1 file changed, 13 insertions(+) diff --git a/t

[PATCH v4 43/47] acpi: Add a checksum to the DMAR table

2025-03-06 Thread Simon Glass
This table lacks a correct checksum at present, so fix it. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to add a checksum to the DMAR table lib/acpi/acpi_table.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/acpi/acpi_table.c b/lib/acpi/acpi_ta

[PATCH v4 40/47] boot: Support IO UARTs for earlycon and console

2025-03-06 Thread Simon Glass
Update the string to take account of UARTs which are connected on I/O ports, as on x86. Fix a typo in an error message in the same command, while we are here. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to support IO UARTs for earlycon and console boot

[PATCH v4 38/47] boot: Consider non-bootable partitions

2025-03-06 Thread Simon Glass
Any 'bootable' flag in a DOS partition causes boostd to only scan bootable partitions for that media. This can mean that extlinux.conf files on the root disk are missed. Put this logic behind a flag and update the documentation. For now, the flag is enabled, to preserve existing behaviour. Future

[PATCH v4 37/47] acpi: Mark struct acpi_rsdp as packed

2025-03-06 Thread Simon Glass
At present the size of this struct is too large on 64-bit machines. Annotate it with __packed to fix this. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to mark struct acpi_rsdp as packed include/acpi/acpi_table.h | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v4 33/47] x86: Add a new API for e820

2025-03-06 Thread Simon Glass
The existing mechanism is pretty painful as it requires manual calculations for anything but a trivial setup. Add a new API for adding e820 entries. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch with an API for e820 arch/x86/include/asm/e820.h | 87 +

[PATCH v4 32/47] x86: e820: Add a function to dump the e820 table

2025-03-06 Thread Simon Glass
There is already code for this in zimage. Move it to the e820 file so it can be used elsewhere. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch with a function to dump the e820 table arch/x86/include/asm/e820.h | 8 arch/x86/lib/e820.c | 2

[PATCH v4 31/47] test/py: Allow tests to be filtered by role

2025-03-06 Thread Simon Glass
Some test can only be run by a particular board in a lab, e.g. because they are loaded with an OS image used by the test. Add a way to specify this in tests. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Add new patch to allow tests to be filtered by role test/py/conft

[PATCH v4 29/47] test/py: Correct sizing of created disks

2025-03-06 Thread Simon Glass
At present the disks end up being 1MB shorter than they should be, since dd truncates by default. Move the code into a function and update it to avoid truncation. This resolves various warnings when running sandbox tests, of the form: mmc_bread() MMC: block number 0x9801 exceeds max(0x9800)

[PATCH v4 28/47] x86: qemu: Support environment and cat command

2025-03-06 Thread Simon Glass
Add support for an environment stored in the first partition of the disk, which is assumed to hold a FAT filesystem. Support the 'cat' command as it is useful for looking at extlinux.conf files. Signed-off-by: Simon Glass --- (no changes since v1) configs/qemu-x86_64_defconfig | 6 -- con

[PATCH v4 27/47] x86: emulation: Set an MTRR for the RAM

2025-03-06 Thread Simon Glass
QEMU likes to have an MTRR set up, just like real machines. Add an MTRR which covers the total RAM size. This does nothing on machines without MTRRs. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Support memory sizes above 3GB properly Changes in v2: - Add new patch to

[PATCH v4 26/47] x86: Allow adding non-aligned size for MTRR

2025-03-06 Thread Simon Glass
At present mtrr_add_request() requires that the size is a power of two. This is too limiting for machines with 4GB (or more) of RAM, since they often must take account of a memory hole at 3GB. Update the function to automatically deal with an unaligned size, using more MTRRs as required. The algo

[PATCH v4 22/47] x86: Add functions to convert between mtrr size and mask

2025-03-06 Thread Simon Glass
Rather than repeating the same code in several places, add some functions which can do the conversion. Use the cpu_phys_address_size() function to obtain the physical-address size, since it is more reliable with kvm, where the host CPU may have a different value from the emulation CPU. Signed-off

[PATCH v4 23/47] x86: Update mtrr command to support 64-bit values

2025-03-06 Thread Simon Glass
The MTRR registers have 64-bit values. Update the command to use 64-bit values so that memory larger than 4GB can be handled. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to update mtrr command to support 64-bit values cmd/x86/mtrr.c | 6 +++--- 1 file c

[PATCH v4 20/47] x86: Rename the _D dirty flag

2025-03-06 Thread Simon Glass
This value happens to be used by ctype.h so chose a different name. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Add new patch to rename the _D dirty flag arch/x86/cpu/i386/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/cpu/i386

[PATCH v4 18/47] x86: Use the same GDT when jumping to long mode

2025-03-06 Thread Simon Glass
Make use the existing GDT which now includes entries for 64-bit code. Leave the interrupt descriptors alone. They can be tidied up once U-Boot starts up. With this, kvm mode works with QEMU. Signed-off-by: Simon Glass Fixes: https://source.denx.de/u-boot/custodians/u-boot-dm/-/issues/31 --- (no

[PATCH v4 15/47] x86: Include stdbool.h in interrupt header

2025-03-06 Thread Simon Glass
This makes use of a 'bool' type, so include the required header. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/include/asm/interrupt.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/interrupt.h b/arch/x86/include/asm/interrupt.h index e23fb2c8e72..c689

[PATCH v4 14/47] x86: Drop the message about features missing in 64-bit

2025-03-06 Thread Simon Glass
This functions normally and has done for a while, so drop this scary message. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c index 47cf9c862b5..0a6a761987e 10064

[PATCH v4 13/47] x86: spl: Drop duplicate CPU init

2025-03-06 Thread Simon Glass
x86_cpu_init_f() is called by arch_cpu_init() a few lines below this code. Drop the duplicate call. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/spl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c index 7a033505101..47cf9c862b

[PATCH v4 10/47] x86: Avoid clearing the VESA display

2025-03-06 Thread Simon Glass
U-Boot clears the display when it starts up, so there is no need to ask the VESA driver to do this. Fix this and add a comment explaining the flags. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/bios.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a

[PATCH v4 07/47] x86: Drop mpspec from the SPL build

2025-03-06 Thread Simon Glass
This is not needed in SPL, so drop it. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/lib/Makefile b/arch/x86/lib/Makefile index 43e6a1de77d..a908356e8a6 100644 --- a/arch/x86/lib/Makefile +++ b/arch/x86

[PATCH v4 08/47] x86: Add some log categories

2025-03-06 Thread Simon Glass
Add categories for i8259 and bios files, so that log statements have the right category. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/bios.c| 3 +++ arch/x86/lib/bios_interrupts.c | 2 ++ arch/x86/lib/i8259.c | 2 ++ 3 files changed, 7 insertions(+)

[PATCH v4 04/47] x86: qemu: Switch to bochs display

2025-03-06 Thread Simon Glass
The vesa display is widely used on hardware, but it is a bit of a pain with QEMU. It requires executing option ROMs, which either doesn't work with kvm, or is difficult to do in a kvm/QEMU-friendly way. THe bochs display is probably better anyway, so switch to that. It works fine with kvm as it do

[PATCH v4 06/47] x86: qemu: Avoid accessing BSS too early

2025-03-06 Thread Simon Glass
BSS is placed in DRAM which is actually available early with QEMU. But it is cleared by the init sequence, so values stored there are lost. Move the system-type flag into a function, instead. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/cpu/qemu/qemu.c | 20 ++

[PATCH v4 05/47] x86: qemu: Enable dhrystone

2025-03-06 Thread Simon Glass
Provide the 'dhry' command, which helps to check that kvm is being used properly with QEMU. Signed-off-by: Simon Glass --- (no changes since v1) configs/qemu-x86_64_defconfig | 1 + configs/qemu-x86_defconfig| 1 + 2 files changed, 2 insertions(+) diff --git a/configs/qemu-x86_64_defconfi

[PATCH v4 03/47] x86: Expand x86_64 early memory

2025-03-06 Thread Simon Glass
The SPL and pre-reloc malloc()-space is not large enough to start up with a display. Expand it. Switch the order of SPL_SYS_MALLOC_F_LEN and SPL_TEXT_BASE since this matches what 'savedefconfig' gives us. Signed-off-by: Simon Glass --- (no changes since v1) configs/qemu-x86_64_defconfig | 4 +

[PATCH v4 02/47] sandbox: Correct a typo in mapmem

2025-03-06 Thread Simon Glass
This should say 'cast', not 'case', so fix it. Signed-off-by: Simon Glass --- (no changes since v1) include/mapmem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mapmem.h b/include/mapmem.h index f496c96d16c..8ec03d59f0b 100644 --- a/include/mapmem.h +++ b/includ

[PATCH v4 01/47] boot: Correct ramdisk address

2025-03-06 Thread Simon Glass
We must use the ramdisk address for the initrd_addr field, not the kernel address. Fix this. Signed-off-by: Simon Glass Fixes: e05cda3004f ("boot: pxe: Refactor label_run_boot() to avoid") --- (no changes since v1) boot/pxe_utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v4 00/47] x86: Improve operation under QEMU

2025-03-06 Thread Simon Glass
U-Boot can start and boot an OS in both qemu-x86 and qemu-x86_64 but it is not perfect. With both builds, executing the VESA ROM causes an intermittent hang, at least on some AMD CPUs. With qemu-x86_64 kvm cannot be used since the move to long mode (64-bit) is done in a way that works on real har

Re: [PATCH 01/10] clk: imx6q: Properly handle imx6qp ESPI clk_sels

2025-03-06 Thread Fabio Estevam
On Sun, Mar 2, 2025 at 1:53 PM Adam Ford wrote: > > The ECSPI clock has the ability to select between pll3_60m and > osc on the imx6qp, where it's fixed on other variants. Fix this > by adding using a helper function to determine SoC variant and > register the clock accordingly. s/ESPI/ECSPI in

Re: [PATCH] fs/squashfs: Fix memory leak in sqfs_size_nest()

2025-03-06 Thread Tom Rini
On Sun, 02 Mar 2025 19:29:31 +0100, Andrea della Porta wrote: > In case MAX_SYMLINK_NEST is reached while determining the size > on a symlink node, the function returns immediately. > This would not free the resources after the free_strings: label > causing a memory leak. > > Set the ret value an

Re: [PATCH 05/10] serial: mxc: Support bulk enabling clocks

2025-03-06 Thread Fabio Estevam
On Sun, Mar 2, 2025 at 1:53 PM Adam Ford wrote: > @@ -312,7 +313,17 @@ int mxc_serial_setbrg(struct udevice *dev, int baudrate) > static int mxc_serial_probe(struct udevice *dev) > { > struct mxc_serial_plat *plat = dev_get_plat(dev); > + int ret; > > +#if CONFIG_IS_ENABLED(CLK_CC

Re: [PATCH 2/5] mach-stm32: add multifunction timer driver support

2025-03-06 Thread Patrice CHOTARD
On 3/6/25 11:56, Cheick Traore wrote: > Add support for STM32MP timer multi-function driver. > These timers can be use as counter, trigger or pwm generator. > This driver will be used to manage the main resources of the timer to > provide them to the functionnalities which need these ones. > >

Re: [PATCH 00/17] Various toolchain compatibility fixes/improvements

2025-03-06 Thread Tom Rini
On Wed, Mar 05, 2025 at 07:46:56PM -0800, Sam Edwards wrote: > On Sun, Feb 23, 2025 at 9:55 PM Sam Edwards wrote: > > > > Long time no see, U-Boot folks! > > > > This patchset consists of various bug fixes and correctness improvements > > that > > I discovered while attempting to add first-class

Re: [PATCH] MAINTAINERS: .mailmap: Update Sumit Garg's email address

2025-03-06 Thread Tom Rini
On Thu, 27 Feb 2025 17:39:04 +0530, Sumit Garg wrote: > Update Sumit Garg's email address to @kernel.org. > > Applied to u-boot/master, thanks! [1/1] MAINTAINERS: .mailmap: Update Sumit Garg's email address commit: 19715a7f031a998f8641949fbbf29a2fd1a58f0f -- Tom

Re: [GIT PULL] amd/xilinx patches for v2025.04-rc4

2025-03-06 Thread Tom Rini
On Wed, 05 Mar 2025 17:52:16 +0100, Michal Simek wrote: > please pull these fixes to your tree. Especially patches from Padmarao are > must > have. One is fixing issue around using BSS section before relocation and > second > is fix connected to switching to LWIP. 4k MTU size never really worked

Re: [PATCH] efi_loader: Install the ACPI table from the bloblist

2025-03-06 Thread Heinrich Schuchardt
On 06.03.25 15:31, Simon Glass wrote: When BLOBLIST_TABLES is used, the ACPI tables are not currently added to the list of EFI tables. While we don't want to create a new memory EFI tables are added by InstallConfigurationTable(). It seems this patch is not about the list of EFI configuration

RE: [resend v3 00/19] Add Cadence NAND Driver support

2025-03-06 Thread Maniyam, Dinesh
From: Michael Nazzareno Trimarchi Sent: Thursday, 6 March 2025 12:24 pm To: Maniyam, Dinesh Cc: U-Boot-Denx ; Marek ; Simon ; Tom Rini ; Dario Binacchi ; Johan Jonker ; Michal Simek ; Arseniy Krasnov ; Alexander Dahl ; William Zhang ; Igor Prusov ; Meng, Tingting ; Chee, Tien Fong ; Hea,

[PATCH 0/3] net: lwip: map struct udevice to struct netif

2025-03-06 Thread Jerome Forissier
This is a small NET_LWIP cleanup. Instead of re-creating a struct netif from a struct udevice every time a nework operation is requested (dhcp, ping, etc.), store the netif inside the udevice. No functional change is expected, but the behavior of the network stack might change a bit since not remo

[PATCH 2/2] net: lwip: add CONFIG_LWIP_DEBUG_RXTX

2025-03-06 Thread Jerome Forissier
Add Kconfig symbol LWIP_DEBUG_RXTX to dump the incoming and outgoing packets when NET_LWIP=y. Signed-off-by: Jerome Forissier --- net/lwip/Kconfig| 6 ++ net/lwip/net-lwip.c | 14 ++ 2 files changed, 20 insertions(+) diff --git a/net/lwip/Kconfig b/net/lwip/Kconfig index 40

[PATCH 1/2] net: lwip: rename linkoutput() as net_lwip_tx()

2025-03-06 Thread Jerome Forissier
Rename static function linkoutput() as net_lwip_tx() for consistency with net_lwip_rx(). Signed-off-by: Jerome Forissier --- net/lwip/net-lwip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/lwip/net-lwip.c b/net/lwip/net-lwip.c index cab1dd7d483..5a2a86686f4 100644

[PATCH 3/3] net: lwip: remove net_lwip_remove_netif()

2025-03-06 Thread Jerome Forissier
net_lwip_remove_netif() is not used, remove it. Signed-off-by: Jerome Forissier --- include/net-lwip.h | 1 - net/lwip/net-lwip.c | 6 -- 2 files changed, 7 deletions(-) diff --git a/include/net-lwip.h b/include/net-lwip.h index 58ff2bb2d43..36df78d61db 100644 --- a/include/net-lwip.h +++

  1   2   >