Re: [PATCH v2 8/9] efi_loader: move dtbdump.c, initrddump.c to lib/efi_loader

2022-03-23 Thread AKASHI Takahiro
On Sat, Mar 19, 2022 at 10:11:47AM +0100, Heinrich Schuchardt wrote: > The tools dtbdump.efi and initrddump.efi are useful for Python testing even > if CONFIG_EFI_SELFTEST=y. -> CONFIG_EFI_SELFTEST=n > Signed-off-by: Heinrich Schuchardt > --- > v2: > new patch > --- > lib/efi_loader/Makef

Re: [PATCH v2 2/9] efi_loader: fix efi_dp_find_obj()

2022-03-23 Thread AKASHI Takahiro
On Sat, Mar 19, 2022 at 10:11:41AM +0100, Heinrich Schuchardt wrote: > efi_dp_find_obj() should not return any handle with a partially matching > device path If so, please describe so explicitly in the function's description. See below. > but the handle with the maximum matching device path. > >

Re: [PATCH v2 3/9] efi_loader: efi_dp_find_obj() add protocol check

2022-03-23 Thread AKASHI Takahiro
On Sat, Mar 19, 2022 at 10:11:42AM +0100, Heinrich Schuchardt wrote: > Let function efi_dp_find_obj() additionally check if a given protocol is > installed on the handle relating to the device-path. Please describe why you want to add another parameter to the function. Otherwise, we don't understa

Re: QEMU NUMA and U-Boot

2022-03-23 Thread François Ozog
Le mer. 7 juil. 2021 à 19:39, Heinrich Schuchardt a écrit : > > > On 7/7/21 5:15 PM, François Ozog wrote: > > top posting what now works for me: > > - changed calculation of memory size to loop through different memory > nodes > > - added numa_node to banks > > - filter out banks that do not matc

Re: How to debug u-boot data abort

2022-03-23 Thread qianfan
在 2022/3/23 10:28, qianfan 写道: Hi: I had a custom AM335X board connected my computer by usbnet. It always report data abort when 'dhcp': Next it the log: U-Boot 2022.01-rc1-00183-gfa5b4e2d19-dirty (Feb 25 2022 - 15:45:02 +0800) CPU  : AM335X-GP rev 2.1 Model: WISDOM AM335X CCT DRAM:  512

Re: [PATCH v2 4/9] efi_loader: support booting via short-form device-path

2022-03-23 Thread AKASHI Takahiro
On Sat, Mar 19, 2022 at 10:11:43AM +0100, Heinrich Schuchardt wrote: > The boot manager must support loading from boot options using a short-form > device-path, e.g. one where the first element is a hard drive media path. > > See '3.1.2 Load Options Processing' in UEFI specification version 2.9.

Re: How to debug u-boot data abort

2022-03-23 Thread Abder
Le mer. 23 mars 2022 à 03:28, qianfan a écrit : > > Hi: > > I had a custom AM335X board connected my computer by usbnet. It always report > data abort when 'dhcp': > > Next it the log: > > U-Boot 2022.01-rc1-00183-gfa5b4e2d19-dirty (Feb 25 2022 - 15:45:02 +0800) > > CPU : AM335X-GP rev 2.1 > Mode

Re: How to debug u-boot data abort

2022-03-23 Thread qianfan
在 2022/3/23 15:51, Abder 写道: Le mer. 23 mars 2022 à 03:28, qianfan a écrit : Hi: I had a custom AM335X board connected my computer by usbnet. It always report data abort when 'dhcp': Next it the log: U-Boot 2022.01-rc1-00183-gfa5b4e2d19-dirty (Feb 25 2022 - 15:45:02 +0800) CPU : AM335X-G

data abort when run 'dhcp'

2022-03-23 Thread qianfan
在 2022/3/23 15:45, qianfan 写道: 在 2022/3/23 10:28, qianfan 写道: Hi: I had a custom AM335X board connected my computer by usbnet. It always report data abort when 'dhcp': Next it the log: U-Boot 2022.01-rc1-00183-gfa5b4e2d19-dirty (Feb 25 2022 - 15:45:02 +0800) CPU  : AM335X-GP rev 2.1 M

Re: [PATCH v2 5/9] efi_loader: use short-form DP for load options

2022-03-23 Thread AKASHI Takahiro
On Sat, Mar 19, 2022 at 10:11:44AM +0100, Heinrich Schuchardt wrote: > From: Heinrich Schuchardt > > The GUID of partitions is sufficient for identification and will stay > constant in the lifetime of a boot option. The preceding path of the > device-path may change due to changes in the enumerat

Re: QEMU NUMA and U-Boot

2022-03-23 Thread Mark Kettenis
> From: François Ozog > Date: Wed, 23 Mar 2022 08:29:21 +0100 > > Le mer. 7 juil. 2021 à 19:39, Heinrich Schuchardt a > écrit : > > > > > > > On 7/7/21 5:15 PM, François Ozog wrote: > > > top posting what now works for me: > > > - changed calculation of memory size to loop through different mem

Re: How to debug u-boot data abort

2022-03-23 Thread Heinrich Schuchardt
On 3/23/22 08:45, qianfan wrote: 在 2022/3/23 10:28, qianfan 写道: Hi: I had a custom AM335X board connected my computer by usbnet. It always report data abort when 'dhcp': Next it the log: U-Boot 2022.01-rc1-00183-gfa5b4e2d19-dirty (Feb 25 2022 - 15:45:02 +0800) CPU  : AM335X-GP rev 2.1 Mode

Re: [PATCH v2] cmd: pxe_utils: sysboot: replace cls command by video_clear in PXE parser

2022-03-23 Thread Patrice CHOTARD
Hi Patrick On 3/22/22 17:08, Patrick Delaunay wrote: > Since the commit bfaa51dd4adf ("cmd: add serial console support > for the cls command") the cls command is not enough to clear the > video display when ANSI console is activated. > > This patch clears the video device with the video_clear() A

