[PATCH] ARM: dts: colibri-imx6ull: fix mac address passing

2021-09-23 Thread Francesco Dolcini
colibri-imx6ull ethernet device is fec2, while the optional secondary ethernet is fec1, update the ethernet aliases in the .dts file so that ethaddr is set to fec2 and eth1addr to fec1. Without this change the ethernet interfaces have a different mac address between Linux and U-Boot. Signed-off-b

[PATCH] rtc: rv8803: add epson,rx8803 and epson,rx8900 compatible

2021-09-23 Thread Heiko Thiery
The RX8803 and RX8900 register layouts are compatible with the one of the RV8803. So add these to the compatibles. Signed-off-by: Heiko Thiery --- The RX8900 RTC is placed on the imx8mm-kontron-n801x-s board and was tested there. drivers/rtc/rv8803.c | 2 ++ 1 file changed, 2 insertions(+) dif

Re: [PATCH] rtc: rv8803: add epson, rx8803 and epson, rx8900 compatible

2021-09-23 Thread Michael Walle
Am 23. September 2021 10:10:27 MESZ schrieb Heiko Thiery : >The RX8803 and RX8900 register layouts are compatible with the one of >the RV8803. So add these to the compatibles. > >Signed-off-by: Heiko Thiery >--- >The RX8900 RTC is placed on the imx8mm-kontron-n801x-s board and was tested >there.

Re: [PATCH v4 0/2] mtd: spi: nor: force mtd name to "nor%d"

2021-09-23 Thread Patrick DELAUNAY
Hi, On 9/23/21 3:32 AM, Marek Vasut wrote: On 9/22/21 10:00 PM, Tom Rini wrote: On Wed, Sep 22, 2021 at 09:56:26PM +0200, Marek Vasut wrote: On 9/22/21 9:46 PM, Tom Rini wrote: On Wed, Sep 22, 2021 at 09:24:24PM +0200, Marek Vasut wrote: I am talking about using nor%d in MTDIDS in U-Boot UBI

[PATCH] arm: a37xx: pci: Increase PCIe IO size from 64 KiB to 1 MiB

2021-09-23 Thread Pali Rohár
Commit 079b35a26111 ("arm: a37xx: pci: Increase PCIe MEM size from 16 MiB to 127 MiB") increased size of PCIe MEM to 127 MiB, which is the maximal possible size for allocated 128 MiB PCIe window. PCIe IO size in that commit was unchanged. Armada 3720 PCIe controller supports 32-bit IO space mappin

[PATCH 1/1] doc: add system reset to API documentation

2021-09-23 Thread Heinrich Schuchardt
Complete the Sphinx documentation in include/sysreset.h Add the include to the generated HTML documentation of the U-Boot API. Signed-off-by: Heinrich Schuchardt --- doc/api/index.rst| 1 + doc/api/sysreset.rst | 7 ++ include/sysreset.h | 53 -

[PATCH v2] rtc: rv8803: add epson,rx8803 and epson,rx8900 compatible

2021-09-23 Thread Heiko Thiery
The RX8803 and RX8900 register layouts are compatible with the one of the RV8803. So add these to the compatibles. The same compatible strings are used and approved in linux kernel. Signed-off-by: Heiko Thiery Reviewed-by: Michael Walle --- The RX8900 RTC is placed on the imx8mm-kontron-n801x-s

Re: [PATCH v2 1/3] efi_loader: add SMBIOS table measurement

