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

2025-03-15 Thread Heinrich Schuchardt
Am 15. März 2025 23:17:58 MEZ schrieb Sam Edwards : >Hello again U-Boot list, > >This is v2 of my "misc. fixes" series, sent to prepare the codebase for more >direct LLVM support in the near future. This series contains several fixes that >I found in the process of preparing that support and which

Re: Please pull u-boot-dm

2025-03-15 Thread Tom Rini
On Sat, 15 Mar 2025 12:44:50 +, Simon Glass wrote: > Here is my attempt to get the test-rename stuff landed in your tree. > If you would rather do another round of patches, PTML. > > > https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/25171 > > The following changes since commi

[PATCH v2 14/15] spl: riscv: opensbi: Error on misaligned FDT

2025-03-15 Thread Sam Edwards
libfdt 1.6.1+ requires the FDT to be 8-byte aligned and returns an error if not. OpenSBI 1.0+ includes this version of libfdt and will also reject misaligned FDTs. However, OpenSBI cannot indicate the error to the user: since it cannot access the serial console, it can only silently hang. This pro

[PATCH v2 13/15] scripts/Makefile.lib: efi: Preserve the .dynstr section as well

2025-03-15 Thread Sam Edwards
This section is required by .dynamic and llvm-objcopy will exit with a fatal error if it is not also preserved in the output. Signed-off-by: Sam Edwards --- scripts/Makefile.lib | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib in

[PATCH v2 15/15] spl: Align FDT load address

2025-03-15 Thread Sam Edwards
While the image size is generally a multiple of 8 bytes, this is not actually guaranteed; some linkers (like LLD) will shave a few bytes off of the end of output sections if there are no content bytes there. Since libfdt imposes a hard rule of 8-byte alignment, make the SPL also be explicit about t

[PATCH v2 12/15] efi_loader: Move .dynamic out of .text in EFI

2025-03-15 Thread Sam Edwards
EFI applications need to be relocatable. Ordinarily, this is achieved through a PE-format .reloc section, but since that requires toolchain tricks to achieve, U-Boot's EFI applications instead embed ELF-flavored relocation information and use it for self-relocation; thus, the .dynamic section needs

[PATCH v2 11/15] arm: riscv: efi: Export _start symbol from crt0_*_efi stubs

