Re: [PATCH] EFI: Fix ReadBlocks API reading incorrect sector for, UCLASS_PARTITION devices

2022-06-28 Thread Heinrich Schuchardt
On 6/29/22 03:02, Paul Barbieri wrote: From 7a7dd7f16352fc916279cca05a3fa617f8bbef64 Mon Sep 17 00:00:00 2001 From: Paul Barbieri Date: Tue, 28 Jun 2022 20:24:33 -0400 Subject: [PATCH] EFI: Fix ReadBlocks API reading incorrect sector for UCLASS_PARTITION devices The requested partition disk

Re: [PATCH] EFI: Fix ReadBlocks API reading incorrect sector for, UCLASS_PARTITION devices

2022-06-28 Thread AKASHI Takahiro
Hi Paul, On Tue, Jun 28, 2022 at 09:02:47PM -0400, Paul Barbieri wrote: > From 7a7dd7f16352fc916279cca05a3fa617f8bbef64 Mon Sep 17 00:00:00 2001 > From: Paul Barbieri > Date: Tue, 28 Jun 2022 20:24:33 -0400 > Subject: [PATCH] EFI: Fix ReadBlocks API reading incorrect sector for >

Re: [PATCH] RockPi4: Add UEFI capsule update support

2022-06-28 Thread Kever Yang
Hi Sughosh, Thanks for your patch. On 2022/5/16 14:12, Sughosh Ganu wrote: hi Peter, On Sat, 14 May 2022 at 13:44, Peter Robinson wrote: On Fri, May 13, 2022 at 7:50 AM Sughosh Ganu wrote: Add support for updating the idbloader and u-boot images through the UEFI capsule update

Re: [PATCH 2/2] rockchip: rk3399: enable spl-fifo-mode for sdmmc only when needed

2022-06-28 Thread Kever Yang
On 2022/6/9 23:23, Jerome Forissier wrote: Commit 5c606ca35c42 ("rockchip: rk3399: enable spl-fifo-mode for sdmmc") mentions that the RK3399 SoC can't do DMA between SDMMC and SRAM. According to the TRM "7.3.2 Embedded SRAM access path" [1], only the 8KB SRAM at 0xff3b (INTMEM1) is in this

Re: [PATCH] rockchip: pinebook-pro: sync PBP dtb to 5.18

2022-06-28 Thread Kever Yang
On 2022/6/12 22:25, Peter Robinson wrote: Sync the pinebook pro to upstream 5.18, in particular this brings brings in a fix so the DP is disabled so Linux will actually boot. Signed-off-by: Peter Robinson Reviewed-by: Kever Yang Thanks, - Kever ---

Re: [PATCH] rockchip: rockpro64: enable leds

2022-06-28 Thread Kever Yang
On 2022/6/12 21:52, Peter Robinson wrote: The Rockpro64 has some GPIO leds so let's enable them so the user gets some output in early boot. Signed-off-by: Peter Robinson Reviewed-by: Kever Yang Thanks, - Kever --- configs/rockpro64-rk3399_defconfig | 2 ++ 1 file changed, 2

Re: [PATCH] rockchip: pinebook-pro: minor SPI flash fixes

2022-06-28 Thread Kever Yang
On 2022/6/12 21:47, Peter Robinson wrote: Set a default offset for environment so it doesn't write it to unexpected locations, drop unneeded mtd config option. Signed-off-by: Peter Robinson Reviewed-by: Kever Yang Thanks, - Kever --- configs/pinebook-pro-rk3399_defconfig | 2 +- 1

Re: [PATCH 0/8] u-boot: fs: add generic unaligned read handling

2022-06-28 Thread Qu Wenruo
On 2022/6/28 22:17, Tom Rini wrote: On Tue, Jun 28, 2022 at 03:28:00PM +0800, Qu Wenruo wrote: [BACKGROUND] Unlike FUSE/Kernel which always pass aligned read range, U-boot fs code just pass the request range to underlying fses. Under most case, this works fine, as U-boot only really needs

Re: [PATCH v1] usb: host: nuvoton: Add nuvoton NPCM7xx ehci/ohci driver

2022-06-28 Thread Jim Liu
Hi Marek no, not yet. I will add i2c otp aes sha pinctrl usb spi mmc feature to poleg_evb_defconfig in the last commit. about the usb patch if you have any suggestion or need modify please let me know. On Tue, Jun 28, 2022 at 5:39 PM Marek Vasut wrote: > > On 6/28/22 05:49, Jim Liu wrote: >

RE: [PATCH] configs: ast2600: Move SPL bss section to DRAM space

2022-06-28 Thread ChiaWei Wang
Hi Sean, > From: Sean Anderson > Sent: Tuesday, June 28, 2022 12:57 PM > > Hi Chai, > > On 6/28/22 12:23 AM, Joel Stanley wrote: > > Hi Chai Wei, > > > > On Wed, 1 Jun 2022 at 08:21, Chia-Wei Wang > wrote: > >> > >> The commit b583348ca8c8 ("image: fit: Align hash output buffers") > >> places

RE: [PATCH] configs: ast2600: Move SPL bss section to DRAM space

2022-06-28 Thread ChiaWei Wang
Hi Joel, > From: Joel Stanley > Sent: Tuesday, June 28, 2022 12:24 PM > > Hi Chai Wei, > > On Wed, 1 Jun 2022 at 08:21, Chia-Wei Wang > wrote: > > > > The commit b583348ca8c8 ("image: fit: Align hash output buffers") > > places the hash output buffer at the .bss section. However, AST2600 by >

Re: [PATCH v2] fs/squashfs: Use kcalloc when relevant