Re: [Uboot-stm32] [PATCH 1/2] mmc: fix error message for unaligned erase request

2022-03-23 Thread Patrice CHOTARD
Hi Patrick On 2/15/22 16:23, Patrick Delaunay wrote: > Fix the end address in the message for unaligned erase request in > mmc_berase() when start + blkcnt is aligned to erase_grp_size. > > for example: > - start = 0x2000 - 26 > - count = 26 > - erase_grp_size = 0x400 > > Caution! Your d

Re: [Uboot-stm32] [PATCH 2/2] env: mmc : align erase address and size on erase_grp_size

2022-03-23 Thread Patrice CHOTARD
Hi Patrick On 2/15/22 16:23, Patrick Delaunay wrote: > On eMMC device, the erase_grp_size > 1 so the address and size for the > erase block command in env/mmc.c can be unaligned on erase group size and > some strange trace occurs and the result is not guarantee by MMC devices. > > The SD-Card beh

Re: [PATCH] i2c: fix always-true condition in i2c_probe_chip()

2022-03-23 Thread Heiko Schocher
Hello Nikita, On 15.02.22 18:58, Nikita Yushchenko wrote: > Per dm_i2c_ops.probe_chip documentation, i2c_probe_chip() shall fallback > to default probe method when .probe_chip() returns -ENOSYS. > > Signed-off-by: Nikita Yushchenko > --- > drivers/i2c/i2c-uclass.c | 2 +- > 1 file changed, 1 in

Re: [PATCH] cmd: eeprom: Do not rewrite EEPROM I2C bus with DM I2C enabled

2022-03-23 Thread Heiko Schocher
Hello Marek, On 16.02.22 15:27, Marek Vasut wrote: > With DM I2C, the EEPROM bus has been correctly configured in > eeprom_execute_command() already. Do not reconfigure it here > with hard-coded bus number again. > > Signed-off-by: Marek Vasut > Cc: Heiko Schocher > Cc: Tom Rini > --- > cmd/e

Re: [PATCH] bootcount: clarify documentation

