RE: [PATCH v2 11/19] serial: sh: Fix error handling

2023-10-10 Thread Biju Das
Hi Paul, Thanks for the patch. > Subject: [PATCH v2 11/19] serial: sh: Fix error handling > > The current SCIF error handling is broken for the RZ/G2L. After a break > condition has been triggered, the current code is unable to clear the error > and serial port output never resumes. > > The RZ/

When do we merge bug fixes and new functionality

2023-10-10 Thread Tony Dinh
Hi Tom, Simon, Stefan, I have a few people waiting for these patches to get merged. So I hope you don't mind (I'm not sure about the merging schedule), I'd bug you guys about these patches. Wondering if these will be in v2024.01-rc1 or subsequence rc? bootstd: sata: bootdev scanning for ahci sata

[PATCH v2] cli: Consume invalid escape sequences early

2023-10-10 Thread Yurii Monakov
Unexpected 'Esc' key presses are accumulated internally, even if it is already clear that the current escape sequence is invalid. This results in weird behaviour. For example, the next character after 'Esc' key simply disappears from input and 'Unknown command' is printed after 'Enter'. This commi

RE: [PATCH] timer: starfive: Add Starfive timer support

2023-10-10 Thread KuanLim . Lee
Hi Simon, Do my questions and replies are proper? Sorry for this time is my first time upstream. > -Original Message- > From: KuanLim.Lee > Sent: Wednesday, October 4, 2023 5:49 PM > To: 'Simon Glass' > Cc: u-boot@lists.denx.de; WeiLiang Lim > Subject: RE: [PATCH] timer: starfive: Add

RE: [PATCH] spl: mmc: Resolve emmc not load image after switched hw partition

2023-10-10 Thread KuanLim . Lee
Hi, Is this patch considered as accepted? > -Original Message- > From: KuanLim.Lee > Sent: Tuesday, October 3, 2023 12:17 PM > To: u-boot@lists.denx.de > Cc: Cheehong Ang ; WeiLiang Lim > ; KuanLim.Lee > > Subject: [PATCH] spl: mmc: Resolve emmc not load image after switched hw > partit

[PATCH v3] cli: Consume invalid escape sequences early

2023-10-10 Thread Yurii Monakov
Unexpected 'Esc' key presses are accumulated internally, even if it is already clear that the current escape sequence is invalid. This results in weird behaviour. For example, the next character after 'Esc' key simply disappears from input and 'Unknown command' is printed after 'Enter'. This commi

RE: [PATCH] mmc: sdhci-cadence: Add support for Cadence sdmmc v6

2023-10-10 Thread KuanLim . Lee
Hi there, May I know that these patches has any issue? > -Original Message- > From: KuanLim.Lee > Sent: Tuesday, October 3, 2023 3:23 PM > To: u-boot@lists.denx.de > Cc: Yuklin Soo ; WeiLiang Lim > ; Kuan Lim Lee > ; KuanLim.Lee > > Subject: [PATCH] mmc: sdhci-cadence: Add support for C

Re: [PATCH RESEND v2 2/2] usb: udc: Try to clarify an error message

