[PATCH v2] efi: use 32-bit alignment for efi_guid_t

2023-01-27 Thread Masahisa Kojima
Current U-Boot implements 64-bit boundary for efi_guid_t structure. It follows the UEFI specification, page 21 of the UEFI Specification v2.10 says about EFI_GUID: 128-bit buffer containing a unique identifier value. Unless otherwise specified, aligned on a 64-bit boundary. On the other hand,

[PATCH] arm: mvebu: Add support for Thecus N2350 (Armada 385) board

2023-01-27 Thread Tony Dinh
Thecus N2350 is a NAS based on Marvell Armada 385 SoC. Specification: - Processor: Marvel MV88F6820 Dual Core at 1GHz - 1 GiB DDR4 RAM - 4MB Macronix mx25l3205d SPI flash - 512MB Hynix H27U4G8F2DTR-BC NAND flash - I2C - 2x USB 3.0 - 1x GBE LAN port (PHY: Marvell 88E1510) - 2x SATA (hot swap

Re: [PATCH] efi: use 32-bit alignment for efi_guid_t

2023-01-27 Thread Masahisa Kojima
Hi Ilias, On Fri, 27 Jan 2023 at 23:18, Ilias Apalodimas wrote: > > Hi Kojima-san > > On Fri, Jan 27, 2023 at 08:51:28PM +0900, Masahisa Kojima wrote: > > Current U-Boot implements 64-bit boundary for efi_guid_t structure. > > It follows the UEFI specification, page 21 of the UEFI Specification

[PATCH 1/1] cmd: improve coninfo output formatting

2023-01-27 Thread Heinrich Schuchardt
Device name are typically longer than 8 characters. This leads to ragged output. Only the I and O bit of the device flags are of interest for the user. Writing a hexadecimal number is just confusing. Before the patch the output looked like this: => coninfo List of available devices:

Re: [PATCH v2 1/9] iommu: Add DMA mapping operations

2023-01-27 Thread Mark Kettenis
> Date: Fri, 27 Jan 2023 17:48:32 -0500 > From: Tom Rini > > On Sat, Jan 21, 2023 at 08:27:52PM +0100, Mark Kettenis wrote: > > > In order to support IOMMUs in non-bypass mode we need device ops > > to map and unmap DMA memory. The map operation enters a mapping > > for a region specified by

Re: DM_SERIAL is broken for Kirkwood boards

2023-01-27 Thread Tom Rini
On Fri, Jan 27, 2023 at 02:19:40PM -0800, Tony Dinh wrote: > Hi Tom, > > On Fri, Jan 27, 2023 at 2:06 PM Tom Rini wrote: > > > > On Fri, Jan 27, 2023 at 01:56:34PM -0800, Tony Dinh wrote: > > > Hi Tom, > > > > > > On Fri, Jan 27, 2023 at 5:39 AM Tom Rini wrote: > > > > > > > > On Fri, Jan 27,

Re: [PATCH v2 1/9] iommu: Add DMA mapping operations

2023-01-27 Thread Tom Rini
On Sat, Jan 21, 2023 at 08:27:52PM +0100, Mark Kettenis wrote: > In order to support IOMMUs in non-bypass mode we need device ops > to map and unmap DMA memory. The map operation enters a mapping > for a region specified by CPU address and size into the translation > table of the IOMMU and

Re: [PATCH] serial: s5p: Use IS_ENABLED where appropriate

2023-01-27 Thread Tom Rini
On Thu, Jan 26, 2023 at 02:44:09PM +0100, Mark Kettenis wrote: > There are no SPL/TPL variants of CONFIG_CLK_EXYNOS and > CONFIG_ARCH_APPLE, so switch from CONFIG_IS_ENABLED to > IS_ENABLED. > > Signed-off-by: Mark Kettenis > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom

Re: Pull request efi-2023-04-rc1-3

2023-01-27 Thread Tom Rini
On Fri, Jan 27, 2023 at 08:14:22PM +0100, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit b3b6cc28c240507503e471edc105e2d93a277126: > > Merge tag 'dm-pull-26jan23' of > https://source.denx.de/u-boot/custodians/u-boot-dm (2023-01-26 21:57:38 > -0500) > > are

Re: DM_SERIAL is broken for Kirkwood boards

2023-01-27 Thread Tony Dinh
Hi Tom, On Fri, Jan 27, 2023 at 2:06 PM Tom Rini wrote: > > On Fri, Jan 27, 2023 at 01:56:34PM -0800, Tony Dinh wrote: > > Hi Tom, > > > > On Fri, Jan 27, 2023 at 5:39 AM Tom Rini wrote: > > > > > > On Fri, Jan 27, 2023 at 01:31:06PM +0100, Stefan Roese wrote: > > > > Hi Tony, > > > > > > > >

Re: DM_SERIAL is broken for Kirkwood boards

2023-01-27 Thread Tom Rini
On Fri, Jan 27, 2023 at 01:56:34PM -0800, Tony Dinh wrote: > Hi Tom, > > On Fri, Jan 27, 2023 at 5:39 AM Tom Rini wrote: > > > > On Fri, Jan 27, 2023 at 01:31:06PM +0100, Stefan Roese wrote: > > > Hi Tony, > > > > > > On 1/27/23 07:13, Tony Dinh wrote: > > > > Hi all, > > > > > > > > On Thu, Jan

Re: DM_SERIAL is broken for Kirkwood boards

2023-01-27 Thread Tony Dinh
Hi Tom, On Fri, Jan 27, 2023 at 5:39 AM Tom Rini wrote: > > On Fri, Jan 27, 2023 at 01:31:06PM +0100, Stefan Roese wrote: > > Hi Tony, > > > > On 1/27/23 07:13, Tony Dinh wrote: > > > Hi all, > > > > > > On Thu, Jan 26, 2023 at 3:38 PM Tony Dinh wrote: > > > > > > > > Hi all, > > > > > > > > I

[PATCH] cmd: return code when tlv_eeprom incorrectly called

2023-01-27 Thread Heinrich Schuchardt
A command called with incorrect parameters should set $? to 1 (false). Instead of calling cmd_usage(cmdtp) and then returning 0 just return CMD_RET_FAILURE. Signed-off-by: Heinrich Schuchardt --- cmd/tlv_eeprom.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git

[PATCH 1/1] doc: complete setexpr configuration information

2023-01-27 Thread Heinrich Schuchardt
Add missing information to the configuration section of the setexpr man-page. Signed-off-by: Heinrich Schuchardt --- doc/usage/cmd/setexpr.rst | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/usage/cmd/setexpr.rst b/doc/usage/cmd/setexpr.rst index

Re: [PATCH v2 17/17] test/py: android: extend abootimg test

2023-01-27 Thread Tom Rini
On Fri, Jan 27, 2023 at 04:51:41PM +0100, Safae Ouajih wrote: > > On 27/01/2023 01:55, Simon Glass wrote: > > Hi Safae, > > > > On Thu, 26 Jan 2023 at 09:05, Safae Ouajih wrote: > > > test_abootimg is extended to include the testing of boot images > > > version 4. For this, boot.img and

Re: [PATCH v7 0/3] Timer support for ARM Tegra

2023-01-27 Thread Svyatoslav R.
On 1/27/23 19:15, Thierry Reding wrote: On Fri, Jan 27, 2023 at 09:13:09AM +0200, Svyatoslav Ryhel wrote: - ARM: tegra: remap clock_osc_freq for all Tegra family Enum clock_osc_freq was designed to use only with T20. This patch remaps it to use additional frequencies, added in T30+ SoC while

[PATCH v4] common: avb_verify: prevent opening incorrect session

2023-01-27 Thread Ivan Khoronzhuk
The arg->session is not valid if arg->ret != NULL, so can't be assigned, correct this. Signed-off-by: Ivan Khoronzhuk --- common/avb_verify.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/common/avb_verify.c b/common/avb_verify.c index 0520a71455..48ba8db51e

Re: [PATCH v3] common: avb_verify: prevent opening incorrect session

2023-01-27 Thread Ivan Khoronzhuk
Ignore this version please, will send v4. Skipped previous comment unintentionally. -- Regards, Ivan Khoronzhuk

Re: [PATCH 5/8] usb: dwc3: Add dwc3 glue for am62

2023-01-27 Thread Tom Rini
On Sat, Jan 21, 2023 at 04:54:31PM +0100, Sjoerd Simons wrote: > Add glue code for TI AM62 to the dwc3 driver; Most code adopted from > TI vendor u-boot code. > > Signed-off-by: Sjoerd Simons After talking with Marek, this should be reworked to go on top of:

Re: [PATCH] efi: use 32-bit alignment for efi_guid_t

2023-01-27 Thread Heinrich Schuchardt
On 1/27/23 12:51, Masahisa Kojima wrote: Current U-Boot implements 64-bit boundary for efi_guid_t structure. It follows the UEFI specification, page 21 of the UEFI Specification v2.10 says about EFI_GUID: 128-bit buffer containing a unique identifier value. Unless otherwise specified,

Pull request efi-2023-04-rc1-3

2023-01-27 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit b3b6cc28c240507503e471edc105e2d93a277126: Merge tag 'dm-pull-26jan23' of https://source.denx.de/u-boot/custodians/u-boot-dm (2023-01-26 21:57:38 -0500) are available in the Git repository at:

Re: [PATCH] MAINTAINERS: add include/power/ to POWER

2023-01-27 Thread Tom Rini
On Thu, Jan 19, 2023 at 12:55:19PM +, John Keeping wrote: > Add the related include files to the power MAINTAINERS entry. > > Signed-off-by: John Keeping > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] ifwitool: Fix member access