2021-09-23 Thread Ilias Apalodimas
Hi Simon, On Wed, 22 Sept 2021 at 19:19, Simon Glass wrote: > > Hi Masahisa, > > On Tue, 21 Sept 2021 at 01:17, Masahisa Kojima > wrote: > > > > TCG PC Client spec requires to measure the SMBIOS > > table that contain static configuration information > > (e.g. Platform Manufacturer Enterprise Nu

SPL_DM and SPL 4K

2021-09-23 Thread Oleh Kravchenko
Hello, U-Boot community! I've started porting U-Boot to the new SoC and have a few questions about how to do it properly. Could you please give advice or point me to examples where U-Boot provides tiny SPL? Does it make sense to use SPL_DM if IPL limits the size of SPL up to 4K?

[PATCH] Makelfile: clean target should remove itb*

2021-09-23 Thread Heinrich Schuchardt
In the U-Boot directory files itb.fit.fit, itb.fit.itb, itb.map are created (e.g. for sifive_unmatched_defconfig). These should be removed by the clean target. Signed-off-by: Heinrich Schuchardt --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile

u-boot.nand oob size

2021-09-23 Thread Ivan Riabtsov
I have a system on an mx28evk chip, I have two types of nand memory, one with 64 bytes, the other 128 bytes, I am building a buildroot, I need a universal firmware for both types of memory, I found how to patch uboot so that it works with both memory types, but buildroot has an option for u-boot.na

Re: [PATCH] ARM: dts: colibri-imx6ull: fix mac address passing

2021-09-23 Thread Tom Rini
On Thu, Sep 23, 2021 at 09:55:21AM +0200, Francesco Dolcini wrote: > colibri-imx6ull ethernet device is fec2, while the optional secondary > ethernet is fec1, update the ethernet aliases in the .dts file so that > ethaddr is set to fec2 and eth1addr to fec1. > > Without this change the ethernet i

Re: [PATCH] ARM: dts: colibri-imx6ull: fix mac address passing

2021-09-23 Thread Francesco Dolcini
On Thu, Sep 23, 2021 at 07:36:34AM -0400, Tom Rini wrote: > On Thu, Sep 23, 2021 at 09:55:21AM +0200, Francesco Dolcini wrote: > > > colibri-imx6ull ethernet device is fec2, while the optional secondary > > ethernet is fec1, update the ethernet aliases in the .dts file so that > > ethaddr is set t

Re: [PATCH 1/2] mmc: add helper to query max enhanced part size

2021-09-23 Thread Jaehoon Chung
Hi, On 9/22/21 9:30 PM, Matthias Schiffer wrote: > From: Markus Niebel > > This helper will be used later on in an extension of the mmc > command. > > Signed-off-by: Markus Niebel > Signed-off-by: Matthias Schiffer > --- > drivers/mmc/mmc.c | 38 ++ > incl

Re: [PATCH] ARM: dts: colibri-imx6ull: fix mac address passing

2021-09-23 Thread Tom Rini
On Thu, Sep 23, 2021 at 01:50:41PM +0200, Francesco Dolcini wrote: > On Thu, Sep 23, 2021 at 07:36:34AM -0400, Tom Rini wrote: > > On Thu, Sep 23, 2021 at 09:55:21AM +0200, Francesco Dolcini wrote: > > > > > colibri-imx6ull ethernet device is fec2, while the optional secondary > > > ethernet is fe

Re: [PATCH 2/2] cmd/mmc: add subcommand to query max enhanced partition size

2021-09-23 Thread Jaehoon Chung
On 9/22/21 9:30 PM, Matthias Schiffer wrote: > From: Markus Niebel > > The new command prints the sector count and size in a human-readable > format and sets an environment variable for scripted handling. The > variable value is set in decimal to match what the 'mmc hwpartition' > command expects

Re: [PATCH] drivers: pmic: Add sysreset driver to da9063 pmic device

2021-09-23 Thread Jaehoon Chung
Hi Alexandre, On 9/21/21 12:48 AM, Alexandre Ghiti wrote: > This pmic device is present on the SiFive Unmatched board and this > new driver adds the possibility to reset it. Is there any patch before applying this? I cant' apply this from patchwork for checking. If i missed something, let me know

Re: [PATCH] Makelfile: clean target should remove itb*

2021-09-23 Thread Bin Meng
Hi Heinrich, On Thu, Sep 23, 2021 at 6:12 PM Heinrich Schuchardt wrote: > > In the U-Boot directory files itb.fit.fit, itb.fit.itb, itb.map are > created (e.g. for sifive_unmatched_defconfig). These should be removed by > the clean target. > > Signed-off-by: Heinrich Schuchardt > --- > Makefile

Re: [PATCH 1/2] mmc: add helper to query max enhanced part size

2021-09-23 Thread Matthias Schiffer
On Thu, 2021-09-23 at 20:58 +0900, Jaehoon Chung wrote: > Hi, > > On 9/22/21 9:30 PM, Matthias Schiffer wrote: > > From: Markus Niebel > > > > This helper will be used later on in an extension of the mmc > > command. > > > > Signed-off-by: Markus Niebel > > Signed-off-by: Matthias Schiffer >

Re: Subject: [PATCH 1/6 v3] serial: qcom: add support for GENI serial driver

2021-09-23 Thread Tom Rini
Hey, For the series, can you please repost all of the patches, and check your git send-email settings? Looking at things over in patchwork, the spacing is mangled (so they won't apply cleanly) and I can't retrieve the patches from patchwork either, as they show up as empty. Thanks! -- Tom si

uboot oob size

2021-09-23 Thread Ivan Riabtsov
addition to the question: I have a system on an mx28evk chip, I have two types of nand memory, one with 64 bytes, the other 128 bytes, I am building a buildroot, I need a universal firmware for both types of memory, I found how to patch uboot so that it works with both memory types, but buildroot

[RFC v2 0/2] mtd: Support slc-mode for Toshiba TC58TEG5DCLTA00

2021-09-23 Thread Chris Morgan
From: Chris Morgan Add support for slc-mode implemented in Linux for the Toshiba TC58TEG5DCLTA00 NAND flash found on the NTC CHIP. This requires the addition of a paired-pages scheme, a new parameter for MTD partitions of slc-mode, and setting the correct paired-pages scheme for the TC58TEG5DCLTA

[RFC v2 2/2] mtd: Add pairing info for Toshiba TC58TEG5DCLTA00 NAND

2021-09-23 Thread Chris Morgan
From: Chris Morgan Add pairing info for the Toshiba TC58TEG5DCLTA00 NAND so that we may utilize slc-mode emulation for enhanced reliability and compatibility with upstream Linux. Signed-off-by: Chris Morgan --- drivers/mtd/nand/raw/nand_base.c | 9 + 1 file changed, 9 insertions(+) di

[RFC v2 1/2] mtd: Add support for Linux slc-mode for MLC NAND

2021-09-23 Thread Chris Morgan
From: Chris Morgan Add support for setting the slc-mode parameter for a given MLC NAND device. This allows a given device to write only to the first set of paried pages to help reduce data corruption and increase reliability of the NAND. I haven't tested these patches extensively yet, but thus f

[PATCH 0/1] mx7ulp: Update wdog disable sequence

2021-09-23 Thread Oleksandr Suvorov
This patch was originally picked up from the NXP repo and improved in Foundries.IO. It is needed to proper work of watchdog on iMX7ULP. Ye Li (1): mx7ulp: Update wdog disable sequence arch/arm/mach-imx/mx7ulp/soc.c | 31 --- 1 file changed, 24 insertions(+), 7 d

[PATCH 1/1] mx7ulp: Update wdog disable sequence

2021-09-23 Thread Oleksandr Suvorov
From: Ye Li Update the mx7ulp wdog disable sequence to avoid potential reset issue in unlock or refresh sequence. Both sequence need two words write to wdog CNT register in 16 bus clocks window, if miss the window, the write will cause violation in wdog and reset the chip. Current u-boot code is

Of capsules, signatures and device trees, TGTBTU

2021-09-23 Thread François Ozog
Hi, Following the EFI capsule revert, here* is a contribution to understand the context in which we designed the patch set. (everyone is a commenter, please be mindful). The presentation explores booting, with more details for the Arm context, pre and post U-Boot. On Arm, pre-U-Boot is shaped aft

Re: [PATCH] arm: a37xx: pci: Increase PCIe IO size from 64 KiB to 1 MiB

2021-09-23 Thread Stefan Roese
On 23.09.21 11:07, Pali Rohár wrote: Commit 079b35a26111 ("arm: a37xx: pci: Increase PCIe MEM size from 16 MiB to 127 MiB") increased size of PCIe MEM to 127 MiB, which is the maximal possible size for allocated 128 MiB PCIe window. PCIe IO size in that commit was unchanged. Armada 3720 PCIe con

[PATCH 00/10] dra7: bring up and support IPU load/start

2021-09-23 Thread Amjad Ouled-Ameur
This patchset enables support for loading and starting IPU firmware, the following have been implemented: - Enable fs_loader compilation at SPL Level, that is necessary in order to load IPU firmware from /boot partition. - Define necessary related IPU dts nodes. - Add necessary dr

[PATCH 01/10] reset: dra7: Add a reset driver

2021-09-23 Thread Amjad Ouled-Ameur
From: Keerthy Add a reset driver to bring IPs out of reset. Signed-off-by: Keerthy [Amjad: reset_ops structure member "free" has been renamed to "rfree", use the latter instead] Signed-off-by: Amjad Ouled-Ameur --- MAINTAINERS| 1 + drivers/reset/Kconfig | 6 +++ drive

[PATCH 02/10] arm: mach-omap2: load/start remoteproc IPU1/IPU2

2021-09-23 Thread Amjad Ouled-Ameur
From: Keerthy First check the presence of the ipu firmware in the boot partition. If present enable the ipu and the related clocks & then move on to load the firmware and eventually start remoteproc IPU1/IPU2. do_enable_clocks by default puts the clock domains into auto which does not work well

[PATCH 03/10] drivers: misc: Makefile: Enable fs_loader compilation at SPL Level

2021-09-23 Thread Amjad Ouled-Ameur
From: Keerthy Enable fs_loader compilation at SPL Level. Signed-off-by: Keerthy [Amjad: fix compilation failures for J721e platform] Signed-off-by: Amjad Ouled-Ameur --- arch/arm/mach-k3/common.c | 10 +++--- configs/j721e_evm_r5_defconfig| 1 + configs/j721e_hs_evm_r5_defco

[PATCH 04/10] linux: bitmap.h: Add find_next_zero_area function

2021-09-23 Thread Amjad Ouled-Ameur
From: Keerthy Add find_next_zero_area to fetch the next zero area in the map. Signed-off-by: Keerthy Signed-off-by: Amjad Ouled-Ameur --- include/linux/bitmap.h | 26 ++ 1 file changed, 26 insertions(+) diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h ind

[PATCH 08/10] arm: dts: dra7: Add ipu and related nodes

2021-09-23 Thread Amjad Ouled-Ameur
From: Keerthy Add ipu and the associated nodes. Signed-off-by: Keerthy Signed-off-by: Amjad Ouled-Ameur --- arch/arm/dts/dra7.dtsi | 45 +- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/dra7.dtsi b/arch/arm/dts/dra7.dtsi in

[PATCH 07/10] dts: dra7-ipu-common-early-boot.dtsi: Add all the ipu early boot related nodes

2021-09-23 Thread Amjad Ouled-Ameur
From: Keerthy Add all the ipu early boot related nodes Signed-off-by: Keerthy Signed-off-by: Amjad Ouled-Ameur --- MAINTAINERS | 1 + arch/arm/dts/dra7-ipu-common-early-boot.dtsi | 113 +++ 2 files changed, 114 insertions(+) create mode 100

[PATCH 09/10] arm: dts: dra7*/am57xx-idk-evm-u-boot: Add ipu early boot DT changes

2021-09-23 Thread Amjad Ouled-Ameur
From: Keerthy Add support for ipu early boot. Signed-off-by: Keerthy Signed-off-by: Amjad Ouled-Ameur --- arch/arm/dts/am57xx-idk-common-u-boot.dtsi | 1 + arch/arm/dts/dra7-evm-u-boot.dtsi | 1 + arch/arm/dts/dra71-evm-u-boot.dtsi | 1 + arch/arm/dts/dra72-evm-revc-u-boot.d

[PATCH 05/10] remoteproc: uclass: Add remoteproc resource handling helpers

2021-09-23 Thread Amjad Ouled-Ameur
From: Keerthy Add remoteproc resource handling helpers. These functions are primarily to parse the resource table and to handle different types of resources. Carveout, devmem, trace & vring resources are handled. Signed-off-by: Keerthy [Amjad: fix redefinition of "struct resource_table" and com

[PATCH 06/10] remoteproc: ipu: Add driver to bring up ipu

2021-09-23 Thread Amjad Ouled-Ameur
From: Keerthy The driver enables IPU support. Basically enables the clocks, timers, watchdog timers and bare minimal MMU and supports loading the firmware from mmc. Signed-off-by: Keerthy [Amjad: fix compile warnings] Signed-off-by: Amjad Ouled-Ameur --- MAINTAINERS| 1

[PATCH 10/10] dts: am57xx*: Add ipu early boot DT changes

2021-09-23 Thread Amjad Ouled-Ameur
From: Keerthy Add support for ipu early boot. Signed-off-by: Keerthy Signed-off-by: Amjad Ouled-Ameur --- MAINTAINERS | 1 + arch/arm/dts/am57xx-beagle-x15-revb1-u-boot.dtsi | 7 +++ arch/arm/dts/am57xx-beagle-x15-revc-u-boot.dtsi | 7 +++ arch/

Re: [PATCH] mtd: sf: Set SF parameters as env variables

2021-09-23 Thread Pratyush Yadav
On 14/09/21 05:28AM, Marek Vasut wrote: > Set the SF page size, erase block size and total size as an environment > variable after "sf probe". This lets us discern boards with multiple > distinct SPI flash options and also e.g. set mtdparts accordingly. I don't quite follow the rationale for makin

[PATCH 0/6] Add support for SDM845 based boards, and SM-G9600

2021-09-23 Thread dsankouski
From: Dzmitry Sankouski Snapdragon 845 - hi-end qualcomm chip, introduced in late 2017. Mostly used in flagship phones and tablets of 2018. Features: - arm64 arch - total of 8 Kryo 385 Gold / Silver cores - Hexagon 685 DSP - Adreno 630 GPU Tested only as second-stage bootloader. Samsung S9 SM-G

[PATCH 1/6 v3] serial: qcom: add support for GENI serial driver

2021-09-23 Thread dsankouski
From: Dzmitry Sankouski Generic Interface (GENI) Serial Engine (SE) based uart can be found on newer qualcomm SOCs, starting from SDM845. Tested on Samsung SM-G9600(starqltechn) by chain-loading u-boot with stock bootloader. Signed-off-by: Dzmitry Sankouski Cc: Ramon Fried Cc: Tom Rini --- Ch

[PATCH 4/6] clocks: qcom: add clocks for SDM845 debug uart

2021-09-23 Thread dsankouski
From: Dzmitry Sankouski Allows to change clock frequency of debug uart, thus supporting wide range of baudrates. Enable / disable functionality is not implemented yet. In most use cases of SDM845 (i.e. mobile phones and tablets) it's not needed, because qualcomm first stage bootloader leaves it i

[PATCH 2/6 v3] spmi: msm: add arbiter version 5 support

2021-09-23 Thread dsankouski
From: Dzmitry Sankouski Currently driver supports only version 1 and 2. Version 5 has slightly different registers structure Signed-off-by: Dzmitry Sankouski Cc: Ramon Fried Cc: Tom Rini --- Changes for v2: - change string formats in debug statements Changes for v3 - remove if else braces whe

[PATCH 3/6] pinctrl: qcom: add pinctrl and gpio drivers for SDM845 SoC

2021-09-23 Thread dsankouski
From: Dzmitry Sankouski Signed-off-by: Dzmitry Sankouski Cc: Ramon Fried Cc: Tom Rini --- arch/arm/mach-snapdragon/pinctrl-sdm845.c | 44 +++ arch/arm/mach-snapdragon/pinctrl-snapdragon.c | 1 + arch/arm/mach-snapdragon/pinctrl-snapdragon.h | 1 + drivers/gpio/msm_gpio.c

[PATCH 5/6] SoC: qcom: add support for SDM845

2021-09-23 Thread dsankouski
From: Dzmitry Sankouski Hi-end qualcomm chip, introduced in late 2017. Mostly used in flagship phones and tablets of 2018. Features: - arm64 arch - total of 8 Kryo 385 Gold / Silver cores - Hexagon 685 DSP - Adreno 630 GPU Tested only as second-stage bootloader. Signed-off-by: Dzmitry Sankouski

[PATCH 6/6 v3] board: samsung: add Samsung Galaxy S9/S9+(SM-G96x0) board

2021-09-23 Thread dsankouski
From: Dzmitry Sankouski Samsung S9 SM-G9600 - Snapdragon SDM845 version of the phone, for China \ Hong Kong markets. Has unlockable bootloader, unlike SM-G960U (American market version), which allows running u-boot as a chain-loaded bootloader. Signed-off-by: Dzmitry Sankouski Cc: Ramon Fried

Re: [PATCH v6 3/3] arm64: Kconfig: Enable usage of optimized memset/memcpy/memmove

2021-09-23 Thread Tom Rini
On Thu, Sep 02, 2021 at 05:00:19PM +0200, Stefan Roese wrote: > This patch enables the use of the optimized memset(), memmove() & > memcpy() versions recently added on ARM64. > > Please note that these optimized functions are now only enabled for > recent GCC versions (>= 9.4), as earlier GCC ver

Re: [PATCH] mtd: sf: Set SF parameters as env variables

2021-09-23 Thread Marek Vasut
On 9/23/21 8:53 PM, Pratyush Yadav wrote: On 14/09/21 05:28AM, Marek Vasut wrote: Set the SF page size, erase block size and total size as an environment variable after "sf probe". This lets us discern boards with multiple distinct SPI flash options and also e.g. set mtdparts accordingly. I do

Re: [PATCH] imx8mn_beacon: Fix booting hang and switch to binman

2021-09-23 Thread Adam Ford
On Tue, Sep 14, 2021 at 9:49 PM Peng Fan (OSS) wrote: > > > > On 2021/9/11 4:19, Adam Ford wrote: > > Somewhere along the line, the board stopped being able to boot. > > Rather than just fixing the issue, let's fix the issue and migrate > > to binman to eliminate a warning when using custom imx to

[PATCH] ARM: dts: imx: use generic name bus

2021-09-23 Thread Oleksandr Suvorov
Synchronize the u-boot and kernel imx device trees, using tuned script from commit c0157bdcafa1 ("ARM: dts: imx: use generic name bus") Per devicetree specification, generic names are recommended to be used, such as bus. i.MX AIPS is an AHB - IP bridge bus, so we could use bus as node name. Scri

Re: [PULL] u-boot-usb/master

2021-09-23 Thread Tom Rini
On Thu, Sep 23, 2021 at 12:35:44AM +0200, Marek Vasut wrote: > Late bunch of USB fixes (incl. the xhci usb 3.1 support) > > The following changes since commit a49930f4c6ed5dcbf5127f7bf6d189afa92bffb3: > > Merge https://source.denx.de/u-boot/custodians/u-boot-x86 (2021-09-22 > 11:43:12 -0400) >

Re: [PULL] u-boot-socfpga/master

2021-09-23 Thread Tom Rini
On Thu, Sep 23, 2021 at 12:36:27AM +0200, Marek Vasut wrote: > Bugfixes for this one socfpga platform, should go into 2021.10 > > The following changes since commit a49930f4c6ed5dcbf5127f7bf6d189afa92bffb3: > > Merge https://source.denx.de/u-boot/custodians/u-boot-x86 (2021-09-22 > 11:43:12 -0

Re: [EXT] Re: [PATCH v2 03/15] i.MX8M: crypto: updated device tree for supporting DM in SPL

2021-09-23 Thread Tim Harvey
On Sun, Sep 12, 2021 at 9:55 PM Gaurav Jain wrote: > > Hello Tim, > > > -Original Message- > > From: Tim Harvey > > Sent: Friday, September 10, 2021 8:17 PM > > To: Gaurav Jain > > Cc: u-boot ; Stefano Babic ; Fabio > > Estevam ; Peng Fan ; Simon Glass > > ; Priyanka Jain ; Ye Li > > ; H

Re: [PATCH v2 00/15] Add CAAM driver model support

2021-09-23 Thread Tim Harvey
On Fri, Sep 3, 2021 at 12:04 AM Gaurav Jain wrote: > > This patchset adds the support for following: > 1) CAAM Driver model for all i.MX, layerscape, PPC platforms. > 2) Added crypto node in device tree files. > 3) CAAM support for blob key encryption key(bkek), random number generation. > 4) fixe