2022-06-28 Thread Tom Rini
On Mon, Jun 27, 2022 at 12:20:03PM +0200, Miquel Raynal wrote: > A crafted squashfs image could embed a huge number of empty metadata > blocks in order to make the amount of malloc()'d memory overflow and be > much smaller than expected. Because of this flaw, any random code > positioned at the

Re: [RESEND PATCH 4/4] configs: imx8mn_bsh_smm_s2: add mtdparts to bootargs

2022-06-28 Thread Tom Rini
On Sun, Jun 26, 2022 at 12:05:18PM +0200, Dario Binacchi wrote: > Passing the mtdparts environment variable to the Linux kernel is > required to properly mount the UBI rootfs. > > Co-developed-by: Michael Trimarchi > Signed-off-by: Michael Trimarchi > Signed-off-by: Dario Binacchi Applied to

Re: [RESEND PATCH 3/4] configs: imx8mn_bsh_smm_s2: remove console from bootargs

2022-06-28 Thread Tom Rini
On Sun, Jun 26, 2022 at 12:05:17PM +0200, Dario Binacchi wrote: > The Linux kernel device tree already specifies the device to be used for > boot console output with a stdout-path property under /chosen. > > Co-developed-by: Michael Trimarchi > Signed-off-by: Michael Trimarchi > Signed-off-by:

Re: [RESEND PATCH 2/4] configs: imx8mn_bsh_smm_s2: add UBI commands

2022-06-28 Thread Tom Rini
On Sun, Jun 26, 2022 at 12:05:16PM +0200, Dario Binacchi wrote: > imx8mn_bsh_smm_s2 uses ubifs rootfs, UBI commands are required to flash > it. > > Co-developed-by: Michael Trimarchi > Signed-off-by: Michael Trimarchi > Signed-off-by: Dario Binacchi Applied to u-boot/master, thanks! -- Tom

Re: [RESEND PATCH 1/4] configs: imx8mn_bsh_smm_s2: add NAND driver

2022-06-28 Thread Tom Rini
On Sun, Jun 26, 2022 at 12:05:15PM +0200, Dario Binacchi wrote: > It allows to boot from NAND. > > Co-developed-by: Michael Trimarchi > Signed-off-by: Michael Trimarchi > Signed-off-by: Dario Binacchi Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] i2c: fix stack buffer overflow vulnerability in i2c md command

2022-06-28 Thread Tom Rini
On Fri, Jun 10, 2022 at 02:50:25PM +, nicolas.iooss.led...@proton.me wrote: > From: Nicolas Iooss > > When running "i2c md 0 0 8100", the function do_i2c_md parses the > length into an unsigned int variable named length. The value is then > moved to a signed variable: > > int

Re: 回复: minor regression in U-Boot 2022.04

2022-06-28 Thread Daniel Golle
Hi Weijie, On Tue, Apr 12, 2022 at 01:40:00AM +, Weijie Gao (高惟杰) wrote: > Hi Daniel, > > I've also noticed this error message. > It seems that some struct variables containing all zero data of the pinctrl > driver are not set to const, which causes these variables to be put into .bss >

[PATCH v4 2/3] usb: add isp1760 family driver

2022-06-28 Thread Rui Miguel Silva
ISP1760/61/63 are a family of usb controllers, here the main goal is to support the ISP1763 hcd part found in the MPS3 FPGA board form Arm. This is based on the kernel driver and ported to u-boot. Signed-off-by: Rui Miguel Silva --- Makefile|1 +

Serial console input dead after successfully booting buildroot system on rpi4

2022-06-28 Thread Matthias
Hi, after using the u-boot (v2022.01) bootloader built with rpi_4_32b_defconfig on a buildroot 2022.05 custom system, I can no longer input on the serial console connected to an FTDI adapter wired to Pins 8/10 of the RPi4 GPIO pin header. Here's what I did: * Replaced kernel=zImage by

Re: [PATCH v4 3/3] corstone1000: enable isp1763 usb controller and mmc

2022-06-28 Thread Rui Miguel Silva
Hi Marek, On Tue, Jun 28, 2022 at 09:05:43PM +0200, Marek Vasut wrote: > On 6/28/22 19:42, Rui Miguel Silva wrote: > > MPS3 board have a ISP1763 usb controller, enable it to be used > > for mass storage access for example. Enable the usb command > > also and for the FVP support for mass storage

Re: [PATCH 2/2] pmic: pca9450: clear PRESET_EN bit for BUCK1/2/3 voltage settings

2022-06-28 Thread Marek Vasut
On 6/28/22 22:02, Fabio Estevam wrote: On 28/06/2022 11:06, Heiko Thiery wrote: The regulator driver uses the DVS registers PCA9450_REG_BUCKxOUT_DVS0 to set the voltage for the buck regulators 1, 2 and 3. This has no effect as the PRESET_EN bit is set by default and therefore the preset

Re: [PATCH 2/2] pmic: pca9450: clear PRESET_EN bit for BUCK1/2/3 voltage settings

2022-06-28 Thread Fabio Estevam
On 28/06/2022 11:06, Heiko Thiery wrote: The regulator driver uses the DVS registers PCA9450_REG_BUCKxOUT_DVS0 to set the voltage for the buck regulators 1, 2 and 3. This has no effect as the PRESET_EN bit is set by default and therefore the preset values are used instead, which are set to

Re: [PATCH 1/2] pmic: pca9450: enable system reset on WDOG_B assertion

2022-06-28 Thread Fabio Estevam
On 28/06/2022 11:06, Heiko Thiery wrote: By default the PCA9450 doesn't handle the assertion of the WDOG_B signal, but this is required to guarantee that things like software resets triggered by the watchdog work reliably. This is a port of the same changes in the Linux kernel: f7684f5a048f

Re: Pull request: u-boot-imx u-boot-imx-20220628