2023-01-27 Thread Tom Rini
On Wed, Jan 18, 2023 at 01:13:17PM -0700, Simon Glass wrote: > On a second and third look, a recent patch seems to be writing to the > wrong place - updating offsets from the address of the pointer instead > of what the pointer points to. > > Fix it. > > Signed-off-by: Simon Glass > Fixes:

Re: [PATCH 3/3] pinctrl: fix docstring

2023-01-27 Thread Tom Rini
On Wed, Jan 18, 2023 at 01:12:24PM +0100, Michael Walle wrote: > Fix the copy and paste error. > > Signed-off-by: Michael Walle > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/3] pinctrl: don't fall back to pinctrl_select_state_simple()

2023-01-27 Thread Tom Rini
On Wed, Jan 18, 2023 at 01:12:22PM +0100, Michael Walle wrote: > If CONFIG_PINCTRL_FULL is enabled, never fall back to the simple > implementation. pinctrl_select_state() is called for each device and it > is expected to fail. A fallback to the simple imeplementation doesn't > make much sense. >

Re: [PATCH] mkimage: fit: Support signed configurations in 'auto' FITs

2023-01-27 Thread Tom Rini
On Thu, Jan 05, 2023 at 10:31:09AM +0100, Massimo Pegorer wrote: > Extend support for signing in auto-generated (-f auto) FIT. Previously, > it was possible to get signed 'images' subnodes in the FIT using > options -g and -o together with -f auto. This patch allows signing > 'configurations'