[RFC PATCH 2/4] nvme: improve readability of nvme_setup_prps()

2021-09-23 Thread Stefan Agner
Improve readability by introducing consts, reuse consts where appropriate and adding variables with discriptive name. Signed-off-by: Stefan Agner --- drivers/nvme/nvme.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c inde

[RFC PATCH 1/4] Revert "nvme: Correct the prps per page calculation method"

2021-09-23 Thread Stefan Agner
This reverts commit 859b33c948945f7904f60a2c12a3792d356d51ad. If there is more than one PRP List the last entry is a pointer to the next list. From the NVM Express specification: "The last entry within a memory page, as indicated by the memory page size in the CC.MPS field, shall be a PRP List po

[RFC PATCH 4/4] nvme: translate virtual addresses into the bus's address space

2021-09-23 Thread Stefan Agner
So far we've been content with passing physical/CPU addresses when configuring memory addresses into NVMe controllers, but not all platforms have buses with transparent mappings. Specifically the Raspberry Pi 4 might introduce an offset to memory accesses incoming from its PCIe port. Introduce nvm

[RFC PATCH 3/4] nvme: Use pointer for CPU addressed buffers

2021-09-23 Thread Stefan Agner
Pass buffers which use CPU addressing as void pointers. This aligns with DMA APIs which use void pointers as argument. It will avoid unnecessary type casts when adding support bus address translations. Signed-off-by: Stefan Agner --- drivers/nvme/nvme.c | 50 ---