2022-06-28 Thread Tom Rini
ns/u-boot-sunxi (2022-06-26 21:06:08 > -0400) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git > tags/u-boot-imx-20220628 > > for you to fetch changes up to b5023254b88a67fcbca913e212e3401dea521fc9: > > kont

Re: [PATCH v2] board: freescale: p1_p2_rdb_pc: Simplify SPL offset macros

2022-06-28 Thread Pali Rohár
On Tuesday 28 June 2022 15:08:57 Tom Rini wrote: > On Tue, Jun 28, 2022 at 08:58:48PM +0200, Pali Rohár wrote: > > On Tuesday 28 June 2022 14:53:26 Tom Rini wrote: > > > On Tue, Jun 28, 2022 at 08:41:44PM +0200, Pali Rohár wrote: > > > > On Tuesday 28 June 2022 14:39:11 Tom Rini wrote: > > > > >

Re: [PATCH v2] board: freescale: p1_p2_rdb_pc: Simplify SPL offset macros

2022-06-28 Thread Tom Rini
On Tue, Jun 28, 2022 at 08:58:48PM +0200, Pali Rohár wrote: > On Tuesday 28 June 2022 14:53:26 Tom Rini wrote: > > On Tue, Jun 28, 2022 at 08:41:44PM +0200, Pali Rohár wrote: > > > On Tuesday 28 June 2022 14:39:11 Tom Rini wrote: > > > > On Tue, Jun 28, 2022 at 08:34:47PM +0200, Pali Rohár wrote:

Re: [PATCH v4 3/3] corstone1000: enable isp1763 usb controller and mmc

2022-06-28 Thread Marek Vasut
On 6/28/22 19:42, Rui Miguel Silva wrote: MPS3 board have a ISP1763 usb controller, enable it to be used for mass storage access for example. Enable the usb command also and for the FVP support for mass storage enable the mmc command. This one does not apply to u-boot/master , do you have some

Re: [PATCH v2] board: freescale: p1_p2_rdb_pc: Simplify SPL offset macros

2022-06-28 Thread Pali Rohár
On Tuesday 28 June 2022 14:53:26 Tom Rini wrote: > On Tue, Jun 28, 2022 at 08:41:44PM +0200, Pali Rohár wrote: > > On Tuesday 28 June 2022 14:39:11 Tom Rini wrote: > > > On Tue, Jun 28, 2022 at 08:34:47PM +0200, Pali Rohár wrote: > > > > On Tuesday 28 June 2022 14:28:52 Tom Rini wrote: > > > > >

Re: [PATCH v2] board: freescale: p1_p2_rdb_pc: Simplify SPL offset macros

2022-06-28 Thread Tom Rini
On Tue, Jun 28, 2022 at 08:41:44PM +0200, Pali Rohár wrote: > On Tuesday 28 June 2022 14:39:11 Tom Rini wrote: > > On Tue, Jun 28, 2022 at 08:34:47PM +0200, Pali Rohár wrote: > > > On Tuesday 28 June 2022 14:28:52 Tom Rini wrote: > > > > On Tue, Jun 28, 2022 at 08:22:38PM +0200, Pali Rohár wrote:

Re: [PATCH 4/6] legoev3: Migrate to DM_I2C

2022-06-28 Thread David Lechner
On 6/27/22 12:35 PM, Tom Rini wrote: Perform a basic migration of the calls in setup_serial_number() to DM so that we can switch to using DM_I2C on this platform. Cc: David Lechner Signed-off-by: Tom Rini --- Acked-by: David Lechner

Re: [PATCH v2] board: freescale: p1_p2_rdb_pc: Simplify SPL offset macros

2022-06-28 Thread Pali Rohár
On Tuesday 28 June 2022 14:39:11 Tom Rini wrote: > On Tue, Jun 28, 2022 at 08:34:47PM +0200, Pali Rohár wrote: > > On Tuesday 28 June 2022 14:28:52 Tom Rini wrote: > > > On Tue, Jun 28, 2022 at 08:22:38PM +0200, Pali Rohár wrote: > > > > On Tuesday 28 June 2022 14:17:42 Tom Rini wrote: > > > > >

Re: [PATCH v2] board: freescale: p1_p2_rdb_pc: Simplify SPL offset macros

2022-06-28 Thread Tom Rini
On Tue, Jun 28, 2022 at 08:34:47PM +0200, Pali Rohár wrote: > On Tuesday 28 June 2022 14:28:52 Tom Rini wrote: > > On Tue, Jun 28, 2022 at 08:22:38PM +0200, Pali Rohár wrote: > > > On Tuesday 28 June 2022 14:17:42 Tom Rini wrote: > > > > On Tue, Jun 28, 2022 at 07:53:55PM +0200, Pali Rohár wrote:

Re: [PATCH v2] board: freescale: p1_p2_rdb_pc: Simplify SPL offset macros

2022-06-28 Thread Pali Rohár
On Tuesday 28 June 2022 14:28:52 Tom Rini wrote: > On Tue, Jun 28, 2022 at 08:22:38PM +0200, Pali Rohár wrote: > > On Tuesday 28 June 2022 14:17:42 Tom Rini wrote: > > > On Tue, Jun 28, 2022 at 07:53:55PM +0200, Pali Rohár wrote: > > > > > > > Now when CONFIG_SYS_TEXT_BASE has sane value, use it

Re: [PATCH v2] board: freescale: p1_p2_rdb_pc: Simplify SPL offset macros

2022-06-28 Thread Tom Rini
On Tue, Jun 28, 2022 at 08:22:38PM +0200, Pali Rohár wrote: > On Tuesday 28 June 2022 14:17:42 Tom Rini wrote: > > On Tue, Jun 28, 2022 at 07:53:55PM +0200, Pali Rohár wrote: > > > > > Now when CONFIG_SYS_TEXT_BASE has sane value, use it for calculation of > > > other SPL offset values:

