Re: [PATCH 1/1] test: don't call restart_uboot in EFI watchdog test

2024-10-01 Thread Ilias Apalodimas
On Wed, 2 Oct 2024 at 01:53, Heinrich Schuchardt wrote: > > Calling u_boot_console.restart_uboot() in > test_efi_selftest_watchdog_reboot() may lead to incorrect results. > > While the watchdog triggered reboot is running thee test environment may s/thee/the > need some time before triggering a

Re: [PATCH v3 5/7] arm: mach-k3: j721s2_init: Initialize AVS Class 0

2024-10-01 Thread Kumar, Udit
On 10/1/2024 2:18 PM, Manorit Chawdhry wrote: Hi Udit, On 08:46-20240815, Kumar, Udit wrote: On 8/13/2024 11:40 AM, Manorit Chawdhry wrote: Initialize AVS Class 0. Signed-off-by: Manorit Chawdhry --- arch/arm/mach-k3/j721s2/j721s2_init.c | 10 ++ 1 file changed, 10 insertions(

Re: [PATCH v3 6/7] arm: dts: j721s2: Add VTM node in R5

2024-10-01 Thread Kumar, Udit
On 10/1/2024 4:27 PM, Manorit Chawdhry wrote: Hi Udit, On 08:47-20240815, Kumar, Udit wrote: On 8/13/2024 11:40 AM, Manorit Chawdhry wrote: Add bootph-pre-ram property to VTM node and the pmic node. Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-j721s2-r5-common-proc-board.dts | 9

Re: [PATCH v3 3/7] arm: dts: k3-j7*-r5: Add MPU clock in clocks property

2024-10-01 Thread Kumar, Udit
On 10/1/2024 2:15 PM, Manorit Chawdhry wrote: Hi Udit, On 08:32-20240815, Kumar, Udit wrote: On 8/13/2024 11:40 AM, Manorit Chawdhry wrote: MPU clock had been missing. Distinguish multiple clocks with clock-names and add MPU clock as well. Signed-off-by: Manorit Chawdhry --- arch/arm/dt

Re: [PATCH v6 08/12] efi_loader: Disable ANSI output for tests

2024-10-01 Thread Tom Rini
On Wed, Oct 02, 2024 at 12:18:39AM +0200, Heinrich Schuchardt wrote: > On 10/1/24 20:02, Tom Rini wrote: > > On Tue, Oct 01, 2024 at 04:34:54AM +0200, Heinrich Schuchardt wrote: > > > On 10/1/24 02:24, Tom Rini wrote: > > > > On Tue, Oct 01, 2024 at 01:38:56AM +0200, Heinrich Schuchardt wrote: > >

[PATCH v3 3/3] cmd: mtd: add nand_read_test command support

2024-10-01 Thread Mikhail Kshevetskiy
This patch implements read-only test of nand flash devices. Test reads blocks of NAND flash in normal and raw modes and compares results. The following statuses can be returned for a block: * non-ecc reading failed, * ecc reading failed, * block is bad, * bitflips is above maximum, * actual n

[PATCH v3 1/3] cmd: mtd: add markbad command support

2024-10-01 Thread Mikhail Kshevetskiy
Some nand flashes (like spi-nand one) are registered with mtd subsystem only, thus nand command can't be used to work with such flashes. As result some functionality is missing. This patch implements 'nand markbad' functionality for mtd command. Signed-off-by: Mikhail Kshevetskiy --- cmd/Kconfi

[PATCH v3 2/3] cmd: mtd: add nand_write_test command support

2024-10-01 Thread Mikhail Kshevetskiy
Some nand flashes (like spi-nand one) are registered with mtd subsystem only, thus nand command can't be used to work with such flashes. As result some functionality is missing. This patch implements 'nand torture' functionality for mtd command. Signed-off-by: Mikhail Kshevetskiy --- cmd/Kconfi

[PATCH v3 0/3] cmd/mtd: add missed featuries

2024-10-01 Thread Mikhail Kshevetskiy
Some nand flashes (like spi-nand one) are registered with mtd subsystem only, thus nand command can't be used to work with such flashes. As result some functionality is missing. This patch series implements following subcommands: * markbad -- mark block as bad (clone of 'nand markbad') *

[PATCH 1/1] test: don't call restart_uboot in EFI watchdog test

2024-10-01 Thread Heinrich Schuchardt
Calling u_boot_console.restart_uboot() in test_efi_selftest_watchdog_reboot() may lead to incorrect results. While the watchdog triggered reboot is running thee test environment may need some time before triggering a reboot itself. This may lead to duplicate output of the U-Boot greeter which is r

Re: [PATCH v3 02/33] boot: Drop unnecessary ifdef for LOAD_FIT

2024-10-01 Thread Tom Rini
On Sun, Sep 29, 2024 at 07:49:25PM -0600, Simon Glass wrote: > Use the normal SPL_TPL_ approach for this option. > > Signed-off-by: Simon Glass This works as there is no TPL_LOAD_FIT symbol nor case of using SPL_BUILD being set by TPL_BUILD and so doubling the meaning of SPL_LOAD_FIT. Reviewed

Re: [PATCH v3 31/33] global: Rename SPL_TPL_ to PHASE_

2024-10-01 Thread Tom Rini
On Sun, Sep 29, 2024 at 07:49:54PM -0600, Simon Glass wrote: > Use PHASE_ as the symbol to select a particular XPL build. This means > that SPL_TPL_ is no-longer set. > > Update the comment in bootstage to refer to this symbol, instead of > SPL_ > > Signed-off-by: Simon Glass [snip] > diff --gi

Re: [PATCH v3 01/33] Makefile: Add a u-boot.cfg file for VPL

2024-10-01 Thread Tom Rini
On Sun, Sep 29, 2024 at 07:49:24PM -0600, Simon Glass wrote: > Create this file for VPL as well, for consistency. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v6 08/12] efi_loader: Disable ANSI output for tests