Re: [RFC PATCH 4/4] nvme: translate virtual addresses into the bus's address space

2021-09-23 Thread Stefan Agner
On 2021-09-24 01:20, Stefan Agner wrote: > So far we've been content with passing physical/CPU addresses when > configuring memory addresses into NVMe controllers, but not all > platforms have buses with transparent mappings. Specifically the > Raspberry Pi 4 might introduce an offset to memory acc

[PATCH] cmd: mmc: check whether card is SD or eMMC before hwpartition

2021-09-23 Thread Jaehoon Chung
It doesn't need to follow more sequence to do the hwparititioning, because SD doesn't support hwpartitioning feature. Signed-off-by: Jaehoon Chung --- cmd/mmc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/cmd/mmc.c b/cmd/mmc.c index f1e30d0cf64b..62c7e9129666 100644 --- a/cmd/mmc.c

Re: [PATCH 1/1] riscv: ae350: enable Coherence Manager for ae350

2021-09-23 Thread Rick Chen
> From: Leo Yu-Chi Liang(梁育齊) > Sent: Thursday, September 23, 2021 10:34 AM > To: u-boot@lists.denx.de > Cc: Rick Jian-Zhi Chen(陳建志) ; Leo Yu-Chi Liang(梁育齊) > > Subject: [PATCH 1/1] riscv: ae350: enable Coherence Manager for ae350 > > If Coherence Manager were not set in the beginning, u-boot-sp

