[RFC] mmc: Remove alignment hole for cmdidx in struct mmc_cmd

2023-09-29 Thread Jonas Karlman
The alignment hole caused by cmdidx in struct mmc_cmd cause strange issues together with the peephole2 optimization on Amlogic SoCs. Following was observed while working on SPL support for Amlogic SoCs. sd_get_capabilities() normally issue a CMD55 followed by a CMD51. However, on at least Amlogic

[PATCH] board/km/cent2: Fix buffer overflow when fixing MAC address

2023-09-29 Thread Francois Berder
String "/soc/fman/ethernet@e8000" is 25 bytes long and not 24 due to extra byte for null character at the end. Signed-off-by: Francois Berder --- board/keymile/kmcent2/kmcent2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/keymile/kmcent2/kmcent2.c

Re: [PATCH] test: Fix SPL tests not being run

2023-09-29 Thread Sean Anderson
On 9/29/23 12:06, Sean Anderson wrote: > SPL doesn't have OF_LIVE enabled, so we can only run tests with a flat > tree. Don't skip them even if they don't use the devicetree. > > Fixes: 6ec5178c0ef ("test: Skip flat-tree tests if devicetree is not used") > Signed-off-by: Sean Anderson > --- > >

[PATCH] test: Fix SPL tests not being run

2023-09-29 Thread Sean Anderson
SPL doesn't have OF_LIVE enabled, so we can only run tests with a flat tree. Don't skip them even if they don't use the devicetree. Fixes: 6ec5178c0ef ("test: Skip flat-tree tests if devicetree is not used") Signed-off-by: Sean Anderson --- test/test-main.c | 3 ++- 1 file changed, 2

Re: [PATCH] scripts/Makefile.lib: also consider $(CONFIG_SYS_BOARD)-u-boot.dtsi

2023-09-29 Thread Tom Rini
On Fri, Sep 29, 2023 at 09:15:00AM -0600, Simon Glass wrote: > Hi Rasmus, > > On Mon, 25 Sept 2023 at 13:05, Rasmus Villemoes > wrote: > > > > On 25/09/2023 20.19, Tom Rini wrote: > > > On Mon, Sep 25, 2023 at 10:27:43AM +0200, Rasmus Villemoes wrote: > > >> On 04/05/2023 14.35, Rasmus Villemoes

Re: [PATCH] scripts/Makefile.lib: also consider $(CONFIG_SYS_BOARD)-u-boot.dtsi

2023-09-29 Thread Simon Glass
Hi Rasmus, On Mon, 25 Sept 2023 at 13:05, Rasmus Villemoes wrote: > > On 25/09/2023 20.19, Tom Rini wrote: > > On Mon, Sep 25, 2023 at 10:27:43AM +0200, Rasmus Villemoes wrote: > >> On 04/05/2023 14.35, Rasmus Villemoes wrote: > >>> On 03/05/2023 16.54, Tom Rini wrote: > >> > The one last

Re: [PULL] u-boot-at91-fixes-2023.10-b

2023-09-29 Thread Tom Rini
On Fri, Sep 29, 2023 at 05:36:38PM +0300, Eugen Hristev wrote: > > Hello Tom, > > Please pull tag u-boot-at91-fixes-2023.10-b , the second set of fixes for > 2023.10 cycle. > > This comes late, but I hope you can merge it before the release, it's only > two small fixes , one for an array not

[PULL] u-boot-at91-fixes-2023.10-b

2023-09-29 Thread Eugen Hristev
Hello Tom, Please pull tag u-boot-at91-fixes-2023.10-b , the second set of fixes for 2023.10 cycle. This comes late, but I hope you can merge it before the release, it's only two small fixes , one for an array not initialized and the second one fixes an error case when a DT property is

Re: [PATCH] spl: Jump to image at end of board_init_r

2023-09-29 Thread Tom Rini
On Fri, Sep 29, 2023 at 07:56:49AM -0400, Tom Rini wrote: > On Fri, Sep 29, 2023 at 02:57:42AM +0200, Heinrich Schuchardt wrote: > > On 9/27/23 23:44, Jonas Karlman wrote: > > > spl_board_prepare_for_boot() is not called before jumping/invoking atf, > > > optee, opensbi or linux images. > > > > >

Re: [PATCH] clk: at91: Fix initializing arrays

2023-09-29 Thread Eugen Hristev
On 9/24/23 12:58, Francois Berder wrote: Arrays are not cleared entirely because ARRAY_SIZE returns the number of elements in an array, not the size in bytes. This commit fixes the calls to memset by providing the array size in bytes instead of the number of elements in the array.

[PATCH 6/6] arm: dts: k3-am625-sk: Mark dependent nodes for pre-relocation phase