Re: [PATCH v2] board: freescale: p1_p2_rdb_pc: Simplify SPL offset macros

2022-06-28 Thread Pali Rohár
On Tuesday 28 June 2022 14:17:42 Tom Rini wrote: > On Tue, Jun 28, 2022 at 07:53:55PM +0200, Pali Rohár wrote: > > > Now when CONFIG_SYS_TEXT_BASE has sane value, use it for calculation of > > other SPL offset values: CONFIG_SPL_MAX_SIZE, CONFIG_SYS_MMC_U_BOOT_* and > >

Re: [PATCH v2] board: freescale: p1_p2_rdb_pc: Simplify SPL offset macros

2022-06-28 Thread Tom Rini
On Tue, Jun 28, 2022 at 07:53:55PM +0200, Pali Rohár wrote: > Now when CONFIG_SYS_TEXT_BASE has sane value, use it for calculation of > other SPL offset values: CONFIG_SPL_MAX_SIZE, CONFIG_SYS_MMC_U_BOOT_* and > CONFIG_SYS_SPI_FLASH_U_BOOT_* macros. > > No functional change. > > Signed-off-by:

Re: [PATCH v2] mmc: fsl_esdhc_spl: Add support for loading proper U-Boot from unaligned location

2022-06-28 Thread Pali Rohár
On Thursday 23 June 2022 15:31:14 Pali Rohár wrote: > On Monday 20 June 2022 12:54:26 Pali Rohár wrote: > > This allows to concatenate SPL and proper U-Boot without extra alignment. > > > > Signed-off-by: Pali Rohár > > --- > > Changes in v2: > > * Rebased on top of the U-Boot next branch,

Re: [PATCH 1/2] powerpc: mpc85xx: Add support for generating QorIQ pre-PBL eSDHC boot sector

2022-06-28 Thread Tom Rini
On Tue, Jun 28, 2022 at 08:07:48PM +0200, Pali Rohár wrote: > On Thursday 23 June 2022 19:17:55 Pali Rohár wrote: > > On Saturday 04 June 2022 15:02:38 Pali Rohár wrote: > > > On Wednesday 18 May 2022 12:53:20 Pali Rohár wrote: > > > > On Wednesday 11 May 2022 22:59:28 Pali Rohár wrote: > > > > >

Re: [PATCH 1/2] powerpc: mpc85xx: Add support for generating QorIQ pre-PBL eSDHC boot sector

2022-06-28 Thread Pali Rohár
On Thursday 23 June 2022 19:17:55 Pali Rohár wrote: > On Saturday 04 June 2022 15:02:38 Pali Rohár wrote: > > On Wednesday 18 May 2022 12:53:20 Pali Rohár wrote: > > > On Wednesday 11 May 2022 22:59:28 Pali Rohár wrote: > > > > On Monday 25 April 2022 14:36:14 Pali Rohár wrote: > > > > > On Monday

[PATCH v2] board: freescale: p1_p2_rdb_pc: Simplify SPL offset macros

2022-06-28 Thread Pali Rohár
Now when CONFIG_SYS_TEXT_BASE has sane value, use it for calculation of other SPL offset values: CONFIG_SPL_MAX_SIZE, CONFIG_SYS_MMC_U_BOOT_* and CONFIG_SYS_SPI_FLASH_U_BOOT_* macros. No functional change. Signed-off-by: Pali Rohár --- Changes in v2: * Rebased on top of the U-Boot next branch,

Re: [PATCH v2] board: freescale: p1_p2_rdb_pc: Remove mapping for TDM-PMC card

2022-06-28 Thread Pali Rohár
On Thursday 23 June 2022 18:22:21 Pali Rohár wrote: > From whole P1/P2 family of RDB boards is TDM-PMC card (PCI Mezzanine Card, > Freescale PQ-MDS-T1) available only on P1021RDB and P1025RDB boards. > > So address mapping for TDM-PMC card on LBC should not be enabled on any > other P1/P2 RDB

Re: [PATCH v3] powerpc: mpc85xx: Set TEXT_BASE addresses to real base values

2022-06-28 Thread Pali Rohár
On Tuesday 28 June 2022 10:52:23 Tom Rini wrote: > On Thu, Jun 16, 2022 at 02:19:44PM +0200, Pali Rohár wrote: > > > Currently CONFIG_SPL_TEXT_BASE and CONFIG_SYS_TEXT_BASE addresses are > > manually increased by 0x1000 due to .bootpg section. This section has size > > of 0x1000 bytes and is

[PATCH v4 3/3] corstone1000: enable isp1763 usb controller and mmc

2022-06-28 Thread Rui Miguel Silva
MPS3 board have a ISP1763 usb controller, enable it to be used for mass storage access for example. Enable the usb command also and for the FVP support for mass storage enable the mmc command. Signed-off-by: Rui Miguel Silva --- configs/corstone1000_defconfig | 3 +++

[PATCH v4 1/3] usb: common: move urb code to common

2022-06-28 Thread Rui Miguel Silva
Move urb code from musb only use to a more common scope, so other drivers in the future can use the handling of urb in usb. Signed-off-by: Rui Miguel Silva --- drivers/usb/common/Makefile | 2 + drivers/usb/common/usb_urb.c | 160 ++

[PATCH v4 0/3] usb: add isp1760 hcd support

2022-06-28 Thread Rui Miguel Silva
Add support for the usb isp1760 host controller family, which for example is present in MPS3 FPGA board from Arm (isp1763). First we move some helper functions and defines to a more common place to be shared by several urb users. (patch 1/3) Then add the driver itself, is a ported version of the

Re: [PATCH v3 0/3] usb: add isp1760 hcd support