Re: [PATCH 2/3] pinctrl: get rid of some ifdeffery

2023-01-27 Thread Tom Rini
On Wed, Jan 18, 2023 at 01:12:23PM +0100, Michael Walle wrote: > Don't define an empty version for pinconfig_post_bind(). Just guard the > call and let the linker garbage collection do the rest. This way, we > also don't have to do any guesswork. > > Signed-off-by: Michael Walle > Reviewed-by:

Re: [PATCH v1 3/3] arm: npcm8xx: add security feature header

2023-01-27 Thread Tom Rini
On Tue, Jan 17, 2023 at 04:59:23PM +0800, Jim Liu wrote: > The NPCM driver can use on npcm7xx/npcm8xx > so add npcm8xx header for driver. > > Signed-off-by: Jim Liu Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v1 2/3] ARM: config: enable function for nuvoton npcm845 bmc

2023-01-27 Thread Tom Rini
On Tue, Jan 17, 2023 at 04:59:22PM +0800, Jim Liu wrote: > Enable npcm845 i2c、ethernet、REGULATOR and security feature > > Signed-off-by: Jim Liu Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v1 1/3] ARM: dts: npcm8xx: add npcm845 function node

2023-01-27 Thread Tom Rini
On Tue, Jan 17, 2023 at 04:59:21PM +0800, Jim Liu wrote: > Add functaion node list as below: > 1. i2c > 2. gmac > 3. otp > 4. aes > 5. sha > 6. rng > 7. serial > > Signed-off-by: Jim Liu Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [RESEND PATCH V5 01/12] configs: j721s2_evm_r5: Enable support for building multiple dtbs into FIT

2023-01-27 Thread Tom Rini
On Tue, Jan 10, 2023 at 09:17:47PM +0530, Sinthu Raja wrote: > From: Sinthu Raja > > Enable configs for building multiple dtbs into a single fit image > and load the right dtb for next stage. This will help to use same > defconfig for both EVM and SK. > > Signed-off-by: Sinthu Raja For the

Re: [PATCH] common: bouncebuf: Use dma-mapping for cache ops

2023-01-27 Thread Tom Rini
On Fri, Jan 06, 2023 at 12:02:50PM -0600, Andrew Davis wrote: > This matches how this would be done in Linux and these functions > do the alignment for us which makes the code look cleaner. > > Signed-off-by: Andrew Davis > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom

[PATCH v3] common: avb_verify: prevent opening incorrect session

2023-01-27 Thread Ivan Khoronzhuk
The arg->session is not valid if arg->ret != NULL, so can't be assigned, correct this. Also remove "while" loop as there is no reason for looping till correct session is opened. Signed-off-by: Ivan Khoronzhuk --- common/avb_verify.c | 38 +++--- 1 file changed,

Re: [PATCH v2 1/2] spl: spl_nor: add BOOT_DEVICE_NOR2 as alternative SPL_LOAD_IMAGE_METHOD

2023-01-27 Thread Tom Rini
On Fri, Jan 27, 2023 at 06:55:46PM +0100, Mario Kicherer wrote: > On 2023-01-27 18:10, Tom Rini wrote: > > Yes, all of the platforms that define the value (since it roughly means > > "ROM set this value in something we can check") instead of enum'ing it > > still compile that file and now fail to

Re: [PATCH v2 1/2] spl: spl_nor: add BOOT_DEVICE_NOR2 as alternative SPL_LOAD_IMAGE_METHOD

2023-01-27 Thread Mario Kicherer
On 2023-01-27 18:10, Tom Rini wrote: Yes, all of the platforms that define the value (since it roughly means "ROM set this value in something we can check") instead of enum'ing it still compile that file and now fail to build. Okay, I think I understand your point now. I am not sure what's the

Re: [GIT PULL] xilinx patches for v2023.04-rc1

2023-01-27 Thread Tom Rini
On Fri, Jan 27, 2023 at 04:03:27PM +0100, Michal Simek wrote: > Hi Tom, > > please pull these patches to your tree. Buildman doesn't show any issue and > CI looks also good. > https://source.denx.de/u-boot/custodians/u-boot-microblaze/-/commit/f0f86d39fec73479d4904e6d5b9db01a29597d58 > >

[PATCH 1/1] doc: man-page for mtest

2023-01-27 Thread Heinrich Schuchardt
Provide a man-page for the mtest command. Signed-off-by: Heinrich Schuchardt --- doc/usage/cmd/mtest.rst | 66 + doc/usage/index.rst | 1 + 2 files changed, 67 insertions(+) create mode 100644 doc/usage/cmd/mtest.rst diff --git

Re: [PATCH v2 06/17] android: boot: move to andr_image_data structure

2023-01-27 Thread Simon Glass
Hi Safae, On Fri, 27 Jan 2023 at 08:50, Safae Ouajih wrote: > > > On 27/01/2023 01:54, Simon Glass wrote: > > Hi Safae, > > > > On Thu, 26 Jan 2023 at 09:05, Safae Ouajih wrote: > >> Move from andr_boot_img_hdr_v0 to andr_image_data > >> structure to prepare for boot image header > >> version 3

Re: [PATCH v2 12/17] android: boot: support extra command line

