Re: [PATCH v2] tpm: display warning if using gpio reset with TPM

2024-04-16 Thread Miquel Raynal
Hi Ilias, ilias.apalodi...@linaro.org wrote on Wed, 17 Apr 2024 08:40:14 +0300: > Hi Miquel > > On Mon, 8 Apr 2024 at 10:23, Miquel Raynal wrote: > > > > Hello, > > > > ilias.apalodi...@linaro.org wrote on Thu, 28 Mar 2024 09:08:37 +0200: > > > > > Thanks Tim > > > > > > On Thu, 28 Mar 2024 a

Re: [PATCH v2] tpm: display warning if using gpio reset with TPM

2024-04-16 Thread Ilias Apalodimas
Hi Miquel On Mon, 8 Apr 2024 at 10:23, Miquel Raynal wrote: > > Hello, > > ilias.apalodi...@linaro.org wrote on Thu, 28 Mar 2024 09:08:37 +0200: > > > Thanks Tim > > > > On Thu, 28 Mar 2024 at 00:12, Tim Harvey wrote: > > > > > > Instead of displaying what looks like an error message if a > > >

Re: [PATCH] riscv: dts: jh7110: Enable PLL node in SPL

2024-04-16 Thread E Shattow
On Tue, Apr 9, 2024 at 11:44 PM Bo Gan wrote: > > On 4/9/24 6:55 PM, E Shattow wrote: > > Original speed class SD cards fail with this change "unable to change mode". > > > > The BUS_ROOT clock will have to be switched to PLL2 anyway in U-Boot proper or > in Linux, because it's the parent or grand

[PATCH] board: ti: j721e: Add support for both esm probe

2024-04-16 Thread Udit Kumar
At present only MCU domain ESM is probed, this means errors occurred in mcu domain will be propagate to MCU_SAFETY_ERRORn. MCU ESM accepts SOC_SAFETY_ERRORn signal as Error event and propagate to MCU_SAFETY_ERRORn.[0] Therefore adding support to probe both main domain and mcu domain ESM. [0]: htt

Re: [PATCH 4/4] configs: visionfive2: enable SPL_YMODEM_SUPPORT

2024-04-16 Thread E Shattow
Successful in use w/ 'tio' serial tool and Adafruit CP2102N Friend adapter on Mars CM Lite board in DFRobot mini router carrier. While SPL and u-boot.itb payload are sourced via UART the environment variables are from the environment variable storage as-is. This makes sense in the use case for dev

Re: [PATCH 1/2] mmc: Imply HS200 cap with mmc-hs400 prop to match linux

2024-04-16 Thread Dragan Simic
Hello Jaehoon, On 2024-04-17 01:33, Jaehoon Chung wrote: -Original Message- From: Quentin Schulz Sent: Wednesday, April 10, 2024 5:57 PM To: Dragan Simic Cc: Jonas Karlman ; Peng Fan ; Jaehoon Chung ; Tom Rini ; u-boot@lists.denx.de Subject: Re: [PATCH 1/2] mmc: Imply HS200 cap with

Re: [PATCH v2] net: wget: fix TCP sequence number wrap around issue

2024-04-16 Thread Tom Rini
On Tue, 16 Apr 2024 09:26:24 +0900, Yasuharu Shibata wrote: > If tcp_seq_num is wrap around, tcp_seq_num >= initial_data_seq_num > isn't satisfied and store_block() isn't called. > The condition has a wrap around issue, so it is fixed in this patch. > > Applied to u-boot/master, thanks! -- To

Re: [PATCH] net: wget: Support retransmission a dropped packet

2024-04-16 Thread Tom Rini
On Sun, 14 Apr 2024 19:46:07 +0900, Yasuharu Shibata wrote: > The server sends multiple packets without waiting for an ACK > by window control and if some packets are dropped, > wget will return an ACK including the dropped packets. > > Following log indicates this issue. > > wget_handler() wg

RE: [PATCH] mmc: Support 32-bit only ADMA on 64-bit platforms

2024-04-16 Thread Jaehoon Chung
> -Original Message- > From: Greg Malysa > Sent: Tuesday, March 26, 2024 11:28 AM > To: u-boot@lists.denx.de; Peng Fan ; Jaehoon Chung > > Cc: Greg Malysa ; Nathan Barrett-Morrison > ; Ian > Roberts ; Jonas Karlman ; Kever > Yang chips.com>; Marek Vasut ; Oleksandr Suvorov > ; Paul

RE: [PATCH] mmc: sdhci: Fix potential ADMA descriptor table overflow

2024-04-16 Thread Jaehoon Chung
> -Original Message- > From: Greg Malysa > Sent: Tuesday, March 26, 2024 11:23 AM > To: u-boot@lists.denx.de; Peng Fan ; Jaehoon Chung > > Cc: Ian Roberts ; Nathan Barrett-Morrison > ; Greg > Malysa ; Sean Anderson ; Tom > Rini > > Subject: [PATCH] mmc: sdhci: Fix potential ADMA de

RE: [PATCH] mmc: sdhci: introduce adma_write_desc() hook to struct sdhci_ops

2024-04-16 Thread Jaehoon Chung
> -Original Message- > From: Greg Malysa > Sent: Tuesday, March 26, 2024 11:18 AM > To: u-boot@lists.denx.de; Peng Fan ; Jaehoon Chung > > Cc: Ian Roberts ; Nathan Barrett-Morrison > ; Greg > Malysa ; Jonas Karlman ; Kever Yang > chips.com>; Peter Geis ; Sean Anderson > ; Simon Gl

Re: [PATCH 11/23] efi_loader: switch sha256 to mbedtls

2024-04-16 Thread Tom Rini
On Tue, Apr 16, 2024 at 08:22:23PM -0400, Raymond Mao wrote: > Hi Tom, > > On Tue, 16 Apr 2024 at 15:22, Tom Rini wrote: > > > On Tue, Apr 16, 2024 at 12:00:07PM -0700, Raymond Mao wrote: > > > > > When MBEDTLS_LIB_CRYPTO is enabled, use the APIs of sha256 from > > > hash shim layer instead. > >