2025-03-15 Thread Sam Edwards
While the _start label is only intended for use locally to populate the (hand-written) PE header, the linker script includes ENTRY(_start) which designates it as the entry point in the output ELF, resulting in linker warnings under some linkers (e.g. LLVM's lld) due to _start not being a globally-v

[PATCH v2 10/15] makefile: Add READELF command variable

2025-03-15 Thread Sam Edwards
This allows setting READELF=llvm-readelf in order to use the LLVM version of the readelf utility. It also aligns with the practice of not using $(CROSS_COMPILE) in any build recipes directly, reducing the number of places where $(CROSS_COMPILE) is used. Signed-off-by: Sam Edwards Reviewed-by: Hei

[PATCH v2 09/15] makefile: Add `norelro` linker option

2025-03-15 Thread Sam Edwards
RELRO is an instruction to a dynamic loader to make a memory range read-only after relocations are applied, for added security. Some linkers (e.g. LLD) require that all sections covered by the RELRO are contiguous, so that only a single RELRO is needed. U-Boot at present neither satisfies this requ

[PATCH v2 08/15] makefile: Avoid objcopy --gap-fill for .hex/.srec

2025-03-15 Thread Sam Edwards
This flag only makes sense for `binary` output, because .hex/.srec are sparse formats and represent gaps without filler. While the GNU binutils version of objcopy does not seem to mind the extra flag being passed, llvm-objcopy considers this a fatal error. There is already a version of the objcopy

[PATCH v2 07/15] x86: Fix call64's section flags

2025-03-15 Thread Sam Edwards
When a section is not flagged with SHF_ALLOC, LLD's --gc-sections algorithm fails to visit the sections that it references. As a result of this, LLD was dropping the call64.o(.data) section, which is itself only referenced by .text_call64. This appears to be a bug in LLD, but the .section directiv

[PATCH v2 06/15] arm: Replace 'adrl' in EFI crt0

2025-03-15 Thread Sam Edwards
LLVM's IAS does not (and cannot easily) support the 'adrl' pseudoinstruction, and ARM developers generally do not consider it portable across assembler implementations either. Instead, expand it into the two subtract instructions it would emit anyway. An explanation of the math follows: The .+8 a

[PATCH v2 05/15] arm: Discard unwanted sections in linker script

2025-03-15 Thread Sam Edwards
There are a handful of sections that are not useful in the U-Boot output binary. At present, the linker script moves these to the end of the binary, after the _image_binary_end marker symbol, so that they don't get loaded. The linker script syntax supports discarding sections that shouldn't be inc

[PATCH v2 04/15] arm: Add aligned-memory aliases to eabi_compat

2025-03-15 Thread Sam Edwards
These are sometimes used by LLVM's code-generator, when it can guarantee that the memory buffer being passed is aligned on a (4- or 8-byte) boundary. They can safely be aliased to the unaligned versions. Signed-off-by: Sam Edwards Reviewed-by: Ilias Apalodimas --- arch/arm/lib/eabi_compat.c | 1

[PATCH v2 03/15] arm: Add __aeabi_memclr in eabi_compat

2025-03-15 Thread Sam Edwards
LLVM's code generator will sometimes emit calls to __aeabi_memclr. Add an implementation of this for LLVM compatibility. Signed-off-by: Sam Edwards Reviewed-by: Ilias Apalodimas --- arch/arm/lib/eabi_compat.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/lib/eabi_compat.c b/

[PATCH v2 02/15] arm: Exclude eabi_compat from LTO

2025-03-15 Thread Sam Edwards
These symbols need to survive the IR-level dead function elimination pass, since nothing at the IR level is referencing them (calls to these are inserted later, at codegen time). Signed-off-by: Sam Edwards Acked-by: Ilias Apalodimas --- arch/arm/lib/Makefile | 1 + 1 file changed, 1 insertion(+

[PATCH v2 01/15] arm: Remove stray .mmutable reference in linker script

2025-03-15 Thread Sam Edwards
The .mmutable section was deprecated in 2012 [1] and finally removed entirely from U-Boot in 2022 [2], so this special handling is no longer necessary. Remove it to tidy up the linker script. [1]: dde3b70dcf3d ("arm: add a common .lds link script") [2]: 3135ba642f9a ("arm: pxa: Remove CONFIG_CPU_P

[PATCH v2 00/15] Various toolchain compatibility fixes/improvements

2025-03-15 Thread Sam Edwards
Hello again U-Boot list, This is v2 of my "misc. fixes" series, sent to prepare the codebase for more direct LLVM support in the near future. This series contains several fixes that I found in the process of preparing that support and which address issues independent of any future feature or enhan

Re: [PATCH 2/2] u_boot_pylib: Clean up pylint warnings in gitutil.py

2025-03-15 Thread Tom Rini
On Sat, Mar 15, 2025 at 03:50:55PM +, Simon Glass wrote: > Hi Tom, > > On Sat, 15 Mar 2025 at 15:23, Tom Rini wrote: > > > > On Sat, Mar 15, 2025 at 02:48:18PM +, Simon Glass wrote: > > > Hi Tom, > > > > > > On Fri, 14 Mar 2025 at 15:36, Tom Rini wrote: > > > > > > > > On Fri, Mar 14, 20

Re: [PATCH] lmb: change the return code on lmb_alloc_addr()

2025-03-15 Thread Caleb Connolly
On 3/14/25 23:46, Tom Rini wrote: On Fri, Mar 14, 2025 at 11:26:59PM +, Ben Schneider wrote: Thanks Ben. Happy to help. In case the context is useful, I wound up here because I use U-Boot to load systemd-boot which then, in turn, loads the kernel. Unlike GRUB, systemd-boot does not prov

Re: [PATCH v2 4/6] net: lwip: add support for built-in root certificates

2025-03-15 Thread Jerome Forissier
On 3/10/25 14:04, Ilias Apalodimas wrote: > On Mon, 10 Mar 2025 at 14:48, Jerome Forissier > wrote: >> >> >> >> On 3/10/25 13:38, Ilias Apalodimas wrote: >>> On Mon, 10 Mar 2025 at 14:13, Jerome Forissier >>> wrote: On 3/10/25 12:52, Ilias Apalodimas wrote: > Hi Jerome,

[PATCH v2 1/6] airoha: Add initial support for Airoha AN7581 SoC

2025-03-15 Thread Christian Marangi
Add initial support for Airoha AN7581 SoC. This adds the initial Kconfig and Makefile entry for the SoC, an U-Boot specific DTSI and initial config for it. Also add the initial code for CPU and RAM initialization. Signed-off-by: Christian Marangi --- arch/arm/Kconfig | 9 +++

Re: [PATCH] openpiton: riscv64: Drop unnecessary 'imply SPL_RISCV_MMODE'

2025-03-15 Thread Tianrui Wei
On Fri, Mar 14, 2025, at 6:28 PM, Tom Rini wrote: > As the code is today, we get a warning about "select" statements on > "choice" options not doing anything. In this case, the option > SPL_RISCV_MMODE is the default. > > Signed-off-by: Tom Rini > --- > Cc: Tianrui Wei > --- > board/openpiton/ri

[PATCH] arm: mediatek: remove wmcpu-reserved@50000000 node from mt7987 dts

2025-03-15 Thread Weijie Gao
The reserved-memory node 'wmcpu-reserved@5000' only applies to linux kernel and is useless in u-boot. Remove it in *-u-boot.dtsi to make this memory region usable. Fixes: 2d6962e0618 (arm: mediatek: add support for MediaTek MT7987 SoC) Signed-off-by: Weijie Gao --- arch/arm/dts/mt7987a-u-boo

Re: [PATCH v1 0/1] video: edid: guard standard timings EDID expansion behind kconfig

2025-03-15 Thread Svyatoslav Ryhel
пт, 14 бер. 2025 р. о 18:21 Tom Rini пише: > > On Fri, Mar 14, 2025 at 08:47:19AM +0200, Svyatoslav Ryhel wrote: > > > Since EDID only indicates supported standard timings, a large table with > > detailed timing information is necessary, consuming significant space. To > > mitigate this, the table

[PATCH 03/12] net: lwip: provide net_start_again()

2025-03-15 Thread Jerome Forissier
Implement net_start_again() when NET_LWIP=y in a very similar way to NET. This will be used in a future commit to determine if a failed ping needs to be tried again on a different interface. Signed-off-by: Jerome Forissier --- include/net-common.h | 3 +++ include/net-legacy.h | 3 --- net/lwi

[PATCH] cmd: fuse: add switch for quiet operation

2025-03-15 Thread Rogerio Guerra Borin
Add switch -q for quiet operation to all fuse subcommands. This helps avoid bloating the console with messages that can be distracting to users (particularly when the command is employed by scripts and multiple fuse values are read/compared/programmed). For example, the "fuse cmp" command normally

Re: [PATCH v8 4/8] efi_loader: add a function to remove memory from the EFI map

2025-03-15 Thread Heinrich Schuchardt
On 12.03.25 09:54, Sughosh Ganu wrote: From: Ilias Apalodimas With upcoming changes supporting pmem nodes, we need to remove the pmem area from the EFI memory map. Add a function to do that. Signed-off-by: Ilias Apalodimas Signed-off-by: Sughosh Ganu Reviewed-by: Heinrich Schuchardt --- Cha

Re: [PATCH v2 4/6] net: lwip: add support for built-in root certificates

2025-03-15 Thread Ilias Apalodimas
On Mon, 10 Mar 2025 at 15:48, Jerome Forissier wrote: > > > > On 3/10/25 14:04, Ilias Apalodimas wrote: > > On Mon, 10 Mar 2025 at 14:48, Jerome Forissier > > wrote: > >> > >> > >> > >> On 3/10/25 13:38, Ilias Apalodimas wrote: > >>> On Mon, 10 Mar 2025 at 14:13, Jerome Forissier > >>> wrote: >

Re: [PATCH v2 0/6] airoha: Add initial support AN7581

2025-03-15 Thread Tom Rini
On Fri, Mar 14, 2025 at 07:59:20PM +0100, Christian Marangi wrote: ` > This little series adds initial support for Airoha AN7581 SoC. > > With the help of some backport patch, this use OF_UPSTREAM > directly. > > Posting this to have the targer and the very basic driver. > > Ethernet, SNAND and

[PATCH v1 00/13] video: bridge: migrations and fixes

2025-03-15 Thread Svyatoslav Ryhel
Migrate dp501, tc358768 and ssd2825 to bridge UCLASS and OF graph. Fix and improve power supply requests, handling clocks, gpios. Clean up code a bit. Svyatoslav Ryhel (13): video: bridge: dp501: convert to video bridge UCLASS video: bridge: tc358768: convert to video bridge UCLASS video: br

RE: [PATCH] imx8m: soc: cope with existing optee node

2025-03-15 Thread Peng Fan
> Subject: Re: [PATCH] imx8m: soc: cope with existing optee node > > On Wed, Mar 12, 2025 at 12:10 PM Peng Fan > wrote: > > > Partially right. > > But The issue here is to handle the case that the node is created by > > optee os and uboot should bypass creating it again. > > Yes, ths patch is c

Re: [resend v2 10/13] cmd: Enabled Kconfig and Makefile for DWI3C cmd support

2025-03-15 Thread Tom Rini
On Fri, Mar 14, 2025 at 12:08:59PM +0800, dinesh.mani...@altera.com wrote: > From: Dinesh Maniyam > > Enable the Kconfig and Makefile for the > DWI3C driver cmd support. > > Signed-off-by: Dinesh Maniyam > --- > cmd/Kconfig | 6 ++ > cmd/Makefile | 1 + > 2 files changed, 7 insertions(+)

Re: [PATCH] lmb: change the return code on lmb_alloc_addr()

2025-03-15 Thread Ben Schneider
On Friday, March 14th, 2025 at 3:57 AM, Ilias Apalodimas wrote: > > > Ben reports a failure to boot the kernel on hardware that starts its > physical memory from 0x0. > The reason is that lmb_alloc_addr(), which is supposed to reserve a > specific address, takes the address as the first argume

[resend v2 08/13] i3c: master: dw-i3c-master: Fix OD_TIMING for spike filter

2025-03-15 Thread dinesh . maniyam
From: Dinesh Maniyam Fix the I3C device with spike filter unable to detect issue by setting tHIGH_INIT to 200ns for first broadcast address. This is according to MIPI SPEC 1.1.1 for first broadcast address which is already part of linux upstreamed patch. Signed-off-by: Dinesh Maniyam --- drive

[PATCH v5 03/46] x86: Expand x86_64 early memory

2025-03-15 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 v5 02/46] sandbox: Correct a typo in mapmem

2025-03-15 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

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

2025-03-15 Thread Tom Rini
On Sat, Mar 15, 2025 at 12:54:25PM +, Simon Glass wrote: > Hi Tom, > > On Fri, 14 Mar 2025 at 16:06, Tom Rini wrote: > > > > On Fri, Mar 14, 2025 at 02:44:35PM +, Simon Glass wrote: > > > Hi Tom, > > > > > > On Fri, 7 Mar 2025 at 14:23, Tom Rini wrote: > > > > > > > > On Thu, Mar 06, 202

[PATCH v5 13/46] x86: spl: Drop duplicate CPU init

2025-03-15 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 v5 44/46] test: acpi: Correct memory leaks

2025-03-15 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 v5 19/46] x86: Use a simple jump into long mode

2025-03-15 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 v5 21/46] x86: Support CPU functions in long mode

2025-03-15 Thread Simon Glass
At present it is not possible to find out the physical-address size in long mode, so a predefined value is used. Update the macros to support this properly, since it is important when programming MTRRs. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Always return true fr

Re: [PATCH] disable mail for swarren

2025-03-15 Thread Simon Glass
Hi Stephen, On Fri, 14 Mar 2025 at 18:32, Tom Rini wrote: > > On Fri, Mar 14, 2025 at 12:10:31PM -0600, Stephen Warren wrote: > > > From: Stephen Warren > > > > I haven't been involved in U-Boot development for quite a while, so > > CCing me on patches isn't currently useful. Add a .mailmap entr

[PATCH v5 46/46] test: Add a test for booting Ubuntu 24.04

2025-03-15 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 --- Changes in v5: - Drop timeouts patch - Use Ctrl-N instead of down-arrow to make the test more reliable - Add more logging

[PATCH 1/5] dm: pwm: Check if duty_ns is lower than period_ns

2025-03-15 Thread Cheick Traore
It was possible to provide a duty_ns greater than period_ns to "pwm config" command. The framework must check the values before providing them to drivers. Signed-off-by: Cheick Traore --- drivers/pwm/pwm-uclass.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pwm/pwm-uclass.c b/

[PATCH v1 10/10] video: tegra20: dsi: respect speed mode used for DSI commands transfer

2025-03-15 Thread Svyatoslav Ryhel
Use DSI message flag to set correct speed mode for message transfer. Signed-off-by: Svyatoslav Ryhel --- drivers/video/tegra20/tegra-dsi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/video/tegra20/tegra-dsi.c b/drivers/video/tegra20/tegra-dsi.c index 3ce0d33e380..a2a22fa0fe2

[PATCH v7 4/8] efi_loader: add a function to remove memory from the EFI map

2025-03-15 Thread Sughosh Ganu
From: Ilias Apalodimas With upcoming changes supporting pmem nodes, we need to remove the pmem area from the EFI memory map. Add a function to do that. Signed-off-by: Ilias Apalodimas Signed-off-by: Sughosh Ganu Reviewed-by: Heinrich Schuchardt --- Changes since V6: None include/efi_loader.

[GIT PULL] Please pull u-boot-dfu-next-20250310

2025-03-15 Thread Mattijs Korpershoek
Hi Tom, Please find the following developments/cleanups for next: Usb gadget: - Remove legacy CONFIG_USB_DEVICE - Remove legacy usbtty driver CI Job: - https://source.denx.de/u-boot/custodians/u-boot-dfu/-/pipelines/25060 Thanks, Mattijs The following changes since commit 743c15b9fdd2f639012a2

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

2025-03-15 Thread Ilias Apalodimas
Hi Sam On Thu, 6 Mar 2025 at 03:47, 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 LL

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

2025-03-15 Thread Simon Glass
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 we don't want to create a new memory > > EFI tables are added by InstallCon

[PATCH v1 2/2] drivers: fpga: Follow mainline to pass compatible flags to fpga_load

2025-03-15 Thread muhammad . hazim . izzat . zamri
From: Muhammad Hazim Izzat Zamri Introducing additional flag to check whether an FPGA driver is able to load a particular FPGA bitstream image. Generally, flag variable is used to enable or disable certain features, specify additional parameters (such as error handling), or modify how the functi

Re: [PATCH v5 07/29] bootstd: Correct display of kernel version

2025-03-15 Thread Simon Glass
Hi Heinrich, On Sat, 8 Mar 2025 at 05:11, Heinrich Schuchardt wrote: > > On 3/6/25 01:25, Simon Glass wrote: > > The address of the bzImage is not recorded in the bootflow, so we cannot > > actually locate the version at present. Handle this case, to avoid > > showing invalid data. > > > > Signed

Re: [PATCH v2 4/4] board/BuR/zynq: initial commit

2025-03-15 Thread Bernhard Messerklinger
From: Michal Simek Sent: Wednesday, February 26, 2025 11:23 AM >On 2/11/25 13:49, Bernhard Messerklinger wrote: >> This commit adds support for the brcp1, brsmarc2, brcp150 and brcp170 >> boards. This boards are based on the Xilinx Zynq SoC. >> >> Signed-off-by: Bernhard Messerklinger >> >> ---

[PATCH v1 01/11] video: endeavoru-panel: move backlight request after probe

2025-03-15 Thread Svyatoslav Ryhel
Due to the use of the Tegra DC backlight feature by the HTC ONE X, backlight requests MUST NOT be made during probe or earlier. This is because it creates a loop, as the backlight is a DC child. To mitigate this issue, backlight requests can be made later, once the backlight is actively used. Sig

[PATCH 10/12] net: lwip: allow DM_DSA=y when NET_LWIP=y

2025-03-15 Thread Jerome Forissier
Now that the DSA tests in test/dm/dsa.c are compatible with NET_LWIP, remove the dependency of DM_DSA on NET. Signed-off-by: Jerome Forissier --- drivers/net/Kconfig | 1 - net/Makefile| 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/Kconfig b/drivers/net

Re: [PATCH] ARM: stm32: Introduce DH STM32MP15xx DHSOM board specific defconfigs

2025-03-15 Thread Patrice CHOTARD
On 3/6/25 09:28, Patrice CHOTARD wrote: > > > On 2/22/25 18:13, Marek Vasut wrote: >> Move stm32mp15_dhcom_basic_defconfig into stm32mp15_dhcom_basic.config. >> Retain legacy stm32mp15_dhcom_basic_defconfig as multi-config for all >> DH STM32MP15xx DHCOM based boards. Move stm32mp15_dhsor_basi

[PATCH v1 0/2] Add FPGA configuration when booting Linux

2025-03-15 Thread muhammad . hazim . izzat . zamri
From: Muhammad Hazim Izzat Zamri This patchset enable the capability to automatically perform FPGA configuration when booting Linux FIT image via bootm command. The FPGA configuration bitstream shall be packed within the FIT image. Second patch is to add additional flag to check whether an FPGA

[PATCH] reset: socfpga: release more A10 peripherals out of reset

2025-03-15 Thread Naresh Kumar Ravulapalli
Current implementation releases most peripherals out of reset for gen5, but A10 has more peripherals than gen5, hence this patch is required to release the rest of peripherals to support old kernels. Signed-off-by: Tien Fong Chee Signed-off-by: Naresh Kumar Ravulapalli --- drivers/reset/reset-s

Re: [PATCH v5 15/29] boot: arm: riscv: sandbox: Add a format for the booti file

2025-03-15 Thread Simon Glass
HI Heinrich, On Sat, 8 Mar 2025 at 06:09, Heinrich Schuchardt wrote: > > On 3/6/25 01:25, Simon Glass wrote: > > There is no such thing as a booti file as booti takes pointers for three > different files: kernel, initrd, dtb. I guess you try to refer to the > Linux Image file format. > > Please,

Re: [PATCH v8 2/8] efi_loader: install device-tree on configuration table on every invocation

2025-03-15 Thread Sughosh Ganu
On Thu, 13 Mar 2025 at 01:40, Heinrich Schuchardt wrote: > > On 12.03.25 09:54, Sughosh Ganu wrote: > > The efi_install_fdt() function is called before booting an EFI binary, > > either directly, or through a bootmanager. This function installs a > > copy of the device-tree(DT) on the EFI configur

[PATCH v3 4/8] efi_loader: efi_net: Add efi_net_do_start() to efi_net.c

2025-03-15 Thread Adriano Cordova
This gets called each time a payload is to get executed by bootefi. For now this only updates the PXE IP address. Signed-off-by: Adriano Cordova --- (no changes since v1) include/efi_loader.h | 1 + lib/efi_loader/efi_net.c | 31 --- lib/efi_loader/efi_setu

Re: [resend v2 12/13] configs: sandbox_defconfig: Enable configs for sandbox i3c

2025-03-15 Thread Tom Rini
On Fri, Mar 14, 2025 at 12:09:01PM +0800, dinesh.mani...@altera.com wrote: > From: Dinesh Maniyam > > Enable configs for sandbox i3c. > > Signed-off-by: Dinesh Maniyam > --- > configs/sandbox_defconfig | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/configs/sandbox_defconfig b/co

[PATCH v1 08/10] video: tegra20: pwm-backlight: convert into DC child

2025-03-15 Thread Svyatoslav Ryhel
Establish the backlight as a DC display controller child. Signed-off-by: Svyatoslav Ryhel --- drivers/video/tegra20/tegra-pwm-backlight.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/video/tegra20/tegra-pwm-backlight.c b/drivers/video/tegra20/tegra-pw

Re: [PATCH 02/10] cmd: Kconfig: enable CMD_BOOTI for ARCH_K3

2025-03-15 Thread Anshul Dalal
On Fri Mar 7, 2025 at 9:50 PM IST, Tom Rini wrote: > On Fri, Mar 07, 2025 at 09:43:19PM +0530, Anshul Dalal wrote: > > On Fri Mar 7, 2025 at 9:20 PM IST, Tom Rini wrote: > > > On Fri, Mar 07, 2025 at 01:25:30PM +0530, Anshul Dalal wrote: > > > > > > > This allows us to load the kernel image to memo

[PATCH 0/2] net: lwip: rename output function, add packet dump

2025-03-15 Thread Jerome Forissier
A cosmetic patch and a new Kconfig to help troubleshoot NET_LWIP=y. Jerome Forissier (2): net: lwip: rename linkoutput() as net_lwip_tx() net: lwip: add CONFIG_LWIP_DEBUG_RXTX net/lwip/Kconfig| 6 ++ net/lwip/net-lwip.c | 18 -- 2 files changed, 22 insertions(+), 2 d

[PATCH v1 4/4] ARM: tegra: tf700t: upgrade bindings

2025-03-15 Thread Svyatoslav Ryhel
Align TF700T bindings with existing upstream device trees. OF_UPSTREAM migration is possible already but resulting size of binary exceeds maximum allowed size with full size trees. Signed-off-by: Svyatoslav Ryhel --- arch/arm/dts/tegra30-asus-tf700t.dts | 96 +++- 1 file

[PATCH 11/12] configs: add sandbox64_lwip_defconfig

2025-03-15 Thread Jerome Forissier
Add sandbox64_lwip_defconfig based on sandbox64_defconfig with NET_LWIP enabled. Signed-off-by: Jerome Forissier --- configs/sandbox64_lwip_defconfig | 5 + 1 file changed, 5 insertions(+) create mode 100644 configs/sandbox64_lwip_defconfig diff --git a/configs/sandbox64_lwip_defconfig b/c

[PATCH v2 3/8] arm: dts: am62a: allow booting from eMMC

2025-03-15 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

Re: [PATCH 12/12] test_fs: Add exfat tests

2025-03-15 Thread Marek Vasut
On 3/10/25 4:30 PM, Tom Rini wrote: On Sat, Mar 08, 2025 at 09:12:16PM +0100, Marek Vasut wrote: Add tests for the exfat filesystem. These tests are largely an extension of the FS_GENERIC tests with the following notable exceptions. The filesystem image for exfat tests is generated using combin

Re: [PATCH v2 0/2] Enable USB MSC Boot for AM62, AM62A and AM62P

2025-03-15 Thread Tom Rini
On Sat, 01 Mar 2025 13:30:47 +0530, Siddharth Vadapalli wrote: > This series adds config fragment for enabling USB MSC boot and USB > Storage devices which are applicable to AM62, AM62A and AM62P SoCs. > > Series is based on commit > 962217d218c Merge patch series "boards: siemens: iot2050: SM va

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

2025-03-15 Thread Simon Glass
Hi Tom, On Fri, 7 Mar 2025 at 14:24, Tom Rini wrote: > > On Thu, Mar 06, 2025 at 09:04:13AM -0700, Simon Glass wrote: > > > The distro test takes a little longer to shut down and restart, so > > add more time to this operation. > > In the test, make use of u_boot_console.temporary_timeout(val) ?

Re: [PATCH v1] arm: dts: npcm7xx: correct the timer node

2025-03-15 Thread Tom Rini
On Tue, 25 Feb 2025 09:45:05 +0800, Jim Liu wrote: > Correct the timer node of dts > > Applied to u-boot/next, thanks! [1/1] arm: dts: npcm7xx: correct the timer node commit: ef254ccf37dbe6419e797acf5969a0ae66f4629f -- Tom

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

2025-03-15 Thread Tom Rini
On Fri, Mar 14, 2025 at 02:44:00PM +, Simon Glass wrote: > Hi Tom, > > On Fri, 7 Mar 2025 at 14:24, Tom Rini wrote: > > > > On Thu, Mar 06, 2025 at 09:04:13AM -0700, Simon Glass wrote: > > > > > The distro test takes a little longer to shut down and restart, so > > > add more time to this ope

[PATCH 2/2] arc: Migrate to SYS_{BIG,LITTLE}_ENDIAN fully

2025-03-15 Thread Tom Rini
With the way we now prompt for big or little endian support, the "select ... if ..." portion of the ARC symbol doesn't work as intended. But now that we do have a globally visible prompt for big or little, switch to using that fully instead of a custom symbol. Fixes: cbef295441b4 ("Kconfig: Unify

Re: [PATCH V2 09/10] configs: imx8mp_beacon: Select SPL_CLK_IMX8MP

2025-03-15 Thread Peng Fan
On Tue, Mar 11, 2025 at 07:30:29PM -0500, Adam Ford wrote: >In preparation to remove manual references for enabling some clocks, >enable SPL_CLK_IMX8MP which automatically enables SPL_CCF and >SPL_CLK_COMPOSITE_CCF which permit various drivers to activate >their respective clocks automatically. > >

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

2025-03-15 Thread Tom Rini
On Fri, Mar 07, 2025 at 08:46:31AM -0600, Tom Rini wrote: > On Thu, Mar 06, 2025 at 09:10:47AM -0700, Simon Glass wrote: [snip] > > Again, back to this thread, if you want me to migrate things, consider > > applying the sunxi patches as I have described above. I will then look > > at the next targe

Re: [PATCH] ARM: dts: stm32: Add support for environment in eMMC on STM32MP13xx DHCOR SoM

2025-03-15 Thread Patrice CHOTARD
On 3/6/25 09:35, Patrice CHOTARD wrote: > > > On 2/10/25 02:32, Marek Vasut wrote: >> Enable support for environment in eMMC on STM32MP13xx DHCOR SoM, >> in addition to existing support for environment in SPI NOR. The >> environment size is the same, except in case the environment is >> placed

[PATCH 02/12] net: lwip: fix initialization sequence before a command

2025-03-15 Thread Jerome Forissier
The things that are done prior to executing a network command with NET_LWIP are not consistent with what is done with NET. It impacts the selection of the current device, and more precisely if the active device is invalid NET would return an error while NET_LWIP would try to pick a new device. This

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

2025-03-15 Thread Tom Rini
On Thu, Mar 06, 2025 at 06:57:11AM -0700, Simon Glass wrote: > 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 h

Re: [PATCH 0/4] airoha: Add initial support AN7581

2025-03-15 Thread Tom Rini
On Sun, Mar 09, 2025 at 03:06:42PM +0100, Christian Marangi wrote: > This little series adds initial support for Airoha AN7581 SoC. > > All driver are created with OF_UPSTREAM support in mind and > the very same binding and include are used as reference. Please re-work the driver patches so that

Re: [PATCH 08/12] fs: exfat: Fix conversion overflow errors

2025-03-15 Thread Marek Vasut
On 3/10/25 10:49 PM, Tom Rini wrote: On Mon, Mar 10, 2025 at 10:03:37PM +0100, Marek Vasut wrote: On 3/10/25 12:17 PM, Quentin Schulz wrote: Hi Marek, Hi, On 3/8/25 9:12 PM, Marek Vasut wrote: Fix the following conversion overflow errors. The input field is already limited to 3/2/1 bits us

Re: [PATCH 3/5] pwm: stm32: add driver to support pwm with timer

2025-03-15 Thread Patrice CHOTARD
On 3/6/25 15:19, Patrice CHOTARD wrote: > > > On 3/6/25 11:56, Cheick Traore wrote: >> Add driver to support pwm on STM32MP1X SoCs. The PWM signal is generated >> using a multifuntion timer which provide a pwm feature. Clock rate and >> addresses are retrieved from the multifunction timer driv

Re: [resend v2 09/13] cmd: Add i3c command support.

2025-03-15 Thread Tom Rini
On Fri, Mar 14, 2025 at 12:08:58PM +0800, dinesh.mani...@altera.com wrote: > From: Dinesh Maniyam > > Add i3c command file to support select, get i3c device > target list, read and write operation. > > Signed-off-by: Dinesh Maniyam > --- > cmd/i3c.c | 193

[PATCH v1 0/4] pinctrl: tegra: minor driver fixes

2025-03-15 Thread Svyatoslav Ryhel
Adjust pinctrl driver to better work with Tegra Linux device trees regards lock, io-reset and open-drain properties. Fix pin and drive default values and fix function naming mismatches on Tegra 2. Svyatoslav Ryhel (4): pinctrl: tegra: adjust default values of pins pinctrl: tegra: adjust pin st

[PATCH 01/12] net: lwip: do_ping() should return CMD_RET_FAILURE when no device

2025-03-15 Thread Jerome Forissier
do_ping() expects ping_loop() to return a negative value on error, so that it can propagate it to the caller as CMD_RET_FAILURE. This is not the case when no ethernet device is found, so fix that. Signed-off-by: Jerome Forissier Reviewed-by: Ilias Apalodimas --- net/lwip/ping.c | 2 +- 1 file c

Re: [PATCH v2 0/4] Better smartphone support (Qualcomm)

2025-03-15 Thread Caleb Connolly
Hi Peter, On 3/13/25 19:07, Peter Robinson wrote: Hey Caleb, Improve support for running U-Boot on [Qualcomm] smartphones, with: Is there anything in this that is QCom specific? Like should this also work on the Pinephone phones which have either a Allwinner or Rockchip SoC? The ideas

Re: [PATCH] spi: cadence_ospi: Add device reset via OSPI controller

2025-03-15 Thread Michal Simek
On 2/20/25 15:19, Venkatesh Yadav Abbarapu wrote: Add support for flash device reset via OSPI controller instead of using GPIO, as OSPI IP has device reset feature on Versal Gen2 platform. Also add compatible string for Versal Gen2 platform. Signed-off-by: Venkatesh Yadav Abbarapu --- driv

[PATCH v1 1/2] drivers: fpga: Add FPGA configuration during bootm for Intel SOCFPGA

2025-03-15 Thread muhammad . hazim . izzat . zamri
From: Muhammad Hazim Izzat Zamri Enabling the capability to automatically perform FPGA configuration when booting Linux FIT image via bootm command. The FPGA configuration bitstream shall be packed within the FIT image. The FPGA data (full or partial) is checked by the SDM hardware, for Intel SD

Re: [PATCH 0/5] net: lwip: root certificates

2025-03-15 Thread Jerome Forissier
Hi Simon, On 3/13/25 14:23, Jerome Forissier wrote: > > > On 3/13/25 13:51, Simon Glass wrote: >> Hi Jerome, >> >> On Fri, 7 Mar 2025 at 10:49, Jerome Forissier >> wrote: >>> >>> Hi Simon, >>> >>> On 3/4/25 16:46, Simon Glass wrote: Hi Jerome, On Thu, 27 Feb 2025 at 09:43, Jerome

Re: [resend v2 04/13] drivers: Enabled Kconfig and Makefile for i3c support

2025-03-15 Thread Tom Rini
On Fri, Mar 14, 2025 at 12:08:53PM +0800, dinesh.mani...@altera.com wrote: > From: Dinesh Maniyam > > Add new i3c driver to U-Boot drivers. > > Signed-off-by: Dinesh Maniyam > --- > drivers/Kconfig | 2 ++ > drivers/Makefile | 1 + > drivers/i3c/Kconfig | 16 > dr

[PATCH v5 05/46] x86: qemu: Enable dhrystone

2025-03-15 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

Re: [PATCH 00/10] clk: imx: Use Clock frameworkt to register UART clocks

2025-03-15 Thread Fabio Estevam
Hi Adam, On Sat, Mar 15, 2025 at 12:37 PM Adam Ford wrote: > I ran the config that failed on my V3, and it passes that build test, > but I don't want to waste your time if it fails on others I don't know > about. Can you point me to documentation on how to test this across > multiple boards/pla

[PATCH v5 06/46] x86: qemu: Avoid accessing BSS too early

2025-03-15 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 v5 20/46] x86: Rename the _D dirty flag

2025-03-15 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 v5 37/46] acpi: Mark struct acpi_rsdp as packed

2025-03-15 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 v5 24/46] x86: Update cpuid_eax et al to work on amd64

2025-03-15 Thread Simon Glass
The existing functions work but the register clobbers are wrong, so strange bugs results. The original functions were taken from a very old version of Linux. Update them from Linux 6.13 Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to update cpuid_eax et a

[PATCH v5 09/46] x86: Drop use of CONFIG_REALMODE_DEBUG

2025-03-15 Thread Simon Glass
This option is not actually defined in Kconfig anymore. Use a normal debug print instead, which has a similar effect. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/bios.c| 18 -- arch/x86/lib/bios_interrupts.c | 6 ++ 2 files changed, 10 ins

[PATCH v5 11/46] x86: Add 64-bit entries to the GDT

2025-03-15 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 v5 18/46] x86: Use the same GDT when jumping to long mode

2025-03-15 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 v5 33/46] x86: Add a new API for e820

2025-03-15 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 +

  1   2   >