Re: [PATCH v2] sf: Querying write-protect status before operating the flash

2021-11-16 Thread chaochao
On 2021/11/15 22:02, Jagan Teki wrote: On Mon, Nov 15, 2021 at 6:51 PM chaochao2021...@163.com wrote: On 2021/11/15 13:57, tudor.amba...@microchip.com wrote: Hi, + Michael On 11/15/21 4:37 AM, chaochao2021...@163.com wrote: EXTERNAL EMAIL: Do not click links or open attachments unless

Re: [EXT] Re: [PATCH v5 02/16] crypto/fsl: Add CAAM support for bkek, random number generation

2021-11-16 Thread Michael Walle
Am 2021-11-16 12:57, schrieb Gaurav Jain: >> > +int hwrng_generate(u8 *dst, u32 len) >> >> likewise. >> But more important what is the difference to drivers/crypto/fsl/rng.c? >> Why >> do you need a new function here? This one. Why can't you reuse the code which is already there? I might have

Re: [PATCH v7 01/12] tools: mkeficapsule: rework the code a little bit

2021-11-16 Thread Heinrich Schuchardt
On 11/16/21 05:32, AKASHI Takahiro wrote: Abstract common routines to make the code easily understandable. No functional change. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass --- tools/mkeficapsule.c | 223 ++- 1 file changed, 159

Re: [PATCH v7 02/12] tools: build mkeficapsule with tools-only_defconfig

2021-11-16 Thread Heinrich Schuchardt
On 11/16/21 05:32, AKASHI Takahiro wrote: We want to always build mkeficapsule if tools-only_defconfig is used. Signed-off-by: AKASHI Takahiro Reviewed-by: Heinrich Schuchardt --- configs/tools-only_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 01/18] arm: ls1021a: limit debug eth phy speed to 100Mbps

2021-11-16 Thread Aleksandar Gerasimovski
Beside that mounted rgmii debug phy is 1000Mbps capable, the debug link between the piggy board and the phy is 100Mbps only. This leads to longer link establishment time when working in debug mode, as phy tries to autoneg 1000Mbps. This patch fixes the speed to 100Mbps and allows smother link

[PATCH 2/2] configs: enabled DTB overlay feature for LS SoCs

2021-11-16 Thread Sahil Malhotra
From: Sahil Malhotra SoCs enabled for DTB Overlay features are: LS1046A-RDB LS1043A-RDB LS1012A-RDB LS1028A-RDB LS1088A-RDB LS2088A-RDB Signed-off-by: Sahil Malhotra --- configs/ls1012ardb_tfa_defconfig | 2 ++ configs/ls1028ardb_tfa_defconfig | 1 + configs/ls1043ardb_tfa_defconfig | 2 ++

RE: [PATCH] net: eqos: connect and config PHY from probe stage instead of starting EQOS

2021-11-16 Thread Joakim Zhang
> -Original Message- > From: Ramon Fried > Sent: 2021年11月16日 18:45 > To: Joakim Zhang > Cc: Joe Hershberger ; U-Boot Mailing List > ; Ye Li ; Patrick Delaunay > ; Daniil Stas ; > Stephen Warren > Subject: Re: [PATCH] net: eqos: connect and config PHY from probe stage > instead of

Re: Your message to U-Boot awaits moderator approval

2021-11-16 Thread Tom Rini
On Tue, Nov 16, 2021 at 10:26:37AM +, Sahil Malhotra (OSS) wrote: > Hi, > > I am trying to send some patches on u-boot@lists.denx.de but every time I am > getting reply "Your message to U-Boot awaits moderator approval". > Created account on http://patchwork.ozlabs.org/user/, Also

RE: Your message to U-Boot awaits moderator approval

2021-11-16 Thread Sahil Malhotra (OSS)
Hi, I am trying to send some patches on u-boot@lists.denx.de but every time I am getting reply "Your message to U-Boot awaits moderator approval". Created account on http://patchwork.ozlabs.org/user/, Also subscribed to the list u-boot@lists.denx.de. Tried multiple times, but always getting

RE: [EXT] Your message to U-Boot awaits moderator approval

2021-11-16 Thread Sahil Malhotra
Hi, I am trying to send some patches on u-boot@lists.denx.de but every time I am getting reply "Your message to U-Boot awaits moderator approval". Created account on http://patchwork.ozlabs.org/user/, Also subscribed to the list u-boot@lists.denx.de. Tried multiple times, but always getting

[PATCH 13/18] configs: expu1: enable ver envvar for version_string

2021-11-16 Thread Aleksandar Gerasimovski
This is used by out ESW for reading u-boot build version. Signed-off-by: Aleksandar Gerasimovski --- configs/pg_wcom_expu1_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/pg_wcom_expu1_defconfig b/configs/pg_wcom_expu1_defconfig index 267864f..9e8697d 100644 ---

[PATCH 17/18] configs/expu1/seli8: limit autoboot stop to space key

2021-11-16 Thread Aleksandar Gerasimovski
Make it in a same way as on the other FOXMC products, this also helps to avoid unwanted stop caused by some terminal servers that are sending junk on the serial line. Signed-off-by: Aleksandar Gerasimovski --- configs/pg_wcom_expu1_defconfig | 3 +++ configs/pg_wcom_seli8_defconfig | 3 +++ 2

Re: [PATCH RFC] cmd: fix net list command

2021-11-16 Thread Wolfgang Denk
Dear Tom, In message <2025154516.GR24579@bill-the-cat> you wrote: > > > One practical use case is board provisioning in the factory, which > > includes setting up valid produt data like serial number, MAC > > address etc. Yes, this can be done over serial consone as well, but > > 1) this is