2024-10-01 Thread Heinrich Schuchardt
On 10/1/24 20:02, Tom Rini wrote: On Tue, Oct 01, 2024 at 04:34:54AM +0200, Heinrich Schuchardt wrote: On 10/1/24 02:24, Tom Rini wrote: On Tue, Oct 01, 2024 at 01:38:56AM +0200, Heinrich Schuchardt wrote: On 26.09.24 23:59, Simon Glass wrote: We don't want ANSI characters written in tests si

Re: [PATCH v3 06/33] stdio: Make use of the SERIAL define

2024-10-01 Thread Tom Rini
On Sun, Sep 29, 2024 at 07:49:29PM -0600, Simon Glass wrote: > This is always enabled for U-Boot proper, so simplify the condition > in the common Makefile. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Move earlier in the series > > include/stdio.h | 5 + > 1 file changed, 1

Re: [PATCH 08/26] power: Add iMX8M block ctrl driver for dispmix

2024-10-01 Thread Miquel Raynal
Hi Michael, mich...@amarulasolutions.com wrote on Tue, 1 Oct 2024 15:02:56 +0200: > Hi > > On Tue, Oct 1, 2024 at 12:01 PM Miquel Raynal > wrote: > > > > Hi Michael, > > > > > > Ported the patch from patchset > > > > > > > > "[PATCH 05/26] clk: imx8mm: Mark IMX8MM_SYS_PLL2 and

[RESEND PATCH v4 10/10] mtd: nand: add initial ecc engine support

2024-10-01 Thread Mikhail Kshevetskiy
only spinand on_die ecc is supported for a moment Signed-off-by: Mikhail Kshevetskiy --- drivers/mtd/nand/Makefile | 2 +- drivers/mtd/nand/core.c | 130 +++- drivers/mtd/nand/ecc.c | 249 ++ drivers/mtd/nand/spi/core.c | 207 +

[RESEND PATCH v4 09/10] mtd: spinand: sync supported flashes with linux-6.10

2024-10-01 Thread Mikhail Kshevetskiy
Signed-off-by: Mikhail Kshevetskiy --- drivers/mtd/nand/spi/Makefile | 4 +- drivers/mtd/nand/spi/alliancememory.c | 155 drivers/mtd/nand/spi/ato.c| 84 +++ drivers/mtd/nand/spi/core.c | 5 +- drivers/mtd/nand/spi/esmt.c |

[RESEND PATCH v4 08/10] mtd: spinand: more refactoring

2024-10-01 Thread Mikhail Kshevetskiy
changes: * Move spinand_check_ecc_status(), spinand_noecc_ooblayout_ecc(), spinand_noecc_ooblayout_free() and spinand_noecc_ooblayout close to each other. * some code formatting * remove comments not present in linux driver This make code more close to linux-6.10 kernel driver Signed-off

[RESEND PATCH v4 07/10] mtd: spinand: minor refactoring

2024-10-01 Thread Mikhail Kshevetskiy
No functional changes, just some refactoring to match better linux kernel driver. changes: * move spinand configuration reading out from spinand_init_cfg_cache() to separate function spinand_read_cfg() * move spinand flash initialization to separate function spinand_init_flash() * move di

[RESEND PATCH v4 06/10] mtd: spinand: replace enable_ecc variable with disable_ecc and update corresponding logic

2024-10-01 Thread Mikhail Kshevetskiy
Signed-off-by: Mikhail Kshevetskiy --- drivers/mtd/nand/spi/core.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index b58d9e00907..9629fac3388 100644 --- a/drivers/mtd/nand/spi/core.c +++ b/

[RESEND PATCH v4 04/10] mtd: spinand: simulate behavior of linux's function spinand_wait()

2024-10-01 Thread Mikhail Kshevetskiy
also call schedule() to allow periodic actions Signed-off-by: Mikhail Kshevetskiy --- drivers/mtd/nand/spi/core.c | 35 --- include/linux/mtd/spinand.h | 22 ++ 2 files changed, 50 insertions(+), 7 deletions(-) diff --git a/drivers/mtd/nand/sp

[RESEND PATCH v4 05/10] mtd: spinand: more use of spinand_to_{something} helpers

2024-10-01 Thread Mikhail Kshevetskiy
Use spinand_to_nand() and spinand_to_mtd() helpers instead of nanddev_to_mtd() and direct access to spinand structure fields. Signed-off-by: Mikhail Kshevetskiy --- drivers/mtd/nand/spi/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/spi/core.c b

[RESEND PATCH v4 02/10] mtd: spinand: Add a NAND page I/O request type

2024-10-01 Thread Mikhail Kshevetskiy
Use an enum to differentiate the type of I/O (reading or writing a page). Also update the request iterator. This is a port of linux patch 701981cab01696584a12e5f0e7c2ad931a326059 created by Miquel Raynal Signed-off-by: Mikhail Kshevetskiy --- drivers/mtd/nand/spi/core.c | 4 ++-- include/linu

[RESEND PATCH v4 03/10] mtd: spinand: add missed add missed MODULE_DEVICE_TABLE()