2023-10-10 Thread Miquel Raynal
Hi Marek, > >>> --- a/drivers/usb/gadget/udc/udc-core.c > >>> +++ b/drivers/usb/gadget/udc/udc-core.c > >>> @@ -323,6 +323,7 @@ err1: > >>>int usb_gadget_probe_driver(struct usb_gadget_driver *driver) > >>>{ > >>> struct usb_udc *udc = NULL; > >>> + unsigned int

[PATCH] configs: visionfive2: enable bootstage configs

2023-10-10 Thread Chanho Park
Enable BOOTSTAGE configuration and its command for visionfive2 board. The feature can be useful for analyzing the elapsed time between boot stages. TODO: define / reserve memory region for boot stage stash StarFive # bootstage report Timer summary in microseconds (10 records): MarkElap

[PATCH v1 1/7] rockchip: dts: rk3568: Resync from kernel-4.19

2023-10-10 Thread Elaine Zhang
Resync from kernel-4.19: (a6cf6aca12c0 drivers: rkflash: Ajudst the dll strategy) Change-Id: I7b7134946b76dbd8963cfaafdc5b56750622855e Signed-off-by: Elaine Zhang --- include/dt-bindings/clock/rk3568-cru.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/dt-bindings/clock/rk356

[PATCH v1 0/7] clk : rockchip: update rk3568 and rk3588 clk driver

2023-10-10 Thread Elaine Zhang
Elaine Zhang (5): rockchip: dts: rk3568: Resync from kernel-4.19 clk: rockchip: rk3568: add i2s3 clk clk: rockchip: rk3568: support dclk_vop select more parent clks clk: rockchip: rk3588: support aclk_top_root set 750M clk: rockchip: rk3588: fix up the frac pll calculation Guochun Huang

[PATCH v1 5/7] clk: rockchip: rk3588: support aclk_top_root set 750M

2023-10-10 Thread Elaine Zhang
Change-Id: I78f00d37a645f37e28587d1c31f3179d5fa891e7 Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk_rk3588.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk_rk3588.c b/drivers/clk/rockchip/clk_rk3588.c index c86176264147..7ba037ad

[PATCH v1 3/7] clk: rockchip: rk3568: support dclk_vop select more parent clks

2023-10-10 Thread Elaine Zhang
Change-Id: Ib823620ff7940f8d62e78010817ca9b5f06995dd Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk_rk3568.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk_rk3568.c b/drivers/clk/rockchip/clk_rk3568.c index 469014439be4..7b9035ac

[PATCH v1 4/7] clk: rk3588: Add 742.5M parameter for PLL

2023-10-10 Thread Elaine Zhang
From: Guochun Huang Change-Id: I5a842a3103df9a566789e7635fb484e4bb0bf427 Signed-off-by: Guochun Huang Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk_rk3588.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/rockchip/clk_rk3588.c b/drivers/clk/rockchip/clk_rk3588.c ind

[PATCH v1 2/7] clk: rockchip: rk3568: add i2s3 clk

2023-10-10 Thread Elaine Zhang
Change-Id: If20fe16260d2b584d4216d1dbabffcb25478fb1d Signed-off-by: Elaine Zhang --- .../include/asm/arch-rockchip/cru_rk3568.h| 36 +++ drivers/clk/rockchip/clk_rk3568.c | 218 ++ 2 files changed, 254 insertions(+) diff --git a/arch/arm/include/asm/arch-rockchip

[PATCH v3 0/3] Improve the experience with USB gadgets

2023-10-10 Thread Miquel Raynal
Try to ease the use of USB gadgets for people not fully aware of all the terms and constraints. With more helpful error messages a little bit of guidance anyone should be able to adapt to the bind/unbind game that is now necessary with USB gadgets. The idea is to eventually get proper USB composit

[PATCH v3 1/3] cmd: Change the dependencies between CMD_BIND and USB_GADGET

2023-10-10 Thread Miquel Raynal
Today CMD_BIND defaults to 'y' when USB_ETHER is enabled. In practice, CMD_BIND should default to 'y' when any USB gadget is enabled not only USB_ETHER. Let's invert the logic of the dependency and use the weak 'imply' keyword to enforce this. Signed-off-by: Miquel Raynal --- cmd/Kconfig

[PATCH v3 2/3] cmd: bind: Try to improve the (un)bind help

2023-10-10 Thread Miquel Raynal
While it may sound totally obvious for the regular U-Boot developer to get the parameters of the bind/unbind commands from the output of 'dm tree', it did not felt straightforward to me until I was explicitly told to look there. And even when I knew the command, I did not make a direct link between

[PATCH v3 3/3] usb: udc: Try to clarify an error message

2023-10-10 Thread Miquel Raynal
At some point when trying to use USB gadgets, two situations may arise and lead to a failure. Either the UDC (USB Device Controller) is not available at all (not described or not probed) or the UDC is already in use. For instance, as the USB Ethernet gadget remains bound to the UDC, the use of any

Re: [PATCH 10/15] cmd: blk_common: Use macros for the return values

2023-10-10 Thread Bin Meng
Hi Simon, On Mon, Oct 2, 2023 at 9:42 AM Simon Glass wrote: > > Hi Bin, > > On Tue, 26 Sept 2023 at 02:54, Bin Meng wrote: > > > > Avoid using magic number 0/1 for the command result. > > > > Signed-off-by: Bin Meng > > --- > > > > cmd/blk_common.c | 14 +++--- > > 1 file changed, 7 in

[PATCH v2 0/6] Support for dumping capsule headers and empty capsules

2023-10-10 Thread Sughosh Ganu
These set of patches are intended for two tasks. The first set of patches are adding support for dumping capsule header information, which is then being used in the binman test framework for testing the capsule generation. This replaces the current hardcoding of offsets used for verifying the cap

[PATCH v2 1/6] tools: mkeficapsule: Add support to print capsule headers

2023-10-10 Thread Sughosh Ganu
Add support to dump the contents of capsule headers. This is useful as a debug feature for checking the contents of the capsule headers, and can also be used in capsule verification. Signed-off-by: Sughosh Ganu Reviewed-by: Simon Glass --- Changes since V1: * Get rid of the superfluous hdr_size

[PATCH v2 2/6] doc: capsule: Add documentation for the capsule dump feature

2023-10-10 Thread Sughosh Ganu
Add documentation to explain the printing of the capsule headers through the mkeficapsule tool. Signed-off-by: Sughosh Ganu Reviewed-by: Simon Glass --- Changes since V1: None doc/develop/uefi/uefi.rst | 17 + 1 file changed, 17 insertions(+) diff --git a/doc/develop/uefi/uefi

[PATCH v2 3/6] binman: capsule: Remove superfluous [address, size]-cells properties

2023-10-10 Thread Sughosh Ganu
The #address-cells and #size-cells are not needed for running the capsule generation binman tests. Remove the superfluous properties. Signed-off-by: Sughosh Ganu --- Changes since V1: * New patch based on review comment from Simon. tools/binman/test/311_capsule.dts | 3 --- tools/

[PATCH v2 4/6] binman: capsule: Use dumped capsule header contents for verification

2023-10-10 Thread Sughosh Ganu
The various fields of a generated capsule are currently verified through hard-coded offsets. Use the dump-capsule feature for dumping the capsule header contents and use those for capsule verification. Signed-off-by: Sughosh Ganu --- Changes since V1: * Move the get_binman_test_guid() function ou

[PATCH v2 5/6] btool: mkeficapsule: Add support for EFI empty capsule generation

2023-10-10 Thread Sughosh Ganu
Add a method to the mkeficapsule bintool to generate empty capsules. These are capsules needed for the FWU A/B update feature. Signed-off-by: Sughosh Ganu --- Changes since V1: * Use a single boolean value to indicate the generation of either of accept/revert capsule. * Move the parameters adde

[PATCH v2 6/6] binman: capsule: Add support for generating EFI empty capsules

2023-10-10 Thread Sughosh Ganu
Add support in binman for generating EFI empty capsules. These capsules are used in the FWU A/B update feature. Also add test cases in binman for the corresponding code coverage. Signed-off-by: Sughosh Ganu --- Changes since V1: * Instead of using two separate boolean values, use a 'capsule-type'

U-Boot 2023.10 does not boot from uSD on RPi4

2023-10-10 Thread Guillaume Gardet
Hi, U-Boot 2023.10 does not boot from uSD on RPi4. This has been found on openSUSE Tumbleweed. The only diff we need is: -CONFIG_OF_EMBED=y +CONFIG_OF_BOARD=y To use firmware provided Device Tree. But that should not affect the mmc behavior too much, I think. 'git bisect' points to:

Re: U-Boot 2023.10 does not boot from uSD on RPi4

2023-10-10 Thread Peter Robinson
On Tue, Oct 10, 2023 at 10:26 AM Guillaume Gardet wrote: > > Hi, > > U-Boot 2023.10 does not boot from uSD on RPi4. > This has been found on openSUSE Tumbleweed. The only diff we need is: > -CONFIG_OF_EMBED=y > +CONFIG_OF_BOARD=y > To use firmware provided Device Tree. But that should not affe

RE: U-Boot 2023.10 does not boot from uSD on RPi4

2023-10-10 Thread Guillaume Gardet
> -Original Message- > From: Peter Robinson > Sent: Tuesday, October 10, 2023 12:22 PM > To: Guillaume Gardet > Cc: mbrug...@suse.com; Ivan Ivanov ; Simon Glass > ; u-boot@lists.denx.de > Subject: Re: U-Boot 2023.10 does not boot from uSD on RPi4 > > On Tue, Oct 10, 2023 at 10:26 AM Gui

Re: [PATCH] arm: rpi: explicitly enumerate mmc boot targets

2023-10-10 Thread Peter Robinson
On Sun, Oct 8, 2023 at 11:32 PM Ben Wolsieffer wrote: > > Hi Peter, > > On Sun, Oct 08, 2023 at 07:21:57PM +0100, Peter Robinson wrote: > > On Sat, Oct 7, 2023 at 4:55 PM Ben Wolsieffer > > wrote: > > > > > > Using the unqualified "mmc" boot target causes the Raspberry Pi 4 to > > > fail to boot

Re: ZFS support in custom u-boot build...

2023-10-10 Thread Alexander Dahl
Hello Stacey, Am Thu, Oct 05, 2023 at 11:22:14AM +0100 schrieb Stacey Pellegrino: > To all those of concern, > > I am in need of help regarding building u-boot with ZFS support for the > Orange Pi 5 Plus. > > I have tried working out the following... > > https://github.com/u-boot/u-boot/blob/22

[PATCH v1] arm: dts: k3-am625-verdin: fix boot

2023-10-10 Thread Marcel Ziswiler
From: Marcel Ziswiler A53 U-Boot proper got broken because nodes marked as 'bootph-pre-ram' are no longer available in U-Boot proper before relocation. Fix this by marking all nodes in u-boot.dtsi as 'bootph-all'. Fixes: 9e644284ab812 ("dm: core: Report bootph-pre-ram/sram node as pre-reloc af

Re: [PATCH v1 1/7] rockchip: dts: rk3568: Resync from kernel-4.19

2023-10-10 Thread Jonas Karlman
Hi Elaine, On 2023-10-10 10:51, Elaine Zhang wrote: > Resync from kernel-4.19: > (a6cf6aca12c0 drivers: rkflash: Ajudst the dll strategy) bindings should be synced from mainline linux, not vendor kernel. > > Change-Id: I7b7134946b76dbd8963cfaafdc5b56750622855e > Signed-off-by: Elaine Zhang > -

Re: [PATCH v1 1/7] rockchip: dts: rk3568: Resync from kernel-4.19

2023-10-10 Thread Mark Kettenis
> From: Elaine Zhang > Date: Tue, 10 Oct 2023 16:51:49 +0800 > > Resync from kernel-4.19: > (a6cf6aca12c0 drivers: rkflash: Ajudst the dll strategy) Linux 4.19 is ancient; why are you not synching from 6.5 or a 6.6 release candidate? > Change-Id: I7b7134946b76dbd8963cfaafdc5b56750622855e > Sign

[PATCH v2 1/2] meson-a1: dts: add hw rng node

2023-10-10 Thread Alexey Romanov
Add support for hardware random number generator of Amlogic Meson SoCs. Signed-off-by: Alexey Romanov --- arch/arm/dts/meson-a1.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/meson-a1.dtsi b/arch/arm/dts/meson-a1.dtsi index 6509329b85..e6e72d4004 100644 --- a/arch/arm

[PATCH v2 2/2] meson-a1: dts: add ao secure node

2023-10-10 Thread Alexey Romanov
ao-secure node can be used to get information about the board, so, for example, using show_board_info() we can get following information for board with Meson A1 SoC: SoC: Amlogic Meson A1 (A113L) Revision 2c:a (1:a) Signed-off-by: Alexey Romanov --- arch/arm/dts/meson-a1.dtsi | 6 ++ 1 file

[PATCH v2 0/2] Meson A1: add HW RNG and AO Secure nodes

2023-10-10 Thread Alexey Romanov
Hello! This patchest adds HW RNG and AO Secure definition in device tree for Amlogic A1-series. V2: - Rebased over latest amlogic U-Boot branch. Alexey Romanov (2): meson-a1: dts: add hw rng node meson-a1: dts: add ao secure node arch/arm/dts/meson-a1.dtsi | 11 +++ 1 file changed

[PATCH v2 0/1] hwrng: meson - add support for S4

2023-10-10 Thread Alexey Romanov
Hello! This patch adds support for Meson S4 series hardware number generator using new algo. V2: - Sync with Linux version. Alexey Romanov (1): drivers: rng: add support for Meson S4 drivers/rng/meson-rng.c | 72 - 1 file changed, 71 insertions(+),

[PATCH v2 1/1] drivers: rng: add support for Meson S4

2023-10-10 Thread Alexey Romanov
For some Amlogic SOC's, mechanism to obtain random number has been changed. For example, S4 now uses status bit waiting algo. Signed-off-by: Alexey Romanov --- drivers/rng/meson-rng.c | 72 - 1 file changed, 71 insertions(+), 1 deletion(-) diff --git a/dr

Re: Port gen_compile_commands.py from Linux to U-Boot

2023-10-10 Thread Joao Paulo Goncalves
>Hello U-Boot community, >I'm submitting a patch series that ports the gen_compile_commands.py >script from the Linux kernel's sources to U-Boot. This script, originally >located in scripts/clang-tools/gen_compile_commands.py, enables the >generation of compile_commands.json file for improved code

Re: [PATCH v5 10/11] ram: starfive: Read memory size information from EEPROM

2023-10-10 Thread Andreas Schwab
On Jun 15 2023, Yanhong Wang wrote: > StarFive VisionFive 2 has two versions, 1.2A and 1.3B, each version of > DDR capacity includes 2G/4G/8G, a DT can not support multiple > capacities, so the capacity size information is recorded to EEPROM, when > DDR initialization required capacity size inform

[PATCH v2] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-10 Thread Marek Vasut
Add extension to the 'mmc' command to read out the card registers. Currently, only the eMMC OCR/CID/CSD/EXTCSD/RCA/DSR register are supported. A register value can either be displayed or read into an environment variable. Signed-off-by: Marek Vasut --- Cc: Abdellatif El Khlifi Cc: Heinrich Schuc

Re: [PATCH] test/py: net: Add a test for 'pxe get' command

2023-10-10 Thread Michal Simek
On 10/6/23 22:27, Ramon Fried wrote: On Tue, Oct 3, 2023 at 4:12 PM Love Kumar wrote: Execute the 'pxe get' command to download a pxe configuration file from the TFTP server and validate its interpretation. Signed-off-by: Love Kumar --- test/py/tests/test_net.py | 66 +++

Re: [PATCH] spl: add __noreturn attribute to spl_invoke_atf function

2023-10-10 Thread Tom Rini
On Fri, Sep 08, 2023 at 05:08:56PM +0900, Chanho Park wrote: > spl_invoke_atf function will not be returned to SPL. Thus, we need to > set __noreturn function attribute to the function. > > Signed-off-by: Chanho Park Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP si

Re: [PATCH] spl: Jump to image at end of board_init_r

2023-10-10 Thread Tom Rini
On Wed, Sep 27, 2023 at 09:44:13PM +, Jonas Karlman wrote: > spl_board_prepare_for_boot() is not called before jumping/invoking atf, > optee, opensbi or linux images. > > Jump to image at the end of board_init_r() to fix this. > > Signed-off-by: Jonas Karlman > Reviewed-by: Simon Glass Ap

Re: [PATCH] test: Fix SPL tests not being run

2023-10-10 Thread Tom Rini
On Fri, Sep 29, 2023 at 12:06:54PM -0400, Sean Anderson wrote: > SPL doesn't have OF_LIVE enabled, so we can only run tests with a flat > tree. Don't skip them even if they don't use the devicetree. > > Fixes: 6ec5178c0ef ("test: Skip flat-tree tests if devicetree is not used") > Signed-off-by: S

Re: [PATCH v2] test/py: sleep: Add a test for the time command

2023-10-10 Thread Tom Rini
On Wed, Sep 27, 2023 at 10:33:55AM +0530, Love Kumar wrote: > Execute "time ", and validate that it gives the approximately > the correct amount of command execution time. > > Signed-off-by: Love Kumar Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] mailbox: k3-sec-proxy: fix error handling for missing scfg in FDT

2023-10-10 Thread Tom Rini
On Tue, Sep 26, 2023 at 02:42:54PM +0200, Matthias Schiffer wrote: > The wrong field was checked. > > Fixes: f9aa41023bd9 ("mailbox: Introduce K3 Secure Proxy Driver") > Signed-off-by: Matthias Schiffer > Reviewed-by: Nishanth Menon Applied to u-boot/master, thanks! -- Tom signature.asc De

Re: [PATCH] arm: mach-k3: common: fix compile warnings with PHYS_64BIT on 32bit

2023-10-10 Thread Tom Rini
On Wed, Sep 27, 2023 at 03:43:14PM +0200, Matthias Schiffer wrote: > Use uintptr_t instead of phys_addr_t where appropriate, so passing the > addresses to writel() doesn't result in compile warnings when PHYS_64BIT > is set for 32bit builds (which is actually a useful configuration, as > the K3 So

Re: [PATCH] tools: iot2050-sign-fw.sh: Make localization of tools dir more robust

2023-10-10 Thread Tom Rini
On Wed, Sep 27, 2023 at 05:41:09PM +0200, Jan Kiszka wrote: > From: Jan Kiszka > > When building in-tree, there is no source link. > > Signed-off-by: Jan Kiszka Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2] Makefile: Force regeneration of env.txt

