Re: PATCH] Add support for the Digilent Arty-Z7 Xilinx ZYNQ based board

2022-05-18 Thread Michal Simek
Hi, On 5/19/22 01:42, Christopher Bowman wrote: Patch to add support for the Diligent Arty-Z7 Xilinx ZYNQ based board. This work fine booting FreeBSD 13.1 on my board. First time submitter, so I appreciate feedback. first of all please use git send-email to send patches. In connection to patc

Re: [PATCH] efi_loader: disk: allow blk devices even without UCLASS_PARTITION

2022-05-18 Thread AKASHI Takahiro
Hi Simon, On Mon, May 09, 2022 at 02:33:10PM +0900, AKASHI Takahiro wrote: > Simon, > > On Thu, Apr 28, 2022 at 12:43:03PM +0200, Heinrich Schuchardt wrote: > > On 4/28/22 06:49, AKASHI Takahiro wrote: > > > While GPT partition is mandated in UEFI specification, CONFIG_PARTITION is > > > seen opt

Re: [PATCH v5 07/12] efi_loader: disk: a helper function to create efi_disk objects from udevice

2022-05-18 Thread AKASHI Takahiro
On Wed, May 18, 2022 at 11:23:32AM +0200, Neil Armstrong wrote: > On 19/04/2022 03:05, AKASHI Takahiro wrote: > > Add efi_disk_probe() function. > > This function creates an efi_disk object for a raw disk device (UCLASS_BLK) > > and additional objects for related partitions (UCLASS_PARTITION). > >

Re: [PATCH] ubifs: Fix lockup/crash when reading files

2022-05-18 Thread Stefan Roese
On 17.05.22 22:45, Pali Rohár wrote: Commit b1a14f8a1c2e ("UBIFS: Change ubifsload to not read beyond the requested size") added optimization to do not read more bytes than it is really needed. But this commit introduced incorrect handling of the hole at the end of file. This logic cause U-Boot t

Re: [PATCH v1] i2c: nuvoton: Add NPCM7xx i2c driver

2022-05-18 Thread Heiko Schocher
Hello Jim, On 17.05.22 10:25, Jim Liu wrote: > Add Nuvoton BMC NPCM750 i2c driver > > Signed-off-by: Jim Liu > --- > drivers/i2c/Kconfig| 5 + > drivers/i2c/Makefile | 1 + > drivers/i2c/npcm-i2c.c | 632 + > 3 files changed, 638 insertions(+) >

Re: [PATCH 1/1] riscv: Clean up asm/io.h

2022-05-18 Thread Bin Meng
On Thu, May 19, 2022 at 10:44 AM Leo Yu-Chi Liang wrote: > > Clean up asm/io.h by > - removing commented code > - removing outdated comments > - removing unused definitions (for mem_isa, mem_pci) > > Suggested by commits: > (7ab2e47d27) arm: Clean up asm/io.h > (909d0399a5) ARM: asm/io.h: kill off

[PATCH 1/1] riscv: Clean up asm/io.h

2022-05-18 Thread Leo Yu-Chi Liang
Clean up asm/io.h by - removing commented code - removing outdated comments - removing unused definitions (for mem_isa, mem_pci) Suggested by commits: (7ab2e47d27) arm: Clean up asm/io.h (909d0399a5) ARM: asm/io.h: kill off confusing #ifdef __mem_pci block This massively improves the readability

RE: [PATCH] MAINTAINERS: aspeed: Add more files and myself as a reviewer

2022-05-18 Thread ChiaWei Wang
Reviewed-by: Chia-Wei Wang > -Original Message- > From: joel.s...@gmail.com On Behalf Of Joel Stanley > Sent: Thursday, May 19, 2022 8:37 AM > To: u-boot@lists.denx.de; Ryan Chen ; ChiaWei > Wang > Subject: [PATCH] MAINTAINERS: aspeed: Add more files and myself as a > reviewer > > Add

RE: [PATCH] i2c: ast_i2c: Remove SCL direct drive mode

2022-05-18 Thread Ryan Chen
> -Original Message- > From: Joel Stanley > Sent: Thursday, May 19, 2022 8:28 AM > To: Eddie James ; Ryan Chen > ; BMC-SW > Cc: U-Boot Mailing List ; h...@denx.de > Subject: Re: [PATCH] i2c: ast_i2c: Remove SCL direct drive mode > > On Wed, 11 May 2022 at 20:52, Eddie James > wrote: > >

[PATCH] MAINTAINERS: aspeed: Add more files and myself as a reviewer

2022-05-18 Thread Joel Stanley
Add the rest of the ASPEED drivers that are in tree. Most are obvious, except for ftgmac100 which matches the register layout used in the ASPEED SoC. I am the Linux maintainer for the ASPEED kernel port, and help maintain the fork of u-boot used for OpenBMC, so add myself as a reviewer so I can st

Re: [PATCH v2] cmd: bootefi: restore ability to boot arbitrary blob

2022-05-18 Thread AKASHI Takahiro
I thought I had sent out my comment when this patch was submitted first time, but it seems that it has never reached out to ML. On Sun, Apr 10, 2022 at 04:05:55PM -0500, kev...@freebsd.org wrote: > From: Kyle Evans > > Up until commit 5f59518a7b1ae ("efi_loader: setting boot device"), we > could

Re: [PATCH] i2c: ast_i2c: Remove SCL direct drive mode

2022-05-18 Thread Joel Stanley
On Wed, 11 May 2022 at 20:52, Eddie James wrote: > > SCL direct drive mode prevents communication with devices that > do clock stretching, so disable. The Linux driver doesn't use > this mode, and the engine can handle clock stretching. > > Signed-off-by: Eddie James Reviewed-by: Joel Stanley