2022-06-28 Thread Rui Miguel Silva
Hi Marek, On Tue, Jun 28, 2022 at 05:44:47PM +0200, Marek Vasut wrote: > On 6/28/22 16:59, Rui Miguel Silva wrote: > > Hi, > > On Mon, Jun 20, 2022 at 01:44:02PM -0400, Tom Rini wrote: > > > On Mon, Jun 20, 2022 at 05:00:56PM +0100, Rui Miguel Silva wrote: > > > > Hi Tom, On Tue Jun 14, 2022 at

[PATCH v2] powerpc: mpc85xx: Simplify jump to _start_cont in flash code

2022-06-28 Thread Pali Rohár
After more patches code for jumping to _start_cont symbol in flash memory involved to code with useless mathematical operations. Currently it does: r3 := CONFIG_SYS_MONITOR_BASE + ABS(_start_cont) - CONFIG_SYS_MONITOR_BASE jump to r3 Which is equivalent of just: r3 := ABS(_start_cont)

Re: [PATCH v3 0/3] usb: add isp1760 hcd support

2022-06-28 Thread Marek Vasut
On 6/28/22 16:59, Rui Miguel Silva wrote: Hi, On Mon, Jun 20, 2022 at 01:44:02PM -0400, Tom Rini wrote: On Mon, Jun 20, 2022 at 05:00:56PM +0100, Rui Miguel Silva wrote: Hi Tom, On Tue Jun 14, 2022 at 6:45 PM WEST, Rui Miguel Silva wrote: Hi *, On Wed, May 25, 2022 at 02:22:48PM +0100, Rui

Re: [PATCH V7 2/4] ddr: imx8m: helper: load ddr firmware according to binman symbols

2022-06-28 Thread Tom Rini
On Tue, Jun 28, 2022 at 05:08:26PM +0300, Alper Nebi Yasak wrote: > Hi Tom, Simon, Peng, > > On 27/06/2022 06:41, Peng Fan (OSS) wrote: > > From: Peng Fan > > > > By reading binman symbols, we no need hard coded IMEM_LEN/DMEM_LEN after > > we update the binman dtsi to drop 0x8000/0x4000 length

Pull request: u-boot-imx u-boot-imx-20220628

2022-06-28 Thread Stefano Babic
://gitlab.denx.de/u-boot/custodians/u-boot-imx.git tags/u-boot-imx-20220628 for you to fetch changes up to b5023254b88a67fcbca913e212e3401dea521fc9: kontron-sl-mx8mm: Add CAAM support (2022-06-28 15:24:31 +0200) Fixes for 2022.07 CI: https

Re: [PATCH v3 0/3] usb: add isp1760 hcd support

2022-06-28 Thread Rui Miguel Silva
Hi, On Mon, Jun 20, 2022 at 01:44:02PM -0400, Tom Rini wrote: > On Mon, Jun 20, 2022 at 05:00:56PM +0100, Rui Miguel Silva wrote: > > Hi Tom, On Tue Jun 14, 2022 at 6:45 PM WEST, Rui Miguel Silva > > wrote: > > > Hi *, On Wed, May 25, 2022 at 02:22:48PM +0100, Rui Miguel Silva > > > wrote: > > > >

Re: [PATCH] aspeed/ast2600: Fix SPL linker script

2022-06-28 Thread Tom Rini
On Tue, Jun 28, 2022 at 01:57:25PM +0930, Joel Stanley wrote: > The commit 99e2fbcb69f0 ("linker_lists: Rename sections to remove . > prefix") changed the name of the linker list sections. As the Aspeed SPL > linker wasn't in the tree yet, it missed the change. > > This updates the SPL linker to

Re: [PATCH v3] powerpc: mpc85xx: Set TEXT_BASE addresses to real base values