Re: [EXT] Re: [PATCH v5 02/16] crypto/fsl: Add CAAM support for bkek, random number generation

2021-11-16 Thread Michael Walle
Hi, Am 2021-11-16 12:09, schrieb Gaurav Jain: > --- a/drivers/crypto/fsl/fsl_blob.c > +++ b/drivers/crypto/fsl/fsl_blob.c > @@ -1,6 +1,7 @@ > // SPDX-License-Identifier: GPL-2.0+ > /* > * Copyright 2014 Freescale Semiconductor, Inc. > + * Copyright 2021 NXP > * > */ > > @@ -152,6

RE: [PATCH] net: eqos: connect and config PHY from probe stage instead of starting EQOS

2021-11-16 Thread Joakim Zhang
Hi Patrick, > -Original Message- > From: Patrick DELAUNAY > Sent: 2021年11月15日 18:42 > To: Joakim Zhang ; joe.hershber...@ni.com; > rfried@gmail.com > Cc: u-boot@lists.denx.de; Ye Li ; daniil.s...@posteo.net; > swar...@nvidia.com; Christophe ROULLIER > ; Marek Vasut > Subject: Re:

[PATCH 1/2] fsl-layerscape: add dtb overlay feature

2021-11-16 Thread Sahil Malhotra
From: Sahil Malhotra This patch enables the DTB overlay feature for LS platforms. Signed-off-by: Sahil Malhotra --- arch/arm/cpu/armv8/fsl-layerscape/Makefile| 1 + arch/arm/cpu/armv8/fsl-layerscape/dt_optee.c | 39 +++ arch/arm/cpu/armv8/fsl-layerscape/dt_optee.h | 10

[PATCH 2/2] configs: enabled DTB overlay feature for LS SoCs

2021-11-16 Thread Sahil Malhotra
SoCs enabled for DTB Overlay features are: LS1046A-RDB LS1043A-RDB LS1012A-RDB LS1028A-RDB LS1088A-RDB LS2088A-RDB Signed-off-by: Sahil Malhotra --- configs/ls1012ardb_tfa_defconfig | 2 ++ configs/ls1028ardb_tfa_defconfig | 1 + configs/ls1043ardb_tfa_defconfig | 2 ++

RE: [PATCH] net: eqos: connect and config PHY from probe stage instead of starting EQOS

2021-11-16 Thread Joakim Zhang
Hi Ramon, > -Original Message- > From: Ramon Fried > Sent: 2021年11月16日 13:57 > To: Joakim Zhang > Cc: Joe Hershberger ; U-Boot Mailing List > ; Ye Li ; Patrick Delaunay > ; Daniil Stas ; > Stephen Warren > Subject: Re: [PATCH] net: eqos: connect and config PHY from probe stage >

[PATCH 2/2] configs: enabled DTB overlay feature for LS SoCs

2021-11-16 Thread Sahil Malhotra
From: Sahil Malhotra SoCs enabled for DTB Overlay features are: LS1046A-RDB LS1043A-RDB LS1012A-RDB LS1028A-RDB LS1088A-RDB LS2088A-RDB Signed-off-by: Sahil Malhotra --- configs/ls1012ardb_tfa_defconfig | 2 ++ configs/ls1028ardb_tfa_defconfig | 1 + configs/ls1043ardb_tfa_defconfig | 2 ++

Re: [PATCH v2] pci: Work around PCIe link training failures

2021-11-16 Thread Pali Rohár
Hello! On Tuesday 16 November 2021 11:35:24 Maciej W. Rozycki wrote: > Attempt to handle cases with a downstream port of a PCIe switch where > link training never completes and the link continues switching between > speeds indefinitely with the data link layer never reaching the active > state.

Re: [PATCH v3 1/1] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2021-11-16 Thread Tom Rini
On Tue, Nov 16, 2021 at 08:37:06AM -0300, Fabio Estevam wrote: > Hi Ariel, > > The patch looks good. Only some minor comments: > > On Tue, Nov 16, 2021 at 12:51 AM Ariel D'Alessandro > wrote: > > > > Add support for iMX8MN VAR-SOM-MX8M-NANO board. Enables support for: > > > > - 1GiB DDR4 RAM >

Re: [PATCH] net: eqos: connect and config PHY from probe stage instead of starting EQOS

2021-11-16 Thread Ramon Fried
On Tue, Nov 16, 2021 at 10:04 AM Joakim Zhang wrote: > > > Hi Ramon, > > > -Original Message- > > From: Ramon Fried > > Sent: 2021年11月16日 13:57 > > To: Joakim Zhang > > Cc: Joe Hershberger ; U-Boot Mailing List > > ; Ye Li ; Patrick Delaunay > > ; Daniil Stas ; > > Stephen Warren > >

Re: [PATCH v5 02/16] crypto/fsl: Add CAAM support for bkek, random number generation

2021-11-16 Thread Michael Walle
Hi, > --- a/drivers/crypto/fsl/fsl_blob.c > +++ b/drivers/crypto/fsl/fsl_blob.c > @@ -1,6 +1,7 @@ > // SPDX-License-Identifier: GPL-2.0+ > /* > * Copyright 2014 Freescale Semiconductor, Inc. > + * Copyright 2021 NXP > * > */ > > @@ -152,6 +153,87 @@ int blob_encap(u8 *key_mod, u8 *src,

[PATCH 05/18] km/ls102xa: dbg phy prst depends on piggy presence