Re: [PATCH 1/2] tpm: core: Set timeouts before requesting locality

2022-05-18 Thread Joel Stanley
On Fri, 13 May 2022 at 18:30, Eddie James wrote: > > Requesting the locality uses the timeout values, so they need > to be set beforehand. > > Signed-off-by: Eddie James Reviewed-by: Joel Stanley > --- > drivers/tpm/tpm2_tis_core.c | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(-

Re: [PATCH 2/2] tpm: add support for TPMv2.x I2C chips

2022-05-18 Thread Joel Stanley
On Fri, 13 May 2022 at 18:30, Eddie James wrote: > > Add the tpm2_tis_i2c driver that should support any TPMv2 compliant > I2C chips, such as the NPCT75X chip. > > Signed-off-by: Eddie James > --- > drivers/tpm/Kconfig| 9 ++ > drivers/tpm/Makefile | 1 + > drivers/tpm/tpm2_tis

Re: Please pull u-boot-marvell/master

2022-05-18 Thread Tom Rini
On Tue, May 17, 2022 at 09:57:59AM +0200, Stefan Roese wrote: > Hi Tom, > > please pull this next batch of mostly Marvell related patches: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

[PATCH 8/9] Convert CONFIG_SPL_FS_LOAD_PAYLOAD_NAME et al to Kconfig

2022-05-18 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SPL_FS_LOAD_ARGS_NAME CONFIG_SPL_FS_LOAD_KERNEL_NAME CONFIG_SPL_FS_LOAD_PAYLOAD_NAME Signed-off-by: Tom Rini --- README| 11 common/spl/Kconfig| 25 +++

[PATCH 6/9] Convert CONFIG_SPL_INIT_MINIMAL et al to Kconfig

2022-05-18 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SPL_INIT_MINIMAL CONFIG_SPL_FLUSH_IMAGE CONFIG_SPL_SKIP_RELOCATE Signed-off-by: Tom Rini --- README | 6 -- arch/powerpc/cpu/mpc83xx/Makefile| 2 ++ arch/powerpc/cpu/mpc83xx/start.S

[PATCH 4/9] Convert CONFIG_SYS_FLASH_CFI_WIDTH to Kconfig

2022-05-18 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SYS_FLASH_CFI_WIDTH Signed-off-by: Tom Rini --- configs/M5208EVBE_defconfig| 1 + configs/M5235EVB_Flash32_defconfig | 1 + configs/M5235EVB_defconfig | 1 + configs/M5249EVB_defconfig | 1 + configs/M5

[PATCH 7/9] Convert CONFIG_SPL_NAND_RAW_ONLY et al to Kconfig

2022-05-18 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SPL_NAND_RAW_ONLY CONFIG_SPL_NAND_SOFTECC Signed-off-by: Tom Rini --- README | 4 common/spl/Kconfig | 12 +++- configs/axm_defconfig

[PATCH 5/9] Convert CONFIG_SYS_CFI_FLASH_STATUS_POLL to Kconfig

2022-05-18 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SYS_CFI_FLASH_STATUS_POLL Signed-off-by: Tom Rini --- configs/3c120_defconfig | 1 + configs/ae350_rv32_defconfig | 1 + configs/ae350_rv32_spl_defconfig | 1 + configs/ae350_rv32_spl_xip_defconfig | 1 + configs/ae350_rv

[PATCH 3/9] spl: Remove CONFIG_SPL_SATA_BOOT_DEVICE

2022-05-18 Thread Tom Rini
This is only referenced in non-SPL_DM cases, of which there are currently none. Remove this option and slightly re-organize the code is there is now never an if/else at the start of spl_sata_load_image() Signed-off-by: Tom Rini --- common/spl/spl_sata.c | 20 +--- include/c

[PATCH 2/9] fsl-layerscape: Remove CONFIG_SPL_PBL_PAD

2022-05-18 Thread Tom Rini
This option is not referenced in code, remove it. Signed-off-by: Tom Rini --- include/configs/ls1043a_common.h | 1 - include/configs/ls1046a_common.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/include/configs/ls1043a_common.h b/include/configs/ls1043a_common.h index 7457dad86682..0b5

[PATCH 1/9] P1010RDB: Remove CONFIG_SPL_NAND_MINIMAL

2022-05-18 Thread Tom Rini
This symbol is not used anywhere, remove it. Signed-off-by: Tom Rini --- include/configs/P1010RDB.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/P1010RDB.h b/include/configs/P1010RDB.h index 0c19b92940e3..0c4a2f01ad4a 100644 --- a/include/configs/P1010RDB.h +++ b/include/co

PATCH] Add support for the Digilent Arty-Z7 Xilinx ZYNQ based board

2022-05-18 Thread Christopher Bowman
Patch to add support for the Diligent Arty-Z7 Xilinx ZYNQ based board. This work fine booting FreeBSD 13.1 on my board. First time submitter, so I appreciate feedback. Regards, Christopher Signed-off-by: c...@chrisbowman.com 0001-Add-support-for-the-Digilent-Arty-Z7-Xilinx-ZYNQ-bas.patch De

Re: [U-Boot] [PATCH 2/2] rockchip: rk3399: rockpro64: enable force power on reset workaround

2022-05-18 Thread Peter Geis
On Wed, May 18, 2022 at 7:56 AM Lee Jones wrote: > > Looping int a few relevant/active kernel people/lists for full coverage. > > On Sun, 01 Dec 2019, Hugh Cole-Baker wrote: > > > On 29 Nov 2019, at 01:06, Vasily Khoruzhick wrote: > > > On Thu, Nov 28, 2019 at 4:59 PM Kever Yang > > > wrote: >

