RE: [PATCH v4] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-31 Thread Jaehoon Chung
> -Original Message- > From: Fabio Estevam > Sent: Wednesday, November 1, 2023 1:09 AM > To: Marek Vasut > Cc: u-boot@lists.denx.de; Jaehoon Chung ; Abdellatif > El Khlifi > ; Heinrich Schuchardt ; > Ilias Apalodimas > ; Ramon Fried ; Roger > Knecht ; Sean > Edmond ; Simon Glass ; T

RE: [PATCH] mmc: sdhci: Rework SDHCI_QUIRK_BROKEN_R1B

2023-10-31 Thread Jaehoon Chung
> -Original Message- > From: U-Boot On Behalf Of Jaehoon Chung > Sent: Wednesday, November 1, 2023 10:09 AM > To: 'Henrik Grimler' ; 'Sean Anderson' > > Cc: u-boot@lists.denx.de; 'Rayagonda Kokatanur' > ; 'Bharat Kumar > Reddy Gooty' > Subject: RE: [PATCH] mmc: sdhci: Rework SDHCI_Q

RE: [PATCH] mmc: pci: Drop the superfluous cast

2023-10-31 Thread Jaehoon Chung
> -Original Message- > From: U-Boot On Behalf Of Jaehoon Chung > Sent: Tuesday, October 31, 2023 3:09 PM > To: Bin Meng ; Peng Fan > Cc: u-boot@lists.denx.de > Subject: Re: [PATCH] mmc: pci: Drop the superfluous cast > > On 10/11/23 20:00, Bin Meng wrote: > > dm_pci_map_bar() return a

RE: [PATCH] mmc: spl: select SPL_BLK for SPL_DM_MMC

2023-10-31 Thread Jaehoon Chung
> -Original Message- > From: U-Boot On Behalf Of Jaehoon Chung > Sent: Tuesday, October 31, 2023 2:04 PM > To: Oleksandr Suvorov ; u-boot@lists.denx.de > Cc: Peng Fan > Subject: Re: [PATCH] mmc: spl: select SPL_BLK for SPL_DM_MMC > > On 8/24/23 00:45, Oleksandr Suvorov wrote: > > mmc_

Re: [PATCH] riscv: Weakly define invalidate_icache_range()

2023-10-31 Thread Leo Liang
On Tue, Oct 31, 2023 at 12:37:20AM -0500, Samuel Holland wrote: > Some RISC-V CPUs, such as the T-HEAD XuanTie series, have a > vendor-specific way to invalidate a portion of the instruction cache. > Allow them to override invalidate_icache_range(). > > Signed-off-by: Samuel Holland > --- > > a

Re: [PATCH] riscv: Align the trap handler to 64 bytes

2023-10-31 Thread Leo Liang
On Tue, Oct 31, 2023 at 12:35:41AM -0500, Samuel Holland wrote: > This is required on CPUs which always operate in CLIC mode, such as the > T-HEAD E906 and E907. Per the CLIC specification: "In this mode, the > trap vector base address held in mtvec is constrained to be aligned on a > 64-byte or la

Re: [PATCH] riscv: Sort target configs alphabetically

2023-10-31 Thread Leo Liang
On Tue, Oct 31, 2023 at 12:32:12AM -0500, Samuel Holland wrote: > Clean things up for the next time somebody adds a target. > > Signed-off-by: Samuel Holland > --- > > arch/riscv/Kconfig | 18 +- > 1 file changed, 9 insertions(+), 9 deletions(-) Reviewed-by: Leo Yu-Chi Liang

[PATCH v2] arm64: zynqmp: Introduce kria SOM defconfig

2023-10-31 Thread Venkatesh Yadav Abbarapu
Enable the initial kria SOM specific configurations like pinctrl, pinconf etc. Also add the environment file. Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Updated the CONFIG_ENV_OFFSET_REDUND - Updated the CONFIG_SF_DEFAULT_SPEED to 3000 - Enabled the CONFIG_VIDEO_ZYNQMP_DPSUB

uboot reports adding disk failed(EFI_NOT_FOUND) and first disk is gone in next scsi scan

2023-10-31 Thread Hongxing Zhu
Hi Simon: Nice to meet you. The u-boot I used is based on v2023.04 tagged version. Layerscape LX2160A RDB board has four SATA controllers. Based on LX2160A RDB board and two or more SATA disks connected. I encounter one "scsi scan" problem. After the first SATA disk is detected and probed properly

RE: [PATCH v2 3/5] rng: Add StarFive JH7110 RNG driver

2023-10-31 Thread Chanho Park
> -Original Message- > From: Jaehoon Chung > Sent: Wednesday, November 1, 2023 9:52 AM > To: 'Chanho Park' ; 'Sughosh Ganu' > ; 'Heinrich Schuchardt' ; > 'Rick Chen' ; 'Leo' ; u- > b...@lists.denx.de > Subject: RE: [PATCH v2 3/5] rng: Add StarFive JH7110 RNG driver > > > > > -Origin

RE: [PATCH] mmc: sdhci: Rework SDHCI_QUIRK_BROKEN_R1B

2023-10-31 Thread Jaehoon Chung
Hi, > -Original Message- > From: Henrik Grimler > Sent: Sunday, October 29, 2023 5:31 AM > To: Sean Anderson > Cc: u-boot@lists.denx.de; Jaehoon Chung ; Rayagonda > Kokatanur > ; Bharat Kumar Reddy Gooty > > Subject: Re: [PATCH] mmc: sdhci: Rework SDHCI_QUIRK_BROKEN_R1B > > Hi Sean,

RE: [PATCH v2 3/5] rng: Add StarFive JH7110 RNG driver