2024-10-01 Thread Mikhail Kshevetskiy
Signed-off-by: Mikhail Kshevetskiy --- drivers/mtd/nand/spi/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 8f227ce81fa..62779dd3e51 100644 --- a/drivers/mtd/nand/spi/core.c +++ b/drivers/mtd/nand/spi/core.c @@ -1267,12

[RESEND PATCH v4 01/10] mtd: spinand: Use the spi-mem dirmap API

2024-10-01 Thread Mikhail Kshevetskiy
Make use of the spi-mem direct mapping API to let advanced controllers optimize read/write operations when they support direct mapping. This is a port of linux patch 981d1aa0697ce1393e00933f154d181e965703d0 created by Boris Brezillon . Signed-off-by: Mikhail Kshevetskiy --- drivers/mtd/nand/spi

[RESEND PATCH v4 00/10] mtd: spinand: initial support of ecc engines

2024-10-01 Thread Mikhail Kshevetskiy
This patch series: * sync spinand driver code with linux-6.10 * sync spinand flash support with linux-6.10 * add initial support of ecc engines Up to now only software ecc is supported, but other engines can be add quite easily Changes v2 * update description of some patches Changes v3: *

[PATCH 1/1] Squashed 'dts/upstream/' changes from 20e0f0897ea2..3347eecf3408

2024-10-01 Thread Tom Rini
3347eecf3408 Merge tag 'v6.11-dts-raw' [snip] git-subtree-dir: dts/upstream git-subtree-split: 3347eecf3408998fa7136c8789322cc99646ceab --- [snip] 1503 files changed, 78440 insertions(+), 20166 deletions(-) I have massively editing this down because the relevant information here is that we are me

[PATCH] lib: fdtdec: Parse the gzip/lzo headers only when dependencies have met

2024-10-01 Thread Prabhakar
From: Lad Prabhakar It might happen that CONFIG_GZIP and CONFIG_LZO are enabled but we might have CONFIG_MULTI_DTB_FIT_LZO enabled in this case in the code path of uncompress_blob() we parse the gzip headers first which results in `Error: Bad gzipped data` being printed. To avoid this parse the g

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

2024-10-01 Thread Tom Rini
On Mon, Sep 30, 2024 at 05:27:16PM +0200, Mattijs Korpershoek wrote: > Hi Tom, > > Please find some fixes for master: > - Fix Kconfig dependencies for DFU_OVER_USB > > CI job: > - https://source.denx.de/u-boot/custodians/u-boot-dfu/-/pipelines/22468/ > > PS: I know it's a bit late, if you'd pre

[PATCH v9 12/13] net/httpd: add httpd common code

2024-10-01 Thread Mikhail Kshevetskiy
This patch adds HTTP/1.1 compatible web-server that can be used by other. Server supports GET, POST, and HEAD requests. On client request it will call user specified GET/POST callback. Then results will be transmitted to client. The following restrictions exist on the POST request at the moment:

[PATCH v9 10/13] net/net: fix include ordering

2024-10-01 Thread Mikhail Kshevetskiy
fix include ordering to follow https://docs.u-boot.org/en/latest/develop/codingstyle.html#include-files Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/net.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/net/net.c b/net/net.

[PATCH v9 06/13] net/tcp: improve tcp framework, use better state machine

2024-10-01 Thread Mikhail Kshevetskiy
Changes: * Fix initial send sequence always zero issue * Use state machine close to RFC 9293. This should make TCP transfers more reliable (now we can upload a huge array of data from the board to external server) * Improve TCP framework a lot. This should make tcp client code much more

[PATCH v9 11/13] net/netcat: add netcat over tcp support

2024-10-01 Thread Mikhail Kshevetskiy
This patch adds downloading/uploading of data with netcat. Client/server mode both supported. How to test: netcat-openbsd=1.219-1 from debian were used for a tests a) Load data from remote host. * U-Boot listen on tcp port 3456 * PC connects u-boot: netcat loa

[PATCH v9 07/13] test/cmd/wget: fix the test

2024-10-01 Thread Mikhail Kshevetskiy
Changes: * update to new tcp stack * fix zero values for ISS and IRS issue (see RFC 9293) Previously this patch also fix incorrect values for tcp_ack & tcp_seq, but the issue was fixed in * dbb6b5a: sandbox: fix wget test failure after fixing wget issue Signed-off-by: Mikhail Kshevetskiy Revi

[PATCH v9 04/13] net/tcp: add connection info to tcp_stream structure

2024-10-01 Thread Mikhail Kshevetskiy
Changes: * Avoid use net_server_ip in tcp code, use tcp_stream data instead * Ignore packets from other connections if connection already created. This prevents us from connection break caused by other tcp stream. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- include/net.

[PATCH v9 08/13] net/tcp: simplify tcp header filling code

2024-10-01 Thread Mikhail Kshevetskiy
This patch: * remove useless code, * use a special function for pretty printing of tcp flags, * simplify the code The behavior should not be changed. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 66 +++ 1 fil

[PATCH v9 01/13] net/tcp: fix TCP options processing

2024-10-01 Thread Mikhail Kshevetskiy
Current TCP code may miss an option if TCP_O_NOP option was used before it for proper aligning. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/tcp.c b/net/tcp.c index b0cc8a1fe3e..3e3118de45

[PATCH v9 13/13] net/httpd-upload: an example web-server implementation for file uploading

2024-10-01 Thread Mikhail Kshevetskiy
This is an example web-server implementation. It can be used for files uploading to u-boot using a web-browser. It acts much like tftpget, but no special servers needs to be installed by the user. This code can be used as a base for other implementations like firmware upgrade web-server used by so

[PATCH v9 09/13] net/tcp: define a fallback value for rcv_wnd size