Re: [PATCH] cmd: mmc: check whether card is SD or eMMC before hwpartition

2021-09-23 Thread Peng Fan (OSS)
On 2021/9/24 8:23, Jaehoon Chung wrote: It doesn't need to follow more sequence to do the hwparititioning, because SD doesn't support hwpartitioning feature. Signed-off-by: Jaehoon Chung --- cmd/mmc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/cmd/mmc.c b/cmd/mmc.c index f1e3

Re: [PATCH] ARM: dts: imx: use generic name bus

2021-09-23 Thread Peng Fan (OSS)
On 2021/9/24 4:14, Oleksandr Suvorov wrote: Synchronize the u-boot and kernel imx device trees, using tuned script from commit c0157bdcafa1 ("ARM: dts: imx: use generic name bus") Per devicetree specification, generic names are recommended to be used, such as bus. i.MX AIPS is an AHB - IP bri

Re: [PATCH] env: Make _init() expect _INVALID when _IS_NOWHERE

2021-09-23 Thread Tom Rini
On Thu, Aug 12, 2021 at 03:28:31PM +, Pierre-Clément Tosi wrote: > Avoid applying the "fix" introduced by commit 5557eec01cbf ("env: Fix > invalid env handling in env_init()") to the environment "nowhere". > > This is necessary as that commit, by setting the return value of > env_init() to -E