2023-10-10 Thread Tom Rini
On Fri, Sep 15, 2023 at 09:43:23AM -0500, Andrew Davis wrote: > If the source .env file changes to one that is also older than the > generated env.txt file then the .env file is not regenerated. This > means when switching board configs we do not regenerate the env. > > This can be tested with: >

Re: [PATCH 1/3] Makefile: Allow for board directories to not have a Makefile

2023-10-10 Thread Tom Rini
On Thu, Sep 21, 2023 at 07:32:46PM -0400, Tom Rini wrote: > It is entirely possible at this point to have platforms in U-Boot that > do not have board-specific C code (just Kconfig or environment) and so > make it optional to have to descend in to and then build in the board > directory. > > Sign

Re: [PATCH 2/3] board: Remove essentially empty board files and Makefiles

2023-10-10 Thread Tom Rini
On Thu, Sep 21, 2023 at 07:32:47PM -0400, Tom Rini wrote: > As part of reviewing a new platform, Daniel Schwierzeck noted that we > can have an empty Makefile in the board directory and don't need an > empty board.c file as well. Further with further cleanup in the > Makefile we can now omit the

Re: [PATCH 3/3] exynos: Cleanup exynos_init

2023-10-10 Thread Tom Rini
On Thu, Sep 21, 2023 at 07:32:48PM -0400, Tom Rini wrote: > - None of the callers perform error checking and based on the non-empty > versions of this function, there's no checking to be done, so make > this a void. > - Add a default weak version of the function. > - Remove the empty versions