2024-10-01 Thread Mikhail Kshevetskiy
Some driver implements it's own network packet pool, so PKTBUFSRX is zero. This results in zero-size TCP receive window, so data transfer doesn't work. Avoid it by setting a reasonable fallback value. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 6 +- 1 file c

[PATCH v9 05/13] net/tcp: rename ack_edge and seq_init to more common rcv_nxt and irs

2024-10-01 Thread Mikhail Kshevetskiy
Use the names from RFC 9293 Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- include/net/tcp.h | 8 net/tcp.c | 32 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/include/net/tcp.h b/include/net/tcp.h index f224

[PATCH v9 03/13] net/tcp: put connection specific data into a tcp_stream structure

2024-10-01 Thread Mikhail Kshevetskiy
no functional changes Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- include/net/tcp.h | 37 +++- net/net.c | 11 ++- net/tcp.c | 231 +++--- net/wget.c| 3 +- 4 files changed, 163 insertions(+), 119 deleti

[PATCH v9 02/13] net/tcp: fix selective acknowledge

2024-10-01 Thread Mikhail Kshevetskiy
Current code assume that all (except last) packets are of the same size. This is definitely wrong. Replace SACK code with a new one, that does not rely on this assumption. Also this code uses less memory. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 200 ++

[PATCH v9 00/13] net: tcp: improve tcp support

2024-10-01 Thread Mikhail Kshevetskiy
U-Boot support of LWIP is not ready for a moment, but we already have some kind of tcp support. Unfrotunately this support is really bad. Some of the known issues: * tcp packet from other connection can break a current one * tcp send sequence always starts from zero * bad tcp options processing

Re: [PATCH v6 08/12] efi_loader: Disable ANSI output for tests

2024-10-01 Thread Tom Rini
On Tue, Oct 01, 2024 at 04:34:54AM +0200, Heinrich Schuchardt wrote: > On 10/1/24 02:24, Tom Rini wrote: > > On Tue, Oct 01, 2024 at 01:38:56AM +0200, Heinrich Schuchardt wrote: > > > On 26.09.24 23:59, Simon Glass wrote: > > > > We don't want ANSI characters written in tests since it is a pain to

Re: [PATCH v2 0/8] bootstd: sunxi: Migrate to standard boot

2024-10-01 Thread Heinrich Schuchardt
On 01.10.24 19:15, Heinrich Schuchardt wrote: On 01.10.24 13:18, Simon Glass wrote: Hi, On Fri, 23 Aug 2024 at 14:48, Simon Glass wrote: This series attempts to migrate all sunxi boards to use standard boot, along with a text environment. Changes in v2: - Add new patch to resolve BOOTSTD->B

Re: [PATCH v2 0/8] bootstd: sunxi: Migrate to standard boot

2024-10-01 Thread Heinrich Schuchardt
On 01.10.24 13:18, Simon Glass wrote: Hi, On Fri, 23 Aug 2024 at 14:48, Simon Glass wrote: This series attempts to migrate all sunxi boards to use standard boot, along with a text environment. Changes in v2: - Add new patch to resolve BOOTSTD->BLK recursion with Kconfig - Put the FEL bootmet

Re: [PATCH 0/3] env: mmc: fix use of two separate partitions with proper type GUID

2024-10-01 Thread Tom Rini
On Thu, 12 Sep 2024 15:41:38 +0200, Rasmus Villemoes wrote: > I always define a disk layout with two separate partitions for the two > copies of the U-Boot environment and, being the one who introduced the > type GUID for such partitions, of course also set those partitions' > type GUID appropriat

Re: [PATCH 1/4] board/qualcomm: introduce phone config

2024-10-01 Thread Julius Lehmann
On 31.08.24 18:48, Caleb Connolly wrote: Phones don't have keyboards! Introduce a phone-specific config fragment and associated environment file to make U-Boot more useful on these devices. This allows for navigating via the buttons and enabling various USB gadget modes or displaying info about U

[PATCH v1] arm: imx: imx8m: soc: Fix VPU fdt disable fixup

2024-10-01 Thread Vitor Soares
From: Vitor Soares With the introduction of downstream Linux 6.6, the iMX8MP VPU block control node in DTS was renamed "blk-ctl@3833" and will not match the ones found in `node_path_imx8mp` resulting in the node not being disabled on the VPU-less variants. Add an extra node_path entry for im

[PATCH v4 2/2] binman: add fast authentication method for i.MX8M signing

2024-10-01 Thread Brian Ruley
Using the PKI tree with SRKs as intermediate CA isn't necessary or even desirable in some situations (boot time, for example). Add the possibility to use the "fast authentication" method where the image and CSF are both signed using the SRK [1, p.63]. [1] https://community.nxp.com/pwmxy87654/atta

Re: [PATCH v3 1/4] power: regulator: Trigger probe of regulators which are always-on or boot-on

2024-10-01 Thread Tom Rini
On Fri, 27 Sep 2024 01:14:12 +0200, Marek Vasut wrote: > In case a regulator DT node contains regulator-always-on or regulator-boot-on > property, make sure the regulator gets correctly configured by U-Boot on start > up. Unconditionally probe such regulator drivers. This is a preparatory patch >