2021-11-16 Thread Aleksandar Gerasimovski
The PHY for the debug interface was placed on the board for the pg_wcom_ls102x. Hence only when a piggy is plugged, a RJ45 jack including magnetics is connected to the MDI of the PHY. Without a piggy the MDI lines are left floating and it does not make sense to have an active debug PHY. In case of

[PATCH 06/18] km: qrio: add access functions for ebootcount

2021-11-16 Thread Aleksandar Gerasimovski
The EBOOTCNT is a reserved persistent static memory area in QRIO, and similar to BOOTCNT is intended to be used as boot counter location. Comparable to BOOTCNT that is reserved for u-boot main bootcount infrastructure, EBOOTCNT is intended to be used for pg-wcom board specific purposes (e.g

[PATCH 04/18] km: qrio: add function to read PGY_PRES pin status

2021-11-16 Thread Aleksandar Gerasimovski
It is necessary to read the status of the PGY_PRES pin so that u-boot can react accordingly. Signed-off-by: Rainer Boschung Signed-off-by: Aleksandar Gerasimovski --- board/keymile/common/qrio.c | 13 + board/keymile/common/qrio.h | 1 + 2 files changed, 14 insertions(+) diff

[PATCH 02/18] km: qrio: add function to read SLFTEST pin status

2021-11-16 Thread Aleksandar Gerasimovski
There is a request from HW designers to use this QRIO pin for detecting DIC26_SELFTEST status instead of a GPIO pin. This pin is typically used during production for executing POST tests and starting test ESW bank. Signed-off-by: Aleksandar Gerasimovski --- board/keymile/common/qrio.c | 13

[PATCH 03/18] km/ls102xa: use qrio selftest_pin for reading selftest

2021-11-16 Thread Aleksandar Gerasimovski
QRIO library now supports direct read of the test pin status. Signed-off-by: Aleksandar Gerasimovski --- board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c

[PATCH 08/18] km/ls102xa: add support for field fail-safe u-boot

2021-11-16 Thread Aleksandar Gerasimovski
Field fail-safe u-boot update procedure for pg-wcom boards is defined and implemented by 59b3403. This patch invokes the update procedure for pg-wcom-ls102x designs during early misc_init_f execution. Signed-off-by: Aleksandar Gerasimovski --- board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c |

[PATCH 14/18] configs/expu1: enable field fail-safe u-boot update

2021-11-16 Thread Aleksandar Gerasimovski
Field fail-safe u-boot update for pg-wcom-ls102x designs is introduced with 81fb05e. This patch enables already added support by: - Defining default u-boot build as bootpackage (factory) image. - Defining u-boot update image location according to the EXPU1 NOR layout. - Extending mtd

Re: [PATCH RFC] cmd: fix net list command

2021-11-16 Thread Wolfgang Denk
Dear Michal, In message you wrote: > > In perfect world u-boot will just get it and use. And if manufacturer > doesn't do it properly but want to enable ethernet in u-boot random > address could be a solution for them. > And then in Linux where drivers are available you will use the right

[RFC] binman: add support for creating dummy files for external blobs

2021-11-16 Thread Heiko Thiery
While converting to binman for an imx8mq board, it has been found that building in the u-boot CI fails. This is because an imx8mq requires an external binary (signed_hdmi_imx8m.bin). If this file cannot be found mkimage fails. To be able to build this board in the u-boot CI a binman option

Re: [PATCH v2 1/1] tpm: clear state post probing

2021-11-16 Thread Ilias Apalodimas
On Mon, Nov 15, 2021 at 08:30:06PM +0100, Heinrich Schuchardt wrote: > Before we can start measuring the TPM must be cleared. Do this in the > post_probe() method of the uclass. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > tpm_startup2() is not available on all boards. >

[PATCH 1/2] fsl-layerscape: add dtb overlay feature

2021-11-16 Thread Sahil Malhotra
This patch enables the DTB overlay feature for LS platforms. Signed-off-by: Sahil Malhotra --- arch/arm/cpu/armv8/fsl-layerscape/Makefile| 1 + arch/arm/cpu/armv8/fsl-layerscape/dt_optee.c | 39 +++ arch/arm/cpu/armv8/fsl-layerscape/dt_optee.h | 10 +

[PATCH 2/2] configs: enabled DTB overlay feature for LS SoCs

2021-11-16 Thread Sahil Malhotra
From: Sahil Malhotra SoCs enabled for DTB Overlay features are: LS1046A-RDB LS1043A-RDB LS1012A-RDB LS1028A-RDB LS1088A-RDB LS2088A-RDB Signed-off-by: Sahil Malhotra --- configs/ls1012ardb_tfa_defconfig | 2 ++ configs/ls1028ardb_tfa_defconfig | 1 + configs/ls1043ardb_tfa_defconfig | 2 ++

[PATCH 1/2] fsl-layerscape: add dtb overlay feature

2021-11-16 Thread Sahil Malhotra
From: Sahil Malhotra This patch enables the DTB overlay feature for LS platforms. Signed-off-by: Sahil Malhotra --- arch/arm/cpu/armv8/fsl-layerscape/Makefile| 1 + arch/arm/cpu/armv8/fsl-layerscape/dt_optee.c | 39 +++ arch/arm/cpu/armv8/fsl-layerscape/dt_optee.h | 10

[PATCH 1/2] fsl-layerscape: add dtb overlay feature

2021-11-16 Thread Sahil Malhotra
From: Sahil Malhotra This patch enables the DTB overlay feature for LS platforms. Signed-off-by: Sahil Malhotra --- arch/arm/cpu/armv8/fsl-layerscape/Makefile| 1 + arch/arm/cpu/armv8/fsl-layerscape/dt_optee.c | 39 +++ arch/arm/cpu/armv8/fsl-layerscape/dt_optee.h | 10

[PATCH 2/2] configs: enabled DTB overlay feature for LS SoCs

2021-11-16 Thread Sahil Malhotra
From: Sahil Malhotra SoCs enabled for DTB Overlay features are: LS1046A-RDB LS1043A-RDB LS1012A-RDB LS1028A-RDB LS1088A-RDB LS2088A-RDB Signed-off-by: Sahil Malhotra --- configs/ls1012ardb_tfa_defconfig | 2 ++ configs/ls1028ardb_tfa_defconfig | 1 + configs/ls1043ardb_tfa_defconfig | 2 ++

[PATCH 10/18] configs/seli8: add u-boot update defconfig

2021-11-16 Thread Aleksandar Gerasimovski
This patch adds default defconfig for u-boot update version, the u-boot update defconfig is a copy of the default (factory) defconfig with: - adapted text base and environment addresses - explicit flag that this is a field updated u-boot version At the time of implementation this version is only

[PATCH 16/18] arm/expu1/seli8: adapt dts NOR partition table to the latest used

2021-11-16 Thread Aleksandar Gerasimovski
Even not used by u-boot, this has to be inline with the hw and kernel dts. U-boot partition table is defined by MTDPARTS_DEFAULT Kconfig. Signed-off-by: Aleksandar Gerasimovski --- arch/arm/dts/ls1021a-pg-wcom-expu1.dts | 15 +-- arch/arm/dts/ls1021a-pg-wcom-seli8.dts | 14

Re: [PATCH RFC] cmd: fix net list command

2021-11-16 Thread Wolfgang Denk
Dear Ramon, In message you wrote: > > It appears that Michael has some board and a scenario that *this* bug > was working for his best interest, where he can have two distinct MAC > addresses, one in U-boot and one in Linux. If the Linux environment is supposed to be a specific MAC address

Re: [PATCH 1/1] pxe: simplify label_boot()

2021-11-16 Thread Tom Rini
On Tue, Nov 16, 2021 at 03:09:58PM +0800, Art Nikpal wrote: > On Tue, Nov 16, 2021 at 2:26 AM Heinrich Schuchardt > wrote: > > > > Coverity CID 131256 indicates a possible buffer overflow in label_boot(). > > This would only occur if the size of the downloaded file would exceed 4 > > GiB. But

Re: [PATCH v3 1/1] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2021-11-16 Thread Ariel D'Alessandro
Hi Tom, On 11/16/21 10:13 AM, Tom Rini wrote: > On Tue, Nov 16, 2021 at 08:37:06AM -0300, Fabio Estevam wrote: >> Hi Ariel, >> >> The patch looks good. Only some minor comments: >> >> On Tue, Nov 16, 2021 at 12:51 AM Ariel D'Alessandro >> wrote: >>> >>> Add support for iMX8MN VAR-SOM-MX8M-NANO

Re: [PATCH v3 1/1] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2021-11-16 Thread Fabio Estevam
Hi Ariel, The patch looks good. Only some minor comments: On Tue, Nov 16, 2021 at 12:51 AM Ariel D'Alessandro wrote: > > Add support for iMX8MN VAR-SOM-MX8M-NANO board. Enables support for: > > - 1GiB DDR4 RAM > - 16 GiB eMMC > - SD card > - Gigabit ethernet > - USBOTG1 peripheral - fastboot >

RE: [EXT] Re: [PATCH v5 02/16] crypto/fsl: Add CAAM support for bkek, random number generation

2021-11-16 Thread Gaurav Jain
Hi > -Original Message- > From: Michael Walle > Sent: Tuesday, November 16, 2021 4:53 PM > To: Gaurav Jain > Cc: Shengzhou Liu ; Varun Sethi > ; Adrian Alonso ; Alison Wang > ; Andy Tang ; > feste...@gmail.com; Franck Lenormand ; > Horia Geanta ; Ji Luo ; > Meenakshi Aggarwal ; Mingkai

[PATCH 2/2] configs: enabled DTB overlay feature for LS SoCs

2021-11-16 Thread Sahil Malhotra
SoCs enabled for DTB Overlay features are: LS1046A-RDB LS1043A-RDB LS1012A-RDB LS1028A-RDB LS1088A-RDB LS2088A-RDB Signed-off-by: Sahil Malhotra --- configs/ls1012ardb_tfa_defconfig | 2 ++ configs/ls1028ardb_tfa_defconfig | 1 + configs/ls1043ardb_tfa_defconfig | 2 ++

board_init.c file not compiled

2021-11-16 Thread Chan Kim
Hello all, I'm new to u-boot and having difficulty while trying to build u-boot for our test board.(arm64, armv8) I wanted to try the "SPL falcon" mode". The DDR is not ready yet in the board. A small scp chip(cortex-M7) will initialize clk and will load kernel(including initramfs), dtb,

[PATCH 1/2] fsl-layerscape: add dtb overlay feature

2021-11-16 Thread Sahil Malhotra
From: Sahil Malhotra This patch enables the DTB overlay feature for LS platforms. Signed-off-by: Sahil Malhotra --- arch/arm/cpu/armv8/fsl-layerscape/Makefile| 1 + arch/arm/cpu/armv8/fsl-layerscape/dt_optee.c | 39 +++ arch/arm/cpu/armv8/fsl-layerscape/dt_optee.h | 10

[PATCH 1/2] fsl-layerscape: add dtb overlay feature

2021-11-16 Thread Sahil Malhotra
This patch enables the DTB overlay feature for LS platforms. Signed-off-by: Sahil Malhotra --- arch/arm/cpu/armv8/fsl-layerscape/Makefile| 1 + arch/arm/cpu/armv8/fsl-layerscape/dt_optee.c | 39 +++ arch/arm/cpu/armv8/fsl-layerscape/dt_optee.h | 10 +

[PATCH 11/18] km/ls102xa: fix device disable configuration

2021-11-16 Thread Aleksandar Gerasimovski
This was probably broken when mainlining, CONFIG_FSL_DEVICE_DISABLE is not Kconfig but whitelisted. It's fine to be without flag as this is always enabled for abec1020 (pg-wcom-ls102xa.h) Signed-off-by: Aleksandar Gerasimovski --- board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c | 3 +-- 1

[PATCH 12/18] configs: seli8: enable ver envvar for version_string

2021-11-16 Thread Aleksandar Gerasimovski
This is used by out ESW for reading u-boot build version. Signed-off-by: Aleksandar Gerasimovski --- configs/pg_wcom_seli8_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/pg_wcom_seli8_defconfig b/configs/pg_wcom_seli8_defconfig index cb7c680..f13cc55 100644 ---

[PATCH 18/18] km/ls102xa: use unused scratchrw4 address for post word

2021-11-16 Thread Aleksandar Gerasimovski
The SCRATCHRW4 is only used in secure boot scenario that is unsupported by our design, so this address can be stolen for storing POST status. The SCRATCHRW4 is initialized to zero at core rest. Using a DDR address was unfortunate choice, the DDR at boot time has a random contend and it happens

Re: [PATCH v5 01/16] crypto/fsl: Add support for CAAM Job ring driver model

2021-11-16 Thread Michael Walle
> diff --git a/cmd/Kconfig b/cmd/Kconfig > index 5b30b13e43..2b24672505 100644 > --- a/cmd/Kconfig > +++ b/cmd/Kconfig > @@ -2009,6 +2009,7 @@ config CMD_AES > > config CMD_BLOB > bool "Enable the 'blob' command" > + select FSL_BLOB this looks wrong, because CMD_BLOB sounds like a

RE: [EXT] Re: [PATCH v5 02/16] crypto/fsl: Add CAAM support for bkek, random number generation

2021-11-16 Thread Gaurav Jain
Hello Michael, > -Original Message- > From: Michael Walle > Sent: Tuesday, November 16, 2021 4:16 PM > To: Gaurav Jain > Cc: Shengzhou Liu ; Varun Sethi > ; Adrian Alonso ; Alison Wang > ; Andy Tang ; > feste...@gmail.com; Franck Lenormand ; > Horia Geanta ; Ji Luo ; > Meenakshi

Re: [PATCH v5 13/16] Layerscape: Enable Job ring driver model in U-Boot.

2021-11-16 Thread Michael Walle
> LS(1021/1012/1028/1043/1046/1088/2088), LX2160, LX2162 > platforms are enabled with JR driver model. > > removed sec_init() call from board files. > removed CONFIG_FSL_CAAM from defconfig files. > sec is initialized based on job ring information processed > from device tree. > > Signed-off-by:

[PATCH v2] pci: Work around PCIe link training failures

2021-11-16 Thread Maciej W. Rozycki
Attempt to handle cases with a downstream port of a PCIe switch where link training never completes and the link continues switching between speeds indefinitely with the data link layer never reaching the active state. It has been observed with a downstream port of the ASMedia ASM2824 Gen 3

Re: [PATCH v2] pci: Work around PCIe link training failures

2021-11-16 Thread Stefan Roese
Hi Maciej, On 11/16/21 12:35, Maciej W. Rozycki wrote: Attempt to handle cases with a downstream port of a PCIe switch where link training never completes and the link continues switching between speeds indefinitely with the data link layer never reaching the active state. It has been observed

[PATCH 07/18] km: common: implement field fail-safe u-boot update

2021-11-16 Thread Aleksandar Gerasimovski
This patch provides possibility for field fail-safe u-boot updates. The implementation can be used on all pg-wcom boards that are booting from parallel NOR flash. When used in a board design, provided check_for_uboot_update function will start new u-boot at defined location if updateduboot envvar

[PATCH 15/18] configs/expu1: add u-boot update defconfig

2021-11-16 Thread Aleksandar Gerasimovski
This patch adds default defconfig for u-boot update version, the u-boot update defconfig is a copy of the default (factory) defconfig with: - adapted text base and environment addresses - explicit flag that this is a field updated u-boot version At the time of implementation this version is only

Re: [PATCH v7 02/12] tools: build mkeficapsule with tools-only_defconfig

2021-11-16 Thread Heinrich Schuchardt
On 11/16/21 13:20, Heinrich Schuchardt wrote: On 11/16/21 05:32, AKASHI Takahiro wrote: We want to always build mkeficapsule if tools-only_defconfig is used. Signed-off-by: AKASHI Takahiro Reviewed-by: Heinrich Schuchardt ---   configs/tools-only_defconfig | 1 +   1 file changed, 1

Re: [PATCH RFC] cmd: fix net list command

2021-11-16 Thread Tom Rini
On Tue, Nov 16, 2021 at 02:33:01PM +0100, Wolfgang Denk wrote: > Dear Ramon, > > In message > you > wrote: > > > > It appears that Michael has some board and a scenario that *this* bug > > was working for his best interest, where he can have two distinct MAC > > addresses, one in U-boot and

Re: [PATCH v3 1/1] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2021-11-16 Thread Ariel D'Alessandro
Hi Fabio, On 11/16/21 8:37 AM, Fabio Estevam wrote: > Hi Ariel, > > The patch looks good. Only some minor comments: > > On Tue, Nov 16, 2021 at 12:51 AM Ariel D'Alessandro > wrote: >> >> Add support for iMX8MN VAR-SOM-MX8M-NANO board. Enables support for: >> >> - 1GiB DDR4 RAM >> - 16 GiB eMMC

[GIT PULL] xilinx patches for v2022.01-rc3

2021-11-16 Thread Michal Simek
Hi Tom, Please pull these changes to your tree. CI loop doesn't show any issue with these patches. Thanks, Michal The following changes since commit fb1018106a7bbb1a0d723029f6760b1b1b4d306d: Merge branch '2021-10-19-assorted-changes' (2021-10-19 20:45:12 -0400) are available in the Git

Re: [PATCH] net: uclass: Save ethernet MAC address when generated

2021-11-16 Thread Tom Rini
On Thu, Nov 11, 2021 at 10:10:57AM +0100, Michael Walle wrote: > Hi Ramon, > > Am 2021-11-09 14:55, schrieb Michael Walle: > > Am 2021-11-04 22:00, schrieb Ramon Fried: > > > > > What's the verdict ? We're keeping this patch ? > > > > There was a good point from Grygorii: linux might deal > >

Re: [PATCH] net: uclass: Save ethernet MAC address when generated

2021-11-16 Thread Wolfgang Denk
Dear Tom, In message <2026141855.GD24579@bill-the-cat> you wrote: > > So, to quote lib/Kconfig: > config NET_RANDOM_ETHADDR > bool "Random ethaddr if unset" > help > Selecting this will allow the Ethernet interface to function > even when the ethaddr

Re: [PATCH v4] lib: sparse: Make CHUNK_TYPE_RAW buffer aligned

2021-11-16 Thread Sean Anderson
On 11/15/21 8:35 PM, qianfangui...@qq.com wrote: From: qianfan Zhao CHUNK_TYPE_RAW buffer is not aligned, and flash sparse images by fastboot will report "Misaligned operation" if DCACHE is enabled. Flashing Sparse Image CACHE: Misaligned operation at range [8428, 84001028] CACHE:

[PATCH v4 0/1] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2021-11-16 Thread Ariel D'Alessandro
Changes in v4: * Added board documentation. * Cleaned up board config. Changes in v3: * Picked device tree from kernel. * Properly added MAINTAINERS entry. * Removed CONFIG_SPL_BUILD anti-pattern in board config. Changes in v2: * Reordered dt properties alphabetically. * Removed downstream stuff

[PATCH v4 1/1] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2021-11-16 Thread Ariel D'Alessandro
Add support for iMX8MN VAR-SOM-MX8M-NANO board. Enables support for: - 1GiB DDR4 RAM - 16 GiB eMMC - SD card - Gigabit ethernet - USBOTG1 peripheral - fastboot Signed-off-by: Ariel D'Alessandro --- arch/arm/dts/Makefile | 1 +

Re: [PATCH RFC] cmd: fix net list command

2021-11-16 Thread Wolfgang Denk
Dear Tom, In message <2026141030.GC24579@bill-the-cat> you wrote: > > One thing I'm not totally sure on yet is, looking at the README I see: > "If Ethernet drivers implement the 'write_hwaddr' function, valid MAC > addresses will be programmed into hardware as part of the initialization >

RE: [PATCH v5 01/16] crypto/fsl: Add support for CAAM Job ring driver model

2021-11-16 Thread ZHIZHIKIN Andrey
Hello Gaurav, > -Original Message- > From: U-Boot On Behalf Of Gaurav Jain > Sent: Monday, November 15, 2021 8:00 AM > To: u-boot@lists.denx.de > Cc: Stefano Babic ; Fabio Estevam ; Peng > Fan > ; Simon Glass ; Priyanka Jain > ; Ye Li ; Horia Geanta > ; Ji Luo ; Franck Lenormand > ;

Re: [PATCH v4 1/1] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2021-11-16 Thread Fabio Estevam
On Tue, Nov 16, 2021 at 11:26 AM Ariel D'Alessandro wrote: > --- /dev/null > +++ b/doc/board/variscite/imx8mn_var_som.rst > @@ -0,0 +1,56 @@ > +.. SPDX-License-Identifier: GPL-2.0+ > + > +imx8mn_evk > +== Copy and paste error :-)

Re: [PATCH v4 1/1] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2021-11-16 Thread Ariel D'Alessandro
On 11/16/21 2:54 PM, Fabio Estevam wrote: > On Tue, Nov 16, 2021 at 11:26 AM Ariel D'Alessandro > wrote: > >> --- /dev/null >> +++ b/doc/board/variscite/imx8mn_var_som.rst >> @@ -0,0 +1,56 @@ >> +.. SPDX-License-Identifier: GPL-2.0+ >> + >> +imx8mn_evk >> +== > > Copy and paste error

Re: [PATCH 3/3] cmd: add acmconsole command

2021-11-16 Thread Loic Poulain
Hi Pali, Sorry for the late reply, On Mon, 27 Sept 2021 at 22:04, Pali Rohár wrote: > > On Thursday 19 August 2021 13:13:06 Loic Poulain wrote: > > This command allows to start CDC ACM function and redirect console > > (stdin, stdout, stderr) to USB (acmconsole start). The console can > > then

Re: [PATCH v5 1/1] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2021-11-16 Thread Tom Rini
On Tue, Nov 16, 2021 at 03:11:19PM -0300, Ariel D'Alessandro wrote: > Add support for iMX8MN VAR-SOM-MX8M-NANO board. Enables support for: > > - 1GiB DDR4 RAM > - 16 GiB eMMC > - SD card > - Gigabit ethernet > - USBOTG1 peripheral - fastboot > > Signed-off-by: Ariel D'Alessandro Reviewed-by:

Re: [GIT PULL] xilinx patches for v2022.01-rc3

2021-11-16 Thread Tom Rini
On Tue, Nov 16, 2021 at 03:46:44PM +0100, Michal Simek wrote: > Hi Tom, > > Please pull these changes to your tree. CI loop doesn't show any issue with > these patches. > > Thanks, > Michal > > The following changes since commit fb1018106a7bbb1a0d723029f6760b1b1b4d306d: > > Merge branch

Re: [PATCH 3/3] cmd: add acmconsole command

2021-11-16 Thread Pali Rohár
Hello! On Tuesday 16 November 2021 20:05:07 Loic Poulain wrote: > Hi Pali, > > Sorry for the late reply, > > On Mon, 27 Sept 2021 at 22:04, Pali Rohár wrote: > > > > On Thursday 19 August 2021 13:13:06 Loic Poulain wrote: > > > This command allows to start CDC ACM function and redirect console

Re: [PATCH v2] sf: Querying write-protect status before operating the flash

2021-11-16 Thread Tom Rini
On Tue, Nov 16, 2021 at 04:41:46PM +0800, chaochao wrote: > > On 2021/11/15 22:02, Jagan Teki wrote: > > On Mon, Nov 15, 2021 at 6:51 PM chaochao2021...@163.com > > wrote: > > > > > > On 2021/11/15 13:57, tudor.amba...@microchip.com wrote: > > > > > > Hi, > > > > > > + Michael > > > > > > On

Re: [PATCH] net: uclass: Save ethernet MAC address when generated

2021-11-16 Thread Tom Rini
On Tue, Nov 16, 2021 at 03:56:45PM +0100, Wolfgang Denk wrote: > Dear Tom, > > In message <2026141855.GD24579@bill-the-cat> you wrote: > > > > So, to quote lib/Kconfig: > > config NET_RANDOM_ETHADDR > > bool "Random ethaddr if unset" > > help > > Selecting this will

[PATCH 1/1] scripts: update spelling.txt from upstream Linux

2021-11-16 Thread Heinrich Schuchardt
This list is used by checkpatch.pl. The Linux v5.15 version has several words that where mispelled in U-Boot too. Signed-off-by: Heinrich Schuchardt --- scripts/spelling.txt | 365 ++- 1 file changed, 360 insertions(+), 5 deletions(-) diff --git

[PATCH v5 1/1] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2021-11-16 Thread Ariel D'Alessandro
Add support for iMX8MN VAR-SOM-MX8M-NANO board. Enables support for: - 1GiB DDR4 RAM - 16 GiB eMMC - SD card - Gigabit ethernet - USBOTG1 peripheral - fastboot Signed-off-by: Ariel D'Alessandro --- arch/arm/dts/Makefile | 1 +

[PATCH v5 0/1] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2021-11-16 Thread Ariel D'Alessandro
Changes in v5: * Fixed documentation. Changes in v4: * Added board documentation. * Cleaned up board config. Changes in v3: * Picked device tree from kernel. * Properly added MAINTAINERS entry. * Removed CONFIG_SPL_BUILD anti-pattern in board config. Changes in v2: * Reordered dt properties

Re: [PATCH v4 1/1] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2021-11-16 Thread Tom Rini
On Tue, Nov 16, 2021 at 11:26:01AM -0300, Ariel D'Alessandro wrote: > Add support for iMX8MN VAR-SOM-MX8M-NANO board. Enables support for: > > - 1GiB DDR4 RAM > - 16 GiB eMMC > - SD card > - Gigabit ethernet > - USBOTG1 peripheral - fastboot > > Signed-off-by: Ariel D'Alessandro > --- >

[PATCH 1/1] doc: fix typos in trace.rst

2021-11-16 Thread Heinrich Schuchardt
Fix obvious typos. Use US spelling consistently. Signed-off-by: Heinrich Schuchardt --- doc/develop/trace.rst | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/develop/trace.rst b/doc/develop/trace.rst index 7776c48428..09f5745a90 100644 ---

Re: [PATCH] makefile: add missing semicolons

2021-11-16 Thread Tom Rini
On Fri, Nov 05, 2021 at 04:20:24PM +0100, Angelo Dureghello wrote: > On some distributions, as Debian GNU 11, this targets fails > with errors. > > Signed-off-by: Angelo Dureghello Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] arm64: relocate-rela: Add support for ld.lld