2022-06-28 Thread Tom Rini
On Thu, Jun 16, 2022 at 02:19:44PM +0200, Pali Rohár wrote: > Currently CONFIG_SPL_TEXT_BASE and CONFIG_SYS_TEXT_BASE addresses are > manually increased by 0x1000 due to .bootpg section. This section has size > of 0x1000 bytes and is manually put by linker script before .text section > (and

Re: [PATCH RESEND 4/5] ast2600: Configure u-boot-with-spl.bin target

2022-06-28 Thread Tom Rini
On Mon, Jun 27, 2022 at 05:28:10PM +0930, Joel Stanley wrote: > For the u-boot-with-spl.bin target to be useful for the AST2600, set the > maximum SPL size which also sets the padding length. > > The normal way of loading u-boot is as a FIT, so configure u-boot.img as > the SPL playload. > >

Re: [PATCH 6/9] dm: core: Support accessing core tags

2022-06-28 Thread AKASHI Takahiro
On Tue, Jun 28, 2022 at 09:37:56AM -0400, Simon Glass wrote: > Hi Simon, > > On Sun, May 08, 2022 at 04:39:24AM -0600, Simon Glass wrote: > > At present tag numbers are only allocated for non-core data, meaning that > > the 'core' data, like priv and plat, are accessed through dedicated > >

Re: [PATCH 0/8] u-boot: fs: add generic unaligned read handling

2022-06-28 Thread Tom Rini
On Tue, Jun 28, 2022 at 03:28:00PM +0800, Qu Wenruo wrote: > [BACKGROUND] > Unlike FUSE/Kernel which always pass aligned read range, U-boot fs code > just pass the request range to underlying fses. > > Under most case, this works fine, as U-boot only really needs to read > the whole file (aka, 0

Re: [PATCH V7 2/4] ddr: imx8m: helper: load ddr firmware according to binman symbols

2022-06-28 Thread Alper Nebi Yasak
Hi Tom, Simon, Peng, On 27/06/2022 06:41, Peng Fan (OSS) wrote: > From: Peng Fan > > By reading binman symbols, we no need hard coded IMEM_LEN/DMEM_LEN after > we update the binman dtsi to drop 0x8000/0x4000 length for the firmware. > > And that could save binary size for many KBs. > >

[PATCH 2/2] pmic: pca9450: clear PRESET_EN bit for BUCK1/2/3 voltage settings

2022-06-28 Thread Heiko Thiery
The regulator driver uses the DVS registers PCA9450_REG_BUCKxOUT_DVS0 to set the voltage for the buck regulators 1, 2 and 3. This has no effect as the PRESET_EN bit is set by default and therefore the preset values are used instead, which are set to 850 mV. This is a port of the same change in

[PATCH 1/2] pmic: pca9450: enable system reset on WDOG_B assertion

2022-06-28 Thread Heiko Thiery
By default the PCA9450 doesn't handle the assertion of the WDOG_B signal, but this is required to guarantee that things like software resets triggered by the watchdog work reliably. This is a port of the same changes in the Linux kernel: f7684f5a048f ("regulator: pca9450: Enable system reset on

[PATCH 0/2] pmic: pca9450: Initialization of pmic like done in linux

2022-06-28 Thread Heiko Thiery
To be able to initialize the PMIC voltages by using the PCA9450 regulator driver we need to properly disable the BUCK1/2/3 preset behavior. Also the RESET_CTRL/WDOG_B_CFG behavior can be done by the PC9450 PMIC driver. With that enabled the PMIC custom configurations done in SPL code for boards

Re: [PATCH 1/1] efi_loader: initialize console size late

2022-06-28 Thread Fabio Estevam
On Tue, Jun 28, 2022 at 11:01 AM Heinrich Schuchardt wrote: > The patch is merged June 19th: > > e05bd68ed5fc ("test: work around for EFI terminal size probing") > > Why do you ask? Because I haven't seen an "applied" message in this thread. I see it in mainline now, thanks.

Re: [PATCH 1/1] efi_loader: initialize console size late

2022-06-28 Thread Heinrich Schuchardt
On 6/28/22 15:52, Fabio Estevam wrote: Hi Heinrich, On Fri, Jun 17, 2022 at 1:59 AM Heinrich Schuchardt wrote: This causes: https://source.denx.de/u-boot/u-boot/-/jobs/450891#L229 for all instances of sandbox running that test. This is a only a bug to the test environment:

Re: [PATCH 1/1] efi_loader: initialize console size late

2022-06-28 Thread Fabio Estevam
On Tue, Jun 28, 2022 at 10:55 AM Tom Rini wrote: > I thought this was worked around for now? The non-testing case should > be fine again, and tests do need to do additional code to work, which is > not ideal, but good enough for the moment. I haven't realized that the patch has been applied.

Re: [PATCH 1/1] efi_loader: initialize console size late

2022-06-28 Thread Tom Rini
On Tue, Jun 28, 2022 at 10:52:32AM -0300, Fabio Estevam wrote: > Hi Heinrich, > > On Fri, Jun 17, 2022 at 1:59 AM Heinrich Schuchardt > wrote: > > > > This causes: https://source.denx.de/u-boot/u-boot/-/jobs/450891#L229 > > > for all instances of sandbox running that test. > > > > > > > This is

Re: [PATCH 1/1] efi_loader: initialize console size late

2022-06-28 Thread Fabio Estevam
Hi Heinrich, On Fri, Jun 17, 2022 at 1:59 AM Heinrich Schuchardt wrote: > > This causes: https://source.denx.de/u-boot/u-boot/-/jobs/450891#L229 > > for all instances of sandbox running that test. > > > > This is a only a bug to the test environment: > > test/py/u_boot_console_base.py:110: >

Re: [PATCH 1/9] dm: core: Rename dm_dump_all()

2022-06-28 Thread Simon Glass
This is not a good name anymore as it does not dump everything. Rename it to dm_dump_tree() to avoid confusion. Signed-off-by: Simon Glass --- cmd/dm.c| 8 drivers/core/dump.c | 2 +- include/dm/util.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) Applied to

Re: [PATCH v2] patman: Fix defaults not propagating to subparsers

2022-06-28 Thread Simon Glass
On python 3.8.10 (and 3.10), subparsers are not updated with defaults. I suspect this is related to [1]. Fix this by explicitly updating subparsers with settings. [1] https://github.com/python/cpython/issues/89398 Fixes: 3145b63513 ("patman: Update defaults in subparsers") Signed-off-by: Sean

Re: [PATCH 3/9] dm: core: Fix addresses in the dm static command

2022-06-28 Thread Simon Glass
This command converts pointers to addresses, but the pointers being converted are in the image's rodata region. For sandbox this means it is not in DRAM so it does not make sense to do this conversion. Fix this by showing a simple pointer instead. Drop the unnecessary @ and hex prefixes.

Re: [PATCH 4/5] patman: test_util: Customize unittest test results for more info

2022-06-28 Thread Simon Glass
By default, unittest test summaries only print extended info about tests that failed or couldn't run due to an error. Use a custom text result class to print info about more cases: skipped tests, expected failures and unexpected successes. Signed-off-by: Alper Nebi Yasak --- This could be

Re: [PATCH 2/9] dm: core: Sort dm subcommands

2022-06-28 Thread Simon Glass
Put these in alphabetic order, both in the help and in the implementation, as there are quite a few subcommands now. Tweak the help for 'dm tree' to better explain what it does. Signed-off-by: Simon Glass --- cmd/dm.c | 48 1 file changed, 24

Please pull u-boot-dm/next

2022-06-28 Thread Simon Glass
Hi Tom, This is for the -next branch. https://source.denx.de/u-boot/custodians/u-boot-dm/-/commit/e87da5704ffa6fc782d93d137fa30a37a5df3566 The following changes since commit ea82ed8c2eaee0a0f7dee31016aaee4ce88e9ea7: Merge branch '2022-06-27-add-armv8-sha1-sha256-support' into next

Re: [PATCH] dm: core: Use device_foreach_child where possible

2022-06-28 Thread Simon Glass
We have some nice macros for iterating over devices in device.h, but they are not used by the driver core. Convert all the users I could find. Signed-off-by: Sean Anderson --- drivers/core/device-remove.c | 4 ++-- drivers/core/device.c| 21 ++--- drivers/core/devres.c

Re: [PATCH] dtoc: Update fdt tests to use test_util

2022-06-28 Thread Simon Glass
On 19/03/2022 03:01, Simon Glass wrote: > Use the common functions to run tests and report results. Ensure that the > result code indicates success or failure. > > Signed-off-by: Simon Glass > --- > > tools/dtoc/test_fdt.py | 27 ++- > 1 file changed, 10 insertions(+), 17

Re: [PATCH] bloblist: Describe the design goals

2022-06-28 Thread Simon Glass
Add a comment explaining the design goals of bloblist, to make it easier for people to understand and comment on the structure. Signed-off-by: Simon Glass --- doc/develop/bloblist.rst | 2 ++ include/bloblist.h | 62 ++-- 2 files changed, 62

Re: [PATCH] dm: core: Provide fallbacks for ofnode_conf_read_...

2022-06-28 Thread Simon Glass
On 3/28/22 6:14 PM, Sean Anderson wrote: > Because fdt_get_config_str et al. were moved/renamed to > ofnode_conf_read_str, they now depend on CONFIG_DM as well as > CONFIG_OF_CONTROL. Add some fallback implementations, preventing a > linker error when CONFIG_SPL_OF_CONTROL and

Re: [PATCH 8/9] dm: core: Add a command to show driver model statistics

2022-06-28 Thread Simon Glass
This command shows the memory used by driver model along with various hints as to what it might be if some 'core' tags were moved to use the tag list instead of a core (i.e. always-there) pointer. This may help with future work to reduce memory usage. Signed-off-by: Simon Glass --- cmd/dm.c

Re: [PATCH v3] powerpc: mpc85xx: Set TEXT_BASE addresses to real base values

2022-06-28 Thread Tom Rini
On Tue, Jun 28, 2022 at 11:18:34AM +0200, Pali Rohár wrote: > On Thursday 23 June 2022 08:34:58 Tom Rini wrote: > > On Thu, Jun 23, 2022 at 01:29:10PM +0200, Pali Rohár wrote: > > > On Thursday 16 June 2022 14:19:44 Pali Rohár wrote: > > > > Currently CONFIG_SPL_TEXT_BASE and CONFIG_SYS_TEXT_BASE

Re: [PATCH 6/9] dm: core: Support accessing core tags

2022-06-28 Thread Simon Glass
Hi Simon, On Sun, May 08, 2022 at 04:39:24AM -0600, Simon Glass wrote: > At present tag numbers are only allocated for non-core data, meaning that > the 'core' data, like priv and plat, are accessed through dedicated > functions. > > For debugging and consistency it is convenient to use tags for

Re: [PATCH] sandbox: usb: Fix out-of-bounds read when fd=-1

2022-06-28 Thread Simon Glass
Hi Sean, On Wed, 23 Mar 2022 at 16:24, Sean Anderson wrote: > > sandbox_flash_bulk uses priv->read_len to determine if priv->buff contains > the response data (such as from SCSI_INQUIRY). However, if priv->fd=-1 in > handle_read, then priv->read_len is not set even though we are going to >

Re: [PATCH 1/5] patman: test_util: Fix printing results for failed tests

2022-06-28 Thread Simon Glass
On Sat, 2 Apr 2022 at 11:06, Alper Nebi Yasak wrote: > > When printing a python tool's test results, the entire list of failed > tests and their tracebacks are reprinted for every failed test. This > makes the test output quite unreadable. Fix the loop to print failures > and tracebacks one at a

Re: [PATCH 2/5] patman: test_util: Handle nonexistent tests while loading tests

2022-06-28 Thread Simon Glass
On Sat, 2 Apr 2022 at 11:06, Alper Nebi Yasak wrote: > > It's possible to request a specific test to run when trying to run a > python tool's tests. If we request a nonexistent test, the unittest > loaders generate a fake test that reports this as an error. However, we > get these fake tests even

Re: [PATCH 5/5] patman: test_util: Print test stdout/stderr within test summaries

2022-06-28 Thread Simon Glass
On Sat, 2 Apr 2022 at 11:06, Alper Nebi Yasak wrote: > > While running tests for a python tool, the tests' outputs get printed in > whatever order they happen to run, without any indication as to which > output belongs to which test. Unittest supports capturing these outputs > and printing them

Re: [PATCH 2/2] sandbox: show error if the device-tree cannot be loaded

2022-06-28 Thread Simon Glass
U-Boot's printf() used before setting up U-Boot's serial driver does not create any output. Use os_printf() for error messages related to loading the device-tree. Signed-off-by: Heinrich Schuchardt --- arch/sandbox/cpu/cpu.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) Applied