[PATCH v4 1/2] binman: cosmetic: refactor `nxp_imx8mcst' etype code

2024-10-01 Thread Brian Ruley
Simplify code and conform to the style guide used in the project by making the following changes: * Capitalize global constants * Use single quotes for multiline strings (except docstrings) * Fix line width to 79 cols * Use f-string instead of formatting a regular string or using a complicated co

Re: [PATCH v2 2/3] usb: dwc3: fix dcache flush range calculation

2024-10-01 Thread Marek Vasut
On 10/1/24 5:32 PM, Neil Armstrong wrote: On 01/10/2024 17:21, Marek Vasut wrote: On 7/24/24 5:48 PM, Neil Armstrong wrote: The current flush operation will omit doing a flush/invalidate on the first and last bytes if the base address and size are not aligned with DMA_MINALIGN. This causes ope

Re: [PATCH 3/4] rockchip: rk3399-rockpro64: Disable bootstage instrumentation config

2024-10-01 Thread Simon Glass
Hi Paul, On Mon, 30 Sept 2024 at 13:07, Paul Kocialkowski wrote: > > Hi, > > Le Mon 30 Sep 24, 12:52, Simon Glass a écrit : > > On Mon, 30 Sept 2024 at 03:03, Peter Robinson wrote: > > > On Thu, 26 Sept 2024 at 19:32, Paul Kocialkowski > > > wrote: > > > > The boot timing and reporting (bootst

Re: [PATCH v3 7/7] arm64: zynqmp: Update the usb5744 hub node as per binding

2024-10-01 Thread Michal Simek
On 10/1/24 07:05, Venkatesh Yadav Abbarapu wrote: Updating the usb5744 hub node as per the latest upstream DT binding https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ tree/Documentation/devicetree/bindings/usb/microchip,usb5744.yaml?h=v6.8.8 Signed-off-by: Venkatesh Yadav Abb

Re: [PATCH v6 08/12] efi_loader: Disable ANSI output for tests

2024-10-01 Thread Peter Robinson
On Tue, 1 Oct 2024 at 01:42, Tom Rini wrote: > > On Tue, Oct 01, 2024 at 01:38:56AM +0200, Heinrich Schuchardt wrote: > > On 26.09.24 23:59, Simon Glass wrote: > > > We don't want ANSI characters written in tests since it is a pain to > > > check the output with ut_assert_nextline() et al. > > > >

Re: [PATCH 08/26] power: Add iMX8M block ctrl driver for dispmix

2024-10-01 Thread Miquel Raynal
Hi Heiko, > >> I see with your patch the clock names, so fine... and see [1] > >> > >> Hmm... I am on imx8mp, and I think the changes the patchset do in > >> > >> "clk: imx8mn: Prevent clock critical path from disabling during reparent > >> and set_rate" > >> > >> are in clk-imx8mp already ... >

Re: [PATCH] dfu: define a callback function for the dfu_alt_info environment variable

2024-10-01 Thread Mattijs Korpershoek
Hi, On Wed, 11 Sep 2024 15:39:00 +0200, Rasmus Villemoes wrote: > I'm trying to use dfu-util for bootstrapping an stm32mp board. It > mostly works fine, but something goes horribly wrong as soon as I make > use of the ability to run arbitrary u-boot shell commands. The shell > commands themselves

Re: [PATCH 0/2] lmb: rework logic to validate load address for network commands

2024-10-01 Thread Sughosh Ganu
On Tue, 1 Oct 2024 at 11:37, Vaishnav Achath wrote: > > Hi Tom, > > On 21/09/24 08:09, Tom Rini wrote: > > On Mon, 16 Sep 2024 20:50:23 +0530, Sughosh Ganu wrote: > > > >> Rework the logic to verify the load address so that address re-use is > >> not an issue. > >> > >> > >> Note: To be applied on

Re: [PATCH v2 0/8] bootstd: sunxi: Migrate to standard boot

2024-10-01 Thread Simon Glass
Hi, On Tue, 1 Oct 2024 at 06:23, Quentin Schulz wrote: > > Hi Mattijs, Simon, > > On 10/1/24 2:07 PM, Mattijs Korpershoek wrote: > > Hi Simon, > > > > On mar., oct. 01, 2024 at 05:18, Simon Glass wrote: > > > >> Hi, > >> > >> On Fri, 23 Aug 2024 at 14:48, Simon Glass wrote: > >>> > >>> This ser

[PATCH v2 2/2] dfu: sf: rely on DT for spi speed and mode

2024-10-01 Thread Neil Armstrong
Align with cmd_sf, and try to rely on DT for spi speed and mode, and still fallback on spi_flash_probe() if it fails. With the current scheme, spi_flash_probe() will be called with CONFIG_SF_DEFAULT_SPEED and CONFIG_SF_DEFAULT_MODE with are set to 0 by default on DT platforms using DM_SPI_FLASH.

[PATCH 1/1] arch: arm: dts: imx8mm-cl-iot-gate.dts: add no-mmc-hs400 to mmc2

2024-10-01 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" The eMMC device on imx8mm-cl-iot-gate seems not support hs400. When booting 6.1.0 kernel we got the following error. mmc2: mmc_select_hs400es failed, error -110 mmc2: error -110 whilst initialising MMC card Add no-mmc-hs400 to mmc2 node solves the problem

[PATCH v2 1/2] spi: add DM_SPI_FLASH compatibility inline functions

2024-10-01 Thread Neil Armstrong
To smoothly handle the transition from the legacy SPI FLASH API to the the driver model API, add the DM functions as dummy inline functions. Today, client code uses #if/#else conditionals, but it's better to use if(IS_ENABLED()) to make sure all code builds fine and avoid configuration hell, leavi

[PATCH v2 0/2] dfu: sf: fix flash probe when DM_SPI_FLASH is enabled

2024-10-01 Thread Neil Armstrong
With DM_SPI_FLASH is enabled, the code uses the legacy SPI FLASH code leading to probable errors since it doesn't use speed and mode provided by DT. This adds the DM functions as dummy inline functions to add both legacy and DM support in DFU sf code avoiding using #if/#else conditionals. Signed-

[PATCH 0/1] arch: arm: dts: imx8mm-cl-iot-gate.dts: add no-mmc-hs400 to mmc2

2024-10-01 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" The eMMC device on imx8mm-cl-iot-gate seems not support hs400. When booting 6.1.0 kernel we got the following error. mmc2: mmc_select_hs400es failed, error -110 mmc2: error -110 whilst initialising MMC card Add no-mmc-hs400 to mmc2 node solves the problem

[PATCH] ARM: at91: clock: Add missing include of asm/io.h

2024-10-01 Thread Alexander Dahl
In one inline function in this header `readl()` is used, but the declaration was not found, so buildman gave this warning: w+include/asm/arch/clk.h: In function 'get_h32mxdiv': w+include/asm/arch/clk.h:65:16: warning: implicit declaration of function 'readl' [-Wimplicit-function-declarati

Re: [PATCH 08/26] power: Add iMX8M block ctrl driver for dispmix

2024-10-01 Thread Michael Nazzareno Trimarchi
Hi On Tue, Oct 1, 2024 at 12:01 PM Miquel Raynal wrote: > > Hi Michael, > > > > Ported the patch from patchset > > > > > > "[PATCH 05/26] clk: imx8mm: Mark IMX8MM_SYS_PLL2 and IMX8MM_SYS_PLL3 > > > as enabled" > > > > > > to imx8mp [2] and fec ethernet works again f

Re: [PATCH] dfu: sf: rely on DT for spi speed and mode

2024-10-01 Thread Mattijs Korpershoek
On mar., oct. 01, 2024 at 12:13, Neil Armstrong wrote: > On 01/10/2024 12:01, Neil Armstrong wrote: >> On 01/10/2024 10:52, Mattijs Korpershoek wrote: >>> Hi Neil, >>> >>> Thank you for the patch and sorry the review delay. >>> >>> On mar., sept. 17, 2024 at 14:24, Neil Armstrong >>> wrote: >>

Re: [PATCH 00/27] led: Remove old status-LED code

2024-10-01 Thread Angelo Dureghello
Hi, On 27/09/24 6:52 PM, Simon Glass wrote: Hi Peter, On Fri, 27 Sept 2024 at 09:52, Peter Robinson wrote: Hi Simon, There has been an LED framework in U-Boot which uses driver model for about 9 years now. Recent work is underway to improve it and provide more features. It is probably a goo

[PATCH V2 2/5] mmc: fsl_esdhc_imx: Send 80 clocks before IDLE command

2024-10-01 Thread Peng Fan (OSS)
From: Ye Li According to SD and MMC spec, 74 clocks must be sent to device after power stable. This is need in reinit ops for DM MMC or init ops for non-DM MMC after power cycle. So set the INTIA to send 80 clocks in esdhc_init_common and move its calling from probe to reinit. However, on 8MQ E

Re: [PATCH v2 0/8] bootstd: sunxi: Migrate to standard boot

2024-10-01 Thread Simon Glass
Hi, On Fri, 23 Aug 2024 at 14:48, Simon Glass wrote: > > This series attempts to migrate all sunxi boards to use standard boot, > along with a text environment. > > Changes in v2: > - Add new patch to resolve BOOTSTD->BLK recursion with Kconfig > - Put the FEL bootmeth before all other global boo

Re: [PATCH v2] usb: gadget: usbhs: Add Renesas USBHS device driver

2024-10-01 Thread Mattijs Korpershoek
Hi, On Mon, 09 Sep 2024 01:06:24 +0200, Marek Vasut wrote: > Add UDC driver for Renesas USBHS controller found in R-Car Gen3 SoCs. > This is mostly ported from the Linux kernel, with additional porting > glue. The code has been synchronized with 1b4861e32e46 ("Linux 6.9.3") > and cleaned up and po

[PATCH v2] xilinx: common: fix script address for Microblaze

2024-10-01 Thread Padmarao Begari
Fix the issue introduced by commit 067e0294806e ("board: xilinx: Remove conditional check for Microblaze"). The scriptaddr should be physical location not really offset from start of DDR. When U-Boot is not found boot.scr script address in device tree, then it is assigned based on script address

Re: [PATCH v2 2/3] usb: dwc3: fix dcache flush range calculation

2024-10-01 Thread Neil Armstrong
On 01/10/2024 17:21, Marek Vasut wrote: On 7/24/24 5:48 PM, Neil Armstrong wrote: The current flush operation will omit doing a flush/invalidate on the first and last bytes if the base address and size are not aligned with DMA_MINALIGN. This causes operation failures Qualcomm platforms. Take i

Acked

2024-10-01 Thread Angelo Dureghello
Acked-by: Angelo Dureghello Thanks ! On 26/09/24 10:44 PM, Simon Glass wrote: This header file is not used, so drop it. Signed-off-by: Simon Glass --- arch/m68k/lib/bootm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/m68k/lib/bootm.c b/arch/m68k/lib/bootm.c index 3dcff8076

Re: [PATCH] lib: fdtdec: Parse the gzip/lzo headers only when dependencies have met

2024-10-01 Thread Tom Rini
On Tue, Oct 01, 2024 at 10:56:47AM +0100, Prabhakar wrote: > From: Lad Prabhakar > > It might happen that CONFIG_GZIP and CONFIG_LZO are enabled but we might > have CONFIG_MULTI_DTB_FIT_LZO enabled in this case in the code path of > uncompress_blob() we parse the gzip headers first which results

Re: [PATCH v2 2/3] usb: dwc3: fix dcache flush range calculation

2024-10-01 Thread Marek Vasut
On 7/24/24 5:48 PM, Neil Armstrong wrote: The current flush operation will omit doing a flush/invalidate on the first and last bytes if the base address and size are not aligned with DMA_MINALIGN. This causes operation failures Qualcomm platforms. Take in account the alignment and size of the b

Re: [PATCH 2/3] dts: Add ability to build DTOs only from arch/$(ARCH)/dts

2024-10-01 Thread Marek Vasut
On 10/1/24 3:35 PM, Sumit Garg wrote: Hi, On Sat, 28 Sept 2024 at 03:20, Marek Vasut wrote: Currently the enablement of OF_UPSTREAM results on the build system searching for DTs only in dts/upstream/ . There are platforms which use U-Boot specific DTBOs applied on top of U-Boot control DT du

Re: [PATCH v5 25/36] board: emulation: Add QEMU sbsa support

2024-10-01 Thread Patrick Rudolph
Hi Tom, On Tue, Oct 1, 2024 at 5:05 PM Tom Rini wrote: > > On Tue, Oct 01, 2024 at 12:49:41PM +0200, Patrick Rudolph wrote: > > On Thu, Sep 26, 2024 at 11:28 PM Simon Glass wrote: > > > > > > Hi Patrick, > > > > > > On Thu, 26 Sept 2024 at 10:03, Patrick Rudolph > > > wrote: > > > > > > > > Add

Re: [PATCH v5 25/36] board: emulation: Add QEMU sbsa support

2024-10-01 Thread Tom Rini
On Tue, Oct 01, 2024 at 12:49:41PM +0200, Patrick Rudolph wrote: > On Thu, Sep 26, 2024 at 11:28 PM Simon Glass wrote: > > > > Hi Patrick, > > > > On Thu, 26 Sept 2024 at 10:03, Patrick Rudolph > > wrote: > > > > > > Add support for Arm sbsa [1] v0.3+ that is supported by QEMU [2]. > > > > > > Un

Re: [PATCH] dfu: sf: rely on DT for spi speed and mode

2024-10-01 Thread Neil Armstrong
On 01/10/2024 12:01, Neil Armstrong wrote: On 01/10/2024 10:52, Mattijs Korpershoek wrote: Hi Neil, Thank you for the patch and sorry the review delay. On mar., sept. 17, 2024 at 14:24, Neil Armstrong wrote: Align with cmd_sf, and try to rely on DT for spi speed and mode, and still fallbac

Re: [PATCH 0/3] env: mmc: fix use of two separate partitions with proper type GUID

2024-10-01 Thread Rasmus Villemoes
Rasmus Villemoes writes: > I always define a disk layout with two separate partitions for the two > copies of the U-Boot environment and, being the one who introduced the > type GUID for such partitions, of course also set those partitions' > type GUID appropriately. > > This has worked just fine

Re: [PATCH v2 0/3] dwc3: gadget: properly fix cache operations

2024-10-01 Thread Mattijs Korpershoek
On mar., oct. 01, 2024 at 16:43, Neil Armstrong wrote: > Hi, > > On 24/07/2024 17:48, Neil Armstrong wrote: >> We experience huge problems with cache handling on Qualcomm >> systems, and it appears the dcache handling in the DWC3 gadget >> code is quite wrong and causes operational issues. >> >

[PATCH v5 00/11] led: introduce LED boot and activity function

2024-10-01 Thread Christian Marangi
This series is a reworked version of the previous seried: misc: introduce STATUS LED activity function This series port and expand the legacy concept of LED boot from the legacy Status LED API to new LED API. One thing that many device need is a way to communicate to the user that the device is

[PATCH v5 06/11] tftp: implement support for LED activity

2024-10-01 Thread Christian Marangi
Implement support for LED activity. If the feature is enabled, make the defined ACTIVITY LED to signal traffic. Also turn the ACTIVITY LED OFF if a CTRL-C is detected in the main net loop function. Signed-off-by: Christian Marangi Reviewed-by: Simon Glass --- net/net.c | 4 net/tftp.c |

[PATCH v5 01/11] led: toggle LED on initial SW blink

2024-10-01 Thread Christian Marangi
We currently init the LED OFF when SW blink is triggered when on_state_change() is called. This can be problematic for very short period as the ON/OFF blink might never trigger. Toggle the LED (ON if OFF, OFF if ON) on initial SW blink to handle this corner case and better display a LED blink from

RE: [PATCH 1/5] mmc: fsl_esdhc_imx: Enable AHB/IPG clk

2024-10-01 Thread Peng Fan
> Subject: Re: [PATCH 1/5] mmc: fsl_esdhc_imx: Enable AHB/IPG clk > > Hi Peng, > > On Mon, Sep 30, 2024 at 2:47 AM Peng Fan (OSS) > wrote: > > > > From: Peng Fan > > > > Only enable PER clk is not enough, also need to enable AHB/IPG clk. > > Currently, the driver is working and now extra clock

Re: [PATCH 1/1] cmd: simplify CONFIG_CMD_USB_MASS_STORAGE dependencies

2024-10-01 Thread Mattijs Korpershoek
Hi Heinrich, Thank you for the patch. On sam., sept. 21, 2024 at 11:20, Heinrich Schuchardt wrote: > CONFIG_USB_GADGET_DOWNLOAD depends on CONFIG_USB_GADGET. > It is sufficient to depend on the prior. > > Signed-off-by: Heinrich Schuchardt Reviewed-by: Mattijs Korpershoek > --- > cmd/Kcon

Re: [PATCH 08/26] power: Add iMX8M block ctrl driver for dispmix

2024-10-01 Thread Miquel Raynal
Hi Michael, mich...@amarulasolutions.com wrote on Tue, 1 Oct 2024 10:33:56 +0200: > Hi Miguel > > On Tue, Oct 1, 2024 at 10:29 AM Miquel Raynal > wrote: > > > > Hi Heiko, > > > > > > > >>> Hmm.. unfortunately ... I had applied your 2 clock patches, which > > > >>> fixed a problem with enabli

Re: [PATCH v2] bootstd: android: Add U-Boot version to cmdline

2024-10-01 Thread Mattijs Korpershoek
Hi, On Thu, 12 Sep 2024 16:00:01 +0200, Mattijs Korpershoek wrote: > When booting into Android fastbootd (a subset of recovery), the default > UI shows the bootloader version in the screen [1]. > This is done via the ro.bootloader property which should come from the > bootloader. > > Provide the

Re: [PATCH 08/26] power: Add iMX8M block ctrl driver for dispmix

2024-10-01 Thread Heiko Schocher
Hello Miquel, On 01.10.24 10:50, Miquel Raynal wrote: Hi Michael, mich...@amarulasolutions.com wrote on Tue, 1 Oct 2024 10:33:56 +0200: Hi Miguel On Tue, Oct 1, 2024 at 10:29 AM Miquel Raynal wrote: Hi Heiko, Hmm.. unfortunately ... I had applied your 2 clock patches, which fixed a p

Re: [PATCH v3 3/7] usb: onboard-hub: add support for Microchip USB5744

2024-10-01 Thread Marek Vasut
On 10/1/24 7:05 AM, Venkatesh Yadav Abbarapu wrote: [...] +static const struct onboard_hub_data usb5744_data = { + .reset_us = 1, + .power_on_delay_us = 1, +}; + static const struct udevice_id usb_onboard_hub_ids[] = { /* Use generic usbVID,PID dt-bindings (usb-dev

Re: [PATCH 1/1] cmd: simplify CONFIG_CMD_USB_MASS_STORAGE dependencies

2024-10-01 Thread Caleb Connolly
On 21/09/2024 11:20, Heinrich Schuchardt wrote: CONFIG_USB_GADGET_DOWNLOAD depends on CONFIG_USB_GADGET. It is sufficient to depend on the prior. Signed-off-by: Heinrich Schuchardt Reviewed-by: Caleb Connolly --- cmd/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) dif

Re: [PATCH v3 4/7] usb: onboard-hub: Add i2c initialization for usb5744 hub

2024-10-01 Thread Marek Vasut
On 10/1/24 7:05 AM, Venkatesh Yadav Abbarapu wrote: [...] +static int usb5744_i2c_init(struct udevice *dev) +{ + /* +* Prevent the MCU from the putting the HUB in suspend mode through register write. +* The BYPASS_UDC_SUSPEND bit (Bit 3) of the RuntimeFlags2 register at

Re: [PATCH v2 5/7] usb: onboard-hub: Bail out if peer hub is already probed

2024-10-01 Thread Marek Vasut
On 10/1/24 7:20 AM, Abbarapu, Venkatesh wrote: Hi Marek, -Original Message- From: Marek Vasut Sent: Saturday, September 28, 2024 2:12 AM To: Abbarapu, Venkatesh ; u-boot@lists.denx.de Cc: Simek, Michal ; fabrice.gasn...@foss.st.com; git (AMD-Xilinx) Subject: Re: [PATCH v2 5/7] usb: on

Re: [PATCH 2/3] dts: Add ability to build DTOs only from arch/$(ARCH)/dts

2024-10-01 Thread Sumit Garg
On Mon, 30 Sept 2024 at 23:05, Marek Vasut wrote: > > On 9/30/24 8:02 AM, Sumit Garg wrote: > > + Jan > > > > Hi Marek, > > Hi, > > > On Sat, 28 Sept 2024 at 03:20, Marek Vasut wrote: > >> > >> Currently the enablement of OF_UPSTREAM results on the build system > >> searching for DTs only in dts/

Re: [PATCH] dfu: sf: rely on DT for spi speed and mode

2024-10-01 Thread Neil Armstrong
On 01/10/2024 10:52, Mattijs Korpershoek wrote: Hi Neil, Thank you for the patch and sorry the review delay. On mar., sept. 17, 2024 at 14:24, Neil Armstrong wrote: Align with cmd_sf, and try to rely on DT for spi speed and mode, and still fallback on spi_flash_probe() if it fails. With th

Re: [PATCH] dfu: sf: rely on DT for spi speed and mode

2024-10-01 Thread Mattijs Korpershoek
Hi Neil, Thank you for the patch and sorry the review delay. On mar., sept. 17, 2024 at 14:24, Neil Armstrong wrote: > Align with cmd_sf, and try to rely on DT for spi speed and mode, > and still fallback on spi_flash_probe() if it fails. > > With the current scheme, spi_flash_probe() will be

Re: [PATCH 08/26] power: Add iMX8M block ctrl driver for dispmix

2024-10-01 Thread Miquel Raynal
Hi Michael, > > Ported the patch from patchset > > > > "[PATCH 05/26] clk: imx8mm: Mark IMX8MM_SYS_PLL2 and IMX8MM_SYS_PLL3 > > as enabled" > > > > to imx8mp [2] and fec ethernet works again for me on imx8mp! > > > > Could you add this if you post a v2 ?

  1   2   >