2023-10-31 Thread Jaehoon Chung
> -Original Message- > From: U-Boot On Behalf Of Chanho Park > Sent: Wednesday, November 1, 2023 8:55 AM > To: Sughosh Ganu ; Heinrich Schuchardt > ; Rick Chen > ; Leo ; u-boot@lists.denx.de > Cc: Chanho Park > Subject: [PATCH v2 3/5] rng: Add StarFive JH7110 RNG driver > > Adds to s

Re: Re bootstd: Skip over bad device during bootflows scanning

2023-10-31 Thread Tony Dinh
Hi Simon, On Tue, Oct 31, 2023 at 12:00 PM Tony Dinh wrote: > > Hi Simon, > > On Tue, Oct 31, 2023 at 11:50 AM Simon Glass wrote: > > > > Hi Tony, > > > > Sorry I cannot reply to the patch[1]. > > > > Can you please send the console trace for this situation? I don't want > > to ignore errors com

[PATCH v2 1/5] riscv: import read/write_relaxed functions

2023-10-31 Thread Chanho Park
This imports mmio functions from Linux's arch/riscv/include/asm/mmio.h to use read/write[b|w|l|q]_relaxed functions. Signed-off-by: Chanho Park --- arch/riscv/include/asm/io.h | 45 + 1 file changed, 45 insertions(+) diff --git a/arch/riscv/include/asm/io.h b

[PATCH v2 5/5] configs: visionfive2: Enable JH7110 RNG driver

2023-10-31 Thread Chanho Park
Enables JH7110 RNG driver to visionfive2 board. Signed-off-by: Chanho Park Reviewed-by: Heinrich Schuchardt --- configs/starfive_visionfive2_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig index b21

[PATCH v2 3/5] rng: Add StarFive JH7110 RNG driver

2023-10-31 Thread Chanho Park
Adds to support JH7110 TRNG driver which is based on linux kernel's jh7110-trng.c. This can support to generate 256-bit random numbers and 128-bit but this makes 256-bit default for convenience. Signed-off-by: Chanho Park --- drivers/rng/Kconfig | 6 + drivers/rng/Makefile | 1 + dr

[PATCH v2 4/5] riscv: dts: jh7110: Add rng device tree node

2023-10-31 Thread Chanho Park
Adds jh7110 trng device tree node. Signed-off-by: Chanho Park --- arch/riscv/dts/jh7110.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/riscv/dts/jh7110.dtsi b/arch/riscv/dts/jh7110.dtsi index ec237a46ffba..13c47f7caa36 100644 --- a/arch/riscv/dts/jh7110.dtsi +++ b/arch

[PATCH v2 2/5] clk: starfive: jh7110: Add security clocks

2023-10-31 Thread Chanho Park
Add STGCLK_SEC_HCLK and STGCLK_SEC_MISCAHB clocks for JH7110 TRNG device. Signed-off-by: Chanho Park --- drivers/clk/starfive/clk-jh7110.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/starfive/clk-jh7110.c b/drivers/clk/starfive/clk-jh7110.c index 31aaf3340f94..a8

[PATCH v2 0/5] Add support for StarFive JH7110 TRNG driver

2023-10-31 Thread Chanho Park
This patchset adds to support StarFive JH7110 TRNG driver. Due to lack of readl_relaxed API, the first patch tries to import the APIs(read/write_relaxed) from Linux kernel's implementation. The second patch adds the missing security clocks which are required by the trng IP. This IP can support 128

RE: [PATCH 3/5] rng: Add StarFive JH7110 RNG driver

2023-10-31 Thread Chanho Park
> -Original Message- > From: Heinrich Schuchardt > Sent: Wednesday, November 1, 2023 6:18 AM > To: Chanho Park > Cc: Sughosh Ganu ; Rick Chen ; > Leo ; u-boot@lists.denx.de > Subject: Re: [PATCH 3/5] rng: Add StarFive JH7110 RNG driver > > On 10/30/23 09:32, Chanho Park wrote: > > Adds t

U-boot env in binary format

2023-10-31 Thread SIMON BABY
Hello , Can I know if I could generate uboot env file in binary format as part of my build process ? Currently it generate as a text file . Regards Simon Sent from my iPhone

RE: [PATCH 1/2] riscv: dts: jh7110: Add a gpio-restart node

2023-10-31 Thread Jaehoon Chung
Hi, > -Original Message- > From: Tom Rini > Sent: Tuesday, October 31, 2023 10:01 PM > To: Jaehoon Chung > Cc: u-boot@lists.denx.de; ycli...@andestech.com; > yanhong.w...@starfivetech.com; > minda.c...@starfivetech.com; xingyu...@starfivetech.com > Subject: Re: [PATCH 1/2] riscv: dts: j

Re: [PATCH v2] bmips: Add Inteno XG6846 board

2023-10-31 Thread Linus Walleij
On Tue, Sep 26, 2023 at 11:23 AM Linus Walleij wrote: > This adds support for the Inteno XG6846 board based on the > Broadcom MIPS 6328 SoC. > > The default boot will read a uImage from flash and boot it. > > Reviewed-by: Daniel Schwierzeck > Signed-off-by: Linus Walleij > --- > ChangeLog v1->v

Re: [PATCH 5/5] configs: visionfive2: Enable JH7110 RNG driver

2023-10-31 Thread Heinrich Schuchardt
On 10/30/23 09:32, Chanho Park wrote: Enables JH7110 RNG driver to visionfive2 board. Signed-off-by: Chanho Park Reviewed-by: Heinrich Schuchardt --- configs/starfive_visionfive2_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/starfive_visionfive2_defconfig b/co