Re: [PATCH 1/2] armv8/cache.S: Read sysreg fields through ubfx

2021-09-23 Thread Tom Rini
On Fri, Aug 27, 2021 at 06:03:45PM +0200, Pierre-Clément Tosi wrote: > Improve the file's readability and conciseness by using the appropriate > Aarch64 instruction: ubfx (unsigned bitfield extract). This makes the > code easier to follow as it directly manipulates the offsets and widths > of the

Re: [PATCH 2/2] armv8/cache.S: Triple with single instruction

2021-09-23 Thread Tom Rini
On Fri, Aug 27, 2021 at 06:04:10PM +0200, Pierre-Clément Tosi wrote: > Replace the current 2-instruction 2-step tripling code by a > corresponding single instruction leveraging ARMv8-A's "flexible second > operand as a register with optional shift". This has the added benefit > (albeit arguably ne

Re: [PATCH] crc32: Add crc32 implementation using __builtin_aarch64_crc32b

2021-09-23 Thread Tom Rini
On Mon, Aug 30, 2021 at 03:05:23PM +0200, Marek Vasut wrote: > ARMv8.0 has optional crc32 instruction for crc32 calculation. The > instruction is mandatory since ARMv8.1. The crc32 calculation is > faster using the dedicated instruction, e.g. 1.4 GHz iMX8MN gives: > > => time crc32 0x5000 0

Re: [PATCH v2] arm: mediatek: merge board Kconfigs into mach-mediatek

2021-09-23 Thread Tom Rini
On Fri, Sep 10, 2021 at 10:21:06AM +0200, Guillaume La Roque wrote: > On MediaTek boards we cannot override the SYS_BOARD / SYS_CONFIG_NAME > variables from defconfig. > This is because in board/mediatek/mt/Kconfig this value was override > by default due to the if CONFIG_TARGET_MT conditi

Re: [PATCH] image: add lz4 zstd compression magic map

2021-09-23 Thread Tom Rini
On Tue, Aug 31, 2021 at 06:22:18PM +0800, Artem Lapkin wrote: > Add lz4 and zstd compression magic map. Already can decompress images > with lz4 and zstd compression type. > > Signed-off-by: Artem Lapkin Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 01/12] lmb: Always compile arch_lmb_reserve() into U-Boot on arm

2021-09-23 Thread Tom Rini
On Fri, Sep 10, 2021 at 10:47:07PM +0200, Marek Vasut wrote: > The arch_lmb_reserve() is called by lib/lmb.c lmb_reserve_common() even > if CMD_BOOT{I,M,Z} is not enabled. However, the arm32/arm64 variant of > arch_lmb_reserve() is only compiled in if CMD_BOOT{I,M,Z} is enabled. > > This currentl

Re: [PATCH 02/12] lmb: Always compile arch_lmb_reserve() into U-Boot on arc

2021-09-23 Thread Tom Rini
On Fri, Sep 10, 2021 at 10:47:08PM +0200, Marek Vasut wrote: > The arch_lmb_reserve() is called by lib/lmb.c lmb_reserve_common() even > if CMD_BOOTM is not enabled. However, the arc variant of arch_lmb_reserve() > is only compiled in if CMD_BOOTM is enabled. > > This currently does not trigger b

Re: [PATCH] pci: Fix configuring io/memory base and limit registers of PCI bridges

2021-09-23 Thread Tom Rini
On Fri, Sep 10, 2021 at 01:33:35PM +0200, Pali Rohár wrote: > Lower 4 bits of PCI_MEMORY_BASE and PCI_MEMORY_LIMIT registers are reserved > and should be zero. So do not set them to non-zero value. > > Lower 4 bits of PCI_PREF_MEMORY_BASE and PCI_PREF_MEMORY_LIMIT registers > contain information