2023-09-29 Thread Roger Quadros
CPSW node needs PHY, MDIO, pinmux, DMA and INTC nodes. main_conf is required for phy_gmii_sel. Mark them as 'bootph-all' so they are available in all pre-relocation phases. Fixes the below dts warnings: : Warning (reg_format): /bus@f/syscon@10/phy@4044:reg: property has invalid length

[PATCH 5/6] arm: dts: k3-am625-sk: Fix boot

2023-09-29 Thread Roger Quadros
Since commit [1] A53 u-boot proper is broken. This is because nodes marked as 'bootph-pre-ram' are not available at u-boot proper before relocation. To fix this we mark all nodes in sk-u-boot.dtsi as 'bootph-all'. [1] 9e644284ab812 ("dm: core: Report bootph-pre-ram/sram node as pre-reloc after

[PATCH 4/6] arm: dts: k3-am642-sk: Mark dependent nodes for pre-relocation phase

2023-09-29 Thread Roger Quadros
CPSW node needs PHY, MDIO, pinmux, DMA and INTC nodes. Mark them as 'bootph-all' so they are available in all pre-relocation phases. Fixes below dts warnings: : Warning (reg_format): /bus@f4000/ethernet@800/mdio@f00/ethernet-phy@1:reg: property has invalid length (4 bytes) (#address-cells

[PATCH 3/6] arm: dts: k3-am642-sk: Fix boot

2023-09-29 Thread Roger Quadros
Since commit [1] A53 u-boot proper is broken. This is because nodes marked as 'bootph-pre-ram' are not available at u-boot proper before relocation. To fix this we mark all nodes in sk-u-boot.dtsi as 'bootph-all'. Move cbass_mcu node to -r5-sk.dts as it is only required for R5 SPL. [1]

[PATCH 2/6] arm: dts: k3-am64-evm: Mark dependent nodes for pre-relocation phase

2023-09-29 Thread Roger Quadros
CPSW node needs PHY, MDIO, pinmux, DMA and INTC nodes. USB and MMC nodes need pinmux. Mark them as 'bootph-all' so they are available in all pre-relocation phases. Fixes below dts warning: : Warning (dmas_property): /bus@f4000/ethernet@800:dmas: Could not get phandle node for (cell 0)

[PATCH 1/6] arm: dts: k3-am64-evm: Fix boot

2023-09-29 Thread Roger Quadros
Since commit [1] A53 u-boot proper is broken. This is because nodes marked as 'bootph-pre-ram' are not available at u-boot proper before relocation. To fix this we mark all nodes in sk-u-boot.dtsi as 'bootph-all'. Move vtt_supply and cbass_mcu node to -r5-evm.dts as it is only required for R5

[RESEND PATCH 0/6] arm: dts: k3-am64 / k3-am62: Fix boot

2023-09-29 Thread Roger Quadros
Hi, (Apologies for resend as I missed the u-boot list the last time. Thanks Vignesh for catching this :) ) Since commit [1] A53 u-boot proper is broken. This is because nodes marked as 'bootph-pre-ram' are not availble at u-boot proper before relocation. To fix this we mark all nodes in

Re: [PATCH 15/19] ARM: dts: renesas: Synchronize RZ R8A774A1 RZ/G2M DTs with Linux 6.5.3

2023-09-29 Thread Adam Ford
On Sun, Sep 17, 2023 at 9:18 AM Marek Vasut wrote: > > Synchronize RZ R8A774A1 RZ/G2M DTs with Linux 6.5.3, Thanks! > commit 238589d0f7b421aae18c5704dc931595019fa6c7 . > > Signed-off-by: Marek Vasut Reviewed-by: Adam Ford > --- > arch/arm/dts/beacon-renesom-baseboard.dtsi | 45

Re: [PATCH] configs: iot2050: Disable CONFIG_CONSOLE_MUX

2023-09-29 Thread Tom Rini
On Wed, Sep 27, 2023 at 07:22:04PM +0200, Jan Kiszka wrote: > From: Jan Kiszka > > We only have serial as console option, and leaving this on turns on > SYS_CONSOLE_IS_IN_ENV which is also not true for these devices, leaving > an ugly > > In:No input devices available! > Out: No output

Re: [PATCH] smegw01: Fix inverted CONFIG_SYS_BOOT_LOCKED logic

2023-09-29 Thread Tom Rini
On Mon, Sep 25, 2023 at 01:32:59PM -0300, Fabio Estevam wrote: > From: Eduard Strehlau > > CONFIG_SYS_BOOT_LOCKED means that a restricted boot environment will > be used. In this case, hab_auth_img_or_fail should be called to prevent > U-Boot to continue running when the fitImage authentication

Re: [PATCH v3] env: ti: ti_common.env: Fix get_overlaystring for FIT Image

2023-09-29 Thread Tom Rini
On Mon, Sep 25, 2023 at 11:53:42AM +0530, Manorit Chawdhry wrote: > After the refactor with conf- nodes in fitImage, overlaystring wasn't > didn't handle the new conf- nodes in FIT Booting. Fix get_overlaystring > to handle conf- nodes. > > Fixes: 837833a724b7 ("environment: ti: Add

Re: [PATCH 1/4] mkimage: also honour -B even without external data

2023-09-29 Thread Sean Anderson
On 9/28/23 03:10, Rasmus Villemoes wrote: On 27/09/2023 21.02, Sean Anderson wrote: On 9/19/23 07:37, Rasmus Villemoes wrote: In some cases, using the "external data" feature is impossible or undesirable, but one may still want (or need) the FIT image to have a certain alignment. Also, given

Re: [PATCH 1/3] mtd: spi-nor: Add spi flash lock config option

2023-09-29 Thread Michal Simek
On 9/28/23 05:49, Venkatesh Yadav Abbarapu wrote: Provide an explicit configuration option to disable default "lock" of any flash chip which supports locking. Please also write reason for it. Based on 2/3 and 3/3 I expect you want to save some memory. Another reason could be not expose

Re: [PATCH v5 4/7] efi_loader: support boot from URI device path

2023-09-29 Thread Ilias Apalodimas
On Fri, 29 Sept 2023 at 14:35, Masahisa Kojima wrote: > > Hi Ilias, > > On Fri, 29 Sept 2023 at 20:48, Ilias Apalodimas > wrote: > > > > Hi Kojima-san, > > > > > > [...] > > > > > + > > > +/** > > > + * try_load_default_file() - try to load the default file > > > + * > > > + * Search the device

Re: [PATCH 2/3] arm64: versal: Disable the lock option for mini ospi and qspi

2023-09-29 Thread Michal Simek
On 9/28/23 05:49, Venkatesh Yadav Abbarapu wrote: As mini configs are required only for flashing the images, so disabling the lock config which will save nearly 6KB of memory. Signed-off-by: Venkatesh Yadav Abbarapu --- configs/xilinx_versal_mini_ospi_defconfig | 3 ++-

Re: [PATCH v5 4/7] efi_loader: support boot from URI device path

2023-09-29 Thread Masahisa Kojima
Hi Ilias, On Fri, 29 Sept 2023 at 20:48, Ilias Apalodimas wrote: > > Hi Kojima-san, > > > [...] > > > + > > +/** > > + * try_load_default_file() - try to load the default file > > + * > > + * Search the device having EFI_SIMPLE_FILE_SYSTEM_PROTOCOL, > > + * then try to load with the default boot

Re: [PATCH] spl: Jump to image at end of board_init_r

2023-09-29 Thread Heinrich Schuchardt
On 29.09.23 13:56, Tom Rini wrote: On Fri, Sep 29, 2023 at 02:57:42AM +0200, Heinrich Schuchardt wrote: On 9/27/23 23:44, Jonas Karlman wrote: spl_board_prepare_for_boot() is not called before jumping/invoking atf, optee, opensbi or linux images. Jump to image at the end of board_init_r() to

Re: [PATCH] spl: Jump to image at end of board_init_r

2023-09-29 Thread Tom Rini
On Fri, Sep 29, 2023 at 02:57:42AM +0200, Heinrich Schuchardt wrote: > On 9/27/23 23:44, Jonas Karlman wrote: > > spl_board_prepare_for_boot() is not called before jumping/invoking atf, > > optee, opensbi or linux images. > > > > Jump to image at the end of board_init_r() to fix this. > > > >

Re: [PATCH v5 4/7] efi_loader: support boot from URI device path

2023-09-29 Thread Ilias Apalodimas
Hi Kojima-san, [...] > + > +/** > + * try_load_default_file() - try to load the default file > + * > + * Search the device having EFI_SIMPLE_FILE_SYSTEM_PROTOCOL, > + * then try to load with the default boot file(e.g. EFI/BOOT/BOOTAA64.EFI). > + * > + * @dev pointer to the

Re: Please pull u-boot-dm/next

2023-09-29 Thread Tom Rini
On Fri, Sep 29, 2023 at 02:53:45PM +0530, Manorit Chawdhry wrote: > Hi Tom, Simon > > On 17:14-20230924, Tom Rini wrote: > > On Sat, Sep 23, 2023 at 01:52:55PM -0600, Simon Glass wrote: > > > > > Hi Tom, > > > > > > This is for the -next branch > > > > > >

[PATCH] clk: stm32mp1: Add support for USART1 clock

2023-09-29 Thread Anatolij Gustschin
Add USART1 clock parents and mux configuration. This allows support for configuring the USART1 as the serial console in SPL and U-Boot via device tree. Without this patch the SPL with usart1 serial console enabled crashes because it can not find the clock specified in the device tree for usart1.

Re: [PATCH v2] dm: core: Report bootph-pre-ram/sram node as pre-reloc after relocation : regression

2023-09-29 Thread Roger Quadros
On 28/09/2023 22:18, Jonas Karlman wrote: > Hi Roger, > > On 2023-09-28 14:59, Roger Quadros wrote: >> Hi, >> >> On 21/08/2023 01:03, Jonas Karlman wrote: >>> Nodes with bootph-pre-sram/ram props are bound in multiple phases: >>> 1. At TPL (bootph-pre-sram) or SPL (bootph-pre-ram) phase >>> 2.

Re: Please pull u-boot-dm/next

2023-09-29 Thread Manorit Chawdhry
Hi Tom, Simon On 17:14-20230924, Tom Rini wrote: > On Sat, Sep 23, 2023 at 01:52:55PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > This is for the -next branch > > > > https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/17836 > > > > > > The following changes since commit

[PATCH v5] imx: imx8mm: Add support for Mettler-Toledo snowflake board.

2023-09-29 Thread Manuel Traut
This patch probably got somehow lost. Rebased against latest master. It is originally based on: >From patchwork Fri Mar 31 14:18:41 2023 X-Patchwork-Submitter: Sebastian Andrzej Siewior X-Patchwork-Id: 1763795 X-Patchwork-Delegate: sba...@denx.de Return-Path: X-Original-To:

Re: [PATCH] spl: Jump to image at end of board_init_r

2023-09-29 Thread Ferass El Hafidi
> We should understand the implications of your patch on the code size. If > it leads to binary code growth, we should evaluate alternatives. This is not my patch, but Jonas'. But sure. Cheers.

Re: [PATCH] spl: Jump to image at end of board_init_r

2023-09-29 Thread Heinrich Schuchardt
On 9/29/23 09:55, Ferass El Hafidi wrote: Hi Heinrich, On Fri Sep 29, 2023 at 2:57 AM CEST, Heinrich Schuchardt wrote: In SPL we are fighting for every byte of binary size. What is the impact of this change on the code size? I would expect that your increasing it; especially if only one of

Re: [PATCH] spl: Jump to image at end of board_init_r

2023-09-29 Thread Ferass El Hafidi
On Fri Sep 29, 2023 at 1:42 AM CEST, Simon Glass wrote: > On Wed, 27 Sept 2023 at 15:44, Jonas Karlman wrote: > > > > spl_board_prepare_for_boot() is not called before jumping/invoking atf, > > optee, opensbi or linux images. > > > > Jump to image at the end of board_init_r() to fix this. > > > >

Re: [PATCH] spl: Jump to image at end of board_init_r

2023-09-29 Thread Ferass El Hafidi
Hi Heinrich, On Fri Sep 29, 2023 at 2:57 AM CEST, Heinrich Schuchardt wrote: > In SPL we are fighting for every byte of binary size. > > What is the impact of this change on the code size? > > I would expect that your increasing it; especially if only one of the > CONFIG_OPTIONS is enabled. > >

Re: [PATCH v4 4/8] efi_loader: support boot from URI device path

2023-09-29 Thread Maxim Uvarov
On Fri, 29 Sept 2023 at 13:00, Masahisa Kojima wrote: > Hi Maxim, > > On Fri, 29 Sept 2023 at 15:24, Maxim Uvarov > wrote: > > > > > > > > On Fri, 29 Sept 2023 at 08:13, Masahisa Kojima < > masahisa.koj...@linaro.org> wrote: > >> > >> Hi Maxim, > >> > >> On Thu, 28 Sept 2023 at 20:35, Maxim

Re: [PATCH v4 4/8] efi_loader: support boot from URI device path

2023-09-29 Thread Masahisa Kojima
Hi Maxim, On Fri, 29 Sept 2023 at 15:24, Maxim Uvarov wrote: > > > > On Fri, 29 Sept 2023 at 08:13, Masahisa Kojima > wrote: >> >> Hi Maxim, >> >> On Thu, 28 Sept 2023 at 20:35, Maxim Uvarov wrote: >> > >> > >> > >> > On Tue, 26 Sept 2023 at 09:01, Masahisa Kojima >> > wrote: >> >> >> >> Hi

Re: [PATCH v4 4/8] efi_loader: support boot from URI device path

2023-09-29 Thread Maxim Uvarov
On Fri, 29 Sept 2023 at 08:13, Masahisa Kojima wrote: > Hi Maxim, > > On Thu, 28 Sept 2023 at 20:35, Maxim Uvarov > wrote: > > > > > > > > On Tue, 26 Sept 2023 at 09:01, Masahisa Kojima < > masahisa.koj...@linaro.org> wrote: > >> > >> Hi Ilias, > >> > >> On Mon, 25 Sept 2023 at 21:37, Ilias