Re: [PATCH 19/21] py/tests: test_efi_selftest: Add test for counting EFI netdevices

2025-01-24 Thread Simon Glass
Hi Tom, On Thu, 23 Jan 2025 at 07:42, Tom Rini wrote: > > On Thu, Jan 23, 2025 at 07:37:26AM -0700, Simon Glass wrote: > > Hi Adriano, > > > > On Wed, 22 Jan 2025 at 10:10, Adriano Cordova wrote: > > > > > > check that the number of ethernet udevices matches the number of simple > > > network pr

Re: [PATCH v3 0/5] Add pmem node for preserving distro ISO's

2025-01-24 Thread Tobias Waldekranz
On fre, jan 24, 2025 at 13:39, Ilias Apalodimas wrote: > Heinrich, Tobias > > There's a slight problem that I forgot when commenting v2. > > Heinrich's idea of plugging this into blkmap is eventually the right > thing to do. > > However, when I started coding this I only added the pmem memory as

[PATCH] rockchip: rk3399: nanopi-r4s: Support v1.8 SD cards in SPL

2025-01-24 Thread Justin Klaassen
The NanoPi R4S supports UHS-I (up to SDR104) SD cards, however using any of these 1.8v modes results in a boot failure in SPL upon soft reboot. On the R4S the SD card power cannot be cycled, so upon reboot the SD card continues to operate at 1.8v but the GPIO is configured by default at the 3.3v l

Re: [PATCH v2 2/3] common: board: make initcalls static

2025-01-24 Thread Jerome Forissier
On 1/24/25 17:23, Marek Vasut wrote: > On 1/24/25 4:57 PM, Jerome Forissier wrote: >> >> >> On 1/24/25 11:35, Marek Vasut wrote: >>> On 1/24/25 10:10 AM, Jerome Forissier wrote: +#define INITCALL(_call) \ +    do { \ +    if (_call()) { \ +    printf("%s(): initca

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

2025-01-24 Thread Tom Rini
On Fri, Jan 24, 2025 at 02:31:15PM +0530, Harsha Vardhan V M wrote: > > > On 22/01/25 22:52, Tom Rini wrote: > > On Fri, Jan 10, 2025 at 11:12:47AM +0530, Harsha Vardhan V M wrote: > > > > > > > > > On 07/01/25 03:53, Tom Rini wrote: > > > > On Mon, Jan 06, 2025 at 12:06:25PM +0530, Harsha Vard

Re: [PATCH 19/21] py/tests: test_efi_selftest: Add test for counting EFI netdevices

2025-01-24 Thread Simon Glass
Hi Tom, On Fri, 24 Jan 2025 at 12:17, Tom Rini wrote: > > On Fri, Jan 24, 2025 at 11:57:28AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 23 Jan 2025 at 07:42, Tom Rini wrote: > > > > > > On Thu, Jan 23, 2025 at 07:37:26AM -0700, Simon Glass wrote: > > > > Hi Adriano, > > > > > > > > On

[PATCH] test/py: Add a report show test durations

2025-01-24 Thread Simon Glass
Execution time varies widely with the existing tests. Provides a summary of the time taken for each test, along with a histogram. Example: Duration : Number of tests : <1ms : 1 <8ms : 1 <20ms : # 20 <30ms : ##

Re: [PATCH 19/21] py/tests: test_efi_selftest: Add test for counting EFI netdevices

2025-01-24 Thread Tom Rini
On Fri, Jan 24, 2025 at 11:57:28AM -0700, Simon Glass wrote: > Hi Tom, > > On Thu, 23 Jan 2025 at 07:42, Tom Rini wrote: > > > > On Thu, Jan 23, 2025 at 07:37:26AM -0700, Simon Glass wrote: > > > Hi Adriano, > > > > > > On Wed, 22 Jan 2025 at 10:10, Adriano Cordova wrote: > > > > > > > > check t

Re: [PATCH v3 00/46] pxe: Support read_all() for extlinux and PXE

2025-01-24 Thread Tom Rini
On Thu, Dec 05, 2024 at 07:35:39PM -0700, Simon Glass wrote: > This series implements read_all() so that it is possible to read all the > files relating to a bootflow, make adjustments and then boot. > > Unfortunately quite a few things stand in the way, so this series > finishes off several pend

Re: [PATCH] test/py: Add a report show test durations

2025-01-24 Thread Tom Rini
On Fri, Jan 24, 2025 at 11:56:04AM -0700, Simon Glass wrote: > Execution time varies widely with the existing tests. Provides a summary > of the time taken for each test, along with a histogram. > > Example: > >Duration : Number of tests > : ==