Re: [PATCH] arch: arm: mach-k3: am642_init: bring back MCU_PADCFG_MMR1 unlock

2022-05-18 Thread Nishanth Menon
On 08:21-20220512, Christian Gmeiner wrote: > Without this register unlock it is not possible to configure the > pinmux used for mcu spi0. > > Fixes: 92e46092f2 ("arch: arm: mach-k3: am642_init: Probe ESM nodes") > Signed-off-by: Christian Gmeiner > --- > arch/arm/mach-k3/am642_init.c | 3 +++ >

Re: [PATCH] cmd: pxe_utils: Check fdtcontroladdr in label_boot

2022-05-18 Thread Neil Armstrong
On 18/05/2022 17:52, Tom Rini wrote: On Wed, May 18, 2022 at 10:40:12AM +0200, Neil Armstrong wrote: Hi, On 14/10/2021 10:40, Peter Hoyes wrote: From: Peter Hoyes If using OF_CONTROL, fdtcontroladdr is set to the fdt used to configure U-Boot. When using PXE, if no fdt is defined in the menu

Re: i.MX8MP usb status

2022-05-18 Thread Fabio Estevam
Hi Tim, On Wed, May 18, 2022 at 1:26 PM Tim Harvey wrote: > This keeps coming up and many of us are just carrying this patch > series in downstream repos which is horrible. > > The problem patch in this series [1] is 'imx8mm: Fix USB reg addresses > for i.MX8MM' [2] as we all want to get hard-co

Re: [PATCH] ARM: dts: stm32: Configure Buck3 voltage per PMIC NVM on Avenger96