Re: [PATCH 1/1] sandbox: raise SANDBOX_RAM_SIZE_MB default to 256

2022-06-28 Thread Simon Glass
The UEFI Self Certification Test (SCT) cannot run on 128 MiB. Signed-off-by: Heinrich Schuchardt --- arch/sandbox/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH 1/1] dm: fix formatting of uclass dump

2022-06-28 Thread Simon Glass
Insert an empty line after each uclass independent of whether it has devices or not. Signed-off-by: Heinrich Schuchardt --- drivers/core/dump.c | 2 -- 1 file changed, 2 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH 1/2] sandbox: add function os_printf()

2022-06-28 Thread Simon Glass
Before setting up the devices U-Boot's printf() function cannot be used for console output. Provide function os_printf() to print to stderr. Signed-off-by: Heinrich Schuchardt --- arch/sandbox/cpu/os.c | 13 + include/os.h | 7 +++ 2 files changed, 20 insertions(+)

Re: [PATCH] test: fix some pylint errors in test_bind.py

2022-06-28 Thread Simon Glass
* Use spaces not tabs * Limit lines to 100 spaces * Remove an unused import * Sort imports correctly * Add a module description Signed-off-by: Heinrich Schuchardt --- test/py/tests/test_bind.py | 345 +++-- 1 file changed, 175 insertions(+), 170 deletions(-)

