[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

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 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 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 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 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 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 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-

[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 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 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 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 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 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 +

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 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 =

[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 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 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

[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/-

[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 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 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

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 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: [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

<    1   2