回复: 回复: [PATCH v6 02/20] firmware: scmi: smt: Interrupt communication enable

2025-03-03 Thread Alice Guo (OSS)
> -邮件原件- > 发件人: Marek Vasut > 发送时间: 2025年3月4日 5:05 > 收件人: Alice Guo (OSS) ; Tom Rini > ; Stefano Babic ; Fabio Estevam > ; dl-uboot-imx ; Lukasz > Majewski ; Sean Anderson ; Simon > Glass ; Alper Nebi Yasak ; > Alice Guo > 抄送: u-boot@lists.denx.de; Viorel Suman ; Ye Li > > 主题: Re: 回复: [P

Re: [PATCH v1] board: verdin-am62: fix missing memory fixup call

2025-03-03 Thread Francesco Dolcini
On Mon, Mar 03, 2025 at 07:16:03PM +0100, Stefan Eichenberger wrote: > From: Stefan Eichenberger > > The commit bc07851897bd ("board: ti: Pull redundant DDR functions to a > common location and Fixup DDR size when ECC is enabled") broke DRAM > support for the Verdin AM62. This was partially fixed

[PATCH 4/4] Add reset config options for k1

2025-03-03 Thread Huan Zhou
Add RESET_SPACEMIT_K1 option in config --- arch/riscv/cpu/k1/Kconfig | 1 + configs/bananapi-f3_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/riscv/cpu/k1/Kconfig b/arch/riscv/cpu/k1/Kconfig index d9cd8dce96426bb4cbe9ff38385a4c66116fe341..14201df80f2c0bf304225ef6d8dc8e7

[PATCH 2/4] riscv: reset: k1: Add reset driver

2025-03-03 Thread Huan Zhou
Add spacemit reset driver. --- drivers/reset/Kconfig | 7 + drivers/reset/Makefile| 1 + drivers/reset/reset-spacemit-k1.c | 438 ++ 3 files changed, 446 insertions(+) diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index

[PATCH 3/4] riscv: dts: k1: add reset controller node in device tree

2025-03-03 Thread Huan Zhou
Add reset-controller in k1 device tree. --- arch/riscv/dts/k1.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/riscv/dts/k1.dtsi b/arch/riscv/dts/k1.dtsi index 514be453dbaf6713cdf4ad5a5d653488297ebb83..b3e3f81d4dfa6e64dd4a00625280e43b014a6915 100644 --- a/arch/riscv

[PATCH 1/4] riscv: dt-binding: k1: Add reset driver binding definition.

2025-03-03 Thread Huan Zhou
Add dt-binding for reset driver. --- include/dt-bindings/reset/spacemit-k1-reset.h | 118 ++ 1 file changed, 118 insertions(+) diff --git a/include/dt-bindings/reset/spacemit-k1-reset.h b/include/dt-bindings/reset/spacemit-k1-reset.h new file mode 100644 index 00

[PATCH 0/4] Add k1 reset driver for bananapi-bpif3 platform.

2025-03-03 Thread Huan Zhou
Add device tree bindings and basic reset controller driver for the BananaPi F3 board.This initial implementation supports the core reset functionality. Signed-off-by: Huan Zhou --- Huan Zhou (4): riscv: dt-binding: k1: Add reset driver binding definition. riscv: reset: k1: Add reset

[PATCH v2] mailbox: add i.MX Messaging Unit (MU) driver

2025-03-03 Thread Alice Guo (OSS)
From: Peng Fan This patch provides a driver for i.MX Messaging Unit (MU) using the commom mailbox framework. This is ported from Linux (v6.12.8) driver drivers/mailbox/imx-mailbox.c. Its commit SHA is: 39d7d6177f0c ("mailbox: imx: use device name in interrupt name") Signed-off-by: Viorel Suman

回复: 回复: [PATCH v1] mailbox: add i.MX Messaging Unit (MU) driver

2025-03-03 Thread Alice Guo (OSS)
> -邮件原件- > 发件人: Marek Vasut > 发送时间: 2025年3月4日 10:58 > 收件人: Alice Guo (OSS) ; tr...@konsulko.com; > sba...@denx.de; feste...@gmail.com; dl-uboot-imx ; > lu...@denx.de; sean...@gmail.com; s...@chromium.org; > alpernebiya...@gmail.com > 抄送: u-boot@lists.denx.de; Peng Fan ; Viorel Suman > ; Ye

RE: [RFC PATCH] UFS: Remove the timeout while send command

2025-03-03 Thread Abbarapu, Venkatesh
[AMD Official Use Only - AMD Internal Distribution Only] Hi Neil, > -Original Message- > From: neil.armstr...@linaro.org > Sent: Friday, February 28, 2025 8:55 PM > To: Abbarapu, Venkatesh ; u-boot@lists.denx.de > Cc: Simek, Michal ; bhupesh.li...@gmail.com; n- > fran...@ti.com; git (AMD

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

2025-03-03 Thread Anand Moon
Hi Sebastian, On Mon, 3 Mar 2025 at 21:36, Sebastian Reichel wrote: > > Hi Anand, > > On Mon, Mar 03, 2025 at 01:08:24PM +0530, Anand Moon wrote: > > On Sat, 1 Mar 2025 at 23:41, Peter Robinson wrote: > > > On Thu, 27 Feb 2025 at 06:01, Anand Moon wrote: > > >> On Thu, 27 Feb 2025 at 00:15, Seb

Re: [PATCH 0/2] arm: mach-k3: j722s: Enable ESM to support watchdogs

2025-03-03 Thread Tom Rini
On Mon, 17 Feb 2025 16:27:16 +0530, Keerthy wrote: > The series enables watchdog support on J722S. It adds ESM initialization > to enable routing the watchdog events to trigger a SOC reset. > > Tested on J722S-EVM. > > Keerthy (2): > arm: mach-k3: j722s: Initialize MCU & MAIN Domain ESMs > c

Re: [PATCH v3 01/15] net: ti: am65-cpsw-nuss: Define bind method for CPSW driver

2025-03-03 Thread Vankar, Chintan
Hello Roger, On 2/27/2025 3:56 PM, Roger Quadros wrote: Hi, On 25/02/2025 13:48, Chintan Vankar wrote: CPSW driver is defined as UCLASS_MISC driver which needs to be probed explicitly. Define bind method for CPSW driver to scan and bind ethernet-ports with UCLASS_ETH driver which will eventual

Re: [PATCH] lib: ecdsa: fix prevent memory leak in ecdsa_add_verify_data

2025-03-03 Thread Tom Rini
On Fri, 07 Feb 2025 00:47:59 +0300, Anton Moryakov wrote: > - Ensure `free_ctx` is called in both error and success paths. > - Fix memory leak in `ctx.signature` when `do_add` fails." > > Triggers found by static analyzer Svace. > > Applied to u-boot/next, thanks! -- Tom

Re: [PATCH 0/2] J784S4: Enable USB DFU boot, DFU flash and UMS configs

2025-03-03 Thread Tom Rini
On Tue, 18 Feb 2025 15:19:43 +0530, Siddharth Vadapalli wrote: > This series enables configs for USB DFU boot, USB DFU flash and USB Mass > Storage command for J784S4. The device-tree changes required for enabling > these features will be posted as patches to Linux device-tree mailing lists > and

Re: [PATCH v2] dma: ti: k3-udma: Avoid Memory leak issues during dma memcpy

2025-03-03 Thread Tom Rini
On Thu, 20 Feb 2025 18:48:27 +0530, Prasanth Babu Mantena wrote: > During dma memcpy, bcdma descriptor gets allocated for each > transaction and not freed after completion of that transaction. > So, avoid the memory allocation for every transaction. > > Add one descriptor per dma device and alloc

Re: [PATCH] tiny-printf: emit \0 as %c

2025-03-03 Thread Tom Rini
On Thu, 20 Feb 2025 13:49:07 +0100, A. Sverdlin wrote: > The current code has a problematic corner case with formar "%c" and > 0 as parameter. The proper zero byte is being emitted into digit buffer > but the final copy into outstr expects null-terminated string and doesn't > copy the required \0

[PATCH v2] xilinx: Remove tftp block size 4096

2025-03-03 Thread Padmarao Begari
The zynqmp gem driver support max MTU size 1536, so remove tftp block size 4096 from defconfig and use default tftp block size. Fixes: a33b4b96b3cf ("xilinx: Enable MBEDTLS/LWIP/WGET and WGET_HTTPS") Signed-off-by: Padmarao Begari --- Changes in v2: - Add fixes in commit message - Remove tftp blo

Re: 回复: [PATCH v1] mailbox: add i.MX Messaging Unit (MU) driver

2025-03-03 Thread Marek Vasut
On 3/4/25 3:35 AM, Alice Guo (OSS) wrote: [...] +static const struct udevice_id ids[] = { + { .compatible = "fsl,imx6sx-mu", .data = (ulong)&imx_mu_cfg_imx6sx }, + { .compatible = "fsl,imx7ulp-mu", .data = (ulong)&imx_mu_cfg_imx7ulp }, + { .compatible = "fsl,imx8ulp-mu", .data

Re: [PATCH 16/17] efi_loader: Move .dynamic out of .text in EFI

2025-03-03 Thread Sam Edwards
On Sun, Feb 23, 2025 at 11:34 PM Heinrich Schuchardt wrote: > > > > Sam Edwards schrieb am Mo., 24. Feb. 2025, 06:56: >> >> This was not proper: A .text section is SHT_PROGBITS, while the .dynamic >> section is SHT_DYNAMIC. Attempting to combine them like this creates a >> section type mismatch.

回复: [PATCH v1] mailbox: add i.MX Messaging Unit (MU) driver

2025-03-03 Thread Alice Guo (OSS)
> -邮件原件- > 发件人: Marek Vasut > 发送时间: 2025年3月4日 4:06 > 收件人: Alice Guo (OSS) ; tr...@konsulko.com; > sba...@denx.de; feste...@gmail.com; dl-uboot-imx ; > lu...@denx.de; sean...@gmail.com; s...@chromium.org; > alpernebiya...@gmail.com > 抄送: u-boot@lists.denx.de; Peng Fan ; Viorel Suman > ; Ye

Re:Re: [PATCH v2 06/11] video: rockchip: Add VOP2 support

2025-03-03 Thread Andy Yan
Hi Danq, At 2025-03-02 12:09:34, "Dang Huynh" wrote: >Hi Chaoyi Chen, > >On Thursday, February 27, 2025 6:29:13 AM UTC Chaoyi Chen wrote: >> >> Could you use a naming prefix like "rkvop2" to explicitly indicate the >> use of vop2, thereby distinguishing it from rk_vop.c? >> >Yes. This will be

Re: [PATCH v2 06/11] video: rockchip: Add VOP2 support

2025-03-03 Thread Dang Huynh
Hi Chaoyi Chen, On Monday, March 3, 2025 9:48:14 AM UTC Chaoyi Chen wrote: > Hi Dang, > > On 2025/3/2 12:09, Dang Huynh wrote: > >>> + struct rk3568_vop_esmart *esmart = priv->regs + > > > > VOP2_ESMART_OFFSET(0); > > > >> You are assuming that the RK356X is always used ESMART0, which generally

Re: [PATCH v3 15/23] net: ravb: Allocate bb_miiphy using bb_miiphy_alloc() and fill in callbacks

2025-03-03 Thread Marek Vasut
On 2/28/25 2:28 PM, Paul Barker wrote: On 22/02/2025 20:33, Marek Vasut wrote: Allocate bb_miiphy using bb_miiphy_alloc() and fill in callbacks currently listed in bb_miiphy_buses[] array. This is a temporary duplication of assignment to avoid breakage, which will be removed in follow up patches

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

2025-03-03 Thread Marek Vasut
On 3/3/25 8:29 PM, Paul Barker wrote: On 02/03/2025 01:24, Marek Vasut wrote: Move miiphybb operations into separate struct bb_miiphy_bus_ops structure, add pointer to struct bb_miiphy_bus_ops into the base struct bb_miiphy_bus and access the ops through this pointer in miiphybb generic code. Th

Re: [PATCH v6 0/8] Add Starfive JH7110 Cadence USB driver

2025-03-03 Thread Marek Vasut
On 3/3/25 2:05 AM, Minda Chen wrote: On 2/21/25 8:41 AM, E Shattow wrote: On Thu, Jan 23, 2025 at 6:51 AM E Shattow wrote: On Wed, Jan 22, 2025 at 5:01 PM Minda Chen wrote: Add Starfive JH7110 Cadence USB driver and related PHY driver. So the codes can be used in visionfive2 and star6

Re: [PATCH v1] mailbox: add i.MX Messaging Unit (MU) driver

2025-03-03 Thread Marek Vasut
On 3/3/25 4:52 AM, Alice Guo (OSS) wrote: Hi, +static const struct udevice_id ids[] = { + { .compatible = "fsl,imx6sx-mu", .data = (ulong)&imx_mu_cfg_imx6sx }, + { .compatible = "fsl,imx7ulp-mu", .data = (ulong)&imx_mu_cfg_imx7ulp }, + { .compatible = "fsl,imx8ulp-mu", .data =

Re: 回复: [PATCH v6 10/20] scmi_protocols: update struct scmi_base_discover_list_protocols_out

2025-03-03 Thread Marek Vasut
On 3/3/25 11:43 AM, Alice Guo (OSS) wrote: Hi, diff --git a/include/scmi_protocols.h b/include/scmi_protocols.h index 2684f4177d..7ce73ddfae 100644 --- a/include/scmi_protocols.h +++ b/include/scmi_protocols.h @@ -141,11 +141,14 @@ struct scmi_base_discover_impl_version_out { * @status:

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

2025-03-03 Thread Marek Vasut
On 3/3/25 7:28 AM, Alice Guo (OSS) wrote: [...] diff --git a/include/scmi_protocols.h b/include/scmi_protocols.h index 7abb2a6f36..279ebbad44 100644 --- a/include/scmi_protocols.h +++ b/include/scmi_protocols.h @@ -24,6 +24,7 @@ enum scmi_std_protocol { SCMI_PROTOCOL_ID_SENSOR = 0x15,

Re: 回复: [PATCH v6 01/20] mailbox: add i.MX Messaging Unit (MU) driver

2025-03-03 Thread Marek Vasut
On 3/3/25 9:10 AM, Alice Guo (OSS) wrote: [...] +static const struct udevice_id ids[] = { + { .compatible = "fsl,imx6sx-mu", .data = (ulong)&imx_mu_cfg_imx6sx }, + { .compatible = "fsl,imx95-mu", .data = (ulong)&imx_mu_cfg_imx95 }, + { } +}; Doesn't 6.12.y also support MX7ULP

Re: 回复: [PATCH v6 02/20] firmware: scmi: smt: Interrupt communication enable

2025-03-03 Thread Marek Vasut
On 3/3/25 3:51 AM, Alice Guo (OSS) wrote: Hi, @@ -48,6 +58,9 @@ int scmi_dt_get_smt_buffer(struct udevice *dev, struct scmi_smt *smt) if (!smt->buf) return -ENOMEM; + if (IS_ENABLED(CONFIG_SCMI_TRANSPORT_SMT_INTR)) + scmi_smt_enable_intr(smt, true)

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

2025-03-03 Thread Marek Vasut
On 3/3/25 11:37 AM, Alice Guo (OSS) wrote: Hi, @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 this

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

2025-03-03 Thread Marek Vasut
On 3/3/25 9:04 AM, Alice Guo (OSS) wrote: [...] In Linux Kernel, there are two drivers, pinctrl-scmi.c and pinctrl-imx-scmi.c. Both follows ARM SCMI 3.2, but pinctrl-imx-scmi has some special settings to align with i.mx iomuxc array based settings, mux,input,pad and etc. In gerneral, imx part

Re: (subset) [u-boot-test-hooks PATCH 1/3] labgrid: Deal with strange Python error

2025-03-03 Thread Tom Rini
On Fri, 21 Feb 2025 13:32:40 -0700, Simon Glass wrote: > Add a way to work around an unexplained Python message which appears > sometimes with Python 3.12.3 > > Make the file executable while we are here. > > Applied to u-boot/u-boot-test-hooks.git/master, thanks! -- Tom

Re: [u-boot-test-hooks PATCH 1/2] labgrid-sjg: Add kea lab

2025-03-03 Thread Tom Rini
On Fri, 21 Feb 2025 13:43:01 -0700, Simon Glass wrote: > Add the current state of the kea lab as an example to others. > > This includes 48 boards, not all of which work. > > Applied to u-boot/u-boot-test-hooks.git/master, thanks! -- Tom

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

2025-03-03 Thread Paul Barker
On 02/03/2025 01:24, Marek Vasut wrote: > Move miiphybb operations into separate struct bb_miiphy_bus_ops > structure, add pointer to struct bb_miiphy_bus_ops into the base > struct bb_miiphy_bus and access the ops through this pointer in > miiphybb generic code. The variable reshuffling in miiphyb

Re: [GIT PULL] please pull fsl-qoriq-2025-3-3

2025-03-03 Thread Tom Rini
On Mon, 03 Mar 2025 10:34:53 +, Peng Fan wrote: > Please pull fsl-qoriq-2025-3-3. > > > Re-arm packet buffer in error case in tsec driver > fix LS1021a build > fix flush dcache alignment in caam_hash > --

Re: Pull request efi-2025-04-rc4

2025-03-03 Thread Tom Rini
On Sun, 02 Mar 2025 09:11:34 +0100, Heinrich Schuchardt wrote: > The following changes since commit b78f8677cde8b1dde31b66f5b780f2e9b62fba7f: > >arch: arm: dts: k3-am642-phycore-som-binman: Add custMpk to overlays > (2025-02-27 08:07:38 -0600) > > are available in the Git repository at: > >

Re: [PATCH v2 06/11] video: rockchip: Add VOP2 support

2025-03-03 Thread Chaoyi Chen
Hi Dang, On 2025/3/2 12:09, Dang Huynh wrote: Hi Chaoyi Chen, On Thursday, February 27, 2025 6:29:13 AM UTC Chaoyi Chen wrote: Could you use a naming prefix like "rkvop2" to explicitly indicate the use of vop2, thereby distinguishing it from rk_vop.c? Yes. This will be in v3. Thank you!

[PATCH v1] board: verdin-am62: fix missing memory fixup call

2025-03-03 Thread Stefan Eichenberger
From: Stefan Eichenberger The commit bc07851897bd ("board: ti: Pull redundant DDR functions to a common location and Fixup DDR size when ECC is enabled") broke DRAM support for the Verdin AM62. This was partially fixed with commit 3f866c47b582 ("board: verdin-am62: add dram_init_banksize"). Howev

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

2025-03-03 Thread Svyatoslav Ryhel
You may try this if you wish to simplify your uclass wrapper https://source.denx.de/u-boot/custodians/u-boot-tegra/-/commits/graph?ref_type=heads

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

2025-03-03 Thread Svyatoslav Ryhel
пн, 3 бер. 2025 р. о 19:06 Tom Rini пише: > > On Mon, Mar 03, 2025 at 09:31:37AM -0300, Fabio Estevam wrote: > > Hi Miquel, > > > > On Wed, Jan 29, 2025 at 7:22 AM Miquel Raynal > > wrote: > > > > > > In order to display a boot picture or an error message, the i.MX8MP > > > display pipeline must

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

2025-03-03 Thread Tom Rini
On Mon, Mar 03, 2025 at 09:31:37AM -0300, Fabio Estevam wrote: > Hi Miquel, > > On Wed, Jan 29, 2025 at 7:22 AM Miquel Raynal > wrote: > > > > In order to display a boot picture or an error message, the i.MX8MP > > display pipeline must be enabled. The SoC has support for various > > interfaces

Re: [PATCH] pci: dw_common: Set INCREASE_REGION_SIZE flag based on limit address

2025-03-03 Thread Tom Rini
On Mon, Mar 03, 2025 at 04:18:38PM +0100, Neil Armstrong wrote: > On 28/02/2025 18:08, Tom Rini wrote: > > On Fri, Feb 28, 2025 at 04:27:06PM +0100, Neil Armstrong wrote: > > > Hi, > > > > > > On 06/02/2025 09:49, Neil Armstrong wrote: > > > > Set the INCREASE_REGION_SIZE for the outbound iATU ent

Re: [PATCH] lib: ecdsa: fix prevent memory leak in ecdsa_add_verify_data

2025-03-03 Thread Quentin Schulz
Hi Anton, On 2/25/25 2:49 PM, Anton Moryakov wrote: - Ensure `free_ctx` is called in both error and success paths. - Fix memory leak in `ctx.signature` when `do_add` fails." Triggers found by static analyzer Svace. Signed-off-by: Anton Moryakov --- lib/ecdsa/ecdsa-libcrypto.c | 6 -- 1

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

2025-03-03 Thread Sebastian Reichel
Hi Anand, On Mon, Mar 03, 2025 at 01:08:24PM +0530, Anand Moon wrote: > On Sat, 1 Mar 2025 at 23:41, Peter Robinson wrote: > > On Thu, 27 Feb 2025 at 06:01, Anand Moon wrote: > >> On Thu, 27 Feb 2025 at 00:15, Sebastian Reichel > >> wrote: > >> > > >> > Hi, > >> > > >> > I have a couple of fixe

Re: [PATCH] pci: dw_common: Set INCREASE_REGION_SIZE flag based on limit address

2025-03-03 Thread Neil Armstrong
On 28/02/2025 18:08, Tom Rini wrote: On Fri, Feb 28, 2025 at 04:27:06PM +0100, Neil Armstrong wrote: Hi, On 06/02/2025 09:49, Neil Armstrong wrote: Set the INCREASE_REGION_SIZE for the outbound iATU entry if it causes the 4GB range overflow in order to activate the extended limit address by me

Re: [PATCH] xilinx: Remove tftp block size 4096

2025-03-03 Thread Michal Simek
On 3/3/25 14:28, Padmarao Begari wrote: The zynqmp gem driver support max MTU size 1536, so remove tftp block size 4096 from defconfig and use default tftp block size. Signed-off-by: Padmarao Begari --- configs/xilinx_versal_net_virt_defconfig | 1 - configs/xilinx_versal_virt_defconfig

Re: [PATCH 2/2] power: regulator: add qcom-usb-vbus

2025-03-03 Thread Neil Armstrong
On 27/02/2025 10:45, Rui Miguel Silva wrote: Add regulator driver that allow some Qualcomm PMIC to feed VBUS output to peripherals that are connected. Signed-off-by: Rui Miguel Silva --- drivers/power/regulator/Kconfig | 7 ++ drivers/power/regulator/Makefile |

Re: [PATCH] common: console: Delete obsolete VIDCONSOLE_AS_{LCD, NAME} options

2025-03-03 Thread Soeren Moch
On 02.03.25 15:52, Dragan Simic wrote: The configuration options CONFIG_VIDCONSOLE_AS_LCD and CONFIG_VIDCONSOLE_AS_ NAME have been marked as obsolete and scheduled for deletion in late 2020. That's already long overdue and the last remaining consumers of these options have already migrated to us

Re: [PATCH 1/5] net: lwip: extend wget to support CA (root) certificates

2025-03-03 Thread Ilias Apalodimas
Hi Jerome > > +config WGET_CACERT > + bool "wget cacert" > + depends on CMD_WGET > + depends on WGET_HTTPS > + help > + Adds the "cacert" sub-command to wget to provide root certificates > + to the HTTPS engine. > + > +config MBEDTLS_LIB_X509_PEM > + d

[PATCH v2 3/8] efi_loader: efi_setup: Add efi_start_obj_list() to efi_setup.c

2025-03-03 Thread Adriano Cordova
The coomand bootefi calls efi_init_obj_list to do the efi set up before launching an .efi payload, but efi_init_obj_list is called only once. There are some initializations which depend on the environment and should be done each time a payload gets launched and not only once. A motivation for this

[PATCH v2 8/8] efi_loader: efi_net: Add support for multiple efi_net_obj

2025-03-03 Thread Adriano Cordova
Add support for multiple efi_net_obj structs in efi_net.c. This comes in preparation for an EFI network driver supporting multiple network interfaces. For now the EFI network stack still registers a single ethernet udevice as an EFI network device even if multiple are present, namely the one that w

[PATCH v2 5/8] efi_loader: efi_device_path: Pass net udevice as argument

2025-03-03 Thread Adriano Cordova
In preparation to support multiple EFI net objects, support constructing device paths using an ethernet device different than the default. Add a udevice argument to the device path generation, and keep the callsites with eth_get_dev() to preserve existing functionality. Signed-off-by: Adriano Cord

[PATCH v2 7/8] efi_loader: efi_net: Add dhcp cache

2025-03-03 Thread Adriano Cordova
Add a dhcp cache to store the DHCP ACKs received by the U-Boot network stack. Signed-off-by: Adriano Cordova --- (no changes since v1) lib/efi_loader/efi_net.c | 55 +++- 1 file changed, 43 insertions(+), 12 deletions(-) diff --git a/lib/efi_loader/efi_net.

[PATCH v2 6/8] efi_loader: efi_net: Add device path cache

2025-03-03 Thread Adriano Cordova
In preparation to support mutiple efi net udevices. Add a device path cache to support device paths from multiple ethernet udevices. The device paths can be added to the cache before EFI gets initialized and the protocols get installed. Signed-off-by: Adriano Cordova --- (no changes since v1)

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

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

[PATCH v2 2/8] efi_loader: expose symbols to be used by the EFI network stack

2025-03-03 Thread Adriano Cordova
The following symbols are exposed: - efi_reinstall_protocol_interface This is done so that the device path protocol interface of the network device can be changed internally by u-boot when a new bootfile gets downloaded. - eth_set_dev

[PATCH v2 1/8] legacy-net: wget: fix wget_info handling after new tcp legacy stack

2025-03-03 Thread Adriano Cordova
Check wget_info->buffer_size for overflow and do not clean the wget_info struct on failure, let the owner of the struct handle the error. The latter is necesary , e.g., for when a request fails because the provided buffer was too small. Signed-off-by: Adriano Cordova --- (no changes since v1)

Re: [PATCH] feat: Add CONFIG_BOOTCOUNT_ALTBOOTCMD to Kconfig

2025-03-03 Thread Tom Rini
On Sat, Mar 01, 2025 at 06:54:37PM +, Peter Robinson wrote: > On Fri, 14 Feb 2025 at 20:06, Fabio Estevam wrote: > > > On Fri, Feb 14, 2025 at 3:55 PM Tom Rini wrote: > > > > > Applied to u-boot/next, thanks! > > > > The author's Signed-off-by tag is missing. > > > > Maybe we need to add a

Re: [PATCH v4 1/3] xilinx: dfu: Fill directly update_info.dfu_string

2025-03-03 Thread Michal Simek
On 2/28/25 19:15, Jon Humphreys wrote: Heinrich Schuchardt writes: On 28.02.25 16:41, Michal Simek wrote: On 2/28/25 15:33, Heinrich Schuchardt wrote: On 26.02.25 23:35, Jonathan Humphreys wrote: From: Michal Simek Directly fill update_info.dfu_string to prepare platforms to switch f

Re: Pull request efi-2025-04-rc4

2025-03-03 Thread Tom Rini
On Mon, Mar 03, 2025 at 01:12:42AM +0100, Heinrich Schuchardt wrote: > Am 2. März 2025 09:11:34 MEZ schrieb Heinrich Schuchardt : > >Dear Tom, > > > >The following changes since commit b78f8677cde8b1dde31b66f5b780f2e9b62fba7f: > > > > arch: arm: dts: k3-am642-phycore-som-binman: Add custMpk to ove

[PATCH v3 0/6] lmb: miscellaneous fixes and improvements

2025-03-03 Thread Sughosh Ganu
The patch series contains some fixes and improvements in the lmb code, along with addition of corresponding test cases for the changes made. The lmb_reserve() function currently does not check if the requested reservation would overlap with existing reserved regions. While some scenarios are being

[PATCH v3 6/6] lmb: optimise the lmb allocation functions

2025-03-03 Thread Sughosh Ganu
The actual logic to allocate a region of memory is in the _lmb_alloc_base() function. The lmb_alloc() API function calls lmb_alloc_base(), which then calls _lmb_alloc_base() to do the allocation. Instead, call the _lmb_alloc_base() directly from both the allocation API's, and move the error message

[PATCH v3 5/6] lmb: use a common function to check if regions overlap or are adjacent

2025-03-03 Thread Sughosh Ganu
The functions to check if the two said regions are adjacent or overlap are pretty similar in nature. Club the functionality into a single function lmb_regions_check() and return the appropriate return value to signify this aspect. Signed-off-by: Sughosh Ganu --- Changes since V2: None lib/lmb.c

[PATCH v3 2/6] lmb: handle scenario of encompassing overlap

2025-03-03 Thread Sughosh Ganu
The lmb_fix_over_lap_regions() function is called if the added region overlaps with an existing region. The function then fixes the overlap and removes the redundant region. However, it makes certain assumptions. One assumption is that the overlap would not encompass the existing region. Another as

[PATCH v3 4/6] lmb: remove superfluous address overlap check from lmb_add_region_flags()

2025-03-03 Thread Sughosh Ganu
U-Boot allows re-use of already reserved memory through the lmb_reserve() and lmb_alloc_addr() API's. This memory re-use is allowed only when the flag of the existing reserved region and that of the requested region is LMB_NONE. A check was put in the lmb_add_region_flags() in commit 8b8b35a4f5e to

[PATCH v3 3/6] lmb: check for a region's coalescing with all existing regions

2025-03-03 Thread Sughosh Ganu
The lmb_add_region_flags() first checks if the new region to be added can be coalesced with existing regions. The check stops if the two regions are adjecent but their flags do not match. However, it is possible that the newly added region might be adjacent with the next existing region and with ma

[PATCH v3 1/6] lmb: check if a region can be reserved by lmb_reserve()

2025-03-03 Thread Sughosh Ganu
The logic used in lmb_alloc() takes into consideration the existing reserved regions, and ensures that the allocated region does not overlap with any existing allocated regions. The lmb_reserve() function is not doing any such checks -- the requested region might overlap with an existing region. Th

[PATCH 1/2] arm: mach-sc5xx: Remove manual bss_clear

2025-03-03 Thread Greg Malysa
The arm library includes an implementation of bss_clear that is already called from crt0.S. This re-clearing of BSS should not be performed in the machine code and should therefore be removed. Signed-off-by: Greg Malysa --- arch/arm/mach-sc5xx/soc.c | 26 -- 1 file chang

[PATCH] xilinx: Remove tftp block size 4096

2025-03-03 Thread Padmarao Begari
The zynqmp gem driver support max MTU size 1536, so remove tftp block size 4096 from defconfig and use default tftp block size. Signed-off-by: Padmarao Begari --- configs/xilinx_versal_net_virt_defconfig | 1 - configs/xilinx_versal_virt_defconfig | 1 - 2 files changed, 2 deletions(-) diff

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

2025-03-03 Thread Michael Nazzareno Trimarchi
Hi On Mon, Mar 3, 2025 at 1:54 PM Adam Ford wrote: > On Mon, Mar 3, 2025 at 6:34 AM Michael Nazzareno Trimarchi > wrote: > > > > Hi Adam > > > > On Sun, Mar 2, 2025 at 5:53 PM Adam Ford wrote: > >> > >> The ECSPI clock has the ability to select between pll3_60m and > >> osc on the imx6qp, wher

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

2025-03-03 Thread Adam Ford
On Mon, Mar 3, 2025 at 6:34 AM Michael Nazzareno Trimarchi wrote: > > Hi Adam > > On Sun, Mar 2, 2025 at 5:53 PM Adam Ford wrote: >> >> The ECSPI clock has the ability to select between pll3_60m and >> osc on the imx6qp, where it's fixed on other variants. Fix this >> by adding using a helper fu

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

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

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

2025-03-03 Thread Fabio Estevam
Hi Miquel, On Wed, Jan 29, 2025 at 7:22 AM Miquel Raynal wrote: > > In order to display a boot picture or an error message, the i.MX8MP > display pipeline must be enabled. The SoC has support for various > interfaces (LVDS, HDMI, DSI). The one supported in this series is the > standard 4-lane LVD

Re: [PATCH v4 05/12] power-domain: Add refcounting

2025-03-03 Thread Miquel Raynal
Hello Simon, On 08/02/2025 at 08:09:30 -03, Fabio Estevam wrote: > Hi Simon, > > On Wed, Jan 29, 2025 at 7:22 AM Miquel Raynal > wrote: >> >> It is very surprising that such an uclass, specifically designed to >> handle resources that may be shared by different devices, is not keeping >> the c

回复: [PATCH v6 10/20] scmi_protocols: update struct scmi_base_discover_list_protocols_out

2025-03-03 Thread Alice Guo (OSS)
> -邮件原件- > 发件人: Marek Vasut > 发送时间: 2025年3月1日 3:25 > 收件人: Alice Guo (OSS) ; Tom Rini > ; Stefano Babic ; Fabio Estevam > ; dl-uboot-imx ; Lukasz > Majewski ; Sean Anderson ; Simon > Glass ; Alper Nebi Yasak ; > Alice Guo > 抄送: u-boot@lists.denx.de; Ye Li > 主题: Re: [PATCH v6 10/20] scmi_p

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

2025-03-03 Thread Alice Guo (OSS)
> -邮件原件- > 发件人: Marek Vasut > 发送时间: 2025年1月24日 22:38 > 收件人: Alice Guo (OSS) ; Tom Rini > ; Stefano Babic ; Fabio Estevam > ; dl-uboot-imx ; Lukasz > Majewski ; Sean Anderson ; Simon > Glass ; Alper Nebi Yasak > 抄送: u-boot@lists.denx.de; thar...@gateworks.com; Alice Guo > ; Ye Li > 主题: [E

[GIT PULL] please pull fsl-qoriq-2025-3-3

2025-03-03 Thread Peng Fan
Hi Tom, Please pull fsl-qoriq-2025-3-3. Re-arm packet buffer in error case in tsec driver fix LS1021a build fix flush dcache alignment in caam_hash CI: https://sourc

Re: [PATCH v2 1/8] dt-bindings: clk: define additional PMC clocks

2025-03-03 Thread Manikandan.M
Hi Eugen and Sumit, On 28/02/25 5:07 pm, Sumit Garg wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On Fri, 28 Feb 2025 at 16:45, Eugen Hristev wrote: >> >> >> >> On 2/28/25 12:58, Sumit Garg wrote: >>> On Fri, 28 Feb 2025 at 15:20, wro

Re: [PATCH v3] arm64: renesas: Add TFA BL31 handoff support on Renesas R-Car Gen4

2025-03-03 Thread Quentin Schulz
Hi Marek, On 3/2/25 9:59 PM, Marek Vasut wrote: Implement custom U_BOOT_FIT_LOADABLE_HANDLER and armv8_switch_to_el2_prep() handling in case the TFA was loaded. The loadables handler sets up custom handoff structure used by Renesas TFA fork in fixed location in DRAM and indicates the TFA has bee

Re: [PATCH] ARM: dts: stm32: Add support for STM32MP13xx DHCOR SoM and DHSBC rev.200 board

2025-03-03 Thread Patrice CHOTARD
On 3/2/25 16:43, Marek Vasut wrote: > LDO2 is expansion connector supply on STM32MP13xx DHCOR DHSBC rev.200. > LDO5 is carrier board supply on STM32MP13xx DHCOR DHSBC rev.200. Keep > both regulators always enabled to make sure both the carrier board and > the expansion connector is always powere

回复: [PATCH v6 04/20] firmware: scmi: add pin control protocol support to SCMI agent

2025-03-03 Thread Alice Guo (OSS)
> -邮件原件- > 发件人: Marek Vasut > 发送时间: 2025年3月1日 3:18 > 收件人: Alice Guo (OSS) ; Tom Rini > ; Stefano Babic ; Fabio Estevam > ; dl-uboot-imx ; Lukasz > Majewski ; Sean Anderson ; Simon > Glass ; Alper Nebi Yasak ; > Alice Guo > 抄送: u-boot@lists.denx.de > 主题: Re: [PATCH v6 04/20] firmware: scmi

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

2025-03-03 Thread Miquel Raynal
Hi Andrea, On 02/03/2025 at 19:29:31 +01, Andrea della Porta wrote: > In case MAX_SYMLINK_NEST is reached while determining the size > on a symlink node, the function returns immediately. > This would not free the resources after the free_strings: label > causing a memory leak. > > Set the ret v

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

2025-03-03 Thread Siddharth Vadapalli
On Fri, Feb 28, 2025 at 10:11:53AM -0600, Javier Tia wrote: > Hi Siddharth, Hello Javier, > > On Wed, Feb 26, 2025, at 4:35 AM, Siddharth Vadapalli wrote: > > Hello, > > > > This series adds config fragment for enabling USB MSC boot and USB > > Storage devices which are applicable to AM62, AM62A

回复: [PATCH v6 01/20] mailbox: add i.MX Messaging Unit (MU) driver

2025-03-03 Thread Alice Guo (OSS)
> -邮件原件- > 发件人: Marek Vasut > 发送时间: 2025年3月1日 3:09 > 收件人: Alice Guo (OSS) ; Tom Rini > ; Stefano Babic ; Fabio Estevam > ; dl-uboot-imx ; Lukasz > Majewski ; Sean Anderson ; Simon > Glass ; Alper Nebi Yasak ; > Alice Guo > 抄送: u-boot@lists.denx.de; Peng Fan ; Viorel Suman > ; Ye Li > 主题:

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

2025-03-03 Thread Alice Guo (OSS)
> -邮件原件- > 发件人: Marek Vasut > 发送时间: 2025年3月1日 2:58 > 收件人: Peng Fan (OSS) > 抄送: Alice Guo (OSS) ; Tom Rini > ; Stefano Babic ; Fabio Estevam > ; dl-uboot-imx ; Lukasz > Majewski ; Sean Anderson ; Simon > Glass ; Alper Nebi Yasak ; > u-boot@lists.denx.de; thar...@gateworks.com; Alice Guo >