Re: [PATCH 04/12] lmb: Switch to generic arch_lmb_reserve_generic()

2021-09-23 Thread Tom Rini
On Fri, Sep 10, 2021 at 10:47:10PM +0200, Marek Vasut wrote: > Switch arc/arm/m68k/microblaze/mips/ppc arch_lmb_reserve() to > arch_lmb_reserve_generic(). > > Reviewed-by: Tom Rini > Signed-off-by: Marek Vasut > Cc: Alexey Brodkin > Cc: Angelo Dureghello > Cc: Daniel Schwierzeck > Cc: Eugeni

Re: [PATCH 03/12] lmb: Add generic arch_lmb_reserve_generic()

2021-09-23 Thread Tom Rini
On Fri, Sep 10, 2021 at 10:47:09PM +0200, Marek Vasut wrote: > The arc/arm/m68k/microblaze/mips/ppc arch_lmb_reserve() implementations > are all mostly the same, except for a couple of details. Implement a > generic arch_lmb_reserve_generic() function which can be parametrized > enough to cater fo

Re: [PATCH 06/12] lmb: Remove imx board_lmb_reserve()

2021-09-23 Thread Tom Rini
On Fri, Sep 10, 2021 at 10:47:12PM +0200, Marek Vasut wrote: > This function is clearly architecture specific code, not board specific > code. The only difference from the previous arm arch_lmb_reserve() is the > extra reservation of 16k of memory below the stack bottom, rather than > the 4k. The

Re: [PATCH 07/12] lmb: nios2: Add arch_lmb_reserve()

2021-09-23 Thread Tom Rini
On Fri, Sep 10, 2021 at 10:47:13PM +0200, Marek Vasut wrote: > Add arch_lmb_reserve() implemented using arch_lmb_reserve_generic(). > It is rather likely this architecture also needs to cover U-Boot with > LMB before booting Linux. > > Signed-off-by: Marek Vasut > Cc: Simon Goldschmidt > Cc: Th

Re: [PATCH 05/12] lmb: arm: Increase LMB alignment to 16k in arch_lmb_reserve_generic()

2021-09-23 Thread Tom Rini
On Fri, Sep 10, 2021 at 10:47:11PM +0200, Marek Vasut wrote: > According to input NXP, the 4k alignment is not always sufficient. > Currently iMX works around this problem by implementing board specific > LMB reservation, however it is likely this could also occur on other > systems. Increase the

Re: [PATCH 09/12] lmb: riscv: Add arch_lmb_reserve()

2021-09-23 Thread Tom Rini
On Fri, Sep 10, 2021 at 10:47:15PM +0200, Marek Vasut wrote: > Add arch_lmb_reserve() implemented using arch_lmb_reserve_generic(). > It is rather likely this architecture also needs to cover U-Boot with > LMB before booting Linux. > > Reviewed-by: Rick Chen > Signed-off-by: Marek Vasut > Cc: A

Re: [PATCH 08/12] lmb: nds32: Add arch_lmb_reserve()

2021-09-23 Thread Tom Rini
On Fri, Sep 10, 2021 at 10:47:14PM +0200, Marek Vasut wrote: > Add arch_lmb_reserve() implemented using arch_lmb_reserve_generic(). > It is rather likely this architecture also needs to cover U-Boot with > LMB before booting Linux. > > Reviewed-by: Rick Chen > Signed-off-by: Marek Vasut > Cc: R

Re: [PATCH 10/12] lmb: sh: Add arch_lmb_reserve()

2021-09-23 Thread Tom Rini
On Fri, Sep 10, 2021 at 10:47:16PM +0200, Marek Vasut wrote: > Add arch_lmb_reserve() implemented using arch_lmb_reserve_generic(). > This architecture also needs to cover U-Boot with LMB before booting > Linux. > > Signed-off-by: Marek Vasut > Cc: Simon Goldschmidt > Cc: Tom Rini Applied to

Re: [PATCH 11/12] lmb: xtensa: Add arch_lmb_reserve()

2021-09-23 Thread Tom Rini
On Fri, Sep 10, 2021 at 10:47:17PM +0200, Marek Vasut wrote: > Add arch_lmb_reserve() implemented using arch_lmb_reserve_generic(). > It is rather likely this architecture also needs to cover U-Boot with > LMB before booting Linux. > > Signed-off-by: Marek Vasut > Cc: Chris Zankel > Cc: Simon G

Re: [PATCH 12/12] lmb: x86: Add arch_lmb_reserve()

2021-09-23 Thread Tom Rini
On Fri, Sep 10, 2021 at 10:47:18PM +0200, Marek Vasut wrote: > Add arch_lmb_reserve() implemented using arch_lmb_reserve_generic(). > It is rather likely this architecture also needs to cover U-Boot with > LMB before booting Linux. > > Signed-off-by: Marek Vasut > Cc: Simon Glass > Cc: Simon Go

Re: [PATCH v4 3/5] sf: Tidy up code to avoid #ifdef

2021-09-23 Thread Simon Glass
Hi Pratyush, On Mon, 20 Sept 2021 at 05:08, Pratyush Yadav wrote: > > Hi Simon, > > On 19/09/21 03:49PM, Simon Glass wrote: > > Update this code to use IS_ENABLED() instead. > > > > Signed-off-by: Simon Glass > > > > Reviewed-by: Pratyush Yadav > > Nitpick: Trailers shouldn't have a blank line