Re: [PATCH 3/5] rng: Add StarFive JH7110 RNG driver

2023-10-31 Thread Heinrich Schuchardt
On 10/30/23 09:32, Chanho Park wrote: Adds to support JH7110 TRNG driver which is based on linux kernel's jh7110-trng.c. This can support to generate 256-bit random numbers and 128-bit but this makes 256-bit default for convenience. Signed-off-by: Chanho Park --- drivers/rng/Kconfig |

Re: [PATCH] bootstd: Skip over bad device during bootflows scanning

2023-10-31 Thread Tony Dinh
On Tue, Oct 31, 2023 at 12:26 PM Tony Dinh wrote: > > Hi Simon, > > On Mon, Oct 30, 2023 at 12:47 PM Tony Dinh wrote: > > > > During scanning for the next bootdev, if bootdev_next_prio() encounters > > a device error (e.g. ENOSYS), let it continue scanning the next devices, > > not stopping prema

Re: [PATCH] bootstd: Skip over bad device during bootflows scanning

2023-10-31 Thread Tony Dinh
Hi Simon, On Mon, Oct 30, 2023 at 12:47 PM Tony Dinh wrote: > > During scanning for the next bootdev, if bootdev_next_prio() encounters > a device error (e.g. ENOSYS), let it continue scanning the next devices, > not stopping prematurely. > > Background: > > During scanning for bootflows, it's po

Re: Re bootstd: Skip over bad device during bootflows scanning

2023-10-31 Thread Tony Dinh
Hi Simon, On Tue, Oct 31, 2023 at 11:50 AM Simon Glass wrote: > > Hi Tony, > > Sorry I cannot reply to the patch[1]. > > Can you please send the console trace for this situation? I don't want > to ignore errors completely, so wonder if there is a special error > code which could be produced when

Re bootstd: Skip over bad device during bootflows scanning

2023-10-31 Thread Simon Glass
Hi Tony, Sorry I cannot reply to the patch[1]. Can you please send the console trace for this situation? I don't want to ignore errors completely, so wonder if there is a special error code which could be produced when a device is missing? Regards, Simon [1] https://patchwork.ozlabs.org/projec

[PATCH v1 1/1] MAINTAINERS: Step up as co-maintainer of Tegra SOC platform

2023-10-31 Thread Svyatoslav Ryhel
Update maintainers for Tegra SoC platform. Include device trees and drivers which contain tegra in the name. Signed-off-by: Svyatoslav Ryhel --- MAINTAINERS | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index cde778bc4d..f07386dc77 100644 --

[PATCH v1 0/1] Step up as co-maintainer of Tegra SOC platform

2023-10-31 Thread Svyatoslav Ryhel
I would like to volunteer as Tegra SOC co-maintainer. Svyatoslav Ryhel (1): MAINTAINERS: Step up as co-maintainer of Tegra SOC platform MAINTAINERS | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) -- 2.39.2

Re: [PATCH 3/3] corstone1000: enable PSCI reset

2023-10-31 Thread Tom Rini
On Thu, Oct 26, 2023 at 01:50:51PM +0100, abdellatif.elkhl...@arm.com wrote: > From: Emekcan Aras > > enable PSCI reset used for the system reset > > Even though Corstone-1000 does not implement the entire PSCI APIs, > it relies on PSCI reset interface for the system reset. > > Signed-off-by:

Re: [PATCH 2/3] corstone1000: enable distro booting command

2023-10-31 Thread Tom Rini
On Thu, Oct 26, 2023 at 01:50:50PM +0100, abdellatif.elkhl...@arm.com wrote: > From: Abdellatif El Khlifi > > enable distro_bootcmd > > Signed-off-by: Abdellatif El Khlifi > Signed-off-by: Rui Miguel Silva Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/3] corstone1000: add compressed kernel support

2023-10-31 Thread Tom Rini
On Thu, Oct 26, 2023 at 01:50:49PM +0100, abdellatif.elkhl...@arm.com wrote: > From: Abdellatif El Khlifi > > unzip the kernel before executing it > > The Corstone-1000 kernel has become too large to fit in the available > storage. Switching to a compressed kernel avoids the problem, but > req

Re: [PATCH 3/3] board: developerbox: update flash rawwrite binary size

2023-10-31 Thread Tom Rini
On Wed, Oct 25, 2023 at 03:51:03PM +0900, Masahisa Kojima wrote: > Current documentation limits the firmware size to 1.5MB. > When the fTPM and StandaloneMM-based RPMB secure storage is > enabled, firmware size is bigger than that size. > Let's specify the A/B update bank size(4MB) for flash > raw

Re: [PATCH 2/3] board: developerbox: update old NOR flash layout build instruction

2023-10-31 Thread Tom Rini
On Wed, Oct 25, 2023 at 03:51:02PM +0900, Masahisa Kojima wrote: > v2023.07 is the last version supporting old NOR flash layout > by default. The later versions of U-Boot, Developerbox is > configured to enable A/B update and new NOR Flash layout > by default. > This commit updates the documentati

Re: [PATCH 1/3] board: developerbox: remove obsolete NOR flash layout definition

2023-10-31 Thread Tom Rini
On Wed, Oct 25, 2023 at 03:51:01PM +0900, Masahisa Kojima wrote: > There are two kinds of NOR flash layout for the Developerbox. > Capsule update for the old layout is no longer available since > it has small capacity for secure world images and can not > house the TA such as fTPM. > This commit r

Re: [RESEND PATCH 1/1] clk: ti: k3-pll: Add calibration support for non fractional mode