Re: [PATCH v3 0/5] Add pmem node for preserving distro ISO's

2025-01-24 Thread Tom Rini
On Fri, Jan 24, 2025 at 01:39:45PM +0200, Ilias Apalodimas wrote: > Heinrich, Tobias > > There's a slight problem that I forgot when commenting v2. > > Heinrich's idea of plugging this into blkmap is eventually the right > thing to do. > > However, when I started coding this I only added the pme

Re: [PATCH v3 0/5] Add pmem node for preserving distro ISO's

2025-01-24 Thread Ilias Apalodimas
Heinrich, Tobias There's a slight problem that I forgot when commenting v2. Heinrich's idea of plugging this into blkmap is eventually the right thing to do. However, when I started coding this I only added the pmem memory as 'reserved' in the DT hoping that would work. Unfortunately, this depen

Re: [PATCH 2/2] rockchip: sdram: Fix reserve of 2 MiB at start of DRAM

2025-01-24 Thread Jonas Karlman
Hi Kever, On 2025-01-24 12:17, Kever Yang wrote: > Hi Jonas, > >     This patch has the same main change with Heiko's patch. > > https://patchwork.ozlabs.org/project/uboot/patch/20241121142731.1202209-9-he...@sntech.de/ > Ohh, I have completely missed that patch when testing the RK3576 series

Re: [PATCH v3 1/5] fdt: add support for adding pmem nodes

2025-01-24 Thread Sughosh Ganu
On Mon, 20 Jan 2025 at 19:32, Sughosh Ganu wrote: > > On Mon, 20 Jan 2025 at 18:01, Heinrich Schuchardt wrote: > > > > On 20.01.25 11:50, Sughosh Ganu wrote: > > > From: Masahisa Kojima > > > > > > One of the problems OS installers face, when running in EFI, is that > > > the mounted ISO after c

Re: [PATCH] fs: ubifs: Remove unnecessary assignment

2025-01-24 Thread Michael Nazzareno Trimarchi
On Fri, Jan 24, 2025 at 2:18 PM Michal Simek wrote: > > Variable self assignment has been found by clang. But Linux kernel already > fixed this problem by commit 2a068daf5742 ("ubifs: Remove unnecessary > assignment") and commit ae4c8081eb77 ("ubifs: remove unnecessary > assignment"). > > Signed-o

Re: [GIT PULL] Please pull u-boot-dfu-20250124

2025-01-24 Thread Tom Rini
On Fri, 24 Jan 2025 14:12:32 +0100, Mattijs Korpershoek wrote: > Please find some fixes for master: > > Android: > - Fix kcmdline null pointer dereference (reported by coverity and > multiple users) > - Move Igor to reviewers instead of maintainers for avb/ab > - Fix booting Android with AVB bu

Re: Git commit failed with mbedtls/framework

2025-01-24 Thread Tom Rini
On Fri, Jan 24, 2025 at 02:05:28PM +0800, ZHANG Yuntian wrote: > Hi Tom, > > On 2024/11/19 01:18, Tom Rini wrote: > > On Mon, Nov 18, 2024 at 12:16:18PM -0500, Raymond Mao wrote: > > > Hi Tom, > > > > > > On Mon, 18 Nov 2024 at 11:41, Tom Rini wrote: > > > > > > > On Mon, Nov 18, 2024 at 11:27:

Re: [PATCH v2 00/44] test: Improvements to ut command and test-suite running

2025-01-24 Thread Simon Glass
Hi Tom, On Wed, 22 Jan 2025 at 10:24, Tom Rini wrote: > > On Mon, Jan 20, 2025 at 02:25:22PM -0700, Simon Glass wrote: > > > The current method of running unit tests relies on subcommands of the > > ut command. Only the code in each subcommand knows how to find the tests > > related to that subco

Re: [PATCH 19/21] py/tests: test_efi_selftest: Add test for counting EFI netdevices

2025-01-24 Thread Tom Rini
On Fri, Jan 24, 2025 at 12:43:29PM -0700, Simon Glass wrote: > Hi Tom, > > On Fri, 24 Jan 2025 at 12:17, Tom Rini wrote: > > > > On Fri, Jan 24, 2025 at 11:57:28AM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Thu, 23 Jan 2025 at 07:42, Tom Rini wrote: > > > > > > > > On Thu, Jan 23, 20

Re: [PATCH v2] mmc: Remove alignment hole for cmdidx in struct mmc_cmd