Re: [PATCH 11/35] RFC: efi: Drop code that doesn't work with driver model

2021-09-23 Thread Simon Glass
Hi Mark, On Thu, 9 Sept 2021 at 15:45, Mark Kettenis wrote: > > > Date: Thu, 9 Sep 2021 16:23:08 -0400 > > From: Tom Rini > > > > On Thu, Sep 09, 2021 at 10:15:44PM +0200, Mark Kettenis wrote: > > > > From: Simon Glass > > > > Date: Thu, 9 Sep 2021 13:57:39 -0600 > > > > > > > > Hi Heinrich, >

Re: [PATCH 1/1] doc: add system reset to API documentation

2021-09-23 Thread Simon Glass
On Thu, 23 Sept 2021 at 03:12, Heinrich Schuchardt wrote: > > Complete the Sphinx documentation in include/sysreset.h > Add the include to the generated HTML documentation of the U-Boot API. > > Signed-off-by: Heinrich Schuchardt > --- > doc/api/index.rst| 1 + > doc/api/sysreset.rst | 7 +

Re: [PATCH 09/11] sandbox: Add a way to map a file into memory

2021-09-23 Thread Simon Glass
Hi Marek, On Wed, 22 Sept 2021 at 20:09, Tom Rini wrote: > > On Wed, Aug 18, 2021 at 09:40:31PM -0600, Simon Glass wrote: > > > It is useful to map a file into memory so that it can be accessed using > > simple pointers. Add a function to support this. > > > > Signed-off-by: Simon Glass > > Appl

Re: [PATCH 2/4] dm: hash: Add new UCLASS_HASH support

2021-09-23 Thread Simon Glass
Hi, On Wed, 22 Sept 2021 at 17:56, ChiaWei Wang wrote: > > Hi Simon, > > > From: Simon Glass > > Sent: Thursday, September 23, 2021 12:19 AM > > > > Hi, > > > > On Thu, 2 Sept 2021 at 07:28, Tom Rini wrote: > > > > > > On Fri, Jul 30, 2021 at 09:08:03AM +0800, Chia-Wei Wang wrote: > > > > > > >

Re: S25HS512 not functional with u-boot 2021.10.rc3

2021-09-23 Thread Simon Glass
Hi Harkirat, On Tue, 14 Sept 2021 at 19:50, Harkirat Virk wrote: > > I have a custom board using imx6ul and Spansion S25HS512T Flash. On the > current version of u-boot (2021.10.rc3) and I am guessing even previous ones > the Spansion flash is not functioning > > => sf probe > drivers/core/ucla

Re: [PATCH 05/10] remoteproc: uclass: Add remoteproc resource handling helpers

2021-09-23 Thread Simon Glass
Hi Amjad, On Thu, 23 Sept 2021 at 10:47, Amjad Ouled-Ameur wrote: > > From: Keerthy > > Add remoteproc resource handling helpers. These functions > are primarily to parse the resource table and to handle > different types of resources. Carveout, devmem, trace & > vring resources are handled. > >

Re: [PATCH 2/4] dm: hash: Add new UCLASS_HASH support

2021-09-23 Thread Simon Glass
Hi, On Thu, 16 Sept 2021 at 09:43, Alex G. wrote: > > Hi, > > On 7/29/21 8:08 PM, Chia-Wei Wang wrote: > > Add UCLASS_HASH for hash driver development. Thus the > > hash drivers (SW or HW-accelerated) can be developed > > in the DM-based fashion. > > Software hashing implementations are shared ti

Re: [PATCH] ARM: dts: imx6-apalis: enable watchdog

2021-09-23 Thread Peng Fan (OSS)
On 2021/9/21 19:48, Oleksandr Suvorov wrote: From: Ricardo Salveti Add u-boot.dtsi specific to imx6-apalis with a watchdog enabled. If OP-TEE is loaded by SPL, it may use a watchdog to handle fails of u-boot running. Enable the watchdog in SPL to use it by OP-TEE. Signed-off-by: Ricardo Sa

Re: [PATCH] env: Make _init() expect _INVALID when _IS_NOWHERE

2021-09-23 Thread Marek Vasut
On 9/24/21 4:40 AM, Tom Rini wrote: On Thu, Aug 12, 2021 at 03:28:31PM +, Pierre-Clément Tosi wrote: Avoid applying the "fix" introduced by commit 5557eec01cbf ("env: Fix invalid env handling in env_init()") to the environment "nowhere". This is necessary as that commit, by setting the ret

Re: [PATCH 1/1] doc: add system reset to API documentation

2021-09-23 Thread Alexandre Ghiti
On Thu, Sep 23, 2021 at 11:12 AM Heinrich Schuchardt wrote: > > Complete the Sphinx documentation in include/sysreset.h > Add the include to the generated HTML documentation of the U-Boot API. > > Signed-off-by: Heinrich Schuchardt > --- > doc/api/index.rst| 1 + > doc/api/sysreset.rst | 7

Re: [PATCH 1/1] doc: add system reset to API documentation

2021-09-23 Thread Sean Anderson
On 9/24/21 1:27 AM, Alexandre Ghiti wrote: On Thu, Sep 23, 2021 at 11:12 AM Heinrich Schuchardt wrote: Complete the Sphinx documentation in include/sysreset.h Add the include to the generated HTML documentation of the U-Boot API. Signed-off-by: Heinrich Schuchardt --- doc/api/index.rst