Re: [PATCH 11/23] efi_loader: switch sha256 to mbedtls

2024-04-16 Thread Raymond Mao
Hi Tom, On Tue, 16 Apr 2024 at 15:22, Tom Rini wrote: > On Tue, Apr 16, 2024 at 12:00:07PM -0700, Raymond Mao wrote: > > > When MBEDTLS_LIB_CRYPTO is enabled, use the APIs of sha256 from > > hash shim layer instead. > > > > Signed-off-by: Raymond Mao > > --- > > lib/efi_loader/efi_tcg2.c | 9 +

Re: [PATCH 06/23] image: remove redundant hash includes

2024-04-16 Thread Tom Rini
On Tue, Apr 16, 2024 at 08:13:53PM -0400, Raymond Mao wrote: > Hi Tom, > > On Tue, 16 Apr 2024 at 15:19, Tom Rini wrote: > > > On Tue, Apr 16, 2024 at 12:00:02PM -0700, Raymond Mao wrote: > > > > > Remove the redundant includes of u-boot/md5.h, u-boot/sha1.h, > > > u-boot/sha256.h and u-boot/sha

Re: [PATCH 06/23] image: remove redundant hash includes

2024-04-16 Thread Raymond Mao
Hi Tom, On Tue, 16 Apr 2024 at 15:19, Tom Rini wrote: > On Tue, Apr 16, 2024 at 12:00:02PM -0700, Raymond Mao wrote: > > > Remove the redundant includes of u-boot/md5.h, u-boot/sha1.h, > > u-boot/sha256.h and u-boot/sha512.h > > > > Signed-off-by: Raymond Mao > > --- > > boot/image-fit.c | 4 -

Re: [PATCH 00/23] [RFC] Integrate MbedTLS v3.6 LTS with U-Boot

2024-04-16 Thread Tom Rini
On Tue, Apr 16, 2024 at 08:03:34PM -0400, Raymond Mao wrote: > Hi Tom, > > On Tue, 16 Apr 2024 at 19:50, Tom Rini wrote: > > > On Tue, Apr 16, 2024 at 07:47:44PM -0400, Raymond Mao wrote: > > > Hi Tom, > > > > > > On Tue, 16 Apr 2024 at 19:12, Tom Rini wrote: > > > > > > > On Tue, Apr 16, 2024

Re: [PATCH 00/23] [RFC] Integrate MbedTLS v3.6 LTS with U-Boot

2024-04-16 Thread Raymond Mao
Hi Tom, On Tue, 16 Apr 2024 at 19:50, Tom Rini wrote: > On Tue, Apr 16, 2024 at 07:47:44PM -0400, Raymond Mao wrote: > > Hi Tom, > > > > On Tue, 16 Apr 2024 at 19:12, Tom Rini wrote: > > > > > On Tue, Apr 16, 2024 at 11:59:56AM -0700, Raymond Mao wrote: > > > > > > [snip] > > > > [1]: bloat-o-m

Re: [PATCH 05/23] test: py: add sudo for virt-make-fs

2024-04-16 Thread Raymond Mao
Hi Tom, On Tue, 16 Apr 2024 at 15:19, Tom Rini wrote: > On Tue, Apr 16, 2024 at 12:00:01PM -0700, Raymond Mao wrote: > > > Fix a permission issue when running virt-make-fs > > > > Signed-off-by: Raymond Mao > > --- > > test/py/tests/test_efi_secboot/conftest.py | 4 ++-- > > 1 file changed, 2

Re: [PATCH 00/23] [RFC] Integrate MbedTLS v3.6 LTS with U-Boot

2024-04-16 Thread Tom Rini
On Tue, Apr 16, 2024 at 07:47:44PM -0400, Raymond Mao wrote: > Hi Tom, > > On Tue, 16 Apr 2024 at 19:12, Tom Rini wrote: > > > On Tue, Apr 16, 2024 at 11:59:56AM -0700, Raymond Mao wrote: > > > > [snip] > > > [1]: bloat-o-meter output between disabling/enabling MbedTLS > > > ``` > > > add/remove

Re: [PATCH 00/23] [RFC] Integrate MbedTLS v3.6 LTS with U-Boot

2024-04-16 Thread Raymond Mao
Hi Tom, On Tue, 16 Apr 2024 at 19:12, Tom Rini wrote: > On Tue, Apr 16, 2024 at 11:59:56AM -0700, Raymond Mao wrote: > > [snip] > > [1]: bloat-o-meter output between disabling/enabling MbedTLS > > ``` > > add/remove: 231/69 grow/shrink: 12/5 up/down: 60196/-11166 (49030) > > I don't know if this

RE: [PATCH] mmc: cv1800b: Add transmit tap delay config to fix write error

2024-04-16 Thread Jaehoon Chung
Hi, > -Original Message- > From: Kongyang Liu > Sent: Tuesday, April 16, 2024 4:31 PM > To: u-boot@lists.denx.de > Cc: Jaehoon Chung ; Leo Yu-Chi Liang > ; Peng Fan > ; Tom Rini > Subject: [PATCH] mmc: cv1800b: Add transmit tap delay config to fix write > error > > Currently, only the

RE: [PATCH 2/2] mmc: Add support for the no-mmc-hs400 prop