Re: [PATCH v2 1/2] lmb: remove overlapping region with next range

2023-10-10 Thread Tom Rini
On Tue, Sep 26, 2023 at 04:54:42PM +0530, Udit Kumar wrote: > In case of new memory range to be added is coalesced > with any already added non last lmb region. > > And there is possibility that, then region in which new memory > range added is not adjacent to next region. But have some > section

Re: [PATCH v2 2/2] test: lmb: Add test for coalescing and overlap range

2023-10-10 Thread Tom Rini
On Tue, Sep 26, 2023 at 04:54:43PM +0530, Udit Kumar wrote: > Add test case for an address range which is coalescing with one of > range and overlapping with next range > > Cc: Simon Glass > Signed-off-by: Udit Kumar > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom sig

Re: [PATCH] bootstd: use ARCH_DMA_MINALIGN in memalign() when allocating memory

2023-10-10 Thread Tom Rini
On Tue, Sep 19, 2023 at 02:27:21PM -0700, Tony Dinh wrote: > Use ARCH_DMA_MINALIGN in memalign() when allocating memory to read the script > from the media. > > Ref: > https://lore.kernel.org/u-boot/cajalify05f3cr4x4g2mvkppxnbefzrhq+5cngyn8ejpg8en...@mail.gmail.com/T/#m26daadc2463fe653b814a94e6

