[PATCH V2] drivers: usb: host: fix prevent memory leak in interrupt message submission

2025-05-16 Thread ant . v . moryakov
From: AntonMoryakov Static analyzer detected a potential memory leak in _ehci_submit_int_msg() when backbuffer returned from _ehci_poll_int_queue does not match the original buffer. In this case, the allocated interrupt queue was not destroyed before returning, leading to a memory leak. Correcti

Re: [PATCH] drivers: usb: host: fix prevent memory leak in interrupt message submission

2025-05-16 Thread Anton Moryakov
Hi Fabio, Thanks for the review. Yes, this is v2 — the issue Tom pointed out (unreachable `goto` after `return`) was fixed by replacing it with `result = -EINVAL; goto err;`. In v3 I’ve now removed the leftover comment. No other functional changes. Best regards, Anton пт, 16 мая 2025 г. в 22:59

Re: [PATCH] drivers: usb: host: fix prevent memory leak in interrupt message submission

2025-05-16 Thread Fabio Estevam
On Fri, May 16, 2025 at 4:43 PM wrote: > @@ -1557,6 +1557,7 @@ static int _ehci_submit_int_msg(struct usb_device *dev, > unsigned long pipe, > debug("got wrong buffer back (%p instead of %p)\n", > backbuffer, buffer); > result = -EINVAL; > +

[PATCH] drivers: usb: host: fix prevent memory leak in interrupt message submission

2025-05-16 Thread ant . v . moryakov
From: Anton Moryakov Ensure int_queue is properly destroyed when receiving wrong buffer by adding error handling path. Fixes memory leak that occurred when backbuffer validation failed. Signed-off-by: Anton Moryakov --- drivers/usb/host/ehci-hcd.c | 5 + 1 file changed, 5 insertions(+) di

Re: Please pull u-boot-watchdog/master

2025-05-16 Thread Tom Rini
On Fri, May 16, 2025 at 06:42:11PM +0200, Stefan Roese wrote: > Hi Tom, > > please pull this next batch of mostly cyclic patches from Rasmus: > Oh, and can you please update the .git/config here like you did for the marvell PR? b4 doesn't like the git@ syntax so I had to do this manually :) Ap

Re: [PATCH] drivers: usb: host: fix prevent memory leak in interrupt message submission

2025-05-16 Thread Tom Rini
On Fri, May 16, 2025 at 09:57:11PM +0300, Anton Moryakov wrote: > Thanks Tom — you're right, that `goto` after `return` is unreachable. I'll > fix that and resend with the corrected flow. OK. Please make sure that for all of the patches you're posting, you're not adding warnings. You can enable C

Re: [PATCH] drivers: usb: host: fix prevent memory leak in interrupt message submission

2025-05-16 Thread Anton Moryakov
Thanks Tom — you're right, that `goto` after `return` is unreachable. I'll fix that and resend with the corrected flow. пт, 16 мая 2025 г. в 21:31, Tom Rini : > On Fri, May 16, 2025 at 08:54:34PM +0300, ant.v.morya...@gmail.com wrote: > > > From: Anton Moryakov > > > > Ensure int_queue is proper

[PATCH] lib: add NULL pointer check for %s format

2025-05-16 Thread ant . v . moryakov
From: Anton Moryakov Handle NULL pointer case in string formatting (%s) by printing '(null)' instead of dereferencing NULL pointer. Makes behavior consistent with standard printf implementations and prevents potential crashes. Signed-off-by: Anton Moryakov " --- lib/tiny-printf.c | 2 ++ 1 file

Re: [PATCH] drivers: usb: host: fix prevent memory leak in interrupt message submission

2025-05-16 Thread Tom Rini
On Fri, May 16, 2025 at 08:54:34PM +0300, ant.v.morya...@gmail.com wrote: > From: Anton Moryakov > > Ensure int_queue is properly destroyed when receiving wrong buffer > by adding error handling path. Fixes memory leak that occurred > when backbuffer validation failed. > > Signed-off-by: Anton

[PATCH] drivers: usb: host: fix prevent memory leak in interrupt message submission

2025-05-16 Thread ant . v . moryakov
From: Anton Moryakov Ensure int_queue is properly destroyed when receiving wrong buffer by adding error handling path. Fixes memory leak that occurred when backbuffer validation failed. Signed-off-by: Anton Moryakov --- drivers/usb/host/ehci-hcd.c | 5 + 1 file changed, 5 insertions(+) di

[PATCH] drivers: scsi: fix: memory leak in do_scsi_scan_one()

2025-05-16 Thread ant . v . moryakov
From: Anton Moryakov Free allocated name buffer when blk_create_devicef() fails to prevent memory leak. After successful device creation, the name ownership is transferred to the device structure and should not be freed manually. Signed-off-by: Anton Moryakov " --- drivers/scsi/scsi.c | 4 +++-

Please pull u-boot-watchdog/master

2025-05-16 Thread Stefan Roese
-0600) are available in the Git repository at: g...@source.denx.de:u-boot/custodians/u-boot-watchdog tags/u-boot-watchdog-20250516 for you to fetch changes up to 6f0a3cd7bcdd4ce25b5ad253a6ebad88d4b94fbe: cyclic: document new guarantees for cyclic_(un)register (2025-05-16

Re: [PATCH 0/3] make cyclic_(un)register idempotent

2025-05-16 Thread Stefan Roese
On 07.05.25 12:58, Rasmus Villemoes wrote: Three small patches I've been meaning to send for a while; I really believe (as I now learnt Thomas Gleixner also does) this is the way timer frameworks should behave. Rasmus Villemoes (3): cyclic: make cyclic_unregister() idempotent cyclic: make

Re: [PATCH] [RFC]: dtc: Add Kconfig option to pad device tree blob

2025-05-16 Thread Tom Rini
On Fri, May 02, 2025 at 01:38:26PM -0500, Eric Schikschneit wrote: > This will allow arch(s) that use device tree blobs to pad the end of the > device tree so they can be modified by board files at run time. This will > help prevent errors such as FDT_ERR_NOSPACE from occuring. > > Signed-off-by:

Re: [PATCH] drivers: spi: fix deref ater null.might in spi-uclass.c

2025-05-16 Thread Anton Moryakov
I can then leave only + if (!dev) { + ret = -ENODEV; + goto err; + } + but make it higher How do you like this option? пт, 16 мая 2025 г. в 19:20, Simon Glass : > Hi, > > On Fri, 16 May 2025 at 14:51, wrote: > > > > From: Anton Moryakov > > > > The stati

Re: [PATCH] drivers: spi: fix deref ater null.might in spi-uclass.c

2025-05-16 Thread Simon Glass
Hi, On Fri, 16 May 2025 at 14:51, wrote: > > From: Anton Moryakov > > The static analyzer (Svace) reported > After having been compared to a NULL value at spi-uclass.c:465, > pointer 'dev' is passed as 1st parameter in call to function 'dev_get_flags' > at spi-uclass.c:469, where it is dereferen

Re: Please pull u-boot-dm

2025-05-16 Thread Tom Rini
On Fri, 16 May 2025 09:36:14 +0200, Simon Glass wrote: > https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/26199 > https://dev.azure.com/simon0972/u-boot/_build/results?buildId=78&view=results > > > The following changes since commit 4c26de2eea6bcf5f27b13da0372d27d767cd38e3: > >

Re: Please pull u-boot-marvell/master

2025-05-16 Thread Tom Rini
On Fri, 16 May 2025 13:42:02 +0200, Stefan Roese wrote: > please pull this next batch of mostly Marvell related patches: > > > - mvebu_espressobin_ultra-88f3720_defconfig: enable hwrng > - kirkwood: Convert to DM_SERIAL for Kirkwood

[PATCH] boot: fix memory leaks by freeing token.val in pxe_utils.c

2025-05-16 Thread ant . v . moryakov
From: Anton Moryakov Added free(t.val) for T_STRING case - Added free(t.val) in T_EOL and T_EOF cases - Added free(t.val) in default case - Added free(t.val) on error conditions - Prevents memory leaks from get_token() allocations Signed-off-by: Anton Moryakov --- boot/pxe_utils.c | 21 +

[PATCH] tools: fix memory leak in ibbp_dir_add() on buffer_from_file() failure

2025-05-16 Thread ant . v . moryakov
From: Anton Moryakov - Added buffer_delete(&manifest) before returning COMMAND_ERR. - Prevents memory leak when file loading fails. Signed-off-by: Anton Moryakov --- tools/ifwitool.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/ifwitool.c b/tools/ifwitool.c ind

Re: [PATCH] drivers: spi: fix deref ater null.might in spi-uclass.c

2025-05-16 Thread Tom Rini
On Fri, May 16, 2025 at 03:50:53PM +0300, ant.v.morya...@gmail.com wrote: > From: Anton Moryakov > > The static analyzer (Svace) reported > After having been compared to a NULL value at spi-uclass.c:465, > pointer 'dev' is passed as 1st parameter in call to function 'dev_get_flags' > at spi-ucl

Re: [PATCH] binman: add atf-bl1 to etypes

2025-05-16 Thread Simon Glass
On Thu, 15 May 2025 at 17:16, Bryan Brattlof wrote: > > Some SoCs require a Trusted Firmware-A (TF-A) AP Trusted ROM (BL1) to > initialize the SoC before U-Boot can run properly. Add an atf-bl1 etype > so we can properly package BL1 into a final binary > > Signed-off-by: Bryan Brattlof > --- > M

Re: [PATCH 1/2] test: allow multiple config options in buildconfigspec

2025-05-16 Thread Simon Glass
On Sun, 4 May 2025 at 07:27, Heinrich Schuchardt wrote: > > > > Simon Glass schrieb am Sa., 3. Mai 2025, 23:27: >> >> Hi Heinrich, >> >> On Sat, 3 May 2025 at 07:32, Heinrich Schuchardt >> wrote: >> > >> > In some cases we have alternative configuration options that supply the >> > same function

Re: [PATCH] mkimage: do a rough estimate for the size needed for hashes/signatures

2025-05-16 Thread Simon Glass
Hi Rasmus, On Fri, 16 May 2025 at 14:54, Rasmus Villemoes wrote: > > Background: > > I have several customers that will be using a certain remote signing > service for signing their images, in order that the private keys are > never exposed outside that company's secure servers. This is done via

Re: [PATCH v4 17/22] passage: Add a qemu test for ARM

2025-05-16 Thread Simon Glass
Hi Tom, On Thu, 15 May 2025 at 22:45, Tom Rini wrote: > > On Thu, May 15, 2025 at 09:26:54PM +0200, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 14 May 2025 at 23:58, Tom Rini wrote: > > > > > > On Sat, May 10, 2025 at 03:42:15PM +0200, Simon Glass wrote: > > > > > > > Check that the standard

Re: [PATCH v4 3/5] ram: rockchip: Fix dependency of RAM_ROCKCHIP_DEBUG

2025-05-16 Thread Quentin Schulz
Hi Lukasz, On 5/15/25 5:55 PM, Lukasz Czechowski wrote: The RAM_ROCKCHIP_DEBUG can be used only if DEBUG_UART is available, otherwise it won't have any effect. I think it used to have an effect before patch 2/5 no? If that is the case, I would recommend to reorder the patches so that 3/5 is

Re: [PATCH v4 2/5] debug_uart: Replace debug functions with dummies if CONFIG_DEBUG_UART is not set

2025-05-16 Thread Quentin Schulz
Hi Lukasz, On 5/15/25 5:55 PM, Lukasz Czechowski wrote: In case DEBUG UART is not used, define dummy macros replacing the actual function implementations that will not be available. This allows to compile code and avoid linker errors. Redefine the DEBUG_UART_FUNCS macro if DEBUG UART is not avai

[PATCH] tools: fix handle leak in ifdtool.c

2025-05-16 Thread ant . v . moryakov
From: Anton Moryakov Prevent file descriptor leaks by properly closing 'fd' and 'new_fd' when fstat() or write() operations fail. - Added close(fd) before return in open_for_read() if fstat() fails. - Added close(new_fd) before return in write_image() if write() fails. - No close needed if open(

Re: [PATCH v4 1/5] efi: stub: Define debug uart functions only if CONFIG_DEBUG_UART is enabled

2025-05-16 Thread Quentin Schulz
Hi Lukasz, On 5/15/25 5:55 PM, Lukasz Czechowski wrote: Initialize the debug uart only in case CONFIG_DEBUG_UART is enabled. The _debug_uart_putc is used internally by debug uart functions, so it must be also included inside #ifdef block, otherwise it will cause compilation warnings. Signed-off

Re: [PATCH 4/4] usb: onboard-hub: Add support for Cypress HX3 family

2025-05-16 Thread Quentin Schulz
Hi Lukasz, On 4/25/25 12:56 PM, Lukasz Czechowski wrote: The HX3 is a family of USB3.0 hub controllers that comes in different variants: CYUSB330x/CYUSB331x/CYUSB332x/CYUSB230x. To support this hub, controlling of reset pin and two power supplies is required. The reset time is set to 10ms, based

Re: [PATCH] scripts: kconfig: fix deref after null in menu.c

2025-05-16 Thread Tom Rini
On Fri, May 16, 2025 at 05:56:11PM +0300, ant.v.morya...@gmail.com wrote: > From: Anton Moryakov > > Static analyzer detected a potential NULL pointer dereference when 'sym' > pointer is passed to for_all_prompts() and other functions after being > checked for NULL earlier in the function. > >

Re: [PATCH 3/4] usb: onboard-hub: Add support for multiple power supplies

2025-05-16 Thread Quentin Schulz
Hi Lukasz, On 4/25/25 12:56 PM, Lukasz Czechowski wrote: Some of the onboard hubs require multiple power supplies, so extend the driver to support them. The implementation is inspired by the kernel driver, as introduced by commit [1] in the v6.10 kernel. [1] https://github.com/torvalds/linux/c

[PATCH] scripts: kconfig: fix deref after null in menu.c

2025-05-16 Thread ant . v . moryakov
From: Anton Moryakov Static analyzer detected a potential NULL pointer dereference when 'sym' pointer is passed to for_all_prompts() and other functions after being checked for NULL earlier in the function. The issue could occur when called from gstr get_relations_str() with NULL symbol pointer.

Re: [PATCH 2/4] usb: onboard-hub: Set the reset gpio pin before freeing

2025-05-16 Thread Quentin Schulz
Hi Lukasz, On 4/25/25 12:56 PM, Lukasz Czechowski wrote: In the usb_onboard_hub_remove, the reset gpio, if available, is freed. The pin state however, remains unchanged, as set in the usb_onboard_hub_reset. The hub is then left enabled. During second onboard hub probing, the hub is initially en

Re: [PATCH 1/4] usb: onboard-hub: Use the ofnode to check if the peer-hub was probed

2025-05-16 Thread Quentin Schulz
Hi Lukasz, On 4/25/25 12:56 PM, Lukasz Czechowski wrote: Currently the check in usb_onboard_hub_bind is relying on specific compatible string for the Michrochip USB5744. Replace this with more generic approach that will allow to add new types of devices to the of_match table. Because the driver

Re: [PATCH v3 21/22] global: Avoid indirect inclusion of from

2025-05-16 Thread Martyn Welch
On 16/05/2025 00:31, Tom Rini wrote: Now that env_get_ip() has been removed, the include file does not need anything from . Furthermore, include/env.h itself includes other headers which can lead to longer indirect inclusion paths. To prepare to remove from fix all of the remaining places w

[PATCH v2] fdt: Allow expanding the devicetree during relocation

2025-05-16 Thread Simon Glass
Some boards set fdt_high to -1 which means that the FDT is not relocated in boot_relocate_fdt(). A comment in that function says that we assume there is space after the existing fdt to use for padding, with the padding size set to CONFIG_SYS_FDT_PAD However, there is no guarantee that this space

Re: [PATCH RFC 0/4] fit: print conf node compatibles + use property string constants

2025-05-16 Thread Quentin Schulz
Hi all, On 4/9/25 5:10 PM, Quentin Schulz wrote: This does a bit of "cleanup" by reusing constants for some FIT properties instead of having the same string in multiple places. Additionally, this adds a new constant for the compatible property in FIT configuration nodes[1] which is useful for F

Re: [PATCH 1/2 v2] tools: binman: control.py: Propagate bootph-all/bootph-some-ram properties to supernodes

2025-05-16 Thread Quentin Schulz
Hi Moteen, On 5/16/25 1:41 PM, Moteen Shah wrote: As per bootph schema, bootph-* property in child node should be implied in their parent, but this feature is not implemented in the U-Boot proper stage (before relocation) resulting in devices not being bound because of the missing bootph-all or

Re: [PATCH] ARM: dts: imx93-phycore: Migrate to OF_UPSTREAM

2025-05-16 Thread Sumit Garg
On Fri, May 16, 2025 at 12:46:02PM +0200, Primoz Fiser wrote: > Migrate to OF_UPSTREAM for phyCORE-i.MX93 since board can use upstream > Linux kernel device-tree for phyBOARD-Segin-i.MX93. > > Signed-off-by: Primoz Fiser > --- > arch/arm/dts/Makefile | 3 +- > arch/arm/dts/imx

[PATCH] drivers: spi: fix deref ater null.might in spi-uclass.c

2025-05-16 Thread ant . v . moryakov
From: Anton Moryakov The static analyzer (Svace) reported After having been compared to a NULL value at spi-uclass.c:465, pointer 'dev' is passed as 1st parameter in call to function 'dev_get_flags' at spi-uclass.c:469, where it is dereferenced at device.h:240. Correct explained: 1. Added dev

[PATCH] mach-snapdragon: of_fixup: Drop USB dr_mode override for RB1/2

2025-05-16 Thread Sumit Garg
From: Sumit Garg The default DIP switch configuration on RB1/2 is to enable flashing support via USB type-c port either using QDL or fastboot. It's just cumbersome to get the host mode working in U-Boot via DIP switch toggle when you need the flashing capability using the type-c port. So instead

[PATCH] mkimage: do a rough estimate for the size needed for hashes/signatures

2025-05-16 Thread Rasmus Villemoes
Background: I have several customers that will be using a certain remote signing service for signing their images, in order that the private keys are never exposed outside that company's secure servers. This is done via a pkcs#11 interface that talks to the remote signing server, and all of that w

Re: [PATCH v3 21/22] global: Avoid indirect inclusion of from

2025-05-16 Thread Jerome Forissier
On 5/16/25 00:31, Tom Rini wrote: > Now that env_get_ip() has been removed, the include file does > not need anything from . Furthermore, include/env.h itself > includes other headers which can lead to longer indirect inclusion > paths. To prepare to remove from fix all of the > remaining places

[PATCH] boot: fix memory leak in bootmeth-uclass.c

2025-05-16 Thread ant . v . moryakov
From: Anton Moryakov The static analyzer (Svace) reported a memory leak in bootmeth_setup_iter_order(): Dynamic memory referenced by 'order' was allocated by calloc() at bootmeth-uclass.c:113 but could be lost when returning error codes. This fix: 1. Adds proper error handling with goto/cleanu

Re: [PATCH] cmd: tlv_eeprom: return after successful read from EEPROM

2025-05-16 Thread Stefan Roese
On 16.04.25 08:13, Martin Schiller wrote: Commit f6eff35b8c19 ("cmd: tlv_eeprom: handle -ENODEV error from read_eeprom function") removed the needed 'return 0' after a successful read. As a result, the usage message is shown when 'tlv_eeprom read' is successfully called. Let's fix it by adding t

Please pull u-boot-marvell/master

2025-05-16 Thread Stefan Roese
t tags/u-boot-marvell-20250516-v2 for you to fetch changes up to 7afcde09399297765945d57be4535291b2ac9549: cmd: tlv_eeprom: return after successful read from EEPROM (2025-05-16 08:17:43 +0200) Benjamin Schneider (1):

[PATCH 1/2 v2] tools: binman: control.py: Propagate bootph-all/bootph-some-ram properties to supernodes

2025-05-16 Thread Moteen Shah
As per bootph schema, bootph-* property in child node should be implied in their parent, but this feature is not implemented in the U-Boot proper stage (before relocation) resulting in devices not being bound because of the missing bootph-all or bootph-some-ram property in the parent node. To miti

[PATCH 2/2 v2] tools: binman: ftest.py: Add testcase for bootph-* propagation

2025-05-16 Thread Moteen Shah
Add a testcase to ensure that scan_and_prop_bootph() actually propagates bootph-* properties to supernodes. Signed-off-by: Moteen Shah Reviewed-by: Simon Glass --- tools/binman/ftest.py | 24 tools/binman/test/347_bootph_prop.dts | 21 ++

[PATCH 0/2 v2] Propagate bootph-all and bootph-some-ram property to all supernodes

2025-05-16 Thread Moteen Shah
In the U-Boot pre-relocation stage, if the parent node lacks bootph-all/bootph-some-ram property and the driver lacks a pre-reloc flag, all of its subsequent subnodes gets skipped over from driver binding—even if they have a bootph* property. This series addresses the issue by scanning through all

Re: [PATCH] configs: mvebu_espressobin_ultra-88f3720_defconfig: enable hwrng

2025-05-16 Thread Stefan Roese
On 17.04.25 21:37, Benjamin Schneider wrote: This device has a hardware random number generator. Linux can use this feature to randomize the location of the kernel in memory for better security. However, that functionality is only available if the bootloader firmware provides it. Enable support f

Re: [PATCH 0/2] Enable DM_SERIAL for Marvell Kirkwood Synology DS109.

2025-05-16 Thread Stefan Roese
On 06.05.25 04:58, Tony Dinh wrote: Many Synology boards (Kirkwood, Armada 37x, and Armada 38x SoCs) use the PIC16F1829 connecting to UART1 to provide certain functions. Mainly for LEDs control, but it can also perform hard reset, power off, and sending beeps. See dts/upstream/src/arm/marvell/ar

[PATCH] ARM: dts: imx93-phycore: Migrate to OF_UPSTREAM

2025-05-16 Thread Primoz Fiser
Migrate to OF_UPSTREAM for phyCORE-i.MX93 since board can use upstream Linux kernel device-tree for phyBOARD-Segin-i.MX93. Signed-off-by: Primoz Fiser --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/imx93-phyboard-segin.dts | 117 --- arch/arm/dts/imx93-phy

Re: [PATCH 4/4] arm: dts: k3-am62a7-phycore-r5*: Remove clocks from main_timer0

2025-05-16 Thread Wadim Egorov
Am 15.05.25 um 14:38 schrieb Manorit Chawdhry: The commit 79d91e77f4c2 ("clk: ti: clk-k3-pll: Add additional robustness steps to the PLL sequence") introduced a change which requires the main_timer0 to not rely on it's own clocks which anyways was wrong. Fix it by removing the clock dependency f

Re: [PATCH 2/4] arm: dts: k3-am625-phycore-r5*: Remove clocks from main_timer0

2025-05-16 Thread Wadim Egorov
Am 15.05.25 um 14:38 schrieb Manorit Chawdhry: The commit 79d91e77f4c2 ("clk: ti: clk-k3-pll: Add additional robustness steps to the PLL sequence") introduced a change which requires the main_timer0 to not rely on it's own clocks which anyways was wrong. Fix it by removing the clock dependency f

[PATCH] pci: zynqmp: Fix the pcireg base

2025-05-16 Thread Venkatesh Yadav Abbarapu
The pcireg base is not assigned to any address, reading the pcireg base with PS_LINKUP_OFFSET which is incorrect and giving random values. So update the pcireg base from devicetree so that we can read the valid PCIE link status and PHY ready status. Signed-off-by: Venkatesh Yadav Abbarapu --- dr

[PATCH v4 2/2] cmd/Kconfig: select CMD_WGET if ARCH_QEMU

2025-05-16 Thread Adriano Cordova
select CMD_WGET for ARCH_QEMU. This way HTTP can be tested on the qemu platforms in CI. Signed-off-by: Adriano Cordova Reviewed-by: Tom Rini --- (no changes since v1) cmd/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index f21d27cb27f..f

[PATCH v4 1/2] CI testing: add http server to CI tests

2025-05-16 Thread Adriano Cordova
Add an http server to CI tests so that HTTP booting and loading can be tested. Signed-off-by: Adriano Cordova Reviewed-by: Tom Rini --- changes in v2: - Remove HTTP_SERVER argument for test.py changes in v4: - Remove comment in .gitlab-ci.yml that was preventing parsing .azure-pipeli

[PATCH v4 0/2] test/py: enable HTTP testing

2025-05-16 Thread Adriano Cordova
Enable HTTP server in CI to support HTTP tests in pytest QEMU does not emulate an HTTP server, unlike other services like DHCP or TFTP. To enable HTTP tests during CI runs, start a simple Python HTTP server on port 80. This allows tests that require HTTP access to run. The HTTP server is launche

[PATCH 9/9] pytests/test_efi_loader: Test EFI_HTTP_PROTOCOL

2025-05-16 Thread Adriano Cordova
Download via both TFTP and HTTP an EFI application implementing an HTTP client using the U-Boot EFI_HTTP_PROTOCOL implementation as backend, and from the application then download a payload via HTTP. Signed-off-by: Adriano Cordova --- test/py/tests/test_efi_loader.py | 63 +++

[PATCH 8/9] efi_loader: Add netdump efi app

2025-05-16 Thread Adriano Cordova
Add a netdump EFI app to test the U-Boot EFI network stack. Signed-off-by: Adriano Cordova --- lib/efi_loader/Makefile | 1 + lib/efi_loader/netdump.c | 851 +++ 2 files changed, 852 insertions(+) create mode 100644 lib/efi_loader/netdump.c diff --git a/l

[PATCH 7/9] efi_loader/net/ip4_config2: Add support for multiple instances

2025-05-16 Thread Adriano Cordova
Fix support multiple instances of EFI_IP4_CONFIG2_PROTOCOL in efi_ip4_config2.c. Station addresses and policies should be per protocol instance and not global. Signed-off-by: Adriano Cordova --- lib/efi_loader/net/efi_ip4_config2.c | 73 +++- 1 file changed, 49 insertions

[PATCH 6/9] net/eth-uclass: Add eth_get_ethaddr_from_dev

2025-05-16 Thread Adriano Cordova
Add eth_get_ethaddr_from_dev() to retrieve the MAC address of a specific eth udevice. The function eth_get_ethaddr() preserves its behavior of returning the MAC address of the current eth udevice. Signed-off-by: Adriano Cordova --- include/net-common.h | 1 + net/eth-uclass.c | 11 -

[PATCH 4/9] efi_loader/net: Remove simple network and pxe protocols from efi_net.c

2025-05-16 Thread Adriano Cordova
efi_net.c should only [un]install protocols, leaving the actual implementation to efi_simple_network.c and efi_pxe.c. Signed-off-by: Adriano Cordova --- include/efi_api.h | 28 +- include/efi_loader.h| 10 +- lib/efi_loader/net/Makefile |

[PATCH 5/9] efi_loader/net: Remove efi_net_obj struct

2025-05-16 Thread Adriano Cordova
As all the protocols moved out of efi_net.c, and EFI net object is just an efi_object struct with network protocols installed on it, so efi_net_obj is not needed anymore. Signed-off-by: Adriano Cordova --- include/efi_loader.h| 2 +- lib/efi_loader/net/efi_net.c|

[PATCH 3/3] arm: dts: imx6ulz-bsh-smm-m2: Fix reset using wdt-reboot driver

2025-05-16 Thread Michael Trimarchi
commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") introduced a regression that 'reset' command unable to reset imx6ulz based BSH module's modules in the u-boot. BSH module's imx6, imx6ulz-bsh-smm-m2.dts Fixes: 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") Signed-off-by: Mic

[PATCH 3/9] efi_loader/net: Rename efi_ipconfig.c to efi_ip4_config2.c

2025-05-16 Thread Adriano Cordova
Rename to keep it consistent with the actial EFI protocol name Signed-off-by: Adriano Cordova --- lib/efi_loader/net/Makefile | 2 +- lib/efi_loader/net/{efi_ipconfig.c => efi_ip4_config2.c} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename lib/efi_loader/n

[PATCH 2/3] configs: imx6ulz_smm_m2: Add board watchdog reset configuration

2025-05-16 Thread Michael Trimarchi
Add the configuration that allow to reset the board from reset cmd Signed-off-by: Michael Trimarchi --- configs/imx6ulz_smm_m2_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/imx6ulz_smm_m2_defconfig b/configs/imx6ulz_smm_m2_defconfig index 15a3ec5c627..436bfb78cc2 1006

[PATCH 2/9] efi_loader/net: Remove http and ip4_config2 data from efi_net.c

2025-05-16 Thread Adriano Cordova
efi_net.c should only [un]install protocols, leaving the actual implementation to efi_http.c and efi_ipconfig.c Signed-off-by: Adriano Cordova --- include/efi_loader.h | 6 ++ lib/efi_loader/net/efi_http.c | 20 +--- lib/efi_loader/net/efi_ipconfig.c | 19 ++

[PATCH 1/3] arm: dts: imx6ulz-bsh-smm-m2-u-boot: Drop soc node

2025-05-16 Thread Michael Trimarchi
The node is specified on the parent architecture u-boot.dtsi file Signed-off-by: Michael Trimarchi --- arch/arm/dts/imx6ulz-bsh-smm-m2-u-boot.dtsi | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/dts/imx6ulz-bsh-smm-m2-u-boot.dtsi b/arch/arm/dts/imx6ulz-bsh-smm-m2-u-boot.dtsi in

[PATCH 0/9] efi_loader/net: spit protocols and add testing

2025-05-16 Thread Adriano Cordova
This series depends on series 456885 "test/py: enable HTTP testing". Create lib/efi_loader/net/, implement each EFI network protocol in a separated file under lib/efi_loader/net/ and let efi_net.c be used only to un/install protocols. The network protocol EFI_FOO_PROTOCOL is now implemented in lib

[PATCH 1/9] lib/efi_loader: Move EFI network files into /lib/efi_loader/net/

2025-05-16 Thread Adriano Cordova
Created /lib/efi_loader/net/ and moved efi_net.c, efi_http.c, and efi_ipconfig.c into it. Previously, efi_net.c contained implementations for all supported EFI network protocols, which made the file bloated and hard to maintain. Now, each protocol has its own file under net/. efi_net.c is responsi

Please pull u-boot-dm

2025-05-16 Thread Simon Glass
Hi Tom, https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/26199 https://dev.azure.com/simon0972/u-boot/_build/results?buildId=78&view=results The following changes since commit 4c26de2eea6bcf5f27b13da0372d27d767cd38e3: fs.h: Switch to using rtc_def.h (2025-05-13 11:30:09 -0600)