2022-05-18 Thread Marek Vasut
On 5/18/22 18:53, Patrick DELAUNAY wrote: Hi, Hi, [...] I let you handle OF_LIVE  for your boards (code & defconfig), FYI: it is already enable for STMicroelectronics boards (defconfig and in driver, mach-stm32mp and board code). But look: c387e626147 ("Merge branch '2022-05-11-Kconfig-

Re: [PATCH] ARM: dts: stm32: Configure Buck3 voltage per PMIC NVM on Avenger96

2022-05-18 Thread Patrick DELAUNAY
Hi, On 5/17/22 17:52, Marek Vasut wrote: On 5/17/22 17:32, Patrick DELAUNAY wrote: Hi, +static int board_get_regulator_buck3_nvm_uv_av96(int *uv) +{ +    const void *fdt = gd->fdt_blob; +    struct udevice *dev; +    u8 bucks_vout = 0; +    const char *prop; +    int len, ret; + +    /* Check

[PATCH v2] Fix CVE-2022-30767 (old CVE-2019-14196)

2022-05-18 Thread Andrea zi0Black Cappa
This patch mitigates the vulnerability identified via CVE-2019-14196. The previous patch was bypassed/ineffective, and now the vulnerability is identified via CVE-2022-30767. The patch removes the sanity check introduced to mitigate CVE-2019-14196 since it's ineffective. filefh3_length is changed

Re: i.MX8MP usb status

2022-05-18 Thread Tim Harvey
On Mon, May 16, 2022 at 8:50 AM Fabio Estevam wrote: > > Hi Marcel, > > On 16/05/2022 12:41, Marcel Ziswiler wrote: > > > Talking about uuu, has anybody managed to get that going on the i.MX > > 8M Mini yet? Regular USB device/host > > functionality works great but last I tried gadget functionalit

Re: [PATCH 8/8] board: gw_ventana: enable MV88E61XX DSA support

2022-05-18 Thread Tim Harvey
On Wed, May 18, 2022 at 7:41 AM Vladimir Oltean wrote: > > On Wed, May 11, 2022 at 05:20:03PM -0700, Tim Harvey wrote: > > Add MV88E61XX DSA support: > > - update dt: U-Boot dsa driver requires different device-tree syntax > >than the linux driver in order to link the dsa ports to the mdio bu

Vulnerability Disclosure in net/

2022-05-18 Thread Nicolas Bidron
Hello, We found a couple of bugs in net/net.s in the IP defragmentation function __net_defragment(). Below the writeup for the 2 bugs: ---BUG 1--- # Hole Descriptor Overwrite in U-Boot IP Packet Defragmentation Leads to Arbitrary Out of Bounds Write Primitive (CVE-TBD) |  |  |

[PATCH] Add support for the Digilent Arty-Z7 Xilinx ZYNQ based board

2022-05-18 Thread Christopher Bowman
Greetings, I’m new to contributing but the attached patch adds support for a board I’m working on. Regards, Christopher 0001-Add-support-for-the-Digilent-Arty-Z7-Xilinx-ZYNQ-bas.patch Description: Binary data

Re: [PATCH] Kconfig: hide options not intended for users in arch/Kconfig

2022-05-18 Thread Tom Rini
On Wed, May 18, 2022 at 05:52:36PM +0200, Daniel Schwierzeck wrote: > > > On 18.05.22 17:22, Tom Rini wrote: > > On Wed, May 18, 2022 at 05:12:13PM +0200, Daniel Schwierzeck wrote: > > > > > > > > > On 18.05.22 14:18, Tom Rini wrote: > > > > On Tue, May 17, 2022 at 10:53:53PM +0200, Daniel Schw

Re: [PATCH] cmd: pxe_utils: Check fdtcontroladdr in label_boot

2022-05-18 Thread Tom Rini
On Wed, May 18, 2022 at 10:40:12AM +0200, Neil Armstrong wrote: > Hi, > > On 14/10/2021 10:40, Peter Hoyes wrote: > > From: Peter Hoyes > > > > If using OF_CONTROL, fdtcontroladdr is set to the fdt used to configure > > U-Boot. When using PXE, if no fdt is defined in the menu file, and > > there

Re: [PATCH] Kconfig: hide options not intended for users in arch/Kconfig

2022-05-18 Thread Daniel Schwierzeck
On 18.05.22 17:22, Tom Rini wrote: On Wed, May 18, 2022 at 05:12:13PM +0200, Daniel Schwierzeck wrote: On 18.05.22 14:18, Tom Rini wrote: On Tue, May 17, 2022 at 10:53:53PM +0200, Daniel Schwierzeck wrote: Those options show up in menuconfig when selecting ARM or MIPS which is dangerous i

buildman failed on v2022.07-rc2 with toolchain-wrapper option

2022-05-18 Thread Patrick DELAUNAY
Hi Simon, It seems the buildman option toolchain-wrapper is no more working since v2022.07-rc2 => with the lines in ${HOME]/.buildman :     [toolchain-wrapper]     wrapper: ccache I have compilation error for some ARM target with EFI support, for example for stm32mp15_defconfig. Tests in

Re: [PATCH] arm: gic_v2: Skip gic_init_secure when cpu is not in el3

2022-05-18 Thread Tom Rini
On Wed, May 18, 2022 at 01:22:24PM +0200, Michal Simek wrote: > Hi Tom, > > st 11. 5. 2022 v 10:39 odesílatel Michal Simek napsal: > > > > From: Sai Pavan Boddu > > > > This would prevent configuring non-secure regs in case gic security > > extensions are not emulated in Qemu. > > > > Signed-off

Re: Broken support for 4GB DDR on 32-bit platforms

2022-05-18 Thread Tom Rini
On Wed, May 18, 2022 at 05:27:09PM +0200, Pali Rohár wrote: > On Wednesday 18 May 2022 11:18:18 Tom Rini wrote: > > On Wed, May 18, 2022 at 03:19:19PM +0200, Pali Rohár wrote: > > > On Wednesday 18 May 2022 08:19:36 Tom Rini wrote: > > > > On Wed, May 18, 2022 at 02:17:39PM +0200, Pali Rohár wrote:

Re: [U-Boot] [PATCH 2/2] rockchip: rk3399: rockpro64: enable force power on reset workaround

2022-05-18 Thread Lee Jones
Looping int a few relevant/active kernel people/lists for full coverage. On Sun, 01 Dec 2019, Hugh Cole-Baker wrote: > > On 29 Nov 2019, at 01:06, Vasily Khoruzhick wrote: > > On Thu, Nov 28, 2019 at 4:59 PM Kever Yang > > wrote: > >> > >> Hi Vasily, > >> > >> On 2019/11/28 下午11:51, Vasily Kh

Re: Broken support for 4GB DDR on 32-bit platforms

2022-05-18 Thread Pali Rohár
On Wednesday 18 May 2022 11:18:18 Tom Rini wrote: > On Wed, May 18, 2022 at 03:19:19PM +0200, Pali Rohár wrote: > > On Wednesday 18 May 2022 08:19:36 Tom Rini wrote: > > > On Wed, May 18, 2022 at 02:17:39PM +0200, Pali Rohár wrote: > > > > On Wednesday 18 May 2022 08:16:55 Tom Rini wrote: > > > > >

Re: [PATCH] Kconfig: hide options not intended for users in arch/Kconfig

2022-05-18 Thread Tom Rini
On Wed, May 18, 2022 at 05:12:13PM +0200, Daniel Schwierzeck wrote: > > > On 18.05.22 14:18, Tom Rini wrote: > > On Tue, May 17, 2022 at 10:53:53PM +0200, Daniel Schwierzeck wrote: > > > Those options show up in menuconfig when selecting ARM or MIPS which > > > is dangerous if a user accidently s

Re: Broken support for 4GB DDR on 32-bit platforms

2022-05-18 Thread Tom Rini
On Wed, May 18, 2022 at 03:19:19PM +0200, Pali Rohár wrote: > On Wednesday 18 May 2022 08:19:36 Tom Rini wrote: > > On Wed, May 18, 2022 at 02:17:39PM +0200, Pali Rohár wrote: > > > On Wednesday 18 May 2022 08:16:55 Tom Rini wrote: > > > > On Wed, May 18, 2022 at 12:58:38PM +0200, Pali Rohár wrote:

Re: [PATCH] Kconfig: hide options not intended for users in arch/Kconfig

2022-05-18 Thread Daniel Schwierzeck
On 18.05.22 14:18, Tom Rini wrote: On Tue, May 17, 2022 at 10:53:53PM +0200, Daniel Schwierzeck wrote: Those options show up in menuconfig when selecting ARM or MIPS which is dangerous if a user accidently sets them. This also clutters up the menuconfig top-level screen. Because those options

Re: [PATCH v14 0/2] add TCP and HTTP for downloading images

2022-05-18 Thread Paul Liu
Hi Michal, Thanks for reviewing. I'll make a fix based on your review soon. However I don't know the change from v1 to v12. The previous version are made by Duncan, and the patches are one year ago so I lost track of the changes from v1 to v12. For booting iso images (installer) from distros I t

Re: [PATCH 8/8] board: gw_ventana: enable MV88E61XX DSA support

2022-05-18 Thread Vladimir Oltean
On Wed, May 11, 2022 at 05:20:03PM -0700, Tim Harvey wrote: > Add MV88E61XX DSA support: > - update dt: U-Boot dsa driver requires different device-tree syntax >than the linux driver in order to link the dsa ports to the mdio bus. > - update defconfig > - replace mv88e61xx_hw_reset weak over

Re: [PATCH 7/8] net: add MV88E61xx DSA driver

2022-05-18 Thread Vladimir Oltean
On Wed, May 11, 2022 at 05:20:02PM -0700, Tim Harvey wrote: > Add a DSA driver for the MV88E61xx compatible GbE Ethernet switches. > > Cc: Marek BehĂșn > Cc: Vladimir Oltean > Signed-off-by: Tim Harvey > --- > v2: > - rebase on v2022.07-rc1 (use ofnode_get_phy_node) > - remove unused commente

Re: [PATCH 3/8] net: dsa: ensure dsa driver has proper ops

2022-05-18 Thread Vladimir Oltean
On Wed, May 11, 2022 at 05:19:58PM -0700, Tim Harvey wrote: > Add a function to sanity check a dsa driver having proper ops. > > Suggested-by: Vladimir Oltean > Signed-off-by: Tim Harvey > --- Reviewed-by: Vladimir Oltean

Re: [PATCH 4/8] net: dsa: allow rcv() and xmit() to be optional

2022-05-18 Thread Vladimir Oltean
On Wed, May 11, 2022 at 05:19:59PM -0700, Tim Harvey wrote: > Allow rcv() and xmit() dsa driver ops to be optional in case a driver > does not care to mangle a packet as in U-Boot only one network port is > enabled at a time and thus no packet mangling is necessary. > > Suggested-by: Vladimir Olte

Re: [PATCH 5/8] net: ksz9477: remove unnecessary xmit and recv functions

2022-05-18 Thread Vladimir Oltean
On Wed, May 11, 2022 at 05:20:00PM -0700, Tim Harvey wrote: > Remove the unnecessary xmit and recv functions. > > Signed-off-by: Tim Harvey > --- Reviewed-by: Vladimir Oltean

Re: [PATCH 2/8] net: dsa: move cpu port probe to dsa_post_probe

2022-05-18 Thread Vladimir Oltean
On Wed, May 11, 2022 at 05:19:57PM -0700, Tim Harvey wrote: > In order to ensure that a DSA driver probe gets called before > dsa_ops->port_probe move the port_probe of the cpu_port to > a post-probe function. > > Signed-off-by: Tim Harvey > Reviewed-by: Ramon Fried > --- Reviewed-by: Vladimir

Re: [PATCH v4 07/16] net: dsa: Fix segmentation fault if master fails to probe

2022-05-18 Thread Vladimir Oltean
On Thu, May 05, 2022 at 01:11:36PM -0400, Sean Anderson wrote: > If the DSA master fails to probe for whatever reason, then DSA devices > will continue on as if nothing is wrong. This can cause incorrect > behavior. In particular, on sandbox, dsa_sandbox_probe attempts to > access the master's priv

Re: [PATCH] riscv: remove CONFIG_ARCH_MAP_SYSMEM from io.h

2022-05-18 Thread Bin Meng
On Wed, May 18, 2022 at 6:54 PM Michal Simek wrote: > > Commit ba1ed5b022c6 ("Convert CONFIG_ARCH_MAP_SYSMEM to Kconfig") clearly > defined that this option is available for SANDBOX (was also for already > removed NDS32). That's why there is no way how this code can be enabled > with current Kconf

Re: Broken support for 4GB DDR on 32-bit platforms

2022-05-18 Thread Pali Rohár
On Wednesday 18 May 2022 08:19:36 Tom Rini wrote: > On Wed, May 18, 2022 at 02:17:39PM +0200, Pali Rohár wrote: > > On Wednesday 18 May 2022 08:16:55 Tom Rini wrote: > > > On Wed, May 18, 2022 at 12:58:38PM +0200, Pali Rohár wrote: > > > > On Tuesday 17 May 2022 12:38:43 Tom Rini wrote: > > > > > O

Re: Broken support for 4GB DDR on 32-bit platforms

2022-05-18 Thread Tom Rini
On Wed, May 18, 2022 at 02:17:39PM +0200, Pali Rohár wrote: > On Wednesday 18 May 2022 08:16:55 Tom Rini wrote: > > On Wed, May 18, 2022 at 12:58:38PM +0200, Pali Rohár wrote: > > > On Tuesday 17 May 2022 12:38:43 Tom Rini wrote: > > > > On Tue, May 17, 2022 at 06:00:16PM +0200, Pali Rohár wrote: >

Re: [PATCH] Kconfig: hide options not intended for users in arch/Kconfig

2022-05-18 Thread Tom Rini
On Tue, May 17, 2022 at 10:53:53PM +0200, Daniel Schwierzeck wrote: > Those options show up in menuconfig when selecting ARM or MIPS which > is dangerous if a user accidently sets them. This also clutters up the > menuconfig top-level screen. Because those options should only be set > by SoC specif

Re: Broken support for 4GB DDR on 32-bit platforms

2022-05-18 Thread Pali Rohár
On Wednesday 18 May 2022 08:16:55 Tom Rini wrote: > On Wed, May 18, 2022 at 12:58:38PM +0200, Pali Rohár wrote: > > On Tuesday 17 May 2022 12:38:43 Tom Rini wrote: > > > On Tue, May 17, 2022 at 06:00:16PM +0200, Pali Rohár wrote: > > > > On Tuesday 17 May 2022 11:52:14 Tom Rini wrote: > > > > > On

Re: Broken support for 4GB DDR on 32-bit platforms

2022-05-18 Thread Tom Rini
On Wed, May 18, 2022 at 12:58:38PM +0200, Pali Rohár wrote: > On Tuesday 17 May 2022 12:38:43 Tom Rini wrote: > > On Tue, May 17, 2022 at 06:00:16PM +0200, Pali Rohár wrote: > > > On Tuesday 17 May 2022 11:52:14 Tom Rini wrote: > > > > On Mon, May 16, 2022 at 11:56:51PM +0200, Pali Rohár wrote: > >

Re: [PATCH] usb: dwc3: Fix the error paths in usb3-phy PHY configuration

2022-05-18 Thread Michal Simek
+Jan On 5/18/22 12:18, Aswath Govindraju wrote: [CAUTION: External Email] generic_phy_power_off(), needs to be called in dwc3_glue_remove() while exiting as we powering on the phy in the dwc3_glue_probe(). Therefore, instantiate struct phy in dwc3_glue_data to use in dwc3_glue_probe() as well a

Re: [PATCH V4 5/5] board: bsh: Switch to nand spl load instead of romapi

2022-05-18 Thread Stefano Babic
On 18.05.22 12:17, Michael Nazzareno Trimarchi wrote: Hi Fabio and Stefano do not consider this patch because I found other problems on manage flash.bin properly in imx8 family. All the other patches are needed OK, fine, got it ! Stefano Michael On Sun, May 15, 2022 at 11:35 AM Michael Tr

Re: [PATCH] net: ftgmac100: use bus name in mdio error messages

2022-05-18 Thread Cédric Le Goater
On 5/18/22 00:16, Zev Weiss wrote: Previously we'd been using a device name retrieved via ftgmac100_data->phydev, but the mdio read/write functions may be called before that member is initialized in ftgmac100_phy_init(), leading to a NULL pointer dereference while printing the error message issue

Re: [PATCH 4/4] spi: synquacer: simplify tx completion checking

2022-05-18 Thread Jassi Brar
On Tue, 17 May 2022 at 03:41, Masahisa Kojima wrote: > > There is a TX-FIFO and Shift Register empty(TFES) status > bit in spi controller. This commit checks the TFES bit > to wait the TX transfer completes. > > Signed-off-by: Masahisa Kojima > Signed-off-by: Satoru Okamoto > --- Acked-by: Jassi

Re: [PATCH 3/4] spi: synquacer: DMSTART bit must not be set while transferring

2022-05-18 Thread Jassi Brar
On Tue, 17 May 2022 at 03:41, Masahisa Kojima wrote: > > DMSTART bit must not be set while there is active transfer. > This commit sets the DMSTART bit only when the transfer begins. > > Signed-off-by: Masahisa Kojima > Signed-off-by: Satoru Okamoto > --- Acked-by: Jassi Brar

Re: [PATCH 2/4] spi: synquacer: wait until slave is deselected

2022-05-18 Thread Jassi Brar
On Tue, 17 May 2022 at 03:41, Masahisa Kojima wrote: > > synquacer_cs_set() function does not wait the chip select > is deasserted when the driver sets the DMSTOP to deselect > the slave. > This commit checks the Slave Select Released(SRS) bit to wait > until the slave is deselected. > > Signed-of

Re: [PATCH 1/4] spi: synquacer: busy variable must be initialized before use

2022-05-18 Thread Jassi Brar
On Tue, 17 May 2022 at 03:41, Masahisa Kojima wrote: > > "busy" variable is ORed without being initialized, > must be zeroed before use. > > Signed-off-by: Masahisa Kojima > Signed-off-by: Satoru Okamoto > --- Acked-by: Jassi Brar

[PATCH] net: ftgmac100: use bus name in mdio error messages

2022-05-18 Thread Zev Weiss
Previously we'd been using a device name retrieved via ftgmac100_data->phydev, but the mdio read/write functions may be called before that member is initialized in ftgmac100_phy_init(), leading to a NULL pointer dereference while printing the error message issued if the mdio access fails. We can i

[PATCH] xilinx: zynqmp: Wire tee for Multi DTB use cases

2022-05-18 Thread Michal Simek
Fix TEE wiring when MULTI_DTB is selected. Signed-off-by: Michal Simek --- arch/arm/mach-zynqmp/mkimage_fit_atf.sh | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/mach-zynqmp/mkimage_fit_atf.sh b/arch/arm/mach-zynqmp/mkimage_fit_atf.sh index 72a8a3eb7714..40ed23b0ba6a

Re: [PATCH] arm: gic_v2: Skip gic_init_secure when cpu is not in el3

2022-05-18 Thread Michal Simek
Hi Tom, st 11. 5. 2022 v 10:39 odesílatel Michal Simek napsal: > > From: Sai Pavan Boddu > > This would prevent configuring non-secure regs in case gic security > extensions are not emulated in Qemu. > > Signed-off-by: Sai Pavan Boddu > Signed-off-by: Michal Simek > --- > > arch/arm/lib/gic_6

[PATCH 2/3] arm: mach-k3: am6_init: Fix the path and value's length in the fixup performed for usb boot

2022-05-18 Thread Aswath Govindraju
The node name of the bus in the device tree has changed. Also, the length argument to be passed should be the length of new value. Therefore, fix the path to usb device tree node as well as the length argument passed. Signed-off-by: Aswath Govindraju --- arch/arm/mach-k3/am6_init.c | 4 ++-- 1 f

[PATCH 3/3] configs: am65_evm_r5_usb*_defconfig: Sync the checks for size of image and stack from generic r5 defconfig

2022-05-18 Thread Aswath Govindraju
Sync the configs required for enabling checks for size of image and stack from generic r5 defconfig file. Signed-off-by: Aswath Govindraju --- configs/am65x_evm_r5_usbdfu_defconfig | 5 + configs/am65x_evm_r5_usbmsc_defconfig | 5 + 2 files changed, 10 insertions(+) diff --git a/configs

[PATCH 0/3] AM65: Fix USB boot modes

2022-05-18 Thread Aswath Govindraju
The following series of patches along with [1], fix usb boot modes on AM654 IDK board. [1] - https://patchwork.ozlabs.org/project/uboot/list/?series=300845 Aswath Govindraju (3): arm: dts: k3-am654-r5-base-board: Fix the dt properties in usb0 instance arm: mach-k3: am6_init: Fix the path

[PATCH 1/3] arm: dts: k3-am654-r5-base-board: Fix the dt properties in usb0 instance

2022-05-18 Thread Aswath Govindraju
For dfu boot mode, the clocks property needs to be deleted and dr_mode needs to be set to peripheral. Therefore, add the required fixes for the same. Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-am654-r5-base-board-u-boot.dtsi | 2 +- arch/arm/dts/k3-am654-r5-base-board.dts | 1 +

Re: [PATCH 00/10] arm64: zynqmp: Various DT fixes

2022-05-18 Thread Michal Simek
st 11. 5. 2022 v 11:52 odesílatel Michal Simek napsal: > > Hi, > > I am sending couple of patches to extend DT for zynqmp boards. > Modepin and si5328 dt bindings are available in the Linux kernel. > The rest are small changes with the existing DT binding mostly in Linux. > > Thanks, > Michal > >

Re: [PATCH] arm64: zynqmp: zynqmp-sm-k26-revA: Fix DP PLL configuration

2022-05-18 Thread Michal Simek
po 16. 5. 2022 v 16:02 odesílatel Michal Simek napsal: > > From: Neal Frager > > This patch fixes the DP audio and video PLL configurations for the > zynqmp-sm-k26-revA som. > > The Linux DP driver expects the DP to be using the following PLL config: > - DP video PLL should use the VPLL (0x0)

[PATCH] arm64: zynqmp: Add debug messages to bl2_plat_get_bl31_params()

2022-05-18 Thread Michal Simek
It is useful to get information about BL type and entry address that's why add some debug messages. Signed-off-by: Michal Simek --- arch/arm/mach-zynqmp/handoff.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-zynqmp/handoff.c b/arch/arm/mach-zynqmp/handoff.c index 31346d

Re: Broken support for 4GB DDR on 32-bit platforms

2022-05-18 Thread Pali Rohár
On Tuesday 17 May 2022 12:38:43 Tom Rini wrote: > On Tue, May 17, 2022 at 06:00:16PM +0200, Pali Rohár wrote: > > On Tuesday 17 May 2022 11:52:14 Tom Rini wrote: > > > On Mon, May 16, 2022 at 11:56:51PM +0200, Pali Rohár wrote: > > > > On Monday 16 May 2022 08:31:43 Tom Rini wrote: > > > > > On Sat

[PATCH] serial: Setup serial base and freq for zynq/zynqmp

2022-05-18 Thread Michal Simek
Setup default values for debug console, base address and frequency. Signed-off-by: Michal Simek --- drivers/serial/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 26fa4987..f9db7860750b 100644 --- a/drivers/serial/Kconfig

[PATCH] riscv: remove CONFIG_ARCH_MAP_SYSMEM from io.h

2022-05-18 Thread Michal Simek
Commit ba1ed5b022c6 ("Convert CONFIG_ARCH_MAP_SYSMEM to Kconfig") clearly defined that this option is available for SANDBOX (was also for already removed NDS32). That's why there is no way how this code can be enabled with current Kconfig layout for riscv. Based on this removing this code. Signed-

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

2022-05-18 Thread Pali Rohár
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 25 April 2022 05:25:34 Priyanka Jain (OSS) wrote: > > > >-Original Message- > > > >From: U-Boot On Behalf Of Pali Rohár > > > >Sent: Tuesday, April 5, 2022 7:11 PM > > > >

Re: [PATCH 7/8] powerpc: mpc85xx: Set TEXT_BASE addresses to real base values

2022-05-18 Thread Pali Rohár
On Wednesday 11 May 2022 20:59:24 Pali Rohár wrote: > On Monday 25 April 2022 14:31:16 Pali Rohár wrote: > > On Monday 25 April 2022 04:27:51 Priyanka Jain (OSS) wrote: > > > >-Original Message- > > > >From: U-Boot On Behalf Of Pali Rohár > > > >Sent: Tuesday, April 5, 2022 6:43 PM > > > >

[PATCH] arm64: zynqmp: Add support for kr260 revA/B boards

2022-05-18 Thread Michal Simek
From: Michal Simek Board is using kv260 design for couple of parts defined by spec like i2c eeproms, ina260, uart, etc. Board has 4 gems. One gem connected via PS SGMII(GT), another PS RGMII(MIO) and 2 via EMIO. First two shares the same MIO lines for PHYs. PL based one have separate EMIO lines

[PATCH] usb: dwc3: Fix the error paths in usb3-phy PHY configuration

2022-05-18 Thread Aswath Govindraju
generic_phy_power_off(), needs to be called in dwc3_glue_remove() while exiting as we powering on the phy in the dwc3_glue_probe(). Therefore, instantiate struct phy in dwc3_glue_data to use in dwc3_glue_probe() as well as dwc3_glue_remove(). In cases where "usb3-phy" is not present in the phy-nam

Re: [PATCH V4 5/5] board: bsh: Switch to nand spl load instead of romapi

2022-05-18 Thread Michael Nazzareno Trimarchi
Hi Fabio and Stefano do not consider this patch because I found other problems on manage flash.bin properly in imx8 family. All the other patches are needed Michael On Sun, May 15, 2022 at 11:35 AM Michael Trimarchi wrote: > > romapi is not eble to skip bad block so we need to workaround > usin

Re: [PATCH v14 0/2] add TCP and HTTP for downloading images

2022-05-18 Thread Michal Simek
Hi, On 4/21/22 18:54, Ying-Chun Liu wrote: From: "Ying-Chun Liu (PaulLiu)" This patch is a refresh from previous patches made by Duncan Hare . I've contacted him and continue to work on this patch. This patch introduce a TCP stack with SACK. And a simple wget command to download images from h

Re: [PATCH v14 2/2] net: Add wget application

2022-05-18 Thread Michal Simek
On 4/21/22 18:54, Ying-Chun Liu wrote: From: "Ying-Chun Liu (PaulLiu)" This commit adds a simple wget command that can download files from http server. I think description can be much bigger. I was running just wget and it did something. Signed-off-by: Duncan Hare Signed-off-by: Ying

Re: [PATCH v5 07/12] efi_loader: disk: a helper function to create efi_disk objects from udevice

2022-05-18 Thread Neil Armstrong
On 19/04/2022 03:05, AKASHI Takahiro wrote: Add efi_disk_probe() function. This function creates an efi_disk object for a raw disk device (UCLASS_BLK) and additional objects for related partitions (UCLASS_PARTITION). So this function is expected to be called through driver model's "probe" interf

Re: [PATCH v14 1/2] net: Add TCP protocol

2022-05-18 Thread Michal Simek
On 4/21/22 18:54, Ying-Chun Liu wrote: From: "Ying-Chun Liu (PaulLiu)" Currently file transfers are done using tftp or NFS both over udp. This requires a request to be sent from client (u-boot) to the boot server. The current standard is TCP with selective acknowledgment. Signed-off-by: Du

Re: [PATCH v1] mmc: nuvoton: Add NPCM7xx mmc driver

2022-05-18 Thread Jaehoon Chung
Hi Jim On 5/18/22 14:11, Jim Liu wrote: > Hi Jaehoon > > Thanks for your reply. > NPCM750 main patch is upstream on uboot master. Sorry. I missed them. Thanks for sharing an information. > it can build on uboot master branch. > The default config is poleg_evb_defconfig and the log is as below:

Re: [PATCH v7 2/7] fpga: add fit_fpga_load function

2022-05-18 Thread Oleksandr Suvorov
./ykman-gui/ykman-gui Hi Michal, On Mon, May 16, 2022 at 5:25 PM Michal Simek wrote: > > > > On 5/9/22 15:34, Adrian Fiergolski wrote: > > Michal, > > > > On 09.05.2022 15:28, Oleksandr Suvorov wrote: > >> Hi Adrian, > >> > >> On Mon, May 9, 2022 at 2:35 PM Adrian Fiergolski > >> wrote: > >>> Hi

Re: [PATCH] cmd: pxe_utils: Check fdtcontroladdr in label_boot

2022-05-18 Thread Neil Armstrong
Hi, On 14/10/2021 10:40, Peter Hoyes wrote: From: Peter Hoyes If using OF_CONTROL, fdtcontroladdr is set to the fdt used to configure U-Boot. When using PXE, if no fdt is defined in the menu file, and there is no fdt at fdt_addr, add fall back on fdtcontroladdr too. We are developing board su

Re: [PATCH 2/3] ARM: dts: omap3-devkit8000: Fix CONFIG_DM_I2C warning

2022-05-18 Thread Anthoine Bourgeois
On Sun, May 15, 2022 at 01:58:37PM -0500, Derald Woods wrote: On Sun, May 15, 2022 at 9:01 AM Tom Rini wrote: On Sun, May 15, 2022 at 03:38:21PM +0200, Anthoine Bourgeois wrote: > Seems that u-boot can't probe i2c bus at 2.6Mhz speed, so lower > the speed to the default value 100Khz. > > Sign

Re: [PATCH 4/4] Convert CONFIG_USB_EHCI_IS_TDI to Kconfig

2022-05-18 Thread Marek Behún
On Wed, 18 May 2022 16:44:32 +1200 Chris Packham wrote: > Hi Marek, > > On Sun, Oct 10, 2021 at 2:28 AM Marek Behún wrote: > > > > From: Marek Behún > > > > On mvebu this is defined if and only if !ARM64. > > > > I'm working on a 64-bit MVEBU board which I'll hopefully be submitting > soon

Re: [PATCH 2/2] riscv: ae350: Fix OF_BOARD boot failure

2022-05-18 Thread Leo Liang
On Wed, Apr 20, 2022 at 09:23:51AM +0800, Andes wrote: > From: Rick Chen > > Disable BINMAN_FDT for ae350 boards which don't actually use it. > > Fixes: 836eac7c6fe3 ("fdt: Make OF_BOARD a bool option") > Signed-off-by: Rick Chen > --- > configs/ae350_rv32_spl_defconfig | 1 + > configs/ae

Re: [PATCH 1/2] riscv: ae350: Fix OF_BOARD boot failure

2022-05-18 Thread Leo Liang
On Wed, Apr 20, 2022 at 09:14:05AM +0800, Andes wrote: > From: Rick Chen > > Enable OF_HAS_PRIOR_STAGE for ae350 boards with OF_BOARD > > Fixes: 239d22c79520 ("fdt: Enable OF_HAS_PRIOR_STAGE for most boards with > OF_BOARD") > Signed-off-by: Rick Chen > --- > board/AndesTech/ax25-ae350/Kconfi

Re: [PATCH v2 04/12] linker_lists: Rename sections to remove . prefix

2022-05-18 Thread Andrew Scull
On Tue, 17 May 2022 at 09:06, Heinrich Schuchardt wrote: > > On 4/14/22 15:59, Andrew Scull wrote: > > Rename the sections used to implement linker lists so they begin with > > '__u_boot_list' rather than '.u_boot_list'. The double underscore at the > > start is still distinct from the single unde