2022-03-23 Thread Heiko Schocher
Hello Micahel, On 02.03.22 16:56, Michael Opdenacker wrote: > - Grammar fixes > - Clarify explanations > > Signed-off-by: Michael Opdenacker > --- > doc/README.bootcount | 34 ++ > drivers/bootcount/Kconfig | 10 +- > 2 files changed, 23 insertions(+

Re: data abort when run 'dhcp'

2022-03-23 Thread qianfan
在 2022/3/23 16:02, qianfan 写道: 在 2022/3/23 15:45, qianfan 写道: 在 2022/3/23 10:28, qianfan 写道: Hi: I had a custom AM335X board connected my computer by usbnet. It always report data abort when 'dhcp': Next it the log: U-Boot 2022.01-rc1-00183-gfa5b4e2d19-dirty (Feb 25 2022 - 15:45:02

Please pull u-boot-i2c

2022-03-23 Thread Heiko Schocher
Hello Tom, please pull from: The following changes since commit 5f68470d69f853b1652ebe93525b60064717fe2e: Merge tag 'efi-2022-04-rc5' of https://source.denx.de/u-boot/custodians/u-boot-efi (2022-03-20 15:14:59 -0400) are available in the Git repository at: https://source.denx.de/u-boot/cu

Re: imx8mp EQoS "EQOS_DMA_MODE_SWR stuck"

2022-03-23 Thread Marcel Ziswiler
Hi Tim On Tue, 2022-03-22 at 17:04 -0700, Tim Harvey wrote: > Greetings, > > I'm working on adding board support for an imx8mp SoC board which uses > the EQoS MAC interface. I'm finding that eqos_start() fails with > 'EQOS_DMA_MODE_SWR stuck'. I believe this is likely a clock issue but > not clea

Re: data abort when run 'dhcp'

2022-03-23 Thread Heinrich Schuchardt
On 3/23/22 10:13, qianfan wrote: 在 2022/3/23 16:02, qianfan 写道: 在 2022/3/23 15:45, qianfan 写道: 在 2022/3/23 10:28, qianfan 写道: Hi: I had a custom AM335X board connected my computer by usbnet. It always report data abort when 'dhcp': Next it the log: U-Boot 2022.01-rc1-00183-gfa5b4e2d19

Re: [PATCH] mmc: rockchip_sdhci: Correct error checking

2022-03-23 Thread Simon Glass
On Tue, 22 Mar 2022 at 06:58, wrote: > > From: Haolin Li > > A pointer can not be negative. Use macro IS_ERR_OR_NULL() for checking. > > Signed-off-by: Haolin Li > --- > drivers/mmc/rockchip_sdhci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass

Re: [PATCH] gpio: pca953x_gpio: add PCA957X support

2022-03-23 Thread Simon Glass
On Tue, 22 Mar 2022 at 08:38, Luca Ellero wrote: > > From: Luca Ellero > > Take as reference Linux kernel code: > drivers/gpio/gpio-pca953x.c > > Signed-off-by: Luca Ellero > --- > drivers/gpio/pca953x_gpio.c | 50 + > 1 file changed, 40 insertions(+)

Re: [PATCH] arm: apple: Increase RTKit timeout

2022-03-23 Thread Simon Glass
On Mon, 21 Mar 2022 at 15:36, Mark Kettenis wrote: > > From: Hector Martin > > The firmware on larger NVMe drives needs more than 100ms to come up. > Change the timeout to 1s. > > Signed-off-by: Hector Martin > Signed-off-by: Mark Kettenis > --- > > While technically this isn't a regression, it

Re: [PATCH] arm: apple: Fix mem layout

2022-03-23 Thread Simon Glass
Hi Mark, On Mon, 21 Mar 2022 at 15:41, Mark Kettenis wrote: > > The current approach for setting the environment variables that > describe the memory layout runs the risk of overlapping with > reserved memory regions. Use the lmb code to derive the addresses > for these variables instead. > > Sig

Re: data abort when run 'dhcp'

2022-03-23 Thread qianfan
在 2022/3/23 17:51, Heinrich Schuchardt 写道: On 3/23/22 10:13, qianfan wrote: 在 2022/3/23 16:02, qianfan 写道: 在 2022/3/23 15:45, qianfan 写道: 在 2022/3/23 10:28, qianfan 写道: Hi: I had a custom AM335X board connected my computer by usbnet. It always report data abort when 'dhcp': Next it

Re: data abort when run 'dhcp'

2022-03-23 Thread Heinrich Schuchardt
On 3/23/22 11:07, qianfan wrote: 在 2022/3/23 17:51, Heinrich Schuchardt 写道: On 3/23/22 10:13, qianfan wrote: 在 2022/3/23 16:02, qianfan 写道: 在 2022/3/23 15:45, qianfan 写道: 在 2022/3/23 10:28, qianfan 写道: Hi: I had a custom AM335X board connected my computer by usbnet. It always report

Re: [PATCH] arm: apple: Fix mem layout

2022-03-23 Thread Mark Kettenis
> From: Simon Glass > Date: Wed, 23 Mar 2022 03:59:58 -0600 > > Hi Mark, > > On Mon, 21 Mar 2022 at 15:41, Mark Kettenis wrote: > > > > The current approach for setting the environment variables that > > describe the memory layout runs the risk of overlapping with > > reserved memory regions. U

Re: [PATCH u-boot-marvell] arm: mvebu: dts: turris_mox: fix non-working USB port

2022-03-23 Thread Tom Rini
On Wed, Mar 23, 2022 at 07:46:40AM +0100, Stefan Roese wrote: > Added Tom to Cc. > > On 3/23/22 06:55, Stefan Roese wrote: > > On 3/22/22 17:17, Marek Behún wrote: > > > From: Marek Behún > > > > > > Commit 0934dddc6436 ("arm: a37xx: Update DTS files to version from > > > upstream Linux kernel")

Re: data abort when run 'dhcp'

2022-03-23 Thread qianfanguijin
no malloc messages even if i remove the _DEBUG marco check in assert. maybe it can’t detected by do_check_inuse_chunk(). > 在 2022年3月23日,18:12,Heinrich Schuchardt 写道: > On 3/23/22 11:07, qianfan wrote: >> >> 在 2022/3/23 17:51, Heinrich Schuchardt 写道: >>> On 3/23/22 10:13, qianfan wrote: 在

RE: [EXT] Re: [PATCH v8 01/15] crypto/fsl: Add support for CAAM Job ring driver model

2022-03-23 Thread Gaurav Jain
Hi Michael > -Original Message- > From: Michael Nazzareno Trimarchi > Sent: Saturday, March 19, 2022 11:30 PM > To: Tom Rini > Cc: Fabio Estevam ; Gaurav Jain > ; Stefano Babic ; Michael Walle > ; Varun Sethi ; Adrian Alonso > ; Alison Wang ; Andy Tang > ; Franck Lenormand ; > Horia Gean

Re: [EXT] Re: [PATCH v8 01/15] crypto/fsl: Add support for CAAM Job ring driver model

2022-03-23 Thread Michael Nazzareno Trimarchi
Hi On Wed, Mar 23, 2022 at 1:06 PM Gaurav Jain wrote: > > Hi Michael > > > -Original Message- > > From: Michael Nazzareno Trimarchi > > Sent: Saturday, March 19, 2022 11:30 PM > > To: Tom Rini > > Cc: Fabio Estevam ; Gaurav Jain > > ; Stefano Babic ; Michael Walle > > ; Varun Sethi ; A

Re: [PATCH u-boot-marvell] arm: mvebu: dts: turris_mox: fix non-working USB port

2022-03-23 Thread Pali Rohár
On Tuesday 22 March 2022 17:17:59 Marek Behún wrote: > From: Marek Behún > > Commit 0934dddc6436 ("arm: a37xx: Update DTS files to version from > upstream Linux kernel") ported Linux's device-tree files for Armada 3720 > SOCs. This broke USB port on Turris MOX, because in Linux' DTS the bus > vol

Re: [PATCH u-boot-marvell] arm: mvebu: dts: turris_mox: fix non-working USB port

2022-03-23 Thread Tom Rini
On Tue, Mar 22, 2022 at 05:17:59PM +0100, Marek Behún wrote: > From: Marek Behún > > Commit 0934dddc6436 ("arm: a37xx: Update DTS files to version from > upstream Linux kernel") ported Linux's device-tree files for Armada 3720 > SOCs. This broke USB port on Turris MOX, because in Linux' DTS the

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Tom Rini
On Tue, Mar 22, 2022 at 01:34:34PM +0100, Heiko Thiery wrote: > Hi Tom, > > > Am Di., 22. März 2022 um 13:25 Uhr schrieb Tom Rini : > > > > On Tue, Mar 22, 2022 at 10:25:12AM +0100, Heinrich Schuchardt wrote: > > > On 3/21/22 15:26, Heiko Thiery wrote: > > > > It was observed that enabling additi

[PATCH u-boot-marvell] arm: a37xx: espressobin: Fix non-working SPI

2022-03-23 Thread Pali Rohár
Commit 0934dddc6436 ("arm: a37xx: Update DTS files to version from upstream Linux kernel") ported Linux's device-tree files for Armada 3720 SOCs. This broke SPI support on some Espressobin boards and results in following U-Boot error: Loading Environment from SPIFlash... jedec_spi_nor flash@0: u

Re: [PATCH 2/2] arm: add support to corstone1000 platform

2022-03-23 Thread Tom Rini
On Tue, Mar 22, 2022 at 10:41:18AM +, Rui Miguel Silva wrote: > Corstone1000 is a platform from arm, which includes pre > verified Corstone SSE710 sub-system that combines Cortex-A and > Cortex-M processors [0]. > > This code adds the support for the Cortex-A35 implementation > at host side,

Re: [PATCH 1/2] cmd: load: add load command for memory mapped

2022-03-23 Thread Tom Rini
On Tue, Mar 22, 2022 at 10:41:17AM +, Rui Miguel Silva wrote: > cp.b is used a lot as a way to load binaries to memory and execute > them, however we may need to integrate this with the efi subsystem to > set it up as a bootdev. > > So, introduce a loadm command that will be consistent with t

Re: [PATCH 1/2] arm: imx: imx8mm_beacon: Remove unnecessary configs

2022-03-23 Thread Fabio Estevam
Hi Adam, On Sat, Mar 19, 2022 at 12:45 PM Adam Ford wrote: > > Because the Beacon imx8mm board uses device tree > for MMC/SD and Ethernet, there is no need to have some of the > config options. It's handled by the device tree. > > Signed-off-by: Adam Ford Nice cleanup: Reviewed-by: Fabio Estev

Re: [PATCH 2/2] arm: imx: imx8mn_beacon: Remove unnecessary configs

2022-03-23 Thread Fabio Estevam
On Sat, Mar 19, 2022 at 12:45 PM Adam Ford wrote: > > Because the Beacon imx8mn board uses device tree > for MMC/SD and Ethernet, there is no need to have some of the > config options. It's handled by the device tree. > > Signed-off-by: Adam Ford Reviewed-by: Fabio Estevam

Re: [PATCH V3] dt-bindings: nvmem: add U-Boot environment variables binding

2022-03-23 Thread Tom Rini
On Mon, Feb 28, 2022 at 02:12:50PM +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > U-Boot uses environment variables for storing device setup data. It > usually needs to be accessed by a bootloader, kernel and often > user-space. > > This binding allows describing environment data located

[PATCH 1/4] arm: mvebu: dts: uDPU: update DTS

2022-03-23 Thread Robert Marko
Update the uDPU DTS to the version that is pending upstream [1][2]. [1] https://patchwork.kernel.org/project/linux-arm-kernel/patch/20220322105857.1107016-1-robert.ma...@sartura.hr/ [2] https://patchwork.kernel.org/project/linux-arm-kernel/patch/20220322105857.1107016-2-robert.ma...@sartura.hr/

[PATCH 3/4] arm: mvebu: dts: uDPU: fix non-working networking

2022-03-23 Thread Robert Marko
uDPU is a bit of a specific device in that it does not have any copper ports nor any ethernet PHY-s but 2 SFP ports. This is an issue since MVNETA requires a PHY phandle or a fixed-link to be defined under its node. Since U-boot has no SFP support this is reasonable in order to know how to configu

[PATCH 2/4] net: mvneta: add SFP TX disable handling

2022-03-23 Thread Robert Marko
Add support for handling SFP TX disable for MVNETA in the same fashion as to what MVPP2 is doing in order to enable using SFP-s. This allows using ethernet on SFP only boards. Signed-off-by: Robert Marko --- drivers/net/mvneta.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers

[PATCH 4/4] mvebu: uDPU: update defconfig

2022-03-23 Thread Robert Marko
Update the current uDPU defconfig with following changes: * Disable CONFIG_SPI_BOOT, its not needed for booting and the device boots from eMMC anyway. * Disable CONFIG_SYS_CONSOLE_INFO_QUIET, there is no need to diverge from other boards by not priting the console device * Enable CONFIG_CMD_MTD in

[PATCH] arm64: zynqmp: enable the PMUFW watchdog

2022-03-23 Thread Jorge Ramirez-Ortiz
>From 528b3117a36b7b4eea1839afbea7191d60638b0c Mon Sep 17 00:00:00 2001 From: Jorge Ramirez-Ortiz Date: Wed, 23 Mar 2022 14:41:15 +0100 Subject: [PATCH] arm64: zynqmp: enable the PMUFW watchdog If the PMUFW was built with support for the CSU watchdog we must let the firmware know that it can be s

Re: [PATCH v4 00/33] Initial implementation of standard boot

2022-03-23 Thread Tom Rini
On Sun, Mar 06, 2022 at 05:49:43AM -0700, Simon Glass wrote: > > The bootflow feature provide a built-in way for U-Boot to automatically > boot an Operating System without custom scripting and other customisation. > This is called 'standard boot' since it provides a standard way for > U-Boot to bo

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Adam Ford
On Wed, Mar 23, 2022 at 8:14 AM Tom Rini wrote: > > On Tue, Mar 22, 2022 at 01:34:34PM +0100, Heiko Thiery wrote: > > Hi Tom, > > > > > > Am Di., 22. März 2022 um 13:25 Uhr schrieb Tom Rini : > > > > > > On Tue, Mar 22, 2022 at 10:25:12AM +0100, Heinrich Schuchardt wrote: > > > > On 3/21/22 15:26,

Re: Please pull u-boot-i2c

2022-03-23 Thread Tom Rini
On Wed, Mar 23, 2022 at 10:16:13AM +0100, Heiko Schocher wrote: > Hello Tom, > > please pull from: > > The following changes since commit 5f68470d69f853b1652ebe93525b60064717fe2e: > > Merge tag 'efi-2022-04-rc5' of > https://source.denx.de/u-boot/custodians/u-boot-efi (2022-03-20 > 15:14:59

Re: [PATCH] arm64: zynqmp: enable the PMUFW watchdog

2022-03-23 Thread Jorge Ramirez-Ortiz, Foundries
On 23/03/22, Jorge Ramirez-Ortiz wrote: > From 528b3117a36b7b4eea1839afbea7191d60638b0c Mon Sep 17 00:00:00 2001 > From: Jorge Ramirez-Ortiz > Date: Wed, 23 Mar 2022 14:41:15 +0100 > Subject: [PATCH] arm64: zynqmp: enable the PMUFW watchdog um, seems my sendpatch script is a bit off. please let m

Re: [PATCH u-boot-marvell] arm: a37xx: espressobin: Fix non-working SPI

2022-03-23 Thread Stefan Roese
On 3/23/22 14:18, Pali Rohár wrote: Commit 0934dddc6436 ("arm: a37xx: Update DTS files to version from upstream Linux kernel") ported Linux's device-tree files for Armada 3720 SOCs. This broke SPI support on some Espressobin boards and results in following U-Boot error: Loading Environment fr

[PATCH] imx8m: Use a sane SYS_MALLOC_F_LEN default

2022-03-23 Thread Fabio Estevam
From: Fabio Estevam When adding new features to imx8m boards, such as DM clock support, the malloc area can be exhausted. To avoid such issue, provide a reasonable default for the SYS_MALLOC_F_LEN size. Suggested-by: Heinrich Schuchardt Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/imx8

[PATCH 1/2] ram: k3-am654: Write all configuration values

2022-03-23 Thread Christian Gmeiner
From: Dominic Rath Makes it possible to use 16-bit DDR memory. Signed-off-by: Dominic Rath Signed-off-by: Christian Gmeiner --- drivers/ram/k3-am654-ddrss.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/ram/k3-am654-ddrss.c b/drivers/ram/k3-am654-ddrss.c index 4ec12b

[PATCH 2/2] ram: k3-am654: Make VTT regulator optional

2022-03-23 Thread Christian Gmeiner
Signed-off-by: Christian Gmeiner --- drivers/ram/k3-am654-ddrss.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/ram/k3-am654-ddrss.c b/drivers/ram/k3-am654-ddrss.c index a48ebe6ada..4453c247b2 100644 --- a/drivers/ram/k3-am654-ddrss.c +++ b/drivers/ram/k3-am654-

Re: [PATCH] imx8m: Use a sane SYS_MALLOC_F_LEN default

2022-03-23 Thread Heinrich Schuchardt
On 3/23/22 15:47, Fabio Estevam wrote: From: Fabio Estevam When adding new features to imx8m boards, such as DM clock support, the malloc area can be exhausted. To avoid such issue, provide a reasonable default for the SYS_MALLOC_F_LEN size. Suggested-by: Heinrich Schuchardt Signed-off-by: F

Re: [PATCH 2/4] net: mvneta: add SFP TX disable handling

2022-03-23 Thread Marek Behún
On Wed, 23 Mar 2022 14:39:01 +0100 Robert Marko wrote: > Add support for handling SFP TX disable for MVNETA in the same fashion as > to what MVPP2 is doing in order to enable using SFP-s. > > This allows using ethernet on SFP only boards. Can't you parse sfp node as defined in SFP binding? Ma

[PATCH v2] imx8m: Use a sane SYS_MALLOC_F_LEN default

2022-03-23 Thread Fabio Estevam
From: Fabio Estevam When adding new features to imx8m boards, such as DM clock support, the malloc area can be exhausted. To avoid such issue, provide a reasonable default for the SYS_MALLOC_F_LEN size. Suggested-by: Heinrich Schuchardt Signed-off-by: Fabio Estevam --- Changes since v1: - Add

Re: [PATCH u-boot-marvell] arm: a37xx: espressobin: Fix non-working SPI

2022-03-23 Thread Stefan Roese
Hi Pali, On 3/23/22 14:18, Pali Rohár wrote: Commit 0934dddc6436 ("arm: a37xx: Update DTS files to version from upstream Linux kernel") ported Linux's device-tree files for Armada 3720 SOCs. This broke SPI support on some Espressobin boards and results in following U-Boot error: Loading Envi

Re: [PATCH] imx8m: Use a sane SYS_MALLOC_F_LEN default

2022-03-23 Thread Tom Rini
On Wed, Mar 23, 2022 at 04:07:48PM +0100, Heinrich Schuchardt wrote: > On 3/23/22 15:47, Fabio Estevam wrote: > > From: Fabio Estevam > > > > When adding new features to imx8m boards, such as DM clock support, > > the malloc area can be exhausted. > > > > To avoid such issue, provide a reasonabl

Re: [PATCH v2] imx8m: Use a sane SYS_MALLOC_F_LEN default

2022-03-23 Thread Tom Rini
On Wed, Mar 23, 2022 at 01:10:20PM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > When adding new features to imx8m boards, such as DM clock support, > the malloc area can be exhausted. > > To avoid such issue, provide a reasonable default for the > SYS_MALLOC_F_LEN size. > > Suggested-b

Re: [PATCH u-boot-marvell] arm: a37xx: espressobin: Fix non-working SPI

2022-03-23 Thread Pali Rohár
On Wednesday 23 March 2022 17:13:21 Stefan Roese wrote: > Hi Pali, > > On 3/23/22 14:18, Pali Rohár wrote: > > Commit 0934dddc6436 ("arm: a37xx: Update DTS files to version from > > upstream Linux kernel") ported Linux's device-tree files for Armada 3720 > > SOCs. This broke SPI support on some Es

[PATCH u-boot-marvell v2] arm: a37xx: espressobin: Fix non-working SPI

2022-03-23 Thread Pali Rohár
Commit 0934dddc6436 ("arm: a37xx: Update DTS files to version from upstream Linux kernel") ported Linux's device-tree files for Armada 3720 SOCs. This broke SPI support on some Espressobin boards and results in following U-Boot error: Loading Environment from SPIFlash... jedec_spi_nor flash@0: u

Re: [PATCH] efi_loader: optional persistence of variables

2022-03-23 Thread Tom Saeger
On Tue, Mar 22, 2022 at 06:03:28PM -0500, Tom Saeger wrote: > On Tue, Mar 22, 2022 at 11:33:20PM +0100, Heinrich Schuchardt wrote: > > On 3/22/22 23:16, Tom Saeger wrote: > > > On Tue, Mar 22, 2022 at 10:41:40PM +0100, Heinrich Schuchardt wrote: > > > > On 3/22/22 22:21, Tom Saeger wrote: > > > > >

Re: [PATCH v2] imx8m: Use a sane SYS_MALLOC_F_LEN default

2022-03-23 Thread Fabio Estevam
On Wed, Mar 23, 2022 at 1:16 PM Tom Rini wrote: > It should probably also cover the rest of imx8, and how close to you > think imx6 is? And, git grep'ing I see a bunch of layerscape also > overriding this with something larger. I am not comfortable in changing imx8qxp/imx8qm/layerscape as I can

Re: [PATCH v2] imx8m: Use a sane SYS_MALLOC_F_LEN default

2022-03-23 Thread Tom Rini
On Wed, Mar 23, 2022 at 01:23:29PM -0300, Fabio Estevam wrote: > On Wed, Mar 23, 2022 at 1:16 PM Tom Rini wrote: > > > It should probably also cover the rest of imx8, and how close to you > > think imx6 is? And, git grep'ing I see a bunch of layerscape also > > overriding this with something lar

Re: [PATCH 2/4] net: mvneta: add SFP TX disable handling

2022-03-23 Thread Robert Marko
On Wed, Mar 23, 2022 at 4:20 PM Marek Behún wrote: > > On Wed, 23 Mar 2022 14:39:01 +0100 > Robert Marko wrote: > > > Add support for handling SFP TX disable for MVNETA in the same fashion as > > to what MVPP2 is doing in order to enable using SFP-s. > > > > This allows using ethernet on SFP only

Re: [PATCH v2] imx8m: Use a sane SYS_MALLOC_F_LEN default

2022-03-23 Thread Adam Ford
On Wed, Mar 23, 2022 at 11:27 AM Tom Rini wrote: > > On Wed, Mar 23, 2022 at 01:23:29PM -0300, Fabio Estevam wrote: > > On Wed, Mar 23, 2022 at 1:16 PM Tom Rini wrote: > > > > > It should probably also cover the rest of imx8, and how close to you > > > think imx6 is? And, git grep'ing I see a bu

[PATCH] configs: imx6dl_mamoj_defconfig: Enable LTO on imx6dl_mamoj board

2022-03-23 Thread Michael Trimarchi
Enable LTO on mamoj to reduce SPL and uboot size. Tested with gcc gcc-11.1.0 U-Boot 2022.04-rc4-00051-g17fc5facd0 (Mar 23 2022 - 16:43:43 +0100) CPU: Freescale i.MX6DL rev1.3 996 MHz (running at 792 MHz) CPU: Extended Commercial temperature grade (-20C to 105C) at 40C Reset cause: POR Model:

Re: [PATCH V3] dt-bindings: nvmem: add U-Boot environment variables binding

2022-03-23 Thread Rob Herring
On Mon, 28 Feb 2022 14:12:50 +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > U-Boot uses environment variables for storing device setup data. It > usually needs to be accessed by a bootloader, kernel and often > user-space. > > This binding allows describing environment data located in a r

Re: [PATCH] configs: imx6dl_mamoj_defconfig: Enable LTO on imx6dl_mamoj board

2022-03-23 Thread Fabio Estevam
On Wed, Mar 23, 2022 at 1:52 PM Michael Trimarchi wrote: > > Enable LTO on mamoj to reduce SPL and uboot size. Tested with gcc > gcc-11.1.0 > > U-Boot 2022.04-rc4-00051-g17fc5facd0 (Mar 23 2022 - 16:43:43 +0100) > > CPU: Freescale i.MX6DL rev1.3 996 MHz (running at 792 MHz) > CPU: Extended Com

[PATCH v2 1/4] arm: mvebu: dts: uDPU: update DTS

2022-03-23 Thread Robert Marko
Update the uDPU DTS to the version that is pending upstream [1][2]. [1] https://patchwork.kernel.org/project/linux-arm-kernel/patch/20220322105857.1107016-1-robert.ma...@sartura.hr/ [2] https://patchwork.kernel.org/project/linux-arm-kernel/patch/20220322105857.1107016-2-robert.ma...@sartura.hr/

[PATCH v2 2/4] net: mvneta: add SFP TX disable handling

2022-03-23 Thread Robert Marko
Add support for handling SFP TX disable for MVNETA in the same fashion as to what MVPP2 is doing in order to enable using SFP-s. This allows using ethernet on SFP only boards. Signed-off-by: Robert Marko --- Changes in v2: * Parse the standard SFP node for TX disable GPIO instead of using a cust

[PATCH v2 3/4] arm: mvebu: dts: uDPU: fix non-working networking

2022-03-23 Thread Robert Marko
uDPU is a bit of a specific device in that it does not have any copper ports nor any ethernet PHY-s but 2 SFP ports. This is an issue since MVNETA requires a PHY phandle or a fixed-link to be defined under its node. Since U-boot has no SFP support this is reasonable in order to know how to configu

[PATCH v2 4/4] mvebu: uDPU: update defconfig

2022-03-23 Thread Robert Marko
Update the current uDPU defconfig with following changes: * Disable CONFIG_SPI_BOOT, its not needed for booting and the device boots from eMMC anyway. * Disable CONFIG_SYS_CONSOLE_INFO_QUIET, there is no need to diverge from other boards by not priting the console device * Enable CONFIG_CMD_MTD in

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Simon Glass
Hi Heinrich, On Tue, 22 Mar 2022 at 03:25, Heinrich Schuchardt wrote: > > On 3/21/22 15:26, Heiko Thiery wrote: > > It was observed that enabling additional DM modules the configured > > malloc value is not sufficient. So lets increase the value. > > > > Signed-off-by: Heiko Thiery > > --- > > v

[PATCH v3 0/3] malloc: Enable profiling dlmalloc with valgrind

2022-03-23 Thread Sean Anderson
This series adds support for running valgrind against U-Boot's internal malloc. This allows for much more useful reports to be generated. Some example output of valgrind run against u-boot/master with this branch applied may be found at [1]. Note that valgrind gives up around acpi. This feature st

[PATCH v3 3/3] doc: sandbox: Document how to run sandbox with valgrind

2022-03-23 Thread Sean Anderson
This documents how to get more detailed results from valgrind made possible by the last two commits. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) doc/arch/sandbox.rst | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/doc/ar

[PATCH v3 2/3] malloc: Annotate allocator for valgrind

2022-03-23 Thread Sean Anderson
This annotates malloc and friends so that valgrind can track the heap. To do this, we need to follow a few rules: * Call VALGRIND_MALLOCLIKE_BLOCK whenever we malloc something * Call VALGRIND_FREELIKE_BLOCK whenever we free something (generally after we have done our bookkeeping) * Call VALGRIND

[PATCH] power-domain: Fix use of uninitialized value in dev_power_domain_ctrl

2022-03-23 Thread Sean Anderson
If dev_count_phandle_with_args returns 0 or another error, then pd will never have been initialized by power_domain_get_by_index. Avoid comparing against pd.dev in this situation. Fixes: 3e4fcfa4bc ("power-domain: fix hang in endless loop on i.MX8") Signed-off-by: Sean Anderson --- drivers/powe

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Heiko Thiery
Hi Simon, Am Mi., 23. März 2022 um 19:04 Uhr schrieb Simon Glass : > > Hi Heinrich, > > On Tue, 22 Mar 2022 at 03:25, Heinrich Schuchardt wrote: > > > > On 3/21/22 15:26, Heiko Thiery wrote: > > > It was observed that enabling additional DM modules the configured > > > malloc value is not suffici

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Sean Anderson
On 3/23/22 2:26 PM, Heiko Thiery wrote: Hi Simon, Am Mi., 23. März 2022 um 19:04 Uhr schrieb Simon Glass : Hi Heinrich, On Tue, 22 Mar 2022 at 03:25, Heinrich Schuchardt wrote: On 3/21/22 15:26, Heiko Thiery wrote: It was observed that enabling additional DM modules the configured malloc

Re: [PATCH v4 00/33] Initial implementation of standard boot

2022-03-23 Thread Simon Glass
Hi Tom, On Wed, 23 Mar 2022 at 08:05, Tom Rini wrote: > > On Sun, Mar 06, 2022 at 05:49:43AM -0700, Simon Glass wrote: > > > > The bootflow feature provide a built-in way for U-Boot to automatically > > boot an Operating System without custom scripting and other customisation. > > This is called

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Tom Rini
On Wed, Mar 23, 2022 at 02:33:12PM -0400, Sean Anderson wrote: > On 3/23/22 2:26 PM, Heiko Thiery wrote: > > Hi Simon, > > > > Am Mi., 23. März 2022 um 19:04 Uhr schrieb Simon Glass : > > > > > > Hi Heinrich, > > > > > > On Tue, 22 Mar 2022 at 03:25, Heinrich Schuchardt > > > wrote: > > > > >

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Simon Glass
Hi Sean, On Wed, 23 Mar 2022 at 12:33, Sean Anderson wrote: > > On 3/23/22 2:26 PM, Heiko Thiery wrote: > > Hi Simon, > > > > Am Mi., 23. März 2022 um 19:04 Uhr schrieb Simon Glass : > >> > >> Hi Heinrich, > >> > >> On Tue, 22 Mar 2022 at 03:25, Heinrich Schuchardt > >> wrote: > >>> > >>> On 3/

Re: [PATCH] arm: apple: Fix mem layout

2022-03-23 Thread Simon Glass
Hi Mark, On Wed, 23 Mar 2022 at 04:18, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Wed, 23 Mar 2022 03:59:58 -0600 > > > > Hi Mark, > > > > On Mon, 21 Mar 2022 at 15:41, Mark Kettenis wrote: > > > > > > The current approach for setting the environment variables that > > > describe th

Re: [PATCH] sandbox: sdl: Add stub sandbox_sdl_remove_display()

2022-03-23 Thread Simon Glass
Hi Andrew, On Wed, 23 Mar 2022 at 12:06, Andrew Scull wrote: > > > +static int sandbox_sdl_remove_display(void) > > Forgot the inline :/ should I resend or can it be added when applying? Best to resend I think. With that you can add: Reviewed-by: Simon Glass > > > +{ > > + return -ENODE

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Simon Glass
Hi Tom, On Wed, 23 Mar 2022 at 12:49, Tom Rini wrote: > > On Wed, Mar 23, 2022 at 02:33:12PM -0400, Sean Anderson wrote: > > On 3/23/22 2:26 PM, Heiko Thiery wrote: > > > Hi Simon, > > > > > > Am Mi., 23. März 2022 um 19:04 Uhr schrieb Simon Glass > > > : > > > > > > > > Hi Heinrich, > > > > > >

Re: [PATCH] efi_loader: optional persistence of variables

2022-03-23 Thread Heinrich Schuchardt
On 3/23/22 17:22, Tom Saeger wrote: On Tue, Mar 22, 2022 at 06:03:28PM -0500, Tom Saeger wrote: On Tue, Mar 22, 2022 at 11:33:20PM +0100, Heinrich Schuchardt wrote: On 3/22/22 23:16, Tom Saeger wrote: On Tue, Mar 22, 2022 at 10:41:40PM +0100, Heinrich Schuchardt wrote: On 3/22/22 22:21, Tom S

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Tom Rini
On Wed, Mar 23, 2022 at 12:53:59PM -0600, Simon Glass wrote: > Hi Tom, > > On Wed, 23 Mar 2022 at 12:49, Tom Rini wrote: > > > > On Wed, Mar 23, 2022 at 02:33:12PM -0400, Sean Anderson wrote: > > > On 3/23/22 2:26 PM, Heiko Thiery wrote: > > > > Hi Simon, > > > > > > > > Am Mi., 23. März 2022 um

Re: [PATCH] power-domain: Fix use of uninitialized value in dev_power_domain_ctrl

2022-03-23 Thread Simon Glass
On Wed, 23 Mar 2022 at 12:26, Sean Anderson wrote: > > If dev_count_phandle_with_args returns 0 or another error, then pd will never > have been initialized by power_domain_get_by_index. Avoid comparing against > pd.dev in this situation. > > Fixes: 3e4fcfa4bc ("power-domain: fix hang in endless l

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Sean Anderson
On 3/23/22 2:53 PM, Simon Glass wrote: Hi Sean, On Wed, 23 Mar 2022 at 12:33, Sean Anderson wrote: On 3/23/22 2:26 PM, Heiko Thiery wrote: Hi Simon, Am Mi., 23. März 2022 um 19:04 Uhr schrieb Simon Glass : Hi Heinrich, On Tue, 22 Mar 2022 at 03:25, Heinrich Schuchardt wrote: On 3/21/2

Re: [PATCH v4 00/33] Initial implementation of standard boot

2022-03-23 Thread Michael Nazzareno Trimarchi
Hi Tom On Wed, Mar 23, 2022 at 7:46 PM Simon Glass wrote: > > Hi Tom, > > On Wed, 23 Mar 2022 at 08:05, Tom Rini wrote: > > > > On Sun, Mar 06, 2022 at 05:49:43AM -0700, Simon Glass wrote: > > > > > > The bootflow feature provide a built-in way for U-Boot to automatically > > > boot an Operating

[PATCH 1/1] cmd: efidebug: simplify do_efi_boot_add()

2022-03-23 Thread Heinrich Schuchardt
When calling efi_dp_from_name() we are not interested in the device part. Just pass NULL as an argument. Suggested-by: AKASHI Takahiro Signed-off-by: Heinrich Schuchardt --- cmd/efidebug.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/efidebug.c b/cmd/efidebug.c i

Re: [PATCH v4 00/33] Initial implementation of standard boot

2022-03-23 Thread Tom Rini
On Wed, Mar 23, 2022 at 08:21:22PM +0100, Michael Nazzareno Trimarchi wrote: > Hi Tom > > On Wed, Mar 23, 2022 at 7:46 PM Simon Glass wrote: > > > > Hi Tom, > > > > On Wed, 23 Mar 2022 at 08:05, Tom Rini wrote: > > > > > > On Sun, Mar 06, 2022 at 05:49:43AM -0700, Simon Glass wrote: > > > > > >

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Simon Glass
Hi Tom, On Wed, 23 Mar 2022 at 12:59, Tom Rini wrote: > > On Wed, Mar 23, 2022 at 12:53:59PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 23 Mar 2022 at 12:49, Tom Rini wrote: > > > > > > On Wed, Mar 23, 2022 at 02:33:12PM -0400, Sean Anderson wrote: > > > > On 3/23/22 2:26 PM, Heiko Th

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Simon Glass
Hi Sean, On Wed, 23 Mar 2022 at 13:19, Sean Anderson wrote: > > On 3/23/22 2:53 PM, Simon Glass wrote: > > Hi Sean, > > > > On Wed, 23 Mar 2022 at 12:33, Sean Anderson wrote: > >> > >> On 3/23/22 2:26 PM, Heiko Thiery wrote: > >>> Hi Simon, > >>> > >>> Am Mi., 23. März 2022 um 19:04 Uhr schrieb

Re: [PATCH v4 00/33] Initial implementation of standard boot

2022-03-23 Thread Michael Nazzareno Trimarchi
Hi Tom On Wed, Mar 23, 2022 at 8:30 PM Tom Rini wrote: > > On Wed, Mar 23, 2022 at 08:21:22PM +0100, Michael Nazzareno Trimarchi wrote: > > Hi Tom > > > > On Wed, Mar 23, 2022 at 7:46 PM Simon Glass wrote: > > > > > > Hi Tom, > > > > > > On Wed, 23 Mar 2022 at 08:05, Tom Rini wrote: > > > > > >

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Adam Ford
On Wed, Mar 23, 2022 at 2:19 PM Sean Anderson wrote: > > On 3/23/22 2:53 PM, Simon Glass wrote: > > Hi Sean, > > > > On Wed, 23 Mar 2022 at 12:33, Sean Anderson wrote: > >> > >> On 3/23/22 2:26 PM, Heiko Thiery wrote: > >>> Hi Simon, > >>> > >>> Am Mi., 23. März 2022 um 19:04 Uhr schrieb Simon Gl

Re: [PATCH v4 00/33] Initial implementation of standard boot

2022-03-23 Thread Tom Rini
On Wed, Mar 23, 2022 at 08:57:36PM +0100, Michael Nazzareno Trimarchi wrote: > Hi Tom > > On Wed, Mar 23, 2022 at 8:30 PM Tom Rini wrote: > > > > On Wed, Mar 23, 2022 at 08:21:22PM +0100, Michael Nazzareno Trimarchi wrote: > > > Hi Tom > > > > > > On Wed, Mar 23, 2022 at 7:46 PM Simon Glass wrot

  1   2   >