2023-01-27 Thread Simon Glass
On Fri, 27 Jan 2023 at 08:51, Safae Ouajih wrote: > > > On 27/01/2023 01:54, Simon Glass wrote: > > Hi Safae, > > > > On Thu, 26 Jan 2023 at 09:05, Safae Ouajih wrote: > >> In version 3 and 4 of boot image header, the vendor specific > > vendor-spefcific > > > >> command line are located in

Re: [PATCH v2 07/17] android: boot: content print is not supported for v3,v4 header version

2023-01-27 Thread Simon Glass
On Fri, 27 Jan 2023 at 08:50, Safae Ouajih wrote: > > > On 27/01/2023 01:54, Simon Glass wrote: > > Hi Safae, > > > > On Thu, 26 Jan 2023 at 09:05, Safae Ouajih wrote: > >> Content print is not supported for version 3 and 4 of boot image header. > >> Thus, only print that content when v2 is

Re: [PATCH] powerpc/mpc85xx: use board env file for socrates board

2023-01-27 Thread Simon Glass
Hi Heiko, On Thu, 26 Jan 2023 at 00:46, Heiko Schocher wrote: > > as Tom suggested get rid of CFG_EXTRA_ENV_SETTINGS and > enable CONFIG_ENV_SOURCE_FILE and use text file > > board/socrates/socrates.env > > which contains the default environment. While at it, > cleanup the default Environment. >

Re: [PATCH v7 0/3] Timer support for ARM Tegra

2023-01-27 Thread Thierry Reding
On Fri, Jan 27, 2023 at 09:13:09AM +0200, Svyatoslav Ryhel wrote: > - ARM: tegra: remap clock_osc_freq for all Tegra family > Enum clock_osc_freq was designed to use only with T20. > This patch remaps it to use additional frequencies, added in > T30+ SoC while maintaining backwards compatibility

Re: [PATCH] spl: doc: use correct name in jump_to_image_optee() description

2023-01-27 Thread Heinrich Schuchardt
On 1/22/23 18:57, Ovidiu Panait wrote: The actual function being documented is jump_to_image_optee(), not jump_to_image_linux(). Signed-off-by: Ovidiu Panait Reviewed-by: Heinrich Schuchardt --- include/spl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v2 1/2] spl: spl_nor: add BOOT_DEVICE_NOR2 as alternative SPL_LOAD_IMAGE_METHOD

2023-01-27 Thread Tom Rini
On Fri, Jan 27, 2023 at 05:56:48PM +0100, Mario Kicherer wrote: > Hello Tom, > > On 2023-01-26 20:17, Tom Rini wrote: > > This breaks a lot of platforms, as it only covers a few of the cases > > where BOOT_DEVICE_NOR is listed. I would also really like to see how > > this ends up being used in

[PATCH] include: rk3328: Add default env for compressed kernel images

2023-01-27 Thread Christopher Obbard
Add default memory addresses for kernel_comp_addr_r and kernel_comp_size to enable booting from a compressed kernel image. This area is temporarily used to decompress the kernel image on-the-fly. Signed-off-by: Christopher Obbard --- include/configs/rk3328_common.h | 4 +++- 1 file changed, 3

Re: [PATCH v2 1/2] spl: spl_nor: add BOOT_DEVICE_NOR2 as alternative SPL_LOAD_IMAGE_METHOD

2023-01-27 Thread Mario Kicherer
Hello Tom, On 2023-01-26 20:17, Tom Rini wrote: This breaks a lot of platforms, as it only covers a few of the cases where BOOT_DEVICE_NOR is listed. I would also really like to see how this ends up being used in the board specific case as I do wonder if we can't solve this some other way that

[PATCH] misc: ls2_sfp: Fix regulator name

2023-01-27 Thread Sean Anderson
Unlike in Linux, -supply is not automatically appended to regulator requests. Add it. Fixes: 2645bc0e12 ("arm: layerscape: Add sfp driver") Signed-off-by: Sean Anderson --- drivers/misc/ls2_sfp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/ls2_sfp.c

Re: [PATCH 5/5] gpio/rockchip: rk_gpio support v2 gpio controller

2023-01-27 Thread Chris Morgan
On Thu, Jan 26, 2023 at 07:11:15PM +0100, Johan Jonker wrote: > > > On 1/26/23 17:11, Chris Morgan wrote: > > On Thu, Jan 19, 2023 at 12:21:02PM -0600, Chris Morgan wrote: > >> On Thu, Jan 05, 2023 at 07:01:40PM +0100, Quentin Schulz wrote: > >>> Hi Chris, > >>> > >>> Cc'ing the new mail address

Re: [PATCH v2 17/17] test/py: android: extend abootimg test

2023-01-27 Thread Safae Ouajih
On 27/01/2023 01:55, Simon Glass wrote: Hi Safae, On Thu, 26 Jan 2023 at 09:05, Safae Ouajih wrote: test_abootimg is extended to include the testing of boot images version 4. For this, boot.img and vendor_boot.img have been generated using mkbootimg tool with setting the header version to

Re: [PATCH v2 12/17] android: boot: support extra command line

2023-01-27 Thread Safae Ouajih
On 27/01/2023 01:54, Simon Glass wrote: Hi Safae, On Thu, 26 Jan 2023 at 09:05, Safae Ouajih wrote: In version 3 and 4 of boot image header, the vendor specific vendor-spefcific command line are located in vendor boot image. Thus, using use the extra command line to add those cmd to