2023-10-31 Thread Tom Rini
On Mon, Oct 23, 2023 at 08:35:46AM -0500, Vishal Mahaveer wrote: > PLL calibration needs to be enabled when operating in non fractional > mode. Add the sequence to do a fast calibration when using PLL > in this mode. > > Signed-off-by: Vishal Mahaveer Applied to u-boot/master, thanks! -- Tom

Re: [PATCH v4 4/4] configs: nuvoton: npcm8xx: Disable CONFIG_SPI_FLASH_USE_4K_SECTORS

2023-10-31 Thread Tom Rini
On Mon, Oct 23, 2023 at 03:02:25PM +0800, Jim Liu wrote: > disable this config to improve flash program time > > Signed-off-by: Jim Liu > > Changes for v2: >- add commit message > Changes for v3: >- no change > Changes for v4: >- no change Applied to u-boot/master, thanks! -- Tom

Re: [PATCH v4 3/4] board: nuvuton: arbel: Fix incorrect ram size

2023-10-31 Thread Tom Rini
On Mon, Oct 23, 2023 at 03:02:24PM +0800, Jim Liu wrote: > 1. Fix incorrect ram size of 4GB dram with ECC enabled > 2. Fix wrong place to set dram bank size >- The dram bank size should be set in dram_init_banksize >- Dram_init should not access gd->bd because the board info > struct

Re: [PATCH v4 2/4] configs: npcm: Support more uart baud rate

2023-10-31 Thread Tom Rini
On Mon, Oct 23, 2023 at 03:02:23PM +0800, Jim Liu wrote: > Add uart baud rate table to arbel(npcm8xx) and poleg(npcm7xx) > > Signed-off-by: Jim Liu > > Changes for v2: >- Add commit message > Changes for v3: >- Modify CONFIG_SYS_BAUDRATE_TABLE > Changes for v4: >- No change Applied

Re: [PATCH v4 1/4] pinctrl: npcm8xx: Add name for gpio function

2023-10-31 Thread Tom Rini
On Mon, Oct 23, 2023 at 03:02:22PM +0800, Jim Liu wrote: > GPIO function name is needed in the debug log > > Signed-off-by: Jim Liu > > Changes for v2: >- add commit message > Changes for v3: >- no change > Changes for v4: >- no change Applied to u-boot/master, thanks! -- Tom s

Re: [PATCH 2/2] configs: orangepi-5-plus-rk3588: Build SPI image by default

2023-10-31 Thread Slawomir Stepien
On paź 31, 2023 17:49, Jonas Karlman wrote: > On 2023-10-31 17:13, Slawomir Stepien wrote: > > Flashing this image to the on-board flash is useful when you want to > > start Linux from a medium (e.g. nvme) without flashing u-boot elements > > to it. > > > > Signed-off-by: Slawomir Stepien > > ---

[PATCH 2/2] configs: orangepi-5-plus-rk3588: Build SPI image by default

2023-10-31 Thread Slawomir Stepien
Flashing this image to the on-board flash is useful when you want to start Linux from a medium (e.g. nvme) without flashing u-boot elements to it. Signed-off-by: Slawomir Stepien --- configs/orangepi-5-plus-rk3588_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/orangepi-5-p

[PATCH 1/2] rockchip: rk3588: Add SPINAND as boot device

2023-10-31 Thread Slawomir Stepien
Mark the flash@0 as BROM_BOOTSOURCE_SPINAND. Fixes use of same-as-spl in u-boot,spl-boot-order prop on Orange Pi 5 Plus. Signed-off-by: Slawomir Stepien --- arch/arm/mach-rockchip/rk3588/rk3588.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-rockchip/rk3588/rk3588.c b/arch/a

Re: [PATCH 2/2] configs: orangepi-5-plus-rk3588: Build SPI image by default

2023-10-31 Thread Jonas Karlman
On 2023-10-31 17:13, Slawomir Stepien wrote: > Flashing this image to the on-board flash is useful when you want to > start Linux from a medium (e.g. nvme) without flashing u-boot elements > to it. > > Signed-off-by: Slawomir Stepien > --- > configs/orangepi-5-plus-rk3588_defconfig | 1 + > 1 fi

Re: [PATCH 1/2] rockchip: rk3588: Add SPINAND as boot device

2023-10-31 Thread Jonas Karlman
On 2023-10-31 17:13, Slawomir Stepien wrote: > Mark the flash@0 as BROM_BOOTSOURCE_SPINAND. > Fixes use of same-as-spl in u-boot,spl-boot-order prop on Orange Pi 5 > Plus. > > Signed-off-by: Slawomir Stepien > --- > arch/arm/mach-rockchip/rk3588/rk3588.c | 1 + > 1 file changed, 1 insertion(+) >

Re: [PATCH v4] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-31 Thread Fabio Estevam
On Tue, Oct 31, 2023 at 9:20 AM Marek Vasut wrote: > > Add extension to the 'mmc' command to read out the card registers. > Currently, only the eMMC OCR/CID/CSD/EXTCSD/RCA/DSR register are > supported. A register value can either be displayed or read into > an environment variable. > > Tested-by:

Re: [PATCH] MAINTAINERS: update Qualcomm maintainer

2023-10-31 Thread Neil Armstrong
On 31/10/2023 16:19, Caleb Connolly wrote: As Ramon has been inactive for some time now, add myself and Neil Armstrong to maintain Qualcomm efforts going forwards. Signed-off-by: Caleb Connolly --- I greatly appreciate the work done by Ramon Fried in keeping Qualcomm support alive in U-Boot the

Re: [PATCH v7 2/2] schemas: Add some common reserved-memory usages