2021-11-16 Thread Tom Rini
On Wed, Oct 20, 2021 at 09:31:32PM +, Alistair Delva wrote: > Cap end of relocations by the binary size. > > Linkers like to insert some auxiliary sections between .rela.dyn and > .bss_start. These sections don't make their way to the final binary, but > reloc_rela still tries to relocate

Re: [PATCH 1/2] board: rename "tqc" vendor to "tq"

2021-11-16 Thread Tom Rini
On Tue, Nov 02, 2021 at 11:36:45AM +0100, Matthias Schiffer wrote: > The subdivision name "TQ Components" hasn't been in use for a long time. > Rename the vendor directory to "tq", which also matches our Device Tree > vendor prefix. > > Signed-off-by: Matthias Schiffer Applied to

Re: [PATCH 2/2] board: tq: fix spelling of "TQ-Systems"

2021-11-16 Thread Tom Rini
On Tue, Nov 02, 2021 at 11:36:46AM +0100, Matthias Schiffer wrote: > "TQ-Systems" is written with a dash. > > Signed-off-by: Matthias Schiffer Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v4 1/1] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2021-11-16 Thread Ariel D'Alessandro
Hi Tom, On 11/16/21 2:52 PM, Tom Rini wrote: > On Tue, Nov 16, 2021 at 11:26:01AM -0300, Ariel D'Alessandro wrote: > >> Add support for iMX8MN VAR-SOM-MX8M-NANO board. Enables support for: >> >> - 1GiB DDR4 RAM >> - 16 GiB eMMC >> - SD card >> - Gigabit ethernet >> - USBOTG1 peripheral -