Re: [PATCH v2 07/17] android: boot: content print is not supported for v3,v4 header version

2023-01-27 Thread Safae Ouajih
On 27/01/2023 01:54, Simon Glass wrote: Hi Safae, On Thu, 26 Jan 2023 at 09:05, Safae Ouajih wrote: Content print is not supported for version 3 and 4 of boot image header. Thus, only print that content when v2 is used. Update android_print_contents() to print an error message when trying

Re: [PATCH v2 06/17] android: boot: move to andr_image_data structure

2023-01-27 Thread Safae Ouajih
On 27/01/2023 01:54, Simon Glass wrote: Hi Safae, On Thu, 26 Jan 2023 at 09:05, Safae Ouajih wrote: Move from andr_boot_img_hdr_v0 to andr_image_data structure to prepare for boot image header version 3 and 4. Signed-off-by: Safae Ouajih --- boot/image-android.c | 127

Re: [PATCH 02/88] treewide: Correct invalid Kconfig syntax and warnings

2023-01-27 Thread Tom Rini
On Fri, Jan 27, 2023 at 04:00:15PM +0100, Daniel Schwierzeck wrote: > > > On 1/27/23 14:45, Tom Rini wrote: > > On Mon, Jan 23, 2023 at 02:59:05PM -0700, Simon Glass wrote: > > > > > In several places a 'select' is used to select a choice, which is not > > > supported by Kconfig. In other

Re: [PATCH 02/88] treewide: Correct invalid Kconfig syntax and warnings

2023-01-27 Thread Daniel Schwierzeck
On 1/27/23 14:45, Tom Rini wrote: On Mon, Jan 23, 2023 at 02:59:05PM -0700, Simon Glass wrote: In several places a 'select' is used to select a choice, which is not supported by Kconfig. In other places, the filename for the 'source' command is not in quites. Fix these two problems

Re: [RFC PATCH 15/16] ARM: dts: rockchip: Add rk3588-u-boot.dtsi

2023-01-27 Thread Eugen Hristev
On 1/26/23 00:27, Jagan Teki wrote: Add u-boot,dm-spl and u-boot,dm-pre-reloc related properties for Rockchip RK3588 SoC. Signed-off-by: Jagan Teki --- arch/arm/dts/rk3588-u-boot.dtsi | 101 1 file changed, 101 insertions(+) create mode 100644

[GIT PULL] xilinx patches for v2023.04-rc1

2023-01-27 Thread Michal Simek
Hi Tom, please pull these patches to your tree. Buildman doesn't show any issue and CI looks also good. https://source.denx.de/u-boot/custodians/u-boot-microblaze/-/commit/f0f86d39fec73479d4904e6d5b9db01a29597d58 Thanks, Michal The following changes since commit

Re: [PATCH] fru: ops: Display FRU fields properly for 0xc1 fields