2023-10-31 Thread Simon Glass
Hi Rob, On Mon, 16 Oct 2023 at 15:54, Simon Glass wrote: > > Hi Rob, > > On Mon, 16 Oct 2023 at 10:50, Rob Herring wrote: > > > > On Fri, Oct 13, 2023 at 4:09 PM Simon Glass wrote: > > > > > > Hi Rob, > > > > > > On Fri, 13 Oct 2023 at 13:42, Rob Herring wrote: > > > > > > > > On Fri, Oct 6, 2

Re: [RFC v2 1/2] riscv: allow resume after exception

2023-10-31 Thread Xiang W
Thank you, I understand. Regards, Xiang W Heinrich Schuchardt 于2023年10月31日周二 20:09写道: > > On 10/31/23 09:53, Xiang W wrote: > > setjmp can be called in set_resume. > > Unfortunately this is not possible. A longjmp buffer only stores > register values and not the stack content. > > Let's assume t

[PATCH] MAINTAINERS: update Qualcomm maintainer

2023-10-31 Thread Caleb Connolly
As Ramon has been inactive for some time now, add myself and Neil Armstrong to maintain Qualcomm efforts going forwards. Signed-off-by: Caleb Connolly --- I greatly appreciate the work done by Ramon Fried in keeping Qualcomm support alive in U-Boot the last few years. However it's clear that he h

Re: [PATCH 2/3] configs: rzg2_beacon: Realign ENV location and offset

2023-10-31 Thread Adam Ford
On Wed, Oct 25, 2023 at 6:13 PM Adam Ford wrote: > > The ENV size and offset were changed to different > values in Beacon's downstream release. Change them to the > same values as the downstream for consistent behavior. > > Signed-off-by: Adam Ford Marek, I know you had some feedback on other

Re: [PATCH] dfu: add CONFIG_DFU_NAME_MAX_SIZE configuration

2023-10-31 Thread Mattijs Korpershoek
Hi, On Mon, 20 Jun 2022 20:13:54 +0900, Jaehoon Chung wrote: > Add CONFIG_DFU_NAME_MAX_SIZE to change the proper size. > If name is longer than default size, it can do wrong behavior during updating > image. So it need to change the proper maximum size. > > This patch is proviced the solution to

Re: [PATCH] dfu: add CONFIG_DFU_NAME_MAX_SIZE configuration

2023-10-31 Thread Mattijs Korpershoek
Hi Jaehoon, Thank you for your patch. On lun., juin 20, 2022 at 20:13, Jaehoon Chung wrote: > Add CONFIG_DFU_NAME_MAX_SIZE to change the proper size. > If name is longer than default size, it can do wrong behavior during updating > image. So it need to change the proper maximum size. > > This p

[PATCH] arm64: zynqmp: Comment all smmu entries

2023-10-31 Thread Michal Simek
SMMU is disabled by default and not all masters can be enabled at the same time because of limited number of entries. That's why comment all iommu properties but keep them for reference in DT. In XEN case they should be added back and Xen should have SMMU enabled by default. Signed-off-by: Michal

[PATCH 6/6] pinctrl: qcom: rename msm -> qcom

2023-10-31 Thread Caleb Connolly
The "MSM" naming hasn't been correct for quite a while now, in line with Linux lets rename all these msm_* functions to qcom_* as well as ensure namespacing is consistent across the pinctrl and GPIO drivers. Signed-off-by: Caleb Connolly --- configs/dragonboard410c_defconfig| 2 +- conf

[PATCH 5/6] pinctrl: qcom: move ipq4019 driver from mach-ipq40xx

2023-10-31 Thread Caleb Connolly
Drop the duplicated pinctrl-snapdragon driver from mach-ipq40xx and add it to drivers/pinctrl/qcom. Signed-off-by: Caleb Connolly --- arch/arm/Kconfig | 1 + arch/arm/mach-ipq40xx/Makefile | 8 - arch/arm/mach-ipq40xx/pinctrl-snapdragon.c

[PATCH 4/6] msm_qcom: use unsigned int

2023-10-31 Thread Caleb Connolly
Replaces the uses of "unsigned" with "unsigned int". Signed-off-by: Caleb Connolly --- drivers/gpio/msm_gpio.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/msm_gpio.c b/drivers/gpio/msm_gpio.c index 7a09abdafb2e..7d01fecf46f2 100644 --- a/drivers/gpio/

[PATCH 3/6] pinctrl: qcom: handle reserved ranges

2023-10-31 Thread Caleb Connolly
Some Qualcomm boards feature reserved ranges of pins which are protected by firmware. Attempting to read or write any registers associated with these pins results the board resetting. Add support for parsing these ranges from devicetree and ensure that the pinctrl and GPIO drivers don't try to int

[PATCH 1/6] pinctrl: qcom: move out of mach-snapdragon

2023-10-31 Thread Caleb Connolly
Move the Qualcomm pinctrl drivers out of mach-snapdragon and over to the rest of the pinctrl drivers, adjust the drivers so that support for each platform can be enabled/disabled individually and introduce platform specific configuration options. Signed-off-by: Caleb Connolly --- arch/arm/mach-s

[PATCH 2/6] pinctrl: qcom: make compatible with linux DTs

2023-10-31 Thread Caleb Connolly
The pinctrl and GPIO drivers are currently heavily incompatible with upstream. Most Qualcomm pinctrl blocks feature "tiles" of pins, each at it's own address. Introduce support for these by allowing the soc driver to specify per-pin register offsets similarly to the Linux driver. Adjust the GPIO d

[PATCH 0/6] arm: mach-snapdragon: Qualcomm pinctrl driver cleanup