Re: [PATCH v1 1/1] usb: doc: Fix spelling issues in README.usb

2021-11-16 Thread Tom Rini
On Fri, Nov 12, 2021 at 06:37:47PM +0300, Andy Shevchenko wrote: > Fix spelling issues in README.usb. > > Signed-off-by: Andy Shevchenko Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 2/2] image: Explicitly declare do_bdinfo()

2021-11-16 Thread Tom Rini
On Mon, Nov 08, 2021 at 09:03:38PM +0300, Andy Shevchenko wrote: > Compiler is not happy: > > common/image-board.c: In function ‘boot_get_kbd’: > common/image-board.c:902:17: warning: implicit declaration of function > ‘do_bdinfo’ [-Wimplicit-function-declaration] > 902 |

Re: [BUGFIX PATCH] configs: synquacer: Fix dfu_alt_info to use nor1

2021-11-16 Thread Tom Rini
On Wed, Nov 10, 2021 at 09:40:07AM +0900, Masami Hiramatsu wrote: > Fix dfu_alt_info to use nor1 instead of the device name. > This reverts a part of commit 59bd18d4c4d7 ("configs: synquacer: > Remove mtdparts settings and update DFU setting") because the > commit a4f2d8341455 ("mtd: spi: nor:

Re: [PATCH] arm: Fix bad memcpy.S str8w macro argument count

2021-11-16 Thread Tom Rini
On Wed, Nov 10, 2021 at 03:04:40PM +0100, Pierre-Clément Tosi wrote: > Remove the extra (empty) argument passed to str8w, causing the following > error: > >:40:47: error: too many positional arguments > str8w r0, r3, r4, r5, r6, r7, r8, r9, ip, , abort=19f >

[PATCH] efi_loader: fix FinalEvent table initial position

2021-11-16 Thread Ilias Apalodimas
When initializing the final event table in create_final_event() we are setting the initial buffer position to sizeof(*final_event). Although we clear the buffer correctly and won't cause any problems, we should start logging events starting from zero. While at it add a cast when defining the

Re: [PATCH 10/10] board: sl28: disable random MAC address generation

2021-11-16 Thread Tom Rini
On Mon, Nov 15, 2021 at 11:45:51PM +0100, Michael Walle wrote: > Nowadays, u-boot (when CONFIG_NET_RANDOM_ETHADDR is set) will set > enetaddr to a random value if not set and then pass the randomly > generated MAC address to linux. First, for clarity I'm not nak'ing this. I kind of would like

Re: [PATCH] efi_loader: fix FinalEvent table initial position

2021-11-16 Thread Ilias Apalodimas
Hi Heinrich, On Wed, 17 Nov 2021 at 01:24, Ilias Apalodimas wrote: > > When initializing the final event table in create_final_event() we are > setting the initial buffer position to sizeof(*final_event). Although > we clear the buffer correctly and won't cause any problems, we should > start

Re: Testing pci_mvebu.c with Kirkwood SoCs

2021-11-16 Thread Pali Rohár
On Tuesday 16 November 2021 14:26:56 Tony Dinh wrote: > Hi Pali, > > While we are at it, this default should be changed in > drivers/usb/host/Kconfig. > > config USB_XHCI_MVEBU > bool "MVEBU USB 3.0 support" > default y > > Setting this default correctly will save a couple

Re: Testing pci_mvebu.c with Kirkwood SoCs

2021-11-16 Thread Tony Dinh
Hi Pali, While we are at it, this default should be changed in drivers/usb/host/Kconfig. config USB_XHCI_MVEBU bool "MVEBU USB 3.0 support" default y Setting this default correctly will save a couple Kbytes for other boards. default y if ARCH_MVEBU Thanks, Tony On Fri,

Re: Testing pci_mvebu.c with Kirkwood SoCs

2021-11-16 Thread Tony Dinh
Hi Pali, On Tue, Nov 16, 2021 at 2:37 PM Pali Rohár wrote: > > On Tuesday 16 November 2021 14:26:56 Tony Dinh wrote: > > Hi Pali, > > > > While we are at it, this default should be changed in > > drivers/usb/host/Kconfig. > > > > config USB_XHCI_MVEBU > > bool "MVEBU USB 3.0 support" >

Re: [PATCH] net: uclass: Save ethernet MAC address when generated

2021-11-16 Thread Wolfgang Denk
Dear Tom, In message <2026184146.GF24579@bill-the-cat> you wrote: > > Because honestly, the more I read this, the more I think > https://patchwork.ozlabs.org/project/uboot/patch/2025121152.3470910-1-m= > ich...@walle.cc/ > is essentially the right direction. There's no reason for 'net

Re: [PATCH 1/2] fsl-layerscape: add dtb overlay feature

2021-11-16 Thread Michael Walle
> From: Sahil Malhotra > > This patch enables the DTB overlay feature for LS platforms. Could you please add some description what this is doing and for what this is intended? To have a "DTB overlay feature", it is enough to just enable CONFIG_OF_LIBFDT_OVERLAY. Apparently you're adding an

  1   2   >