Re: [PATCH] ARM: vexpress_ca9x4: Add missing flash width config option

2023-10-10 Thread Tom Rini
On Wed, Sep 20, 2023 at 09:41:20AM +0200, Patryk Biel wrote: > Allow for a proper configuration of CFI flash banks avaialble on the > vexpress_ca9x4 > board. Without this option, the CFI flash incorrectly detects that the board > has two > banks of 32MB flash devices, while in reality, the board

Re: [PATCH 1/2] dm: serial: fix serial_post_probe()

2023-10-10 Thread Tom Rini
On Fri, Sep 29, 2023 at 02:47:16AM +0200, Heinrich Schuchardt wrote: > The size of the name of a udevice is not limited. > > When setting the fixed sized name field of a stdio device we must ensure > that the target string is NUL terminated to avoid buffer overflows. > > Fixes: 57d92753d4ca ("dm

Re: [PATCH 2/2] stdio: fix stdio_deregister_dev()

2023-10-10 Thread Tom Rini
On Fri, Sep 29, 2023 at 02:47:17AM +0200, Heinrich Schuchardt wrote: > When copying the name of a stdio device we must ensure that it is NUL > terminated before passing it to strcmp() to avoid a buffer overrun. > > Truncating the name field leads to failure to deregister a stdio device. > When co

Re: [PATCH] board/km/cent2: Fix buffer overflow when fixing MAC address

2023-10-10 Thread Tom Rini
On Fri, Sep 29, 2023 at 04:11:00PM +0200, Francois Berder wrote: > String "/soc/fman/ethernet@e8000" is 25 bytes long > and not 24 due to extra byte for null character at > the end. > > Signed-off-by: Francois Berder Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP si

Re: [PATCH] ARM: dts: stm32mp: Repair damage from alignment with v6.3

2023-10-10 Thread Patrice CHOTARD
On 10/10/23 01:15, Marek Vasut wrote: > The patch fixed by this commit renders ST STM32MP15xx EV1 board and > all DHSOM SoM based boards unbootable from SPI NOR. Fix the damage > by updating -u-boot.dtsi to match the stm32mp15-pinctrl.dtsi update. > > Fixes: 08002ffd083d ("ARM: dts: stm32mp: align

Re: [PATCH v2] net: phy: xilinx_phy: Get rid of using property xlnx,phy-type

2023-10-10 Thread Michal Simek
On 10/10/23 05:04, Venkatesh Yadav Abbarapu wrote: As the xlnx,phy-type device tree property is deprecated and phy-mode is being used, so removing the code references of xlnx,phy-type. Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Removed phytype variable. --- drivers/net/ph

Re: [PATCH] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-10 Thread Marek Vasut
On 10/10/23 08:51, Heinrich Schuchardt wrote: Am 10. Oktober 2023 01:14:58 MESZ schrieb Marek Vasut : Add extension to the 'mmc' command to read out the card registers. Currently, only the eMMC OCR/CID/CSD/EXTCSD/RCA/DSR register are supported. A register value can either be displayed or read

Re: [PATCH] timer: starfive: Add Starfive timer support

2023-10-10 Thread Simon Glass
Hi, On Wed, 4 Oct 2023 at 03:49, KuanLim.Lee wrote: > > Hi Simon, > > > -Original Message- > > From: Simon Glass > > Sent: Wednesday, October 4, 2023 10:11 AM > > To: KuanLim.Lee > > Cc: u-boot@lists.denx.de; WeiLiang Lim > > Subject: Re: [PATCH] timer: starfive: Add Starfive timer sup

Re: [PATCH v4] dt-bindings: mtd: fixed-partitions: Add compression property

2023-10-10 Thread Rob Herring
On Wed, 27 Sep 2023 12:05:43 -0600, Simon Glass wrote: > Sometimes the contents of a partition are compressed. Add a property to > express this and define the algorithm used. > > Signed-off-by: Simon Glass > --- > > Changes in v4: > - Add an example > > Changes in v3: > - Just add a compressi

[PATCH] smegw01: Remove misuse of CONFIG_ENV_IS_NOWHERE

2023-10-10 Thread Fabio Estevam
From: Eduard Strehlau When using a list of writeable variables, the initial values come from the built-in default environment since commit 5ab81058364b ("env: Complete generic support for writable list"). Remove unnecessary misuse of CONFIG_ENV_IS_NOWHERE as default environment. Based on the fi

Re: [PATCH v5 15/16] doc: cmd: add documentation for scmi

2023-10-10 Thread Tom Rini
On Tue, Sep 26, 2023 at 03:57:49PM +0900, AKASHI Takahiro wrote: > This is a help text for scmi command. > > Signed-off-by: AKASHI Takahiro > Reviewed-by: Simon Glass > Reviewed-by: Etienne Carriere > --- > v4 > * s/tranport/transport/ > v2 > * add more descriptions about SCMI > --- > doc/usa

Re: [PATCH v5 00/16] firmware: scmi: add SCMI base protocol support

2023-10-10 Thread Tom Rini
On Tue, Sep 26, 2023 at 03:57:34PM +0900, AKASHI Takahiro wrote: > This patch series allows users to access SCMI base protocol provided by > SCMI server (platform). It will also be utilized in separate patches > in the future to add sanity/validity checks for other protocols. > See SCMI specificat

Re: [PATCH v4 4/4] board: Add support for Conclusive KSTR-SAMA5D27

2023-10-10 Thread Eugen Hristev
Hello Artur, On 10/9/23 17:41, Artur Rojek wrote: Introduce support for Conclusive KSTR-SAMA5D27 Single Board Computer. Co-developed-by: Jakub Klama Signed-off-by: Jakub Klama Co-developed-by: Marcin Jabrzyk Signed-off-by: Marcin Jabrzyk Signed-off-by: Artur Rojek --- v4: - utilize EVT_SE

Re: [PATCH 07/25] tegra: Change #ifdef for nop

2023-10-10 Thread Simon Glass
Hi Sean, On Mon, 9 Oct 2023 at 17:40, Sean Anderson wrote: > > On 10/9/23 11:32, Simon Glass wrote: > > Hi Sean, > > > > On Sat, 7 Oct 2023 at 17:21, Sean Anderson wrote: > >> > >> On 10/7/23 19:10, Simon Glass wrote: > >>> Hi Tom. > >>> > >>> On Sun, 24 Sept 2023 at 18:43, Tom Rini wrote: > >>

Re: [PATCH 3/5] binman: capsule: Use dumped capsule header contents for verification

2023-10-10 Thread Simon Glass
Hi Sughosh, On Mon, 9 Oct 2023 at 13:41, Sughosh Ganu wrote: > > hi Simon, > > On Mon, 9 Oct 2023 at 23:27, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Mon, 9 Oct 2023 at 01:46, Sughosh Ganu wrote: > > > > > > hi Simon, > > > > > > On Sun, 8 Oct 2023 at 04:41, Simon Glass wrote: > > > >

Re: [PATCH] net: Add option for tracing packets

2023-10-10 Thread Simon Glass
On Sat, 7 Oct 2023 at 20:01, Sean Anderson wrote: > > Add an option to trace all packets send/received. This can be helpful when > debugging protocol issues, as the packets can then be imported into > wireshark [1] and analyzed further. > > [1] https://www.wireshark.org/docs/wsug_html_chunked/ChIO

Re: [PATCH] malloc: Enable assertions if UNIT_TEST is enabled

2023-10-10 Thread Simon Glass
On Sat, 7 Oct 2023 at 20:02, Sean Anderson wrote: > > dlmalloc has some sanity checks it performs on free() which can help detect > memory corruption. However, they are only enabled if DEBUG is defined before > including common.h. Define DEBUG earlier if UNIT_TEST is enabled so that > assertions a

Re: [PATCH v3 5/9] board_f: Fix corruption of relocaddr

2023-10-10 Thread Simon Glass
Hi Devarsh, On Fri, 22 Sept 2023 at 15:49, Devarsh Thakkar wrote: > > Hi Simon, > > On 22/09/23 23:57, Simon Glass wrote: > > Hi Devarsh, > > > > On Tue, 12 Sept 2023 at 08:35, Devarsh Thakkar wrote: > >> > >> Hi Simon, > >> > >> On 11/09/23 04:44, Simon Glass wrote: > >>> Hi Devarsh, > >>> > >>

Re: U-Boot 2023.10 does not boot from uSD on RPi4

2023-10-10 Thread Simon Glass
Hi, On Tue, 10 Oct 2023 at 04:39, Guillaume Gardet wrote: > > > > > -Original Message- > > From: Peter Robinson > > Sent: Tuesday, October 10, 2023 12:22 PM > > To: Guillaume Gardet > > Cc: mbrug...@suse.com; Ivan Ivanov ; Simon Glass > > ; u-boot@lists.denx.de > > Subject: Re: U-Boot 2

Re: [RESEND PATCH v3 0/3] rpi: Convert to standard boot

2023-10-10 Thread Simon Glass
Hi Peter, On Sun, 8 Oct 2023 at 14:20, Simon Glass wrote: > > Hi Peter, > > On Sun, 8 Oct 2023 at 12:02, Peter Robinson wrote: > > > > Hi Simon, > > > > > > So with more testing of 2023.10 in Fedora we found a regression where > > > > the display dies when the vc4 module loads in the kernel. Wit

Re: [PATCH v3] cli: Consume invalid escape sequences early

2023-10-10 Thread Simon Glass
On Tue, 10 Oct 2023 at 02:16, Yurii Monakov wrote: > > Unexpected 'Esc' key presses are accumulated internally, even if it is > already clear that the current escape sequence is invalid. This results > in weird behaviour. For example, the next character after 'Esc' key > simply disappears from inp

Re: [PATCH 10/15] cmd: blk_common: Use macros for the return values

2023-10-10 Thread Simon Glass
Hi Bin, On Tue, 10 Oct 2023 at 03:06, Bin Meng wrote: > > Hi Simon, > > On Mon, Oct 2, 2023 at 9:42 AM Simon Glass wrote: > > > > Hi Bin, > > > > On Tue, 26 Sept 2023 at 02:54, Bin Meng wrote: > > > > > > Avoid using magic number 0/1 for the command result. > > > > > > Signed-off-by: Bin Meng

Re: [PATCH 3/5] binman: capsule: Use dumped capsule header contents for verification

2023-10-10 Thread Sughosh Ganu
hi Simon, On Tue, 10 Oct 2023 at 20:27, Simon Glass wrote: > > Hi Sughosh, > > On Mon, 9 Oct 2023 at 13:41, Sughosh Ganu wrote: > > > > hi Simon, > > > > On Mon, 9 Oct 2023 at 23:27, Simon Glass wrote: > > > > > > Hi Sughosh, > > > > > > On Mon, 9 Oct 2023 at 01:46, Sughosh Ganu wrote: > > > >

Re: [RFC PATCH] clk: scmi: Provide channel information to every clock

2023-10-10 Thread Michal Simek
On 10/5/23 13:49, Michal Simek wrote: When assigned-clocks/assigned-clock-rates is defined U-Boot DM core finds out leaf which is registered via clk_register(). But new clock doesn't have information about channel which is stored in private data. That's why copy parents private data (channel o

Re: [PATCH 3/5] binman: capsule: Use dumped capsule header contents for verification

2023-10-10 Thread Simon Glass
Hi Sughosh, On Tue, 10 Oct 2023 at 09:01, Sughosh Ganu wrote: > > hi Simon, > > On Tue, 10 Oct 2023 at 20:27, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Mon, 9 Oct 2023 at 13:41, Sughosh Ganu wrote: > > > > > > hi Simon, > > > > > > On Mon, 9 Oct 2023 at 23:27, Simon Glass wrote: > > >

Re: [PATCH v3] cli: Consume invalid escape sequences early

2023-10-10 Thread Yurii Monakov
Simon, On Tue, Oct 10, 2023 at 5:58 PM Simon Glass wrote: > > On Tue, 10 Oct 2023 at 02:16, Yurii Monakov wrote: > > > > Unexpected 'Esc' key presses are accumulated internally, even if it is > > already clear that the current escape sequence is invalid. This results > > in weird behaviour. For

Re: [PATCH v3 2/3] dt-bindings: mtd: binman-partition: Add binman compatibles

2023-10-10 Thread Rob Herring
On Mon, Oct 09, 2023 at 04:02:40PM -0600, Simon Glass wrote: > Hi Rob, > > On Mon, 9 Oct 2023 at 15:18, Rob Herring wrote: > > > > > > On Mon, 09 Oct 2023 14:10:00 -0600, Simon Glass wrote: > > > Add two compatible for binman entries, as a starting point for the > > > schema. > > > > > > Note tha

Re: [PATCH 00/25] Tidy up use of CONFIG_CMDLINE

2023-10-10 Thread Simon Glass
Hi Tom, On Sun, 24 Sept 2023 at 18:37, Tom Rini wrote: > > On Sun, Sep 24, 2023 at 02:39:18PM -0600, Simon Glass wrote: > > > It should be possible to disable CONFIG_CMDLINE and have all commands > > and related functionality dropped from U-Boot. This is useful when > > trying to reduce the size

[PATCH] firmware: scmi: Fix clearing variable

2023-10-10 Thread Francois Berder
The sess variable in open_channel was not entirely cleared to zero at the start of this function. This commit ensures that the entire struct is cleared. Signed-off-by: Francois Berder --- drivers/firmware/scmi/optee_agent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dri

[PATCH] rockchip: dts: rk3328: Sync rock64 device tree file from Linux

2023-10-10 Thread Matwey V. Kornilov
Sync the rk3328-rock64 dts from v6.6-rc5. See Linux kernel commit for details: 03633c4ef1fb ("arm64: dts: rockchip: fix USB regulator on ROCK64") Signed-off-by: Matwey V. Kornilov --- arch/arm/dts/rk3328-rock64.dts | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff

Re: [PATCH 10/15] cmd: blk_common: Use macros for the return values

2023-10-10 Thread Tom Rini
On Tue, Oct 10, 2023 at 08:58:04AM -0600, Simon Glass wrote: > Hi Bin, > > On Tue, 10 Oct 2023 at 03:06, Bin Meng wrote: > > > > Hi Simon, > > > > On Mon, Oct 2, 2023 at 9:42 AM Simon Glass wrote: > > > > > > Hi Bin, > > > > > > On Tue, 26 Sept 2023 at 02:54, Bin Meng wrote: > > > > > > > > Avo

Re: [PATCH] arm: mach-apple: Move M1/M2 specifics into a separate folder

2023-10-10 Thread Mark Kettenis
> Date: Tue, 29 Aug 2023 22:13:53 +0300 > From: Ivaylo Ivanov > > I'm currently working on S5L8950X. I also have some T7000 and T8010 > devices that I'll work on in the future. > > There's a project called freemyipod that has a fork of U-Boot working on > iPod Nano's (specifically the S5L8730 in

[PATCH 1/4] rockchip: rk3588: Sync device tree from linux maintainer tree

2023-10-10 Thread Jonas Karlman
Sync rk3588 device tree from linux maintainer tree (v6.7-armsoc/dts64). Adds PCIe nodes to rk3588-evb1-v10 and rk3588-rock-5b boards. Also remove includes from u-boot.dtsi-files that is no longer needed. Linux commits: 42145b7a8235 ("arm64: dts: rockchip: add PCIe network controller to rock-5b") 1

[PATCH 3/4] rockchip: rk3588-rock-5b: Sync USB3 nodes from mainline linux patches

2023-10-10 Thread Jonas Karlman
The device tree for rk3588 and rock-5b contain usb3 nodes that have deviated too much from current state of submitted mainline linux usb3 patches, see [1]. Sync usb3 related nodes from latest patches and collaboras rk3588 tree so that dwc3-generic driver can be updated to include support for the r

[PATCH 0/4] rockchip: rk3588: Sync pcie and usb3 nodes from linux

2023-10-10 Thread Jonas Karlman
This series sync rk3588 device tree nodes from latest mainline linux maintainer tree and also update usb3 nodes with latest submitted patches. Patch 1 sync latest device tree from latest linux maintainer tree to move pcie and spi flash nodes away from -u-boot.dtsi files. Patch 2 fully enable pcie

[PATCH 4/4] usb: dwc3-generic: Use combined glue and ctrl node for RK3588

2023-10-10 Thread Jonas Karlman
Like Rockchip RK3328 and RK3568, the RK3588 also have single node to represent the glue and ctrl for USB 3.0. Use rk_ops as driver data to select correct ctrl node for RK3588 DWC3. Signed-off-by: Jonas Karlman --- drivers/usb/dwc3/dwc3-generic.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 2/4] rockchip: rk3588-rock-5b: Enable support for PCIe SATA cards

2023-10-10 Thread Jonas Karlman
Enable support for PCIe SATA cards and the on-board SATA controller. This also revert use of CONFIG_PCI_INIT_R in order to speed up boot from eMMC or SD-cards. Standard boot will initialize pci after faster boot media have been enumerated. Signed-off-by: Jonas Karlman --- Cc: Christopher Obbard

Re: [PATCH 07/25] tegra: Change #ifdef for nop

2023-10-10 Thread Sean Anderson
On 10/10/23 10:42, Simon Glass wrote: Hi Sean, On Mon, 9 Oct 2023 at 17:40, Sean Anderson wrote: On 10/9/23 11:32, Simon Glass wrote: Hi Sean, On Sat, 7 Oct 2023 at 17:21, Sean Anderson wrote: On 10/7/23 19:10, Simon Glass wrote: Hi Tom. On Sun, 24 Sept 2023 at 18:43, Tom Rini wrote:

Re: [PATCH v1 2/7] clk: rockchip: rk3568: add i2s3 clk

2023-10-10 Thread Kever Yang
Hi Elaine,     Please add commit message, and remove the change id.     same for other patches. Thanks, - Kever On 2023/10/10 16:51, Elaine Zhang wrote: Change-Id: If20fe16260d2b584d4216d1dbabffcb25478fb1d Signed-off-by: Elaine Zhang --- .../include/asm/arch-rockchip/cru_rk3568.h| 36

Re: [PATCH v5 15/16] doc: cmd: add documentation for scmi

2023-10-10 Thread AKASHI Takahiro
Hi Tom, On Tue, Oct 10, 2023 at 10:19:06AM -0400, Tom Rini wrote: > On Tue, Sep 26, 2023 at 03:57:49PM +0900, AKASHI Takahiro wrote: > > > This is a help text for scmi command. > > > > Signed-off-by: AKASHI Takahiro > > Reviewed-by: Simon Glass > > Reviewed-by: Etienne Carriere > > --- > > v4

Re: [PATCH v5 00/16] firmware: scmi: add SCMI base protocol support

2023-10-10 Thread AKASHI Takahiro
Hi Tom, On Tue, Oct 10, 2023 at 10:19:09AM -0400, Tom Rini wrote: > On Tue, Sep 26, 2023 at 03:57:34PM +0900, AKASHI Takahiro wrote: > > > This patch series allows users to access SCMI base protocol provided by > > SCMI server (platform). It will also be utilized in separate patches > > in the fu

Re: [PATCH 00/15] blk: sandbox: Support binding a device with a given logical block size

2023-10-10 Thread Tom Rini
On Tue, Sep 26, 2023 at 04:43:30PM +0800, Bin Meng wrote: > At present on Sandbox when binding to a host backing file, the host > block device is created with a hard-coded 512 bytes block size. > > Such assumption works for most cases, but for situation that with a raw > image file dump from a pr

  1   2   >