2023-10-31 Thread Caleb Connolly
This series moves the Qualcomm pinctrl drivers from mach-snapdragon and mach-ipq40xx to drivers/pinctrl/qcom. It then makes the necessary changes to enable compatibility with Linux DTs. The pinctrl hardware on most Qualcomm platforms is made up of "tiles", these are just banks of pins at different

Re: Fwd: New Defects reported by Coverity Scan for Das U-Boot

2023-10-31 Thread Abdellatif El Khlifi
Hi Tom, > > > > > > > > > > *** CID 464361: Control flow issues (DEADCODE) > > > > > /drivers/firmware/arm-ffa/arm-ffa-uclass.c: 148 in > > > > > ffa_print_error_log() > > > > > 142 > > > >

Re: [PATCH] dfu: mmc: Add support for exposing whole mmc device

2023-10-31 Thread Mattijs Korpershoek
Hi, On Sun, 29 Oct 2023 23:37:22 +0100, Marek Vasut wrote: > Add support for exposing the whole mmc device by setting the 'size' > parameter to 0. This can be useful in case it is not clear what the > total device size is up front. Update the documentation accordingly. > > Thanks, Applied to ht

Re: [PATCH 3/6] board: ti: am62x: Avoid overwriting reserve mem for AM62 SIP

2023-10-31 Thread Tom Rini
On Tue, Oct 31, 2023 at 06:58:06PM +0530, Nitin Yadav wrote: > AM62 SIP has 512MB RAM. But the top of the RAM is reserved for > TF-A and OPTEE. U-Boot relocating there would cause overwriting > of these reserved regions. Fix this by limit U-Boot to first > 64MB of RAM for all boards with 512MB. >

Re: [PATCH] fastboot: fix CRC32 chunk size checking

2023-10-31 Thread Mattijs Korpershoek
Hi, On Mon, 25 Sep 2023 12:37:15 +0200, Wojciech Nizinski wrote: > genimage create android-sparse file with CRC32 chunk at end. When > U-Boot's fastboot receives this chunk it returns error message: > `Fail Bogus chunk size for chunk type Dont Care` > > According to reference implementation of An

[PATCH 2/2] doc: board: phytec: Add phyCORE-AM62x

2023-10-31 Thread Wadim Egorov
Add documentation for PHYTEC phyCORE-AM62x SoM. Signed-off-by: Wadim Egorov --- doc/board/phytec/index.rst | 1 + doc/board/phytec/phycore-am62x.rst | 125 + doc/board/ti/k3.rst| 1 + 3 files changed, 127 insertions(+) create mode 100644 d

[PATCH 6/6] doc: ti: Add AM62SIP SK Board information

2023-10-31 Thread Nitin Yadav
Add link for AM62SIP SK in platform information. AM62SIP SK has config fragment for R5 SPL to build U-boot, Adding information to update UBOOT_CFG_CORTEXR with am62sip fragment over am62x defconfig. Signed-off-by: Nitin Yadav --- doc/board/ti/am62x_sk.rst | 7 +++ 1 file changed, 7 insertion

[PATCH 5/6] board: ti: am62x: Add am62xsip_sk_r5.config defconfig fragment

2023-10-31 Thread Nitin Yadav
Add config fragments am62xsip_sk_r5.config for R5 configuration. Signed-off-by: Nitin Yadav --- board/ti/am62x/am62xsip_sk_r5.config | 5 + 1 file changed, 5 insertions(+) create mode 100644 board/ti/am62x/am62xsip_sk_r5.config diff --git a/board/ti/am62x/am62xsip_sk_r5.config b/board/ti/

[PATCH 2/6] ram: k3-ddrss: k3-ddrss: Fix updating ddr size with ecc off

2023-10-31 Thread Nitin Yadav
When DDR ECC is off (ecc_reserved_space = 0) k3_ddrss_ddr_fdt_fixup() doesn't update the DDR size in the memory node of DT. Fix this by dropping check for ecc_reserved_space to be non zero. This allows R5 SPL to fixup A53 SPL DT with right DDR size as discovered during DDR init or based on R5 SPL

[PATCH 1/6] arm: dts: k3-am62x-sip-ddr-lp4-50-800: Add DDR configuration for AM62-SIP

2023-10-31 Thread Nitin Yadav
AM62x SIP SKEVM has DDR type LPDDR4. Add DDR configuration for AM62x SK EVM in k3-am62x-sip-ddr-lp4-50-800.dtsi Signed-off-by: Bryan Brattlof Signed-off-by: Nitin Yadav --- arch/arm/dts/k3-am62x-sip-ddr-lp4-50-800.dtsi | 2191 + 1 file changed, 2191 insertions(+) create mode 10

[PATCH 4/6] arm: dts: Add support for AM62x SIP SKEVM at R5 SPL

2023-10-31 Thread Nitin Yadav
The AM62x SIP SKEVM board has different type of DDR than AM62x SK board. This requires different r5 SPL device tree. These dt changes add support for AM62x SIP SKEVM at R5 SPL. SK-AM62-SIP: https://www.ti.com/tool/download/SPRR482 Signed-off-by: Nitin Yadav --- arch/arm/dts/Makefile

[PATCH 3/6] board: ti: am62x: Avoid overwriting reserve mem for AM62 SIP

2023-10-31 Thread Nitin Yadav
AM62 SIP has 512MB RAM. But the top of the RAM is reserved for TF-A and OPTEE. U-Boot relocating there would cause overwriting of these reserved regions. Fix this by limit U-Boot to first 64MB of RAM for all boards with 512MB. Signed-off-by: Vignesh Raghavendra Signed-off-by: Nitin Yadav --- bo

[PATCH 0/6] Add AM62SIP SK support