2023-01-27 Thread Michal Simek
On 1/25/23 13:06, Michal Simek wrote: From: Algapally Santosh Sagar FRU data is not displayed properly in case of 0xc1 fields. The 0xC1 can be used in two cases. 1. Char record type 8-bit ASCII + Latin 1 with length of 1. (For example board revision 'A') 2. C1h (type/length byte encoded to

Re: [PATCH v2 0/3] xilinx: board: Improve legacy format handling

2023-01-27 Thread Michal Simek
On 1/24/23 16:19, Michal Simek wrote: Hi, fix and improve legacy format handling to cover cases where eeprom content is corrupted and random. Very likely detection algorithm can be improved - for example check that mac address is valid, check all strings, etc. but the aim of this series is

Re: U-Boot support for M68K removal

2023-01-27 Thread Geert Uytterhoeven
CC Angelo's other address, as sysam.it is MIA. On Fri, Jan 27, 2023 at 2:50 PM Tom Rini wrote: > Hey all (and especially the non-U-Boot folks / lists), > > U-Boot has had support for the m68k architecture for practically forever > it seems like. Unfortunately, it's also been a few years now

Re: [PATCH v2 3/3] test: dm: mmc: Check block erasing boundaries

2023-01-27 Thread Simon Glass
Hi Loic, On Thu, 26 Jan 2023 at 02:24, Loic Poulain wrote: > > Verify that erasing blocks does not impact adjacent ones. > - Write four blocks [0 1 2 3] > - Erase two blocks [ 1 2 ] > - Verify [0 1 2 3 ] > > Signed-off-by: Loic Poulain > --- > v2: Add this change to the series > >

Re: CONFIG_IS_ENABLED vs IS_ENABLED

2023-01-27 Thread Simon Glass
Hi Tom, On Thu, 26 Jan 2023 at 14:33, Tom Rini wrote: > > On Thu, Jan 26, 2023 at 02:29:53PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 26 Jan 2023 at 11:16, Tom Rini wrote: > > > > > > On Thu, Jan 26, 2023 at 11:04:21AM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On

Re: [RFC PATCH 15/16] ARM: dts: rockchip: Add rk3588-u-boot.dtsi

2023-01-27 Thread Jagan Teki
On Fri, 27 Jan 2023 at 19:21, Eugen Hristev wrote: > > On 1/27/23 15:37, Jagan Teki wrote: > > On Fri, 27 Jan 2023 at 19:03, Eugen Hristev > > wrote: > >> > >> Hello Jagan, > >> > >> > >> On 1/26/23 00:27, Jagan Teki wrote: > >>> Add u-boot,dm-spl and u-boot,dm-pre-reloc related properties >

Re: [PATCH] efi: use 32-bit alignment for efi_guid_t

2023-01-27 Thread Ilias Apalodimas
Hi Kojima-san On Fri, Jan 27, 2023 at 08:51:28PM +0900, Masahisa Kojima wrote: > Current U-Boot implements 64-bit boundary for efi_guid_t structure. > It follows the UEFI specification, page 21 of the UEFI Specification v2.10 > says about EFI_GUID: > 128-bit buffer containing a unique

Re: [PATCH 02/88] treewide: Correct invalid Kconfig syntax and warnings

2023-01-27 Thread Tom Rini
On Mon, Jan 23, 2023 at 02:59:05PM -0700, Simon Glass wrote: > In several places a 'select' is used to select a choice, which is not > supported by Kconfig. In other places, the filename for the 'source' > command is not in quites. > > Fix these two problems throughout the tree, so that

Re: [PATCH] lmb: Bump CONFIG_LMB_MAX_REGIONS

2023-01-27 Thread Tom Rini
On Fri, Jan 27, 2023 at 02:00:12PM +0100, Michal Suchanek wrote: > It is reported that in some configurations it is not possible to boot > because u-boot runs out of lmbs. > > commit 06d514d77c ("lmb: consider EFI memory map") increases lmb usage, > hence is likely the cause of the lmb overflow.

Re: [PATCH 70/88] sysreset: at91: Correct Makefile rule for SYSRESET_AT91

2023-01-27 Thread Claudiu.Beznea
On 24.01.2023 00:00, Simon Glass wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > The SPL_TPL part is in the wrong place. Fix it. > > Signed-off-by: Simon Glass > Fixes: 71d4393f846 ("sysreset: Add Atmel/Microchip sysreset driver")

[PATCH] mpc83xx: Don't allow W and G bits in IBATs

2023-01-27 Thread Christophe Leroy
The "Programming Environments Manual for 32-Bit Implementations of the PowerPC™ Architecture" says "W and G bits are not defined for IBAT registers. Attempting to write to these bits causes boundedly-undefined results" The "e300 Power Architecture™ Core Family Reference Manual" says the same:

Re: [RFC PATCH 15/16] ARM: dts: rockchip: Add rk3588-u-boot.dtsi

2023-01-27 Thread Eugen Hristev
On 1/27/23 15:37, Jagan Teki wrote: On Fri, 27 Jan 2023 at 19:03, Eugen Hristev wrote: Hello Jagan, On 1/26/23 00:27, Jagan Teki wrote: Add u-boot,dm-spl and u-boot,dm-pre-reloc related properties for Rockchip RK3588 SoC. It appears this file/commit does more than just adding u-boot,*

U-Boot support for M68K removal

2023-01-27 Thread Tom Rini
Hey all (and especially the non-U-Boot folks / lists), U-Boot has had support for the m68k architecture for practically forever it seems like. Unfortunately, it's also been a few years now since I've seen anyone active in reviewing general patches to the architecture and doing the little things

Re: [RFC PATCH 15/16] ARM: dts: rockchip: Add rk3588-u-boot.dtsi

2023-01-27 Thread Eugen Hristev
Hello Jagan, On 1/26/23 00:27, Jagan Teki wrote: Add u-boot,dm-spl and u-boot,dm-pre-reloc related properties for Rockchip RK3588 SoC. It appears this file/commit does more than just adding u-boot,* properties Signed-off-by: Jagan Teki --- arch/arm/dts/rk3588-u-boot.dtsi | 101

Re: [PATCH 02/88] treewide: Correct invalid Kconfig syntax and warnings

2023-01-27 Thread Tom Rini
On Fri, Jan 27, 2023 at 03:36:34PM +0530, Neha Malcom Francis wrote: > Hi Simon > > On 24/01/23 03:29, Simon Glass wrote: > > In several places a 'select' is used to select a choice, which is not > > supported by Kconfig. In other places, the filename for the 'source' > > command is not in

Re: [PATCH 02/88] treewide: Correct invalid Kconfig syntax and warnings

2023-01-27 Thread Neha Malcom Francis
Hi Simon On 24/01/23 03:29, Simon Glass wrote: In several places a 'select' is used to select a choice, which is not supported by Kconfig. In other places, the filename for the 'source' command is not in quites. Fix these two problems throughout the tree, so that kconfiglib does not show any

Re: [PATCH v6 0/3] Timer support for ARM Tegra

2023-01-27 Thread Dmitry Osipenko
27.01.2023 01:00, Dmitry Osipenko пишет: > 26.01.2023 20:54, Thierry Reding пишет: >> On Thu, Jan 26, 2023 at 07:08:54PM +0200, Svyatoslav Ryhel wrote: >>> чт, 26 січ. 2023 р. о 12:35 Thierry Reding пише: On Wed, Jan 25, 2023 at 05:41:08PM +0100, Thierry Reding wrote: > On Tue, Jan

Re: [PATCH v6 0/3] Timer support for ARM Tegra

2023-01-27 Thread Dmitry Osipenko
26.01.2023 20:54, Thierry Reding пишет: > On Thu, Jan 26, 2023 at 07:08:54PM +0200, Svyatoslav Ryhel wrote: >> чт, 26 січ. 2023 р. о 12:35 Thierry Reding пише: >>> >>> On Wed, Jan 25, 2023 at 05:41:08PM +0100, Thierry Reding wrote: On Tue, Jan 24, 2023 at 08:57:48AM +0200, Svyatoslav Ryhel

Re: DM_SERIAL is broken for Kirkwood boards

2023-01-27 Thread Tom Rini
On Fri, Jan 27, 2023 at 01:31:06PM +0100, Stefan Roese wrote: > Hi Tony, > > On 1/27/23 07:13, Tony Dinh wrote: > > Hi all, > > > > On Thu, Jan 26, 2023 at 3:38 PM Tony Dinh wrote: > > > > > > Hi all, > > > > > > I ran some tests today (Pogo V4 and NSA310S boards) with the latest > > > master

Re: [RFC PATCH 15/16] ARM: dts: rockchip: Add rk3588-u-boot.dtsi

2023-01-27 Thread Jagan Teki
On Fri, 27 Jan 2023 at 19:03, Eugen Hristev wrote: > > Hello Jagan, > > > On 1/26/23 00:27, Jagan Teki wrote: > > Add u-boot,dm-spl and u-boot,dm-pre-reloc related properties > > for Rockchip RK3588 SoC. > > It appears this file/commit does more than just adding u-boot,* properties > > > > >

Re: [PATCH 1/3] Bump LMB_MAX_REGIONS default to 16

2023-01-27 Thread Tom Rini
On Fri, Jan 27, 2023 at 08:55:42AM +0100, Sjoerd Simons wrote: > On Thu, 2023-01-26 at 13:28 -0500, Tom Rini wrote: > > On Thu, Jan 19, 2023 at 09:38:17AM +0100, Sjoerd Simons wrote: > > > > > > As this is likely to impact more devices bump the default max > > > regions to 16 so there is a bit

Re: [PATCH v2] powerpc/mpc85xx: use board env file for socrates board

2023-01-27 Thread Tom Rini
On Fri, Jan 27, 2023 at 06:50:52AM +0100, Heiko Schocher wrote: > as Tom suggested get rid of CFG_EXTRA_ENV_SETTINGS and > enable CONFIG_ENV_SOURCE_FILE and use text file > > board/socrates/socrates.env > > which contains the default environment. While at it, > cleanup the default Environment.

Re: Please pull u-boot-dm

2023-01-27 Thread Tom Rini
On Thu, Jan 26, 2023 at 07:20:51PM -0700, Simon Glass wrote: > Hi Tom, > > https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/14897 > > > The following changes since commit 27e0fb3b0823519aea2d42cd8bde20234dd87cef: > > Merge

Re: [RFC PATCH 00/16] arm: Add Rockchip RK3588 support

2023-01-27 Thread Jagan Teki
On Fri, 27 Jan 2023 at 05:13, Jonas Karlman wrote: > > On 2023-01-26 23:16, Jonas Karlman wrote: > > Hi Jagan, > > On 2023-01-26 20:17, Jagan Teki wrote: > >> On Fri, 27 Jan 2023 at 00:33, Jonas Karlman wrote: > >>> > >>> On 2023-01-26 19:26, Jagan Teki wrote: > Hi Simon, > > On

Re: [U-Boot][bug report] clearfog: EMMC boot broken on clearfog pro

2023-01-27 Thread Petr Štetiar
Martin Rowe [2023-01-14 14:21:52]: [adding Stefan and Pali to the Cc: loop to make them aware] Hi, > I did try to bisect the eMMC issue, but there are a few related > breakages for different reasons over the last 2 years, so it's not one > commit that has done it. For example, just the 4

[PATCH] lmb: Bump CONFIG_LMB_MAX_REGIONS

2023-01-27 Thread Michal Suchanek
It is reported that in some configurations it is not possible to boot because u-boot runs out of lmbs. commit 06d514d77c ("lmb: consider EFI memory map") increases lmb usage, hence is likely the cause of the lmb overflow. Fixes: 06d514d77c ("lmb: consider EFI memory map") Link:

[PATCH V3 6/6] nvmem: u-boot-env: post process "ethaddr" env variable

2023-01-27 Thread Rafał Miłecki
From: Rafał Miłecki U-Boot environment variables are stored in ASCII format so "ethaddr" requires parsing into binary to make it work with Ethernet interfaces. This includes support for indexes to support #nvmem-cell-cells = <1>. Signed-off-by: Rafał Miłecki --- drivers/nvmem/layouts/Kconfig

[PATCH V3 5/6] dt-bindings: nvmem: u-boot, env: add MAC's #nvmem-cell-cells

2023-01-27 Thread Rafał Miłecki
From: Rafał Miłecki U-Boot's "ethaddr" environment variable is very often used to store *base* MAC address. It's used as a base for calculating addresses for multiple interfaces. It's done by adding proper values. Actual offsets are picked by manufacturers and vary across devices.

[PATCH V3 4/6] nvmem: u-boot-env: convert to layout driver

2023-01-27 Thread Rafał Miłecki
From: Rafał Miłecki U-Boot environment variables can be found on various NVMEM devices (not just MTD) so convert this driver to a generic layout one. This way - thanks to using NVMEM generic API - this driver can be reused in other scenarios. For backward DT compatibility we need to support

[PATCH V3 2/6] nvmem: core: allow .read_post_process() callbacks to adjust buffer

2023-01-27 Thread Rafał Miłecki
From: Rafał Miłecki Sometimes reading NVMEM cell value involves some data reformatting. it may require resizing available buffer. Support that. It's required e.g. to provide properly formatted MAC address in case it's stored in a non-binary format (e.g. using ASCII). Signed-off-by: Rafał

[PATCH V3 3/6] dt-bindings: nvmem: convert U-Boot env vars to NVMEM layout

2023-01-27 Thread Rafał Miłecki
From: Rafał Miłecki U-Boot environment variables can be found of various underlaying storage entities. This binding should be defined as a layout on top on NVMEM device not a NVMEM device itself. Signed-off-by: Rafał Miłecki Reviewed-by: Rob Herring ---

[PATCH V3 1/6] nvmem: core: add nvmem_dev_size() helper

2023-01-27 Thread Rafał Miłecki
From: Rafał Miłecki This is required by layouts that need to read whole NVMEM space. It applies to NVMEM devices without hardcoded layout (like U-Boot environment data block). Signed-off-by: Rafał Miłecki --- V2: Drop "const" from "const size_t" --- drivers/nvmem/core.c | 13

Re: DM_SERIAL is broken for Kirkwood boards

2023-01-27 Thread Stefan Roese
Hi Tony, On 1/27/23 07:13, Tony Dinh wrote: Hi all, On Thu, Jan 26, 2023 at 3:38 PM Tony Dinh wrote: Hi all, I ran some tests today (Pogo V4 and NSA310S boards) with the latest master branch and saw the same behavior we've seen before. The boards hung, and the serial console was silent

Re: [PATCH 1/1] cmd: fix mtest on 64 bit systems

2023-01-27 Thread Stefan Roese
On 1/27/23 01:09, Heinrich Schuchardt wrote: * Use 16 digits on 64 bit systems. * Use 64 bit patterns on 64 bit systems. * Expect the sign bit in bit 63 on 64 bit systems. * Adjust the formatting of a constant. Signed-off-by: Heinrich Schuchardt Reviewed-by: Stefan Roese Thanks, Stefan

[PATCH] efi: use 32-bit alignment for efi_guid_t

2023-01-27 Thread Masahisa Kojima
Current U-Boot implements 64-bit boundary for efi_guid_t structure. It follows the UEFI specification, page 21 of the UEFI Specification v2.10 says about EFI_GUID: 128-bit buffer containing a unique identifier value. Unless otherwise specified, aligned on a 64-bit boundary. On the other hand,

Re: [PATCH] Revert "rockchip: Only call binman when TPL available"

2023-01-27 Thread Anand Moon
Hi Jagan, On Fri, 27 Jan 2023 at 12:52, Jagan Teki wrote: > > This reverts commit f5315dd6290a588434e4f79bfd2886bb7df9210d. > > [why] > TPL is not mandatory for not all Rockchip SoCs, some SoCs like > RK356x, and RK3588 still use mainline u-boot without TPL as > their ddr init programs are

Re: [PATCH v2 3/4] arm64: dts: rockchip: rk3566: Add Radxa Compute Module 3 IO

2023-01-27 Thread Anand Moon
Hi Jagan, On Tue, 17 Jan 2023 at 14:53, Jagan Teki wrote: > > Radxa Compute Module 3(CM3) IO board an application board from Radxa > and is compatible with Raspberry Pi CM4 IO form factor. > > Specification: > - 1x HDMI, > - 2x MIPI DSI > - 2x MIPI CSI2 > - 1x eDP > - 1x PCIe card > - 2x SATA >

Re: [PATCH v2 00/17] Support android boot image v3/v4

2023-01-27 Thread Safae Ouajih
On 26/01/2023 19:17, Roman Stratiienko wrote: чт, 26 янв. 2023 г. в 18:05, Safae Ouajih : Hello everyone, * This is based on Roman Stratiienko's work to support boot image header version 3 and 4. * This supports the new boot image headers v3, v4 and bootconfig feature.

Re: [PATCH] build_bug.h: Also define static_assert() when __CHECKER__ is defined

2023-01-27 Thread Rasmus Villemoes
On 27/01/2023 09.41, Christophe Leroy wrote: > > Also I have a problem with the following u-boot commit : aa9e891c633 > ("include/linux/stddef.h: avoid 'warning: preprocessor token offsetof > redefined'") > > On uboot mainline I get: > ... > What can we do about it ? At least reverting it

Re: [PATCH v2 0/4] Fix sparse warnings

2023-01-27 Thread Michal Simek
On 1/20/23 06:36, Ashok Reddy Soma wrote: Run and fix sparse warnings in below files -drivers/mmc/zynq_sdhci.c -board/xilinx/common/board.h -drivers/gpio/zynqmp_gpio_modepin.c -board/xilinx/versal/board.c Changes in v2: - Included header file instead of declaring prototype -

Re: [PATCH v2] net: zynq_gem: Wait for SGMII PCS link in zynq_gem_init()

2023-01-27 Thread Michal Simek
On 1/25/23 08:09, Stefan Roese wrote: In our system using ZynqMP with an external SGMII PHY it's necessary to wait for the PCS link and auto negotiation to finish before the xfer starts. Otherwise the first packet(s) might get dropped, resulting in a delay at the start of the ethernet

Re: [PATCH] build_bug.h: Also define static_assert() when __CHECKER__ is defined

2023-01-27 Thread Christophe Leroy
Le 27/01/2023 à 08:43, Rasmus Villemoes a écrit : > [Vous ne recevez pas souvent de courriers de rasmus.villem...@prevas.dk. > Découvrez pourquoi ceci est important à > https://aka.ms/LearnAboutSenderIdentification ] > > On 26/01/2023 19.17, Christophe Leroy wrote: >> When doing a build with