2025-01-24 Thread Tom Rini
On Mon, Jan 20, 2025 at 12:35:26AM +0100, Jonas Karlman wrote: > Hi, > > On 2024-04-03 02:00, Jaehoon Chung wrote: > > Hi, > > > > On 1/28/24 01:29, Jonas Karlman wrote: > >> The alignment hole caused by cmdidx in struct mmc_cmd cause strange > >> issues together with the peephole2 optimization o

Re: [PATCH] rockchip: rk3399: nanopi-r4s: Support v1.8 SD cards in SPL

2025-01-24 Thread Jonas Karlman
Hi Justin, On 2025-01-24 22:19, Justin Klaassen wrote: > The NanoPi R4S supports UHS-I (up to SDR104) SD cards, however using any > of these 1.8v modes results in a boot failure in SPL upon soft reboot. > > On the R4S the SD card power cannot be cycled, so upon reboot the SD > card continues to o

Re: [PATCH] treewide: Replace Maximumm with Maximum in Kconfig symbol description

2025-01-24 Thread Tom Rini
On Tue, 21 Jan 2025 16:36:11 +0100, Marek Vasut wrote: > Replace Maximumm with Maximum in Kconfig symbol description, fix a typo. > No functional change. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH v2 00/44] test: Improvements to ut command and test-suite running

2025-01-24 Thread Tom Rini
On Mon, 20 Jan 2025 14:25:22 -0700, Simon Glass wrote: > The current method of running unit tests relies on subcommands of the > ut command. Only the code in each subcommand knows how to find the tests > related to that subcomand. > > This is not ideal and we now have quite a few subcommands whic

Re: [PATCH] arm64: configs: Remove obsolete TI config

2025-01-24 Thread Tom Rini
On Mon, 20 Jan 2025 14:20:42 +0530, Aashvij Shenai wrote: > This config is causing conflicts with how fdtfile variable is > initialized. > For K3 devices, CONFIG_DEFAULT_DEVICE_TREE= "ti/k3-.dtb". > With CONFIG_TI_FDT_FOLDER_PATH also prefixing "ti", fdtfile is then > "ti/ti/k3-.dtb". This variabl

Re: [PATCH v2 1/1] test: str_ut.c depends on CONFIG_STRTO

2025-01-24 Thread Tom Rini
On Mon, 20 Jan 2025 09:29:32 +0100, Heinrich Schuchardt wrote: > The string conversion functions are implemented in lib/strto.c which is > only compiled if CONFIG_STRTO=y. > > Applied to u-boot/master, thanks! -- Tom

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

2025-01-24 Thread Harsha Vardhan V M
On 22/01/25 22:52, Tom Rini wrote: On Fri, Jan 10, 2025 at 11:12:47AM +0530, Harsha Vardhan V M wrote: On 07/01/25 03:53, Tom Rini wrote: 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

[PATCH v2 2/3] common: board: make initcalls static

2025-01-24 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 v2 0/3] Static initcalls

2025-01-24 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

[PATCH v2 1/3] arm: asm/system.h: mrc and mcr need .arm if __thumb2__ is not set

2025-01-24 Thread Jerome Forissier
The mcr and msr instructions are available in Thumb mode only if Thumb2 is supported. Therefore, if __thumb2__ is not set, make sure we switch to ARM mode by inserting a .arm directive in the inline assembly. Fixes LTO link errors with kirkwood platforms, triggered by a later commit: tools/build

[PATCH v2 3/3] initcall: remove initcall_run_list()

2025-01-24 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] net: mediatek: fix coding style of AN8855 switch driver

2025-01-24 Thread Weijie Gao
This patch fixed the following coding style suggested by checkpatch.pl: 1. Use tab instead of space 2. Use BIT() instead of << 3. Use mdelay for long time delay 4. Remove useless parenthesises Signed-off-by: Weijie Gao --- drivers/net/mtk_eth/an8855.c | 89 ++-- 1

Re: [PATCH v2 0/3] Static initcalls

2025-01-24 Thread Jerome Forissier
On 1/24/25 10:10, Jerome Forissier wrote: > Re: [PATCH v2 0/3] Static initcalls Apologies for the wrong reroll count. This is actually v5 as mentioned in the change log. -- Jerome

Re: [PATCH v2 2/3] common: board: make initcalls static

2025-01-24 Thread Marek Vasut
On 1/24/25 10:10 AM, Jerome Forissier wrote: +#define INITCALL(_call) \ + do { \ + if (_call()) { \ + printf("%s(): initcall %s() failed\n", __func__, \ + #_call); \ + hang(); \ + } \ +