2023-10-31 Thread Nitin Yadav
This series adds support of AM62SIP SK board. The AM62SIP SK is different from AM62x SK in terms of DDR Memory size which is reduced to 512 M and embedded as part of SoC. Note: - Please apply this series after applying AM62x LP SK support series. (https://lore.kernel.org/all/20231030110138.134

Re: [PATCH v2 4/4] doc: ti: Add AM62x LP SK Board information

2023-10-31 Thread Dhruva Gole
Hi, On Oct 30, 2023 at 16:31:38 +0530, Nitin Yadav wrote: > Add link for AM62x LP SK in platform information. AM62x LP SK > has config fragments to build U-boot, Adding information to > update UBOOT_CFG_CORTEXR with lpsk fragments over am62x defconfig. > > Signed-off-by: Nitin Yadav > --- > doc

[PATCH v2 5/5] video: Fill video handoff in video post probe

2023-10-31 Thread Devarsh Thakkar
Fill video handoff fields in video_post_probe as at this point we have full framebuffer related information. Also fill all the fields available in video hand-off struct as those were missing earlier and u-boot framework expects them to be filled for some of the functionalities. Reported-by: Simon

[PATCH v2 4/5] video: Skip framebuffer reservation if already reserved

2023-10-31 Thread Devarsh Thakkar
Skip framebufer reservation if it was already reserved from previous stage and whose information was passed using a bloblist. Signed-off-by: Devarsh Thakkar Reviewed-by: Simon Glass --- V2: - Add debug prints - Fix commenting style --- drivers/video/video-uclass.c | 12 1 file chan

[PATCH v2 3/5] common/board_f: Catch bloblist before starting resevations

2023-10-31 Thread Devarsh Thakkar
Start reservations needed for init sequence only after catching bloblists from previous stage. This is to avoid catching bloblists in the middle causing gaps while u-boot is reserving. Adjust the relocaddr as per video hand-off information received from previous stage so that further reservations

[PATCH v2 2/5] board: ti: am62x: evm: Remove video_setup from spl_board_init

2023-10-31 Thread Devarsh Thakkar
Remove video_setup from evm_init sequence since video memory is getting called at an earlier place to make sure video memory is reserved at the end of RAM. Suggested-by: Simon Glass Signed-off-by: Devarsh Thakkar --- V2: No change --- board/ti/am62x/evm.c | 18 -- 1 file change

[PATCH v2 1/5] arm: mach-k3: common: Reserve video memory from end of the RAM

2023-10-31 Thread Devarsh Thakkar
Add function spl_reserve_video which is a wrapper around video_reserve to setup video memory and update the relocation address pointer. Setup video memory before page table reservation so that framebuffer memory gets reserved from the end of RAM. This is as per the new policy being discussed for

[PATCH v2 0/5] Move video memory reservation for SPL to the

2023-10-31 Thread Devarsh Thakkar
Move video memory reservation for SPL at end of RAM so that it does not interefere with reservations for next stage so that the next stage need not have holes in between for passed regions and instead it can maintain continuity in reservations. Also catch the bloblist before starting reservations

Re: [UBOOT PATCH v2] test/py: net: Add a TFTP put test

2023-10-31 Thread Tom Rini
On Tue, Oct 31, 2023 at 06:22:29PM +0530, Love Kumar wrote: > Execute tftpput command for uploading files to a server and validate its > size & CRC32. > > Signed-off-by: Love Kumar > --- > Changes in v2: > - Add marking for cmd_tftpput config > --- > test/py/tests/test_net.py | 72 +

Re: [PATCH 1/2] riscv: dts: jh7110: Add a gpio-restart node

2023-10-31 Thread Tom Rini
On Tue, Oct 31, 2023 at 05:24:38PM +0900, Jaehoon Chung wrote: > Add gpio-restart node to do reset. > > Before applied this patch, System Reset Extension doesn't appear with > sbi command. > > OpenSBI 1.3 > Machine: > Vendor ID 489 > Architecture ID 8007 > Implementation ID 421

[UBOOT PATCH v2] test/py: net: Add dhcp abort test

2023-10-31 Thread Love Kumar
Abort the dhcp request in the middle by pressing ctrl + c on u-boot prompt and validate the abort status. Signed-off-by: Love Kumar --- Changes in v2: - Mark CMD_MII command dependency --- test/py/tests/test_net.py | 45 +++ 1 file changed, 45 insertions(+) d

[PATCH v3 2/2] rng: Provide a RNG based on the RISC-V Zkr ISA extension

2023-10-31 Thread Heinrich Schuchardt
The Zkr ISA extension (ratified Nov 2021) introduced the seed CSR. It provides an interface to a physical entropy source. A RNG driver based on the seed CSR is provided. It depends on mseccfg.sseed being set in the SBI firmware. Signed-off-by: Heinrich Schuchardt Reviewed-by: Leo Yu-Chi Liang -

[PATCH v3 1/2] riscv: allow resume after exception

2023-10-31 Thread Heinrich Schuchardt
If CSRs like seed are readable by S-mode, may not be determinable by S-mode. For safe driver probing allow to resume via a longjmp after an exception. Signed-off-by: Heinrich Schuchardt --- v3: Add API documentation v2: New patch --- arch/riscv/lib/interrupts.c | 13 +++

[PATCH v3 0/2] rng: Provide a RNG based on the RISC-V Zkr ISA extension

2023-10-31 Thread Heinrich Schuchardt
The Zkr ISA extension (ratified Nov 2021) introduced the seed CSR. It provides an interface to a physical entropy source. A RNG driver based on the seed CSR is provided. It depends on mseccfg.sseed being set in the SBI firmware. If the seed CSR readable, is not determinable by S-mode without risk

[UBOOT PATCH v2] test/py: net: Add a TFTP put test

2023-10-31 Thread Love Kumar
Execute tftpput command for uploading files to a server and validate its size & CRC32. Signed-off-by: Love Kumar --- Changes in v2: - Add marking for cmd_tftpput config --- test/py/tests/test_net.py | 72 +++ 1 file changed, 72 insertions(+) diff --git a/test

Re: [PATCH v3] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-31 Thread Marek Vasut
On 10/31/23 13:06, Fabio Estevam wrote: Hi Marek, On Tue, Oct 31, 2023 at 7:16 AM Marek Vasut wrote: +config CMD_MMC_REG + bool "Enable support for reading card registers in the mmc command" + depends on CMD_MMC + default n "default n" could be dropped, since it is already

[PATCH v4] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-31 Thread Marek Vasut
Add extension to the 'mmc' command to read out the card registers. Currently, only the eMMC OCR/CID/CSD/EXTCSD/RCA/DSR register are supported. A register value can either be displayed or read into an environment variable. Tested-by: Jaehoon Chung Reviewed-by: Jaehoon Chung Signed-off-by: Marek V

Re: [RFC v2 1/2] riscv: allow resume after exception

2023-10-31 Thread Heinrich Schuchardt
On 10/31/23 09:53, Xiang W wrote: setjmp can be called in set_resume. Unfortunately this is not possible. A longjmp buffer only stores register values and not the stack content. Let's assume that setjmp() is moved into set_resume(): Let a function call set_resume(). The caller's address wil

Re: [PATCH v2 4/4] doc: ti: Add AM62x LP SK Board information

2023-10-31 Thread Nishanth Menon
$subject missing am62x_sk On 16:31-20231030, Nitin Yadav wrote: > Add link for AM62x LP SK in platform information. AM62x LP SK > has config fragments to build U-boot, Adding information to > update UBOOT_CFG_CORTEXR with lpsk fragments over am62x defconfig. > > Signed-off-by: Nitin Yadav > ---

Re: [PATCH v3] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-31 Thread Fabio Estevam
Hi Marek, On Tue, Oct 31, 2023 at 7:16 AM Marek Vasut wrote: > +config CMD_MMC_REG > + bool "Enable support for reading card registers in the mmc command" > + depends on CMD_MMC > + default n "default n" could be dropped, since it is already the default.

Re: [PATCH v2 2/4] arm: dts: Add support for AM62x LP SK

2023-10-31 Thread Nishanth Menon
On 16:31-20231030, Nitin Yadav wrote: > The AM62x LP SK board is similar to the AM62x SK board, > but has some significant changes that requires different > device tree. > > The differences are mainly: > - AM62x SoC in the AMC package that meets AECQ100 automotive standard. > - LPDDR4 versus DDR4

Re: [PATCH 1/3] sunxi: board: simplify early PMIC setup conditions

2023-10-31 Thread Andre Przywara
On Tue, 31 Oct 2023 15:42:54 +0900 "Jaehoon Chung" wrote: Hi Jaehoon, > Hi, > > > -Original Message- > > From: Andre Przywara > > Sent: Sunday, October 22, 2023 6:19 AM > > To: Jernej Škrabec > > Cc: Jagan Teki ; Jaehoon Chung > > ; Samuel Holland > > ; SASANO Takayoshi ; Mikhail >

Re: [PATCH 1/1] board: sifive: unmatched: move kernel load address to 0x80200000

2023-10-31 Thread Tom Rini
On Tue, Oct 31, 2023 at 03:56:45PM +0800, Yong-Xuan Wang wrote: > Hi Tom, > > 0x8020 comes from the result of the relocated_addr in booti_setup() > on HiFive Unmatched board. If we load the Kernel Image to this address, > it will not be moved. Currently one of the first two 8-byte of RISC-V >

Re: [PATCH v2 1/4] arm: dts: Refactor common dtsi file for R5 and A53 SPL

2023-10-31 Thread Nishanth Menon
On 16:31-20231030, Nitin Yadav wrote: [...] > --- > diff --git a/arch/arm/dts/k3-am625-sk-u-boot.dtsi > b/arch/arm/dts/k3-am625-sk-u-boot.dtsi > index c1685bc9ca..1a5238fb11 100644 > --- a/arch/arm/dts/k3-am625-sk-u-boot.dtsi > +++ b/arch/arm/dts/k3-am625-sk-u-boot.dtsi > @@ -1,102 +1,12 @@ > //

Re: [PATCH 3/3] arm64: boot: Support Flat Image Tree

2023-10-31 Thread Tom Rini
On Tue, Oct 31, 2023 at 04:03:18PM +0900, Masahiro Yamada wrote: > On Tue, Oct 31, 2023 at 1:12 AM Tom Rini wrote: > > > > On Mon, Oct 30, 2023 at 03:35:34PM +, Russell King (Oracle) wrote: > > > On Sun, Oct 29, 2023 at 05:46:12AM +1300, Simon Glass wrote: > > > > Hi Masahiro, > > > > > > > >

Re: [PATCH v2] cmd: mmc: Add mmc reg read command for reading card registers

2023-10-31 Thread Marek Vasut
On 10/31/23 09:26, Lothar Waßmann wrote: Hi, On Tue, 10 Oct 2023 14:47:28 +0200 Marek Vasut wrote: Add extension to the 'mmc' command to read out the card registers. Currently, only the eMMC OCR/CID/CSD/EXTCSD/RCA/DSR register are supported. A register value can either be displayed or read into

  1   2   >