Re: [PATCH 4/9] dm: core: Add documentation for the dm command

2022-06-28 Thread Simon Glass
Add a description and examples for the dm subcommands. Signed-off-by: Simon Glass --- doc/usage/cmd/dm.rst | 487 +++ doc/usage/index.rst | 1 + 2 files changed, 488 insertions(+) create mode 100644 doc/usage/cmd/dm.rst Applied to u-boot-dm, thanks!

Re: [PATCH v2 3/8] spl: binman: Declare extern symbols for VPL as well

2022-06-28 Thread Simon Glass
The binman extern symbol declarations in spl.h are missing the VPL symbols recently added to spl.c, add them like the others. Signed-off-by: Alper Nebi Yasak --- (no changes since v1) include/spl.h | 2 ++ 1 file changed, 2 insertions(+) Applied to u-boot-dm, thanks!

Re: [PATCH 5/9] dm: core: Switch the testbus driver to use a new struct

2022-06-28 Thread Simon Glass
At present this driver uses 'priv' struct to hold 'plat' data, which is confusing. The contents of the strct don't matter, since only dtoc is using it. Create a new struct with the correct name. Signed-off-by: Simon Glass --- drivers/misc/test_drv.c | 2 +- include/dm/test.h | 7 +++

Re: [PATCH v2 1/8] spl: binman: Fix use of undeclared u_boot_any symbols

2022-06-28 Thread Simon Glass
Some SPL functions directly use the binman 'u_boot_any' symbols to get U-Boot's binman image position. These symbols are declared by the SPL/TPL_BINMAN_SYMBOLS configs, but they are accessed by macros defined by just CONFIG_BINMAN. So when BINMAN is enabled and BINMAN_SYMBOLS is disabled, the code

Re: [PATCH 7/9] dm: core: Add a way to collect memory usage

2022-06-28 Thread Simon Glass
Add a function for collecting the amount of memory used by driver model, including devices, uclasses and attached data and tags. This information can provide insights into how to reduce the memory required by driver model. Future work may look at execution speed also. Signed-off-by: Simon Glass

Re: [PATCH 9/9] dm: spl: Allow SPL to show memory usage

2022-06-28 Thread Simon Glass
Add an option to tell SPL to show memory usage for driver model just before it boots into the next phase. Signed-off-by: Simon Glass --- common/spl/spl.c | 9 + drivers/core/Kconfig | 10 ++ 2 files changed, 19 insertions(+) Applied to u-boot-dm, thanks!

Re: [PATCH v2 2/8] spl: binman: Make TPL_BINMAN_SYMBOLS depend on TPL_FRAMEWORK

2022-06-28 Thread Simon Glass
TPL_BINMAN_SYMBOLS depends on SPL_FRAMEWORK. The code this enables is compiled by checking CONFIG_$(SPL_TPL_)FRAMEWORK, so it should depend on TPL_FRAMEWORK instead (which in turn depends on SPL_FRAMEWORK). This was most likely a typo due to copy-pasting the config's SPL version, fix it.

Re: [PATCH v2 4/8] spl: binman: Split binman symbols support from enabling binman

2022-06-28 Thread Simon Glass
Enabling CONFIG_BINMAN makes binman run after a build to package any images specified in the device-tree. It also enables a mechanism for SPL/TPL to declare and use special linker symbols that refer to other entries in the same binman image. A similar feature that gets this info from the

Re: [PATCH 3/5] patman: test_util: Use unittest text runner to print test results

2022-06-28 Thread Simon Glass
On Sat, 2 Apr 2022 at 11:06, Alper Nebi Yasak wrote: > > The python tools' test utilities handle printing test results, but the > output is quite bare compared to an ordinary unittest run. Delegate > printing the results to a unittest text runner, which gives us niceties > like clear separation

Re: [PATCH 1/1] sandbox: cast to pointer from integer of different size

2022-06-28 Thread Simon Glass
On Sun, Jun 12, 2022 at 7:25 PM Heinrich Schuchardt wrote: > > Building sandbox_defconfig on ARMv7 with HOST_32BIT=y results in: > > drivers/misc/qfw_sandbox.c:51:25: warning: > cast to pointer from integer of different size [-Wint-to-pointer-cast] >51 | void *address = (void

Re: [PATCH v2 5/8] spl: binman: Add config options for binman symbols in VPL

2022-06-28 Thread Simon Glass
The SPL code declares binman symbols for U-Boot phases depending on CONFIG_IS_ENABLED(BINMAN_UBOOT_SYMBOLS). This config exists for SPL and TPL, also add a version for VPL. Signed-off-by: Alper Nebi Yasak --- Changes in v2: - Update VPL configs for the new BINMAN_UBOOT_SYMBOLS

Re: [PATCH v2 7/8] spl: binman: Disable u_boot_any symbols for i.MX8M boards

2022-06-28 Thread Simon Glass
The i.MX8M boards use partially specified binman images which have an SPL entry without a U-Boot entry. This would normally cause an error due to the 'u_boot_any' binman symbols declared by BINMAN_UBOOT_SYMBOLS requiring a U-Boot-like entry in the same image as the SPL. However, a problem in the

  1   2   >