Re: [PATCH v4 01/20] mailbox: add i.MX95 Messaging Unit (MU) driver

2025-01-24 Thread Marek Vasut
On 1/15/25 2:28 PM, Alice Guo wrote: > This id ported from Linux (v6.12.8) driver > drivers/mailbox/imx-mailbox.c. 'id' -> 'is' typo . It is better to include the commit SHA from which this was ported over too, so the follow up patches in Linux can be easily ported over as they appear. If the

Re: [PATCH v4 04/20] firmware: scmi: add pin control protocol support to SCMI agent

2025-01-24 Thread Marek Vasut
On 1/15/25 2:28 PM, Alice Guo wrote: From: Alice Guo This patch adds SCMI pin control protocol support so that the pin controller driver based on SCMI, such as drivers/pinctrl/nxp/pinctrl-scmi.c, can be bound to the SCMI agent device whose protocol id is 0x19. Signed-off-by: Alice Guo --- d

Re: [PATCH v1] toradex: tdx-cfg-block: fix switch to user partition

2025-01-24 Thread Francesco Dolcini
On Fri, Jan 24, 2025 at 04:14:30PM +0100, Stefan Eichenberger wrote: > From: Stefan Eichenberger > > The Toradex configuration block is stored in the first boot partition of > the eMMC. After reading the configuration block, U-Boot switches back to > the user partition. Currently, this operation

Re: [PATCH v4 15/20] imx: Kconfig: IMX8_ROMAPI is not configured for i.MX95

2025-01-24 Thread Marek Vasut
On 1/15/25 2:29 PM, Alice Guo wrote: From: Alice Guo i.MX95 only supports low power boot, which means A55 is kicked by M33. There is no ROM runs on A55 in such case so that deselect IMX8_ROMAPI for i.MX95. Signed-off-by: Alice Guo --- arch/arm/mach-imx/Kconfig | 2 +- 1 file changed, 1 ins

Re: [PATCH v4 20/20] imx95_evk: add i.MX95 19x19 EVK board basic support

2025-01-24 Thread Marek Vasut
On 1/15/25 2:29 PM, Alice Guo wrote: From: Ye Li This patch adds i.MX95 19x19 EVK board basic support. Messaging unit for EdgeLock Secure Enclave, messaging unit for System Manager, uSDHC for SD Card, gpio, lpuart are supported now. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by:

Re: [PATCH v4 17/20] tools: imx8image: add i.MX95 support

2025-01-24 Thread Marek Vasut
On 1/15/25 2:29 PM, Alice Guo wrote: From: Alice Guo i.MX95 uses binman to invoke mkimage to create image container. 2 image containers are needed currently. The first one is composed of ahab-container.img, LPDDR firmware images, OEI images, System Manager image and u-boot-spl.bin. The second o

Re: [PATCH v4 12/20] imx9: scmi: add i.MX95 SoC and clock related code