2024-04-16 Thread Jaehoon Chung
Hi > -Original Message- > From: Jonas Karlman > Sent: Tuesday, April 9, 2024 6:06 AM > To: Peng Fan ; Jaehoon Chung ; Tom > Rini > Cc: Jonas Karlman ; u-boot@lists.denx.de > Subject: [PATCH 2/2] mmc: Add support for the no-mmc-hs400 prop > > The linux commit f722e650d965 ("mmc: core: a

RE: [PATCH 1/2] mmc: Imply HS200 cap with mmc-hs400 prop to match linux

2024-04-16 Thread Jaehoon Chung
Hi, > -Original Message- > From: Quentin Schulz > Sent: Wednesday, April 10, 2024 5:57 PM > To: Dragan Simic > Cc: Jonas Karlman ; Peng Fan ; Jaehoon > Chung > ; Tom Rini ; u-boot@lists.denx.de > Subject: Re: [PATCH 1/2] mmc: Imply HS200 cap with mmc-hs400 prop to match > linux > > Hi

Re: [PATCH 00/23] [RFC] Integrate MbedTLS v3.6 LTS with U-Boot

2024-04-16 Thread Raymond Mao
Hi Tom, On Tue, 16 Apr 2024 at 16:26, Tom Rini wrote: > On Tue, Apr 16, 2024 at 11:59:56AM -0700, Raymond Mao wrote: > > > Integrate MbedTLS v3.6 LTS (currently v3.6.0-RC1) with U-Boot. > > Please look in to: > https://source.denx.de/u-boot/u-boot/-/jobs/818534 Yes. I am aware of the test failu

RE: [PATCH 1/2] mmc: Imply HS200 cap with mmc-hs400 prop to match linux

2024-04-16 Thread Jaehoon Chung
Hi, > -Original Message- > From: Quentin Schulz > Sent: Wednesday, April 10, 2024 12:27 AM > To: Jonas Karlman ; Peng Fan ; Jaehoon > Chung > ; Tom Rini > Cc: u-boot@lists.denx.de > Subject: Re: [PATCH 1/2] mmc: Imply HS200 cap with mmc-hs400 prop to match > linux > > Hi Jonas, > > O

Re: U-Boot/UKI Relationship Regarding Multiple DTBs

2024-04-16 Thread Tom Rini
On Mon, Apr 08, 2024 at 11:41:10AM -0500, vindicator wrote: > Is u-boot capable of selecting the correct DTB in a UKI during boot? > > I saw "doc/README.multi-dtb-fit", which at least somewhat addresses > what I'm looking for I think, but I'm not sure if that will relate > directly with executing

Re: [PATCH 00/23] [RFC] Integrate MbedTLS v3.6 LTS with U-Boot

2024-04-16 Thread Tom Rini
On Tue, Apr 16, 2024 at 11:59:56AM -0700, Raymond Mao wrote: [snip] > [1]: bloat-o-meter output between disabling/enabling MbedTLS > ``` > add/remove: 231/69 grow/shrink: 12/5 up/down: 60196/-11166 (49030) I don't know if this is qemu_arm64 or sandbox. With buildman's size comparison functions w

Re: [PATCH 00/23] [RFC] Integrate MbedTLS v3.6 LTS with U-Boot

2024-04-16 Thread Tom Rini
On Tue, Apr 16, 2024 at 11:59:56AM -0700, Raymond Mao wrote: > Integrate MbedTLS v3.6 LTS (currently v3.6.0-RC1) with U-Boot. Please look in to: https://source.denx.de/u-boot/u-boot/-/jobs/818534 -- Tom signature.asc Description: PGP signature

Re: [PATCH u-boot-mvebu 00/10] Turris Omnia DDR training changes

2024-04-16 Thread Tony Dinh
Hi Marek, On Tue, Apr 16, 2024 at 3:11 AM Marek Behún wrote: > > Hi Tony, > > hmm no I did not change the version number. > > The changes are only relevant for debug messages, there is no > functional changes in how the DDR training is done, unless I made a > mistake. > > I am not sure that chang

Re: [PATCH 00/23] [RFC] Integrate MbedTLS v3.6 LTS with U-Boot

2024-04-16 Thread Tom Rini
On Tue, Apr 16, 2024 at 11:59:56AM -0700, Raymond Mao wrote: > Integrate MbedTLS v3.6 LTS (currently v3.6.0-RC1) with U-Boot. > > Patch 01 and 02 are for introducing MbedTLS release package. > I have to split it into 2 parts due to the size limitation of Gmail. So to be clear, for v2 you need to

Re: [PATCH 11/23] efi_loader: switch sha256 to mbedtls

2024-04-16 Thread Tom Rini
On Tue, Apr 16, 2024 at 12:00:07PM -0700, Raymond Mao wrote: > When MBEDTLS_LIB_CRYPTO is enabled, use the APIs of sha256 from > hash shim layer instead. > > Signed-off-by: Raymond Mao > --- > lib/efi_loader/efi_tcg2.c | 9 + > 1 file changed, 9 insertions(+) Why can't we have the abst

Re: [PATCH 06/23] image: remove redundant hash includes

2024-04-16 Thread Tom Rini
On Tue, Apr 16, 2024 at 12:00:02PM -0700, Raymond Mao wrote: > Remove the redundant includes of u-boot/md5.h, u-boot/sha1.h, > u-boot/sha256.h and u-boot/sha512.h > > Signed-off-by: Raymond Mao > --- > boot/image-fit.c | 4 > boot/image.c | 2 -- > 2 files changed, 6 deletions(-) Can

Re: [PATCH 05/23] test: py: add sudo for virt-make-fs

2024-04-16 Thread Tom Rini
On Tue, Apr 16, 2024 at 12:00:01PM -0700, Raymond Mao wrote: > Fix a permission issue when running virt-make-fs > > Signed-off-by: Raymond Mao > --- > test/py/tests/test_efi_secboot/conftest.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Can you elaborate please? The point of v

[PATCH 20/23] lib/crypto: port MSCode parser on MbedTLS

2024-04-16 Thread Raymond Mao
Integrate MicroSoft Authenticate Code parser on top of MbedTLS ASN.1 decoder. Signed-off-by: Raymond Mao --- include/crypto/mscode.h| 4 ++ lib/crypto/mscode_parser.c | 104 + 2 files changed, 108 insertions(+) diff --git a/include/crypto/mscode.h b/inc

[PATCH 23/23] configs: enable MbedTLS as default setting

2024-04-16 Thread Raymond Mao
Enable MbedTLS as default setting for qemu arm64 Signed-off-by: Raymond Mao --- configs/qemu_arm64_defconfig | 5 + configs/sandbox_defconfig| 4 2 files changed, 9 insertions(+) diff --git a/configs/qemu_arm64_defconfig b/configs/qemu_arm64_defconfig index 7e166f4390..587a3fb912 1

[PATCH 22/23] mbedtls: disable the unused features

2024-04-16 Thread Raymond Mao
Disable the unused features of MbedTLS to reduce the target size. Signed-off-by: Raymond Mao --- lib/mbedtls/mbedtls_def_config.h | 186 +++ 1 file changed, 93 insertions(+), 93 deletions(-) diff --git a/lib/mbedtls/mbedtls_def_config.h b/lib/mbedtls/mbedtls_def_conf

[PATCH 18/23] lib/crypto: Port x509_cert_parser on MbedTLS

2024-04-16 Thread Raymond Mao
Integrate x509_cert_parser on top of MbedTLS x509 library. Add API x509_populate_cert and x509_populate_pubkey for code reusability between x509 and pkcs7 parsers. Signed-off-by: Raymond Mao --- include/crypto/x509_parser.h | 34 +++ lib/crypto/x509_cert_parser.c | 430

[PATCH 19/23] lib/crypto: port PKCS7 parser on MbedTLS

2024-04-16 Thread Raymond Mao
Integrate PKCS7 parser on top of MbedTLS PKCS7 library. Signed-off-by: Raymond Mao --- include/crypto/pkcs7_parser.h | 56 lib/crypto/pkcs7_parser.c | 482 -- 2 files changed, 510 insertions(+), 28 deletions(-) diff --git a/include/crypto/pkcs7_parser.h

[PATCH 21/23] lib/crypto: remove dependence on ASN1 decoder

2024-04-16 Thread Raymond Mao
When building with MbedTLS, we are using MbedTLS to decode ASN1 data for x509, pkcs7 and mscode. So we can remove the dependence on ASN1 decoder when MBEDTLS_LIB_X509 is enabled. Signed-off-by: Raymond Mao --- lib/crypto/Makefile | 19 +-- 1 file changed, 17 insertions(+), 2 del

[PATCH 15/23] mbedtls/external: support decoding multiple signer's cert

2024-04-16 Thread Raymond Mao
Support decoding multiple signer's cert in the signed data within a PKCS7 message. Signed-off-by: Raymond Mao --- lib/mbedtls/external/mbedtls/library/pkcs7.c | 75 1 file changed, 47 insertions(+), 28 deletions(-) diff --git a/lib/mbedtls/external/mbedtls/library/pkcs7.c

[PATCH 17/23] lib/crypto: Port public_key on MbedTLS

2024-04-16 Thread Raymond Mao
Integrate function public_key_verify_signature on top of MbedTLS pk library. Signed-off-by: Raymond Mao --- include/crypto/public_key.h | 6 +++ lib/crypto/asymmetric_type.c | 2 +- lib/crypto/public_key.c | 75 3 files changed, 82 insertions(+), 1 de

[PATCH 16/23] mbedtls/external: update MbedTLS PKCS7 test suites

2024-04-16 Thread Raymond Mao
Update the PKCS7 test suites for multiple certs. Signed-off-by: Raymond Mao --- .../external/mbedtls/tests/suites/test_suite_pkcs7.data | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mbedtls/external/mbedtls/tests/suites/test_suite_pkcs7.data b/lib/mbedtls/ext

[PATCH 14/23] mbedtls/external: support PKCS9 Authenticate Attributes

2024-04-16 Thread Raymond Mao
Populate PKCS9 Authenticate Attributes from signer info if it exists in a PKCS7 message. Add OIDs for describing objects using for Authenticate Attributes. Signed-off-by: Raymond Mao --- .../external/mbedtls/include/mbedtls/oid.h| 5 + .../external/mbedtls/include/mbedtls/pkcs7.h | 11

[PATCH 12/23] image: switch sha256 to mbedtls

2024-04-16 Thread Raymond Mao
When MBEDTLS_LIB_CRYPTO is enabled, use the APIs of sha256 from hash shim layer instead. Signed-off-by: Raymond Mao --- boot/image-pre-load.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/boot/image-pre-load.c b/boot/image-pre-load.c index b504ab42a5..85d5ff3ab7 1

[PATCH 13/23] mbedtls/external: support MicroSoft Authentication Code

2024-04-16 Thread Raymond Mao
Populate MicroSoft Authentication Code from the content data into PKCS7 decoding context if it exists in a PKCS7 message. Add OIDs for describing objects using for MicroSoft Authentication Code. Signed-off-by: Raymond Mao --- .../external/mbedtls/include/mbedtls/oid.h| 30 ++ .../ext

[PATCH 10/23] makefile: add mbedtls include directories

2024-04-16 Thread Raymond Mao
Add the mbedtls include directories into the build system. Signed-off-by: Raymond Mao --- Makefile | 13 + 1 file changed, 13 insertions(+) diff --git a/Makefile b/Makefile index 7321fe1499..80db1dfd8e 100644 --- a/Makefile +++ b/Makefile @@ -829,6 +829,12 @@ KBUILD_HOSTCFLAGS += $(

[PATCH 11/23] efi_loader: switch sha256 to mbedtls

2024-04-16 Thread Raymond Mao
When MBEDTLS_LIB_CRYPTO is enabled, use the APIs of sha256 from hash shim layer instead. Signed-off-by: Raymond Mao --- lib/efi_loader/efi_tcg2.c | 9 + 1 file changed, 9 insertions(+) diff --git a/lib/efi_loader/efi_tcg2.c b/lib/efi_loader/efi_tcg2.c index ac056dcfc5..3c356abc6e 100644

[PATCH 09/23] hash: integrate hash on mbedtls

2024-04-16 Thread Raymond Mao
Integrate common/hash.c on the hash shim layer so that hash APIs from mbedtls can be leveraged by boot/image and efi_loader. Signed-off-by: Raymond Mao --- common/hash.c | 161 + include/u-boot/hash-checksum.h | 6 ++ 2 files changed, 167 insert

[PATCH 08/23] mbedtls: add hash shim layer

2024-04-16 Thread Raymond Mao
Create a hash shim layer on top of mbedtls crypto library. Signed-off-by: Raymond Mao --- include/mbedtls/md5.h| 18 ++ include/mbedtls/sha1.h | 27 + include/mbedtls/sha256.h | 31 ++ include/mbedtls/sha512.h | 39 + lib/mbedtls/Makefile | 3 + li

[PATCH 05/23] test: py: add sudo for virt-make-fs

2024-04-16 Thread Raymond Mao
Fix a permission issue when running virt-make-fs Signed-off-by: Raymond Mao --- test/py/tests/test_efi_secboot/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/py/tests/test_efi_secboot/conftest.py b/test/py/tests/test_efi_secboot/conftest.py index ff7ac7

[PATCH 07/23] efi_loader: remove redundant hash includes

2024-04-16 Thread Raymond Mao
Remove the redundant includes of u-boot/sha1.h, u-boot/sha256.h and u-boot/sha512.h Signed-off-by: Raymond Mao --- lib/efi_loader/efi_signature.c | 1 - lib/efi_loader/efi_tcg2.c | 3 --- 2 files changed, 4 deletions(-) diff --git a/lib/efi_loader/efi_signature.c b/lib/efi_loader/efi_signa

[PATCH 04/23] arm: EFI linker script text section alignment

2024-04-16 Thread Raymond Mao
Add text section alignment to fix sbsign signing warning 'gaps in the section table may result in different checksums' which causes a failure of efi_image_verify_diges() Signed-off-by: Raymond Mao --- arch/arm/lib/elf_aarch64_efi.lds | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/l

[PATCH 06/23] image: remove redundant hash includes

2024-04-16 Thread Raymond Mao
Remove the redundant includes of u-boot/md5.h, u-boot/sha1.h, u-boot/sha256.h and u-boot/sha512.h Signed-off-by: Raymond Mao --- boot/image-fit.c | 4 boot/image.c | 2 -- 2 files changed, 6 deletions(-) diff --git a/boot/image-fit.c b/boot/image-fit.c index 89e377563c..1efc39f440 1006

Re: [PATCH 01/10] board: ti: am62x: Init DRAM size in R5/A53 SPL

2024-04-16 Thread Tom Rini
On Tue, Apr 16, 2024 at 05:52:58PM +0530, Chintan Vankar wrote: > > > On 12/04/24 03:37, Tom Rini wrote: > > On Wed, Apr 03, 2024 at 06:18:01PM +0530, Chintan Vankar wrote: > > > > > > > > > On 22/01/24 10:11, Siddharth Vadapalli wrote: > > > > > > > > > > > > On 20/01/24 22:11, Tom Rini wrot

Re: [PATCH 4/4] Kconfig: Make all Kconfig encoding ascii

2024-04-16 Thread Dragan Simic
On 2024-04-16 16:51, Francesco Dolcini wrote: On Tue, Apr 16, 2024 at 03:18:08PM +0200, Dragan Simic wrote: On 2024-04-16 08:59, Francesco Dolcini wrote: > On Tue, Apr 16, 2024 at 02:36:12AM +0200, Tom Rini wrote: > > On Mon, Apr 15, 2024 at 02:22:02PM +0200, Heinrich Schuchardt wrote: > > > C i

Re: [PATCH v2 5/5] common: Convert *.c/h from UTF-8 to ASCII enconfing

2024-04-16 Thread Tom Rini
On Tue, Apr 16, 2024 at 06:19:48PM +0200, Heinrich Schuchardt wrote: > On 16.04.24 18:06, Tom Rini wrote: > > On Tue, Apr 16, 2024 at 08:55:19AM +0200, Michal Simek wrote: > > > > > Convert UTF-8 chars to ASCII in cases where make sense. No Copyright or > > > names are converted. > > > > > > Sign

Re: [PATCH] configs: am62px_evm_a53_defconfig: Enable MMC UHS config option

2024-04-16 Thread Judith Mendez
Hi all, On 4/8/24 11:01 AM, Judith Mendez wrote: Enable MMC UHS support for to allow to enter the UHS modes for MMC0. I have sent v2 for this patch since there was a typo in the patch description. ~ Judith

Re: [PATCH v2 5/5] common: Convert *.c/h from UTF-8 to ASCII enconfing

2024-04-16 Thread Heinrich Schuchardt
On 16.04.24 18:06, Tom Rini wrote: On Tue, Apr 16, 2024 at 08:55:19AM +0200, Michal Simek wrote: Convert UTF-8 chars to ASCII in cases where make sense. No Copyright or names are converted. Signed-off-by: Michal Simek Reviewed-by: Tom Rini Now, how did you test / find these? Given names

[PATCH v2] configs: am62px_evm_a53_defconfig: Enable MMC UHS config option

2024-04-16 Thread Judith Mendez
Enable MMC UHS support for to allow to enter the UHS modes for MMC1. Signed-off-by: Judith Mendez --- Changes since v1: - Fix typo in patch description --- configs/am62px_evm_a53_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am62px_evm_a53_defconfig b/configs/am62px_ev

Re: [PATCH v2 5/5] common: Convert *.c/h from UTF-8 to ASCII enconfing

2024-04-16 Thread Tom Rini
On Tue, Apr 16, 2024 at 08:55:19AM +0200, Michal Simek wrote: > Convert UTF-8 chars to ASCII in cases where make sense. No Copyright or > names are converted. > > Signed-off-by: Michal Simek > Reviewed-by: Tom Rini Now, how did you test / find these? Given names a CI test is unlikely to be d

Re: [PATCH v2 4/5] Kconfig: Make all Kconfig encoding ascii

2024-04-16 Thread Tom Rini
On Tue, Apr 16, 2024 at 08:55:18AM +0200, Michal Simek wrote: > Some of Kconfigs are using utf-8 encoding because of used chars. Convert > all of them to ascii enconging. Based on discussion ASCII should be used in > general with the exception of names. > > Signed-off-by: Michal Simek > Review

Re: [PATCH] event: add an event for livetree fixups

2024-04-16 Thread Tom Rini
On Mon, Apr 15, 2024 at 11:45:29AM +0100, Caleb Connolly wrote: > > > On 12/04/2024 20:45, Tom Rini wrote: > > On Fri, Apr 12, 2024 at 08:04:02PM +0100, Caleb Connolly wrote: > > > >> Introduce a new EVT_OF_LIVE event to allow for the livetree to be > >> modified before dm_init_and_scan(). Board

Re: [PATCH] fs/erofs: add DEFLATE algorithm support

2024-04-16 Thread Gao Xiang
Hi Jianan, On Sun, Apr 14, 2024 at 11:04:14PM +0800, Jianan Huang wrote: > This patch adds DEFLATE compression algorithm support. It's a good choice > to trade off between compression ratios and performance compared to LZ4. > Alternatively, DEFLATE could be used for some specific files since EROFS

Re: [PATCH 4/4] Kconfig: Make all Kconfig encoding ascii

2024-04-16 Thread Francesco Dolcini
On Tue, Apr 16, 2024 at 03:18:08PM +0200, Dragan Simic wrote: > On 2024-04-16 08:59, Francesco Dolcini wrote: > > On Tue, Apr 16, 2024 at 02:36:12AM +0200, Tom Rini wrote: > > > On Mon, Apr 15, 2024 at 02:22:02PM +0200, Heinrich Schuchardt wrote: > > > > C is the sign for coulomb which is the unit

Re: [PATCH] rockchip: px30-board-tpl: Use CONFIG_TPL_BANNER_PRINT flag

2024-04-16 Thread Quentin Schulz
Hi Lukasz, Please use scripts/get_maintainer.pl to set the Cc and To recipients of your mail to make sure it reaches the appropriate people explicitly. $ scripts/get_maintainer.pl arch/arm/mach-rockchip/px30-board-tpl.c Tom Rini (maintainer:ARM) Simon Glass (maintainer:ARM ROCKCHIP) Philipp

Re: [PATCH 4/4] Kconfig: Make all Kconfig encoding ascii

2024-04-16 Thread Dragan Simic
On 2024-04-16 08:59, Francesco Dolcini wrote: On Tue, Apr 16, 2024 at 02:36:12AM +0200, Tom Rini wrote: On Mon, Apr 15, 2024 at 02:22:02PM +0200, Heinrich Schuchardt wrote: > On 15.04.24 13:35, Michal Simek wrote: > > Some of Kconfigs are using utf-8 encoding because of used chars. Convert > > a

Re: [PATCH] Kconfig: Remove all default n options

2024-04-16 Thread Ilias Apalodimas
On Mon, 15 Apr 2024 at 11:20, Michal Simek wrote: > > default n doesn't need to be specified. It is default option anyway. > Similar changes have been done by commit 18370f14975c ("Kconfig: Remove all > default n/no options"). > > Signed-off-by: Michal Simek > --- > > boot/Kconfig | 1 - > cmd/K

Re: [PATCH] Kconfig: Remove all default n options

2024-04-16 Thread Mattijs Korpershoek
Hi Michal, Thank you for the patch. On lun., avril 15, 2024 at 10:20, Michal Simek wrote: > default n doesn't need to be specified. It is default option anyway. > Similar changes have been done by commit 18370f14975c ("Kconfig: Remove all > default n/no options"). > > Signed-off-by: Michal Sime

Re: [PATCH 2/4] board: add support for Milk-V Mars CM

2024-04-16 Thread E Shattow
On Mon, Apr 15, 2024 at 4:50 AM Heinrich Schuchardt wrote: > > We already support the VisionFive 2 and the Milk-V Mars board by > patching the VisionFive 2 device tree. With this patch the same > is done for the Milk-V Mars CM. > > Signed-off-by: Heinrich Schuchardt > --- > board/starfive/vision

[PATCH] rockchip: px30-board-tpl: Use CONFIG_TPL_BANNER_PRINT flag

2024-04-16 Thread Lukasz Czechowski
Display TPL init information message only when TPL_BANNER_PRINT configuration entry is set. This allows to disable information message in case logs on UART are unwanted. Signed-off-by: Lukasz Czechowski --- arch/arm/mach-rockchip/px30-board-tpl.c | 2 ++ 1 file changed, 2 insertions(+) diff --g

Re: [PATCH v2 5/5] common: Convert *.c/h from UTF-8 to ASCII enconfing

2024-04-16 Thread Marek Behún
Acked-by: Marek Behún

[PATCH 3/3] configs: milkv_duo: Add sysreset configs

2024-04-16 Thread Kongyang Liu
Add sysreset configs as well as poweroff and reset commands for Sophgo Milk-V Duo board. Signed-off-by: Kongyang Liu --- configs/milkv_duo_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/milkv_duo_defconfig b/configs/milkv_duo_defconfig index e8413d7aa9..28bd4b53d3 1006

[PATCH 2/3] board: sophgo: milkv_duo: Bind sysreset driver

2024-04-16 Thread Kongyang Liu
Bind cv1800b sysreset driver for Sophgo Milk-V Duo board in board_init function. Signed-off-by: Kongyang Liu --- board/sophgo/milkv_duo/board.c | 4 1 file changed, 4 insertions(+) diff --git a/board/sophgo/milkv_duo/board.c b/board/sophgo/milkv_duo/board.c index eaa47be173..e7e28fe248 10

[PATCH 1/3] sysreset: cv1800b: Add sysreset driver for cv1800b SoC

2024-04-16 Thread Kongyang Liu
Add sysreset driver for cv1800b SoC Signed-off-by: Kongyang Liu --- drivers/sysreset/Kconfig| 5 +++ drivers/sysreset/Makefile | 1 + drivers/sysreset/sysreset_cv1800b.c | 64 + 3 files changed, 70 insertions(+) create mode 100644 drivers/sy

[PATCH 0/3] sysreset: sophgo: milkv_duo: Add sysreset support for Milk-V Duo board

2024-04-16 Thread Kongyang Liu
This series add sysreset driver for cv1800b SoC and enable poweroff and reset commands for Sophgo Milk-V Duo board. Kongyang Liu (3): sysreset: cv1800b: Add sysreset driver for cv1800b SoC board: sophgo: milkv_duo: Bind sysreset driver configs: milkv_duo: Add sysreset configs board/sophgo

[PATCH] mmc: cv1800b: Add transmit tap delay config to fix write error

2024-04-16 Thread Kongyang Liu
Currently, only the receive delay is configured while the transmit delay is not set, which may result in errors when writing to the file. This issue can be resolved by setting PHY_TX_SRC_INVERT to SDHCI_PHY_TX_RX_DLY. Signed-off-by: Kongyang Liu --- drivers/mmc/cv1800b_sdhci.c | 4 +++- 1 file

[PATCH v2 5/5] common: Convert *.c/h from UTF-8 to ASCII enconfing

2024-04-16 Thread Michal Simek
Convert UTF-8 chars to ASCII in cases where make sense. No Copyright or names are converted. Signed-off-by: Michal Simek --- Changes in v2: - New patch in series .../armv8/fsl-layerscape/fsl_lsch2_serdes.c | 2 +- .../armv8/fsl-layerscape/fsl_lsch3_serdes.c | 2 +- arch/arm/mach-imx/ddr

[PATCH v2 0/5] Kconfig: some cleanups

2024-04-16 Thread Michal Simek
I looked as cleaning up some dependencies and I found that qconfig is reporting some issues. This series is fixing some of them. But there are still some other pending. That's why please go and fix them if they are related to your board. UTF-8: I am using uni2ascii -B < file to do conversion. When

Re: [PATCH v2 0/2] sunxi, usb: UDC/DM gadget model support

2024-04-16 Thread John Watts
On Thu, Jun 08, 2023 at 01:56:29PM -0600, Sam Edwards wrote: > Happy Thursday, U-Boot list! > > Here is attempt 2 at making this USB controller driver compatible with > DM's gadget model, following what most of the other musb variants do. > > v2 removes the unwanted printfs in the probe func, per

Re: [PATCH 01/10] board: ti: am62x: Init DRAM size in R5/A53 SPL

2024-04-16 Thread Chintan Vankar
On 12/04/24 03:37, Tom Rini wrote: On Wed, Apr 03, 2024 at 06:18:01PM +0530, Chintan Vankar wrote: On 22/01/24 10:11, Siddharth Vadapalli wrote: On 20/01/24 22:11, Tom Rini wrote: On Mon, Jan 15, 2024 at 01:42:51PM +0530, Siddharth Vadapalli wrote: Hello Tom, On 12/01/24 18:56, Tom Ri

Re: [PATCH 1/4] arm: davinci: Migrate da850-evm to OF_UPSTREAM

2024-04-16 Thread Adam Ford
On Thu, Apr 11, 2024 at 7:05 PM Tom Rini wrote: > > On Wed, Apr 03, 2024 at 10:00:09PM -0500, Adam Ford wrote: > > > The da850-evm can remove the U-Boot device trees if migrated > > to OF_UPSTREAM. This means pointing the device trees to the > > ti/davinci directory. > > > > Signed-off-by: Adam F

Re: [PATCH] imx93: Move SoC and lifeclycle information to debug level

2024-04-16 Thread Mathieu Othacehe
Hello, > The following information printed on every boot is not very > helpful for the users: > > SOC: 0xa0009300 > LC: 0x40040 > > Move them to debug() level. > > Signed-off-by: Fabio Estevam Reviewed-by: Mathieu Othacehe Thanks, Mathieu

Re: [PATCH u-boot-mvebu 00/10] Turris Omnia DDR training changes

2024-04-16 Thread Marek Behún
Hi Tony, hmm no I did not change the version number. The changes are only relevant for debug messages, there is no functional changes in how the DDR training is done, unless I made a mistake. I am not sure that changing the version is a good idea unless this is also done for the upstream where I

Re: [PATCH 4/4] Kconfig: Make all Kconfig encoding ascii

2024-04-16 Thread Michal Simek
On 4/16/24 08:59, Francesco Dolcini wrote: On Tue, Apr 16, 2024 at 02:36:12AM +0200, Tom Rini wrote: On Mon, Apr 15, 2024 at 02:22:02PM +0200, Heinrich Schuchardt wrote: On 15.04.24 13:35, Michal Simek wrote: Some of Kconfigs are using utf-8 encoding because of used chars. Convert all of th

Re: [PATCH] usb: musb-new: sunxi: support usage with DM_USB_GADGET

2024-04-16 Thread Mattijs Korpershoek
Hi, On ven., avril 12, 2024 at 18:54, Aren wrote: > On Thu, Apr 11, 2024 at 04:46:17PM +1000, John Watts wrote: >> On Sun, Dec 31, 2023 at 03:38:37PM -0500, Aren Moynihan wrote: >> > Add support for building the sunxi-musb driver with DM_USB_GADGET >> > including adding a separate IRQ handling f

Re: [PATCH v2 12/16] arm: dts: k3-am625-sk-u-boot: Add sysreset-controller node

2024-04-16 Thread Mattijs Korpershoek
Hi Jon, On jeu., avril 11, 2024 at 15:30, Jon Humphreys wrote: > Mattijs Korpershoek writes: > >> Hi Jonathan, >> >> Thank you for the patch. >> >> On lun., avril 08, 2024 at 17:31, Jonathan Humphreys >> wrote: >> >>> Signed-off-by: Jonathan Humphreys >> >> Please consider adding a commit me

Re: [PATCH] usb: dwc3: support USB 3.1 controllers

2024-04-16 Thread Mattijs Korpershoek
Hi Caleb,; Thank you for the patch. On jeu., avril 11, 2024 at 18:05, Caleb Connolly wrote: > The revision is different for these, add the additional check as in > xhci-dwc3 core_init code. > > Signed-off-by: Caleb Connolly Reviewed-by: Mattijs Korpershoek > --- > drivers/usb/dwc3/core.c

Re: [PATCH 2/2] disk: expose partition type flags

2024-04-16 Thread Mattijs Korpershoek
Hi Caleb, Thank you for the patch. On mar., avril 09, 2024 at 15:55, Caleb Connolly wrote: > GPT partition tables include two bytes worth of vendor defined > attributes, per partition. ChromeOS and Qualcomm both use these (with > different encoding!) to handle A/B slot switching with a retry c

Re: [PATCH 1/2] dfu: add scsi backend

2024-04-16 Thread Mattijs Korpershoek
Hi Caleb, Thank you for the patch. On mar., avril 09, 2024 at 15:55, Caleb Connolly wrote: > This is extremely similar to the MMC backend, but there are some notable > differences. > > Works with a DFU string like > > scsi 4=u-boot-bin part 11 > > Where "4" is the SCSI dev number (sequenti

[PATCH v4 5/6] board: ti: am65x: Add check for k3-am654-icssg2 in board_fit_config_match()

2024-04-16 Thread MD Danish Anwar
When CONFIG_TI_ICSSG_PRUETH is enabled, add config name check for the icssg2 overlay in board_fit_config_match() API. Signed-off-by: MD Danish Anwar --- board/ti/am65x/evm.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/board/ti/am65x/evm.c b/board/ti/am65x/evm.c i

[PATCH v4 3/6] configs: am65x_evm_a53: Enable ICSSG Driver

2024-04-16 Thread MD Danish Anwar
Enable ICSSG driver in am65x_evm_a53_defconfig Signed-off-by: MD Danish Anwar --- configs/am65x_evm_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index 3afa80f45a..f06186ed8d 100644 --- a/configs/am65x_evm_a53_

[PATCH v4 6/6] board: ti: am65x: Set fw_storage_interface and fw_dev_part ENVs

2024-04-16 Thread MD Danish Anwar
When ICSSG driver is enabled (CONFIG_TI_ICSSG_PRUETH=y) set storage_interface and fw_dev_part env variables. These variables need be set appropriately in order to load differnet ICSSG firmwares needed for ICSSG driver. By default the storage interface is mmc and the partition is 1:2. User can modi

[PATCH v4 1/6] arm: dts: k3-am654-base-board: Add ICSSG2 Ethernet support

2024-04-16 Thread MD Danish Anwar
ICSSG2 provides dual Gigabit Ethernet support. Add ICSSG2 ethernet node to an overlay k3-am654-icssg2.dtso Signed-off-by: MD Danish Anwar --- arch/arm/dts/Makefile | 4 +- arch/arm/dts/k3-am654-icssg2.dtso | 145 ++ 2 files changed, 148 insertions(+), 1

[PATCH v4 4/6] configs: am65x_evm_a53: add SPL_LOAD_FIT_APPLY_OVERLAY

2024-04-16 Thread MD Danish Anwar
We want SPL to apply DTB overlays (e.g. ICSSG2 overlay) so enable SPL_LOAD_FIT_APPLY_OVERLAY. Signed-off-by: MD Danish Anwar --- configs/am65x_evm_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index f06186ed8d.

[PATCH v4 0/6] Enable ICSSG Ethernet Driver for AM65x

2024-04-16 Thread MD Danish Anwar
The series introduces device tree and config changes and AM65x to enable ICSSG driver. The series also enables SPL_LOAD_FIT_APPLY_OVERLAY for AM65x in order to load overlay over spl. The ICSSG2 node is added in device tree overlay so that it remains in sync with linux kernel. This series has been

[PATCH v4 2/6] arm: dts: k3-am65x-binman: Add ICSSG2 overlay and configuration

2024-04-16 Thread MD Danish Anwar
Add ICSSG2 overlay and configuration to tispl and u-boot images. Signed-off-by: MD Danish Anwar --- arch/arm/dts/k3-am65x-binman.dtsi | 65 +-- 1 file changed, 61 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts/k3-am65x-binman.dtsi b/arch/arm/dts/k3-am65x-bi

Re: [PATCH] usb: dwc2: Add in version 4xx compatibility

2024-04-16 Thread Mattijs Korpershoek
Hi Greg, Thank you for the contribution. On mar., mars 26, 2024 at 11:36, Greg Malysa wrote: Please avoid top-posting when replying, it makes following the discussion more difficult: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#use-trimmed-interleaved-replies-in-email-

Re: [PATCH] usb: dwc2: update reset method for host and device mode

2024-04-16 Thread Mattijs Korpershoek
On mar., avril 16, 2024 at 10:50, Mattijs Korpershoek wrote: > Hi Kongyang, > > Thank you for the patch. > > On jeu., mars 28, 2024 at 21:14, Kongyang Liu > wrote: > >> Starting from version 4.20a, there has been a change in the reset method. >> A new bit, GRSTCTL_CSFTRST_DONE, has been introd

Re: [PATCH] usb: dwc2: update reset method for host and device mode

2024-04-16 Thread Mattijs Korpershoek
Hi Kongyang, Thank you for the patch. On jeu., mars 28, 2024 at 21:14, Kongyang Liu wrote: > Starting from version 4.20a, there has been a change in the reset method. > A new bit, GRSTCTL_CSFTRST_DONE, has been introduced in the GRSTCTL > register to indicate whether the reset has been complet

[PATCH] clk: zynq: Fix EMIO clock use detection for gem0

2024-04-16 Thread Ondřej Jirman
From: Ondrej Jirman According to TRM, the bit that differentiates between MIO and EMIO clocks is bit 6. This resolves failure to set clock when using EMIO clock for ethernet. Signed-off-by: Ondrej Jirman --- drivers/clk/clk_zynq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

  1   2   >