2025-01-24 Thread Marek Vasut
On 1/15/25 2:28 PM, Alice Guo wrote: +void init_uart_clk(u32 index) +{ + u32 clock_id; + + switch (index) { + case 0: + clock_id = IMX95_CLK_LPUART1; + break; + case 1: + clock_id = IMX95_CLK_LPUART2; + break; +

Re: [PATCH v4 03/20] pinctrl: nxp: add a pin controller driver based on SCMI pin control protocol

2025-01-24 Thread Marek Vasut
On 1/15/25 2:28 PM, Alice Guo wrote: From: Alice Guo This patch provides a pinctrl driver based on SCMI pin control protocol. Currently, only the PINCTRL_CONFIG_SET command is implemented. Signed-off-by: Ranjani Vaidyanathan Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye L

Re: [PATCH v4 05/20] scmi_protocols: add SCMI misc protocol protocol_id and message_id for getting the ROM passover data

2025-01-24 Thread Marek Vasut
On 1/15/25 2:28 PM, Alice Guo wrote: From: Peng Fan SCMI misc protocol is intended for miscellaneous functions which are device specific and are usually defined to access bit fields. This patch adds SCMI misc protocol protocol_id and message_id for getting the ROM passover data. Is this iMX sp

Re: [PATCH v2 2/3] arm: mmp: add initial support for PXA1908 SoC

2025-01-24 Thread Duje Mihanović
On Thursday 23 January 2025 13:25:11 Central European Standard Time Stefan Roese wrote: > While building applied on top of latest version, > I get this error: > > arch/arm/mach-mmp/board.c:55:7: error: conflicting types for > 'board_fdt_blob_setup'; have 'void *(int *)' > 55 | void *board_fdt

[PATCH v3 2/3] arm: mmp: add initial support for PXA1908 SoC

2025-01-24 Thread Duje Mihanović
Add initial support for Marvell PXA1908. The SoC has 4 Cortex-A53 cores, a GC7000UL GPU and a variety of peripheral controllers. Signed-off-by: Duje Mihanović --- MAINTAINERS| 8 arch/arm/Kconfig | 11 + arch/arm/Makefile | 1 + arch/arm/dts/pxa19

[PATCH v3 0/3] Initial support for PXA1908 and samsung-coreprimevelte

2025-01-24 Thread Duje Mihanović
Hello, This series adds initial support for Marvell's PXA1908 ARM64 SoC and Samsung's Galaxy Core Prime VE LTE, a smartphone based on said SoC. On this board, U-Boot is used as a secondary bootloader to work around certain quirks of the factory S-Boot. Signed-off-by: Duje Mihanović --- Changes

[PATCH v3 1/3] serial: ns16550: Add Intel XScale support

2025-01-24 Thread Duje Mihanović
Add compatible string for the Intel XScale variant of the 16550. Needed to match upstream. Signed-off-by: Duje Mihanović --- drivers/serial/ns16550.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index 039da835f5f6cdd30080bd16e0b0da7be16

[PATCH v3 3/3] board: samsung: add initial support for coreprimevelte board

2025-01-24 Thread Duje Mihanović
Samsung Galaxy Core Prime VE LTE is an entry-level PXA1908-based smartphone. It has 1GB of DRAM, 8GB eMMC and USB connectivity. Signed-off-by: Duje Mihanović --- arch/arm/dts/Makefile | 2 + arch/arm/dts/pxa1908-samsung-coreprimevelte.dts | 74 +

Re: [PATCH v3 05/13] power-domain: Add refcounting

2025-01-24 Thread Miquel Raynal
Hi Simon, >> > If we >> > want a power domain to actually turn off, how many times do we need to >> > call power_domain_off()? >> >> We do not? It is why I add refcounting, if a power domain has 2 >> consumers, each consumer says whether it needs the power domain to be on >> or off and the core wi

Re: [PATCH v4 02/20] firmware: scmi: smt: Interrupt communication enable

2025-01-24 Thread Marek Vasut
On 1/15/25 2:28 PM, Alice Guo wrote: From: Viorel Suman i.MX95 System Manager uses interrupt driven communication which requires the caller to set Bit[0] of channel flags to 1. When transmission completes and the previous general purpose interrupt has been processed by the other core, i.MX95 Sy

Re: [PATCH v4 08/20] clk: scmi: check the clock state/parent/rate control permissions

2025-01-24 Thread Marek Vasut
On 1/15/25 2:28 PM, Alice Guo wrote: [...] +static int scmi_clk_get_permissions(struct udevice *dev, int clkid, u32 *perm) +{ + u32 version; + int ret; + + ret = scmi_generic_protocol_version(dev, SCMI_PROTOCOL_ID_CLOCK, &version); + if (ret) { + debug("ge

Re: [PATCH v4 10/20] scmi_protocols: update struct scmi_base_discover_list_protocols_out

2025-01-24 Thread Marek Vasut
On 1/15/25 2:28 PM, Alice Guo wrote: From: Ye Li @protocols is an array of protocol identifiers that are implemented, excluding the Base protocol. The number of elements of @protocols is specified by callee-side. Currently, set it to 4 is enough for i.MX95. Can you please try something like thi

Re: [PATCH v4 14/20] imx9: add i.MX95 Kconfig and Makefile

2025-01-24 Thread Marek Vasut
On 1/15/25 2:29 PM, Alice Guo wrote: From: Ye Li This patch adds i.MX95 Kconfig and Makefile. i.MX95 uses SCMI. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/mach-imx/imx9/Kconfig | 8 arch/arm/mach-imx/imx9/Makefile | 9 +++-- 2 files ch

Re: [PATCH v4 13/20] spl: imx: use trampoline buffer to load images to secure region

2025-01-24 Thread Marek Vasut
On 1/15/25 2:29 PM, Alice Guo wrote: From: Ye Li When SPL loading image to secure region, for example, ATF and tee to DDR secure region. Because the USDHC controller is non-secure master, it can't access this region and will cause loading issue. So use a trampoline buffer in non-secure region,

Re: [PATCH v4 11/20] scmi: add the macro SCMI_MSG

2025-01-24 Thread Marek Vasut
On 1/15/25 2:28 PM, Alice Guo wrote: From: Peng Fan This patch adds the macro SCMI_MSG for protocols that do not need _in_array. Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- include/scmi_agent.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/i

Re: [PATCH v2 2/3] common: board: make initcalls static

2025-01-24 Thread Jerome Forissier
On 1/24/25 11:35, Marek Vasut wrote: > On 1/24/25 10:10 AM, Jerome Forissier wrote: >> +#define INITCALL(_call) \ >> +    do { \ >> +    if (_call()) { \ >> +    printf("%s(): initcall %s() failed\n", __func__, \ >> +   #_call); \ >> +    hang(); \ >> +   

[PATCH 1/1] cmd: sbi: add bhype SBI implementation

2025-01-24 Thread Heinrich Schuchardt
Bhyve is the hypervisor used by FreeBSD. Signed-off-by: Heinrich Schuchardt --- cmd/riscv/sbi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c index 5ecf56781c1..b013c8c8d4e 100644 --- a/cmd/riscv/sbi.c +++ b/cmd/riscv/sbi.c @@ -30,6 +30,7 @@ static struct

[PATCH v2 1/1] cmd: sbi: add bhyve SBI implementation ID

2025-01-24 Thread Heinrich Schuchardt
Bhyve is the hypervisor used by FreeBSD. Signed-off-by: Heinrich Schuchardt --- v2: Fix typo in subject --- cmd/riscv/sbi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c index 5ecf56781c1..b013c8c8d4e 100644 --- a/cmd/riscv/sbi.c +++ b/cmd/riscv/sb

Re: [PATCH v2 2/3] common: board: make initcalls static

2025-01-24 Thread Marek Vasut
On 1/24/25 4:57 PM, Jerome Forissier wrote: On 1/24/25 11:35, Marek Vasut wrote: On 1/24/25 10:10 AM, Jerome Forissier wrote: +#define INITCALL(_call) \ +    do { \ +    if (_call()) { \ +    printf("%s(): initcall %s() failed\n", __func__, \ +   #_call); \ +  

Re: Pull request: SoCFPGA changes for u-boot-socfpga-next-20250124

2025-01-24 Thread Tom Rini
ng > > The following changes since commit 2eed5a1ff36217372e19f7513bd07077fc76718a: > > Merge https://source.denx.de/u-boot/custodians/u-boot-snapdragon > (2025-01-22 11:23:35 -0600) > > are available in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-socfpga.git &g

Re: [PATCH] fs: ubifs: Remove unnecessary assignment

2025-01-24 Thread Heiko Schocher
Hi Michal, On 24.01.25 14:17, Michal Simek wrote: Variable self assignment has been found by clang. But Linux kernel already fixed this problem by commit 2a068daf5742 ("ubifs: Remove unnecessary assignment") and commit ae4c8081eb77 ("ubifs: remove unnecessary assignment"). Signed-off-by: Michal

[PATCH 01/10] pinctrl: imx: Push imx_pinctrl_ops into drivers and staticize

2025-01-24 Thread Marek Vasut
Move imx_pinctrl_ops into drivers and staticize. This is preparatory patch for follow up pinctrl drivers which will not use this variant of imx_pinctrl_ops content. This should not change size, as most of the deployments compiled in one pinctrl driver anyway. No functional change. Signed-off-by: M

[PATCH 03/10] pinctrl: imx: Drop .remove callback for SCU variant

2025-01-24 Thread Marek Vasut
The return callback for SCU variant of the pinctrl drivers does nothing but returns 0. Remove the return callback from the SCU driver itself, that has the same effect. No functional change. Signed-off-by: Marek Vasut --- Cc: Alice Guo Cc: Jesse Taube Cc: Peng Fan Cc: Peter Robinson Cc: Tim Ha

[PATCH 02/10] pinctrl: imx: Rename imx_pinctrl_ops to match drivers

2025-01-24 Thread Marek Vasut
Rename the structure instances to match driver names, so they can be easily looked up e.g. in objdump and readelf outputs. No functional change. Signed-off-by: Marek Vasut --- Cc: Alice Guo Cc: Jesse Taube Cc: Peng Fan Cc: Peter Robinson Cc: Tim Harvey Cc: Tom Rini Cc: u-boot@lists.denx.de

[PATCH 04/10] pinctrl: imx: Inline struct imx_pinctrl_soc_info access into probe

2025-01-24 Thread Marek Vasut
The probe function is identical across all the pinctrl drivers. Inline the imx_pinctrl_soc_info access into imx_pinctrl_probe() and drop all the duplicate probe functions. No functional change. Signed-off-by: Marek Vasut --- Cc: Alice Guo Cc: Jesse Taube Cc: Peng Fan Cc: Peter Robinson Cc: Ti

[PATCH 06/10] pinctrl: imx: Rename imx_pinctrl_remove() to imx_pinctrl_remove_mmio()

2025-01-24 Thread Marek Vasut
The current implementation of imx_pinctrl_remove() is specific to the MMIO accessor implementation, rename the function to imx_pinctrl_remove_mmio() to make this obvious. No functional change. Signed-off-by: Marek Vasut --- Cc: Alice Guo Cc: Jesse Taube Cc: Peng Fan Cc: Peter Robinson Cc: Tim

[PATCH 07/10] pinctrl: imx: Split imx_pinctrl_set_state() into common and mmio parts

2025-01-24 Thread Marek Vasut
Split imx_pinctrl_set_state() into imx_pinctrl_set_state_common() and imx_pinctrl_set_state_mmio(). The former does the common configuration parsing, the later does call imx_pinctrl_set_state_common() and then does pin configuration using either SCU or MMIO accesses. The SCU part is going to be mov

[PATCH 08/10] pinctrl: imx: Split imx_pinctrl_set_state_scu() from imx_pinctrl_set_state_mmio()

2025-01-24 Thread Marek Vasut
Call imx_pinctrl_set_state_common() from imx_pinctrl_scu_conf_pins(), rename imx_pinctrl_scu_conf_pins() to imx_pinctrl_set_state_scu(). Get rid of the unnecessary ifdeffery in pinctrl-imx.h in the process. Remove all SCU support from pinctrl-imx.c imx_pinctrl_set_state_mmio() which makes that func

[PATCH 05/10] pinctrl: imx: Split imx_pinctrl_probe() into common and mmio parts

2025-01-24 Thread Marek Vasut
Split imx_pinctrl_probe() into imx_pinctrl_probe_common() and imx_pinctrl_probe_mmio(). The former does the common setup, the later does the common setup and MMIO access configuration. The common setup can be used as-is for SCU based systems, update the pinctrl-imx8 to call only the common setup, u

[PATCH 10/10] pinctrl: imx: Split MMIO accessors into pinctrl-imx-mmio.c

2025-01-24 Thread Marek Vasut
Split MMIO accessors into pinctrl-imx-mmio.c and build this file only if Kconfig symbol PINCTRL_IMX_MMIO is selected. Select PINCTRL_IMX_MMIO Kconfig symbol for all but pinctrl-imx8.c driver, which does not use the MMIO accessors. This reduces the amount of code compiled on platforms which do not u

[PATCH 09/10] pinctrl: imx: Fold imx_pinctrl_set_state_scu() from pinctrl-imx8.c

2025-01-24 Thread Marek Vasut
The only user of the SCU pinctrl code is pinctrl-imx8.c , fold the entire pinctrl-scu.c code into pinctrl-imx8.c and remove the matching Kconfig symbols and Makefile entries. No functional change. Signed-off-by: Marek Vasut --- Cc: Alice Guo Cc: Jesse Taube Cc: Peng Fan Cc: Peter Robinson Cc:

Re: [PATCH 10/13] arm: dts: rockchip: Add rk3528-pinctrl.dtsi

2025-01-24 Thread Kever Yang
Hi Jonas, On 2025/1/24 06:48, Jonas Karlman wrote: From: Joseph Chen Import rk3528-pinctrl.dtsi from vendor U-Boot and Linux tag linux-6.1-stan-rkr5 with the hdmi-pins-idle node removed due to missing label reference to pcfg_output_low_pull_down. Signed-off-by: Joseph Chen Signed-off-by: Jon

Re: [PATCH 2/2] rockchip: sdram: Fix reserve of 2 MiB at start of DRAM

2025-01-24 Thread Kever Yang
Hi Jonas,     This patch has the same main change with Heiko's patch. https://patchwork.ozlabs.org/project/uboot/patch/20241121142731.1202209-9-he...@sntech.de/ Thanks, - Kever On 2025/1/24 06:02, Jonas Karlman wrote: Normally 2 MiB at the beginning of DRAM is reserved for TF-A use. However,

[PATCH] fs: ubifs: Remove unnecessary assignment

2025-01-24 Thread Michal Simek
Variable self assignment has been found by clang. But Linux kernel already fixed this problem by commit 2a068daf5742 ("ubifs: Remove unnecessary assignment") and commit ae4c8081eb77 ("ubifs: remove unnecessary assignment"). Signed-off-by: Michal Simek --- fs/ubifs/recovery.c | 1 - fs/ubifs/sca

Re: Git commit failed with mbedtls/framework

2025-01-24 Thread ZHANG Yuntian
Hi Tom, On 2024/11/19 01:18, Tom Rini wrote: On Mon, Nov 18, 2024 at 12:16:18PM -0500, Raymond Mao wrote: Hi Tom, On Mon, 18 Nov 2024 at 11:41, Tom Rini wrote: On Mon, Nov 18, 2024 at 11:27:06AM -0500, Raymond Mao wrote: Hi Tom, On Mon, 18 Nov 2024 at 10:37, Tom Rini wrote: On Mon, Nov

Re: [PATCH] fs: ubifs: Remove unnecessary assignment

2025-01-24 Thread Alexander Dahl
Hello Michal, Am Fri, Jan 24, 2025 at 02:17:57PM +0100 schrieb Michal Simek: > Variable self assignment has been found by clang. But Linux kernel already > fixed this problem by commit 2a068daf5742 ("ubifs: Remove unnecessary > assignment") and commit ae4c8081eb77 ("ubifs: remove unnecessary > ass

Re: [PATCH v3] led: add function naming option from linux

2025-01-24 Thread Heiko Schocher
Hello Tom, On 23.01.25 15:33, Tom Rini wrote: On Thu, Jan 23, 2025 at 12:49:06PM +0100, Heiko Schocher wrote: in linux we have the option to create the name of a led optionally through the following properties: - function - color - function-enumerator This patch adds support for parsing this

Re: [PATCH 10/13] arm: dts: rockchip: Add rk3528-pinctrl.dtsi

2025-01-24 Thread Jonas Karlman
Hi Kever, On 2025-01-24 12:25, Kever Yang wrote: > Hi Jonas, > > On 2025/1/24 06:48, Jonas Karlman wrote: >> From: Joseph Chen >> >> Import rk3528-pinctrl.dtsi from vendor U-Boot and Linux tag >> linux-6.1-stan-rkr5 with the hdmi-pins-idle node removed due to missing >> label reference to pcfg_o

[PATCH] xilinx: Enable meminfo command with mapping

2025-01-24 Thread Michal Simek
Enable meminfo command to be able to see where things are mapped. Signed-off-by: Michal Simek --- configs/amd_versal2_virt_defconfig | 2 ++ configs/microblaze-generic_defconfig | 2 ++ configs/xilinx_versal_net_virt_defconfig | 2 ++ configs/xilinx_versal_virt_defconfig | 2 ++ c

[PATCH] Fix fastboot handling of partitions when no slots are, supported

2025-01-24 Thread Federico Fuga
The fastboot module has a bug that prevents some command to work properly on devices that haven't an Android-like partition scheme, that is, just one spl and one kernel partition, instead of the redundant scheme with _a and _b slots. This is the schema of our NAND storage (board is based on an Al

[PATCH] xilinx: Enable mkfwumdata tool for a/b update

2025-01-24 Thread Michal Simek
Build mkfwumdata tool by default for building ab mdata structure. Signed-off-by: Michal Simek --- configs/amd_versal2_virt_defconfig | 1 + configs/xilinx_versal_virt_defconfig | 1 + configs/xilinx_zynqmp_virt_defconfig | 1 + 3 files changed, 3 insertions(+) diff --git a/configs/amd_versal

[GIT PULL] Please pull u-boot-dfu-20250124

2025-01-24 Thread Mattijs Korpershoek
ble in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-dfu.git tags/u-boot-dfu-20250124 for you to fetch changes up to 6745cbed6edc06fae7fbc4b360e39c3963d57b13: bootstd: android: Allow boot with AVB failures when unlocked (2025-01-23 15:2

[PATCH v1] toradex: tdx-cfg-block: fix switch to user partition

2025-01-24 Thread Stefan Eichenberger
From: Stefan Eichenberger The Toradex configuration block is stored in the first boot partition of the eMMC. After reading the configuration block, U-Boot switches back to the user partition. Currently, this operation always targets mmc device 0, even when the configuration block is stored on mmc

Re: [PATCH v2 2/3] common: board: make initcalls static

2025-01-24 Thread Marek Vasut
On 1/24/25 6:23 PM, Jerome Forissier wrote: On 1/24/25 17:23, Marek Vasut wrote: On 1/24/25 4:57 PM, Jerome Forissier wrote: On 1/24/25 11:35, Marek Vasut wrote: On 1/24/25 10:10 AM, Jerome Forissier wrote: +#define INITCALL(_call) \ +    do { \ +    if (_call()) { \ +    prin