Re: [PATCH v2 2/2] board: mntre: imx8mq: Add MNT Reform 2 board support

2021-09-03 Thread Heiko Thiery
Hi, Am Fr., 3. Sept. 2021 um 22:54 Uhr schrieb Patrick Wildt : > > Am Fri, Sep 03, 2021 at 08:25:39PM +0200 schrieb Heiko Thiery: > > Hi Patrick, > > > > Am Fr., 3. Sept. 2021 um 16:30 Uhr schrieb Patrick Wildt > > : > > > > > > Am Fri, Sep 03, 2021 at 11:01:06AM +0200 schrieb Heiko Thiery: > >

Re: [PATCH v3 22/29] usb: xhci: fsl: add new compatible fsl, ls1028a-dwc3

2021-09-03 Thread Bin Meng
On Fri, Sep 3, 2021 at 12:46 AM Michael Walle wrote: > > The official ls1028a binding of the driver uses the following as > compatibles: > compatible = "fsl,ls1028a-dwc3", "snps,dwc3"; > > Change the ls1028a device tree and add this new compatible to the fsl > specific xhci driver, otherwise

Re: [PATCH] arm: use CONFIG_SUPPORT_PASSING_ATAGS

2021-09-03 Thread Tom Rini
On Fri, Sep 03, 2021 at 10:24:39AM +0200, Patrick Delaunay wrote: > Simplify the bootm and the spl code by using the new config > CONFIG_SUPPORT_PASSING_ATAGS. > > Signed-off-by: Patrick Delaunay Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/7] xyz-modem: Fix crash after cancelling transfer

2021-09-03 Thread Tom Rini
On Tue, Aug 03, 2021 at 04:28:38PM +0200, Pali Rohár wrote: > Variable xyz.len is set to -1 on error. At the end xyzModem_stream_read() > function calls memcpy() with length from variable xyz.len. If this variable > is set to -1 then value passed to memcpy is casted to unsigned value, which >

Re: [PATCH v2 2/2] board: mntre: imx8mq: Add MNT Reform 2 board support

2021-09-03 Thread Patrick Wildt
Am Fri, Sep 03, 2021 at 05:58:07PM -0300 schrieb Fabio Estevam: > Hi Patrick, > > On Fri, Sep 3, 2021 at 11:30 AM Patrick Wildt wrote: > > > U-Boot SPL 2021.10-rc3-00023-g2c634e01b6-dirty (Sep 03 2021 - 18:22:04 > > +0200) > > Normal Boot > > Could not get FIT buffer of 686592 bytes > >

Re: [PATCH v2 2/2] board: mntre: imx8mq: Add MNT Reform 2 board support

2021-09-03 Thread Fabio Estevam
Hi Patrick, On Fri, Sep 3, 2021 at 11:30 AM Patrick Wildt wrote: > U-Boot SPL 2021.10-rc3-00023-g2c634e01b6-dirty (Sep 03 2021 - 18:22:04 +0200) > Normal Boot > Could not get FIT buffer of 686592 bytes > check CONFIG_SYS_SPL_MALLOC_SIZE > > Is there anything specific I need to change to

Re: [PATCH v2 2/2] board: mntre: imx8mq: Add MNT Reform 2 board support

2021-09-03 Thread Patrick Wildt
Am Fri, Sep 03, 2021 at 08:25:39PM +0200 schrieb Heiko Thiery: > Hi Patrick, > > Am Fr., 3. Sept. 2021 um 16:30 Uhr schrieb Patrick Wildt : > > > > Am Fri, Sep 03, 2021 at 11:01:06AM +0200 schrieb Heiko Thiery: > > > Hi Patrick, > > > > > > Am Do., 2. Sept. 2021 um 23:44 Uhr schrieb Patrick Wildt

Re: [PATCH v2 2/2] board: mntre: imx8mq: Add MNT Reform 2 board support

2021-09-03 Thread Heiko Thiery
Hi Patrick, Am Fr., 3. Sept. 2021 um 16:30 Uhr schrieb Patrick Wildt : > > Am Fri, Sep 03, 2021 at 11:01:06AM +0200 schrieb Heiko Thiery: > > Hi Patrick, > > > > Am Do., 2. Sept. 2021 um 23:44 Uhr schrieb Patrick Wildt > > : > > > > > > The MNT Reform 2 is a modular DIY laptop. In its initial

Re: [RFC PATCH] stm32mp1: Replace STM32IMAGE config with TFABOOT_FIP

2021-09-03 Thread Alex G.
On 9/3/21 10:32 AM, Marek Vasut wrote: On 9/1/21 11:07 AM, Patrick DELAUNAY wrote: On 8/31/21 6:42 PM, Marek Vasut wrote: I would argue that the U-Boot crypto code went through multiple >> independent security reviews, personally I trust that more than code fully controlled and maintained by

Re: [BUG] USB boot issue on ROCKPro64 with UEFI

2021-09-03 Thread Vincent Stehlé
On Fri, Sep 03, 2021 at 07:02:13PM +0200, Arnaud Patard wrote: .. > I may be wrong but seems like the issue solved by > https://patchwork.ozlabs.org/project/uboot/patch/20210406151059.1187379-1-icen...@aosc.io/ > Unfortunately, I think that there has been no progress since the > submission of this

Re: [GIT PULL] xilinx patches for v2021.10-rc4

2021-09-03 Thread Tom Rini
On Fri, Sep 03, 2021 at 11:41:21AM +0200, Michal Simek wrote: > Hi Tom, > > please pull these 3 fixes to your tree. It is one uefi dox fix. > And 2 spi patches are fixing single mode for zynqmp boards. > > Thanks, > Michal > > The following changes since commit

Re: [BUG] USB boot issue on ROCKPro64 with UEFI

2021-09-03 Thread Rtp
Vincent Stehlé writes: Hi, > Hi U-Boot folks, > > Hopefully this is the right way to report bugs. If not, please do not hesitate > to let me know. > > I am hitting an issue with U-Boot v2021.07 on the ROCKPro64, when booting > Linux > with UEFI from USB. The kernel EFI stub will hang: > >

Re: [PATCH 1/2] lib: optee: remove the duplicate CONFIG_OPTEE

2021-09-03 Thread Alex G.
Hi Patrick On 9/2/21 4:56 AM, Patrick Delaunay wrote: The configuration CONFIG_OPTEE is defined 2 times: 1- in lib/optee/Kconfig for support of OPTEE images loaded by bootm command 2- in drivers/tee/optee/Kconfig for support of OP-TEE driver. It is abnormal to have the same CONFIG define for 2

Re: [PATCH] RFC: Support an EFI-loader bootflow

2021-09-03 Thread Heinrich Schuchardt
On 9/3/21 10:53 AM, Simon Glass wrote: Hi Takahiro, On Thu, 2 Sept 2021 at 20:27, AKASHI Takahiro wrote: Simon, On Thu, Sep 02, 2021 at 10:40:57AM -0600, Simon Glass wrote: Hi Takahiro, On Tue, 31 Aug 2021 at 00:14, AKASHI Takahiro wrote: Simon, On Sat, Aug 28, 2021 at 02:35:21PM

[PATCH] sunxi: mmc: A20: Fix MMC optimisation

2021-09-03 Thread Andre Przywara
Some SoCs (as seen on A20) seem to misreport the MMC FIFO level if the FIFO is completely full: the level size reads as zero, but the FIFO_FULL bit is set. We won't do a single iteration of the read loop in this case, so will be stuck forever. Check for this situation and use a safe minimal FIFO

Re: [PATCH] MAINTAINERS: Update ARM TI entry

2021-09-03 Thread Tom Rini
On Fri, Sep 03, 2021 at 12:45:37PM +0530, Lokesh Vutla wrote: > Move TI maintainership to Tom. > Updated with the following commands: > find ./ -name MAINTAINERS | xargs sed -i s/"Lokesh Vutla > "/"Tom Rini "/g > > Signed-off-by: Lokesh Vutla Thanks for all the work! Acked-by: Tom Rini --

Re: [RFC PATCH] stm32mp1: Replace STM32IMAGE config with TFABOOT_FIP

2021-09-03 Thread Marek Vasut
On 9/1/21 11:07 AM, Patrick DELAUNAY wrote: Hi Marek, Hi, On 8/31/21 6:42 PM, Marek Vasut wrote: On 8/31/21 4:54 PM, Patrick DELAUNAY wrote: Hi Alexandru, Hi, On 8/26/21 11:47 PM, Alexandru Gagniuc wrote: Hi Patrick, I proposing a better fix fir the issues I outlined earlier, I made

[PATCH WORKAROUND] clk: rk3399: do not disable the USB2PHY clk

2021-09-03 Thread Vincent Stehlé
When booting from USB with UEFI on the ROCKPro64, the Linux kernel EFI stub will hang in efi_exit_boot_services due to OHCI hc_reset accessing the hardware registers after the USB2PHY clocks have been disabled. As a workaround, prevent the USB2PHY clocks from being disabled to repair the boot.

[BUG] USB boot issue on ROCKPro64 with UEFI

2021-09-03 Thread Vincent Stehlé
Hi U-Boot folks, Hopefully this is the right way to report bugs. If not, please do not hesitate to let me know. I am hitting an issue with U-Boot v2021.07 on the ROCKPro64, when booting Linux with UEFI from USB. The kernel EFI stub will hang: EFI stub: Booting Linux Kernel... EFI stub:

Re: [PATCH 2/2] board: stm32: Remove the bi_boot_params initialization

2021-09-03 Thread Alex G.
On 9/2/21 5:02 AM, Patrick Delaunay wrote: The stm32 platforms never had to support an ATAGs-based Linux Kernel, so remove the bi_boot_params initialization. Signed-off-by: Patrick Delaunay Tested-by: Alexandru Gagniuc --- board/dhelectronics/dh_stm32mp1/board.c | 3 ---

Re: [PATCH 1/2] arm: stm32: Disable ATAGs support

2021-09-03 Thread Alex G.
On 9/2/21 5:02 AM, Patrick Delaunay wrote: These platforms never had to support an ATAGs-based Linux Kernel, so remove the options. Cc: Marek Vasut Signed-off-by: Tom Rini Signed-off-by: Patrick Delaunay Reviewed-by: Alexandru Gagniuc Slowly, but surely, configs/*.h will grow to zero.

Re: [PATCH v2 2/2] board: mntre: imx8mq: Add MNT Reform 2 board support

2021-09-03 Thread Patrick Wildt
Am Fri, Sep 03, 2021 at 11:01:06AM +0200 schrieb Heiko Thiery: > Hi Patrick, > > Am Do., 2. Sept. 2021 um 23:44 Uhr schrieb Patrick Wildt : > > > > The MNT Reform 2 is a modular DIY laptop. In its initial version it > > is based on the BoundaryDevices i.MX8MQ SoM. Some parts have been > >

Re: [PATCH] ARM: bcm283x: change the virtual address of the XHCI PCI device base

2021-09-03 Thread Stefan Agner
On 2021-06-17 11:22, Marek Szyprowski wrote: > Move the XHCI PCI device base up in the virtual address space. This fixes > initialization failure observed with newer Raspberry Pi firmware, later > than 63b1922311 ("firmware: arm_loader: Update armstubs with those from > PR 117). It looks that

Re: [PATCH v2 5/6] arm: Use armv8_switch_to_el1 env to switch to EL1

2021-09-03 Thread Tom Rini
On Fri, Sep 03, 2021 at 11:19:28AM +0100, Peter Hoyes wrote: > > Hi, > > On 03/09/2021 00:49, Tom Rini wrote: > > On Fri, Sep 03, 2021 at 12:07:20AM +0100, Andre Przywara wrote: > > > On Thu, 2 Sep 2021 18:42:05 -0400 > > > Tom Rini wrote: > > > > > > Hi Tom, > > > > > > > On Thu, Aug 19,

[PATCH 8/9] ARM: tegra: Refactor DT update helpers

2021-09-03 Thread Thierry Reding
From: Thierry Reding Rather than duplicate the Ethernet MAC address and carveout updating code for each board, move it to a common location and make it more reusable. Signed-off-by: Thierry Reding --- arch/arm/include/asm/arch-tegra/board.h | 10 ++ arch/arm/mach-tegra/dt-setup.c |

[PATCH 5/9] fdtdec: Support reserved-memory flags

2021-09-03 Thread Thierry Reding
From: Thierry Reding Reserved memory nodes can have additional flags. Support reading and writing these flags to ensure that reserved memory nodes can be properly parsed and emitted. This converts support for the existing "no-map" flag to avoid extending the argument list for

[PATCH 6/9] ARM: tegra: Support multiple reserved memory regions

2021-09-03 Thread Thierry Reding
From: Thierry Reding Support multiple reserved memory regions per device to support platforms that use both a framebuffer and color conversion lookup table for early boot display splash. While at it, also pass along the name, compatible strings and flags of the carveouts. Signed-off-by:

[PATCH 9/9] ARM: tegra: Copy memory-region-names property

2021-09-03 Thread Thierry Reding
From: Thierry Reding If multiple entries are present in the memory-region property, this new memory-region-names property can be used to specify names for each of them so that they can be more easily distinguished. Signed-off-by: Thierry Reding --- arch/arm/mach-tegra/dt-setup.c | 31

[PATCH 7/9] ARM: tegra: Support EMC frequency tables on Tegra210

2021-09-03 Thread Thierry Reding
From: Thierry Reding The EMC frequency tables are created from a training sequence performed during early boot and passed in via a reserved memory region by nvtboot. Copy this table to the kernel DTB so that the kernel can use it to scale the EMC frequency at runtime. Note that early

[PATCH 3/9] fdtdec: Support compatible string list for reserved memory

2021-09-03 Thread Thierry Reding
From: Thierry Reding Reserved memory nodes can have a compatible string list to identify the type of reserved memory that they represent. Support specifying an optional compatible string list when creating these nodes. Signed-off-by: Thierry Reding --- arch/arm/cpu/armv8/fsl-layerscape/soc.c

[PATCH 4/9] fdtdec: Reorder fdtdec_set_carveout() parameters for consistency

2021-09-03 Thread Thierry Reding
From: Thierry Reding The fdtdec_set_carveout() function's parameters are inconsistent with the parameters passed to fdtdec_add_reserved_memory(). Fix up the order to make it more consistent. Signed-off-by: Thierry Reding --- board/nvidia/p2371-2180/p2371-2180.c | 4 ++--

[PATCH 2/9] fdtdec: Support retrieving the name of a carveout

2021-09-03 Thread Thierry Reding
From: Thierry Reding When retrieving a given carveout for a device, allow callers to query the name. This helps differentiating between carveouts when there are more than one. This is also useful when copying carveouts to help assign a meaningful name that cannot always be guessed.

[PATCH 1/9] fdtdec: Allow using fdtdec_get_carveout() in loops

2021-09-03 Thread Thierry Reding
From: Thierry Reding In order make it possible to use fdtdec_get_carveout() in loops, return FDT_ERR_NOTFOUND when the passed-in index exceeds the number of phandles present in the given property. Signed-off-by: Thierry Reding --- lib/fdtdec.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 0/9] ARM: tegra: Support EMC frequency tables on Tegra210

2021-09-03 Thread Thierry Reding
From: Thierry Reding Hi, The first handful of patches are preparatory work to make the fdtdec carveout helpers a bit more flexible and clean them up a little bit while the final 4 patches make use of the improved helpers to copy the EMC frequency tables that can be passed to U-Boot from earlier

Re: [PATCH 2/2] board: dh_stm32mp1: Remove gpio_hog_probe_all() from board

2021-09-03 Thread Marek Vasut
On 9/1/21 11:51 AM, Patrice Chotard wrote: DM_GPIO_HOG flag has been replaced by GPIO_HOG flag since a while in commit 49b10cb49262 ("gpio: fixes for gpio-hog support"). And furthermore, gpio_hog_probe_all() is already called in board_r.c. So gpio_hog_probe() can be removed from stm32mp1.c.

Re: [PATCH v5] arm: add initial support for the Phytium Pomelo Board

2021-09-03 Thread Rob Herring
On Wed, Sep 1, 2021 at 2:46 AM wrote: > > From: weichangzheng > > This adds platform code and the device tree for the Phytium Pomelo Board. > The initial support comprises the UART and the PCIE. > > Signed-off-by: weichangzheng > Changes since v1: > updated to DT > Changes since v2: >

Re: [PATCH] MAINTAINERS: Update ARM TI entry

2021-09-03 Thread Nishanth Menon
On 12:45-20210903, Lokesh Vutla wrote: > Move TI maintainership to Tom. > Updated with the following commands: > find ./ -name MAINTAINERS | xargs sed -i s/"Lokesh Vutla > "/"Tom Rini "/g > > Signed-off-by: Lokesh Vutla Thank you for the years of your he

[PATCH 2/2] board: kontron: pitx-imx8m: Add Kontron pitx-imx8m board support

2021-09-03 Thread Heiko Thiery
The Kontron pitx-imx8m is an NXP i.MX8MQ based board in the pITX form factor. Signed-off-by: Heiko Thiery --- .../dts/imx8mq-kontron-pitx-imx8m-u-boot.dtsi | 139 ++ arch/arm/mach-imx/imx8m/Kconfig |7 + board/kontron/pitx_imx8m/Kconfig | 12 +

RE: [PATCH] arm: dts: imx8mp: Delete default clocks for clock controller node

2021-09-03 Thread ZHIZHIKIN Andrey
Hello Stefano, > -Original Message- > From: U-Boot On Behalf Of Teresa Remmet > Sent: Thursday, August 26, 2021 9:20 AM > To: feste...@gmail.com; u-boot@lists.denx.de; sba...@denx.de; > ye...@nxp.com; peng@nxp.com > Cc: uboot-...@nxp.com > Subject: Re: [PATCH] arm: dts: imx8mp:

Re: [PATCH v2 5/6] arm: Use armv8_switch_to_el1 env to switch to EL1

2021-09-03 Thread Peter Hoyes
Hi, On 03/09/2021 00:49, Tom Rini wrote: On Fri, Sep 03, 2021 at 12:07:20AM +0100, Andre Przywara wrote: On Thu, 2 Sep 2021 18:42:05 -0400 Tom Rini wrote: Hi Tom, On Thu, Aug 19, 2021 at 04:53:13PM +0100, Peter Hoyes wrote: From: Peter Hoyes Use the environment variable

Re: [PATCH 2/2] tee: add a stub for tee_find_device

2021-09-03 Thread Etienne Carriere
Hello Patrick, On Thu, 2 Sept 2021 at 11:56, Patrick Delaunay wrote: > Add stub for tee_find_device function when CONFIG_TEE is not activated > to simplify the caller code. > > This patch allows to remove the CONFIG_IS_ENABLED(OPTEE) tests > for stm32 platform. > > Signed-off-by: Patrick

Re: [PATCH] spi: stm32: Add ofdata_to_platdata() callback

2021-09-03 Thread Patrick DELAUNAY
Hi Patrice, On 8/3/21 11:16 AM, Patrice Chotard wrote: Parse DT in ofdata_to_platdata() callback instead of probe(). Signed-off-by: Patrice Chotard --- drivers/spi/stm32_spi.c | 224 +++- 1 file changed, 132 insertions(+), 92 deletions(-)

Re: [PATCH 10/10] stm32mp1: spl: Copy optee nodes to target FDT for OP-TEE payloads

2021-09-03 Thread Patrick DELAUNAY
Hi Alex On 9/2/21 7:34 PM, Alex G. wrote: Hi Patrick, On 9/1/21 10:10 AM, Alex G. wrote: Hi Patrick, On 8/31/21 12:24 PM, Patrick DELAUNAY wrote: Hi, On 8/26/21 11:42 PM, Alexandru Gagniuc wrote: OP-TEE does not take a devicetree for its own use. However, it does pass the devicetree to

[GIT PULL] xilinx patches for v2021.10-rc4

2021-09-03 Thread Michal Simek
Hi Tom, please pull these 3 fixes to your tree. It is one uefi dox fix. And 2 spi patches are fixing single mode for zynqmp boards. Thanks, Michal The following changes since commit 94509b79b13e69c209199af0757afbde8d2ebd6d: btrfs: Use default subvolume as filesystem root (2021-09-01 10:11:24

Re: [PATCH v2 2/2] board: mntre: imx8mq: Add MNT Reform 2 board support

2021-09-03 Thread Heiko Thiery
Hi Patrick, Am Do., 2. Sept. 2021 um 23:44 Uhr schrieb Patrick Wildt : > > The MNT Reform 2 is a modular DIY laptop. In its initial version it > is based on the BoundaryDevices i.MX8MQ SoM. Some parts have been > lifted from BoundaryDevices official U-Boot downstream project. > > Signed-off-by:

Re: [PATCH] RFC: Support an EFI-loader bootflow

2021-09-03 Thread Simon Glass
Hi Takahiro, On Thu, 2 Sept 2021 at 20:27, AKASHI Takahiro wrote: > > Simon, > > On Thu, Sep 02, 2021 at 10:40:57AM -0600, Simon Glass wrote: > > Hi Takahiro, > > > > On Tue, 31 Aug 2021 at 00:14, AKASHI Takahiro > > wrote: > > > > > > Simon, > > > > > > On Sat, Aug 28, 2021 at 02:35:21PM

Re: [PATCH v2 3/3] RFC: doc: Add documentation about devicetree usage

2021-09-03 Thread Simon Glass
Hi, On Mon, 30 Aug 2021 at 08:48, Tom Rini wrote: > > On Mon, Aug 30, 2021 at 04:30:55PM +0200, Heinrich Schuchardt wrote: > > > > > > On 8/28/21 6:46 PM, Simon Glass wrote: > > > At present some of the ideas and techniques behind devicetree in U-Boot > > > are assumed, implied or unsaid. Add

Re: [PATCH v2 3/3] RFC: doc: Add documentation about devicetree usage

2021-09-03 Thread Simon Glass
Hi, On Mon, 30 Aug 2021 at 10:15, Tom Rini wrote: > > On Mon, Aug 30, 2021 at 05:14:53PM +0200, Heinrich Schuchardt wrote: > > > > > > On 8/30/21 4:48 PM, Tom Rini wrote: > > > On Mon, Aug 30, 2021 at 04:30:55PM +0200, Heinrich Schuchardt wrote: > > > > > > > > > > > > On 8/28/21 6:46 PM, Simon

Re: Pull request for efi-2021-10-rc2-2

2021-09-03 Thread Simon Glass
Hi Ilias, On Wed, 25 Aug 2021 at 23:51, Ilias Apalodimas wrote: > > [...] > > > > > > > > > > > > > > > > > > > > > > > > Look I'm sorry if this all seems a bit much. My initial request was > > > > > > rebuffed, other emails have been ignored and a large number of > > > > > > objections have

Re: Usage of device-tree for blobs

2021-09-03 Thread Simon Glass
Hi Heinrich, On Wed, 25 Aug 2021 at 02:05, Heinrich Schuchardt wrote: > > Hello Simon, > > some boards like qemu-riscv64_defconfig do not use any device-tree at > build time. A device-tree is only supplied at runtime by the prior boot > stage (CONFIG_OF_PRIOR_STAGE=y). > > In

[PATCH 1/2] arm: dts: imx8mq: Add Kontron pitx-imx8m

2021-09-03 Thread Heiko Thiery
This adds the device tree for the Kontron pitx-imx8m Board. It is a copy of the device tree from the linux kernel sources. Signed-off-by: Heiko Thiery --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/imx8mq-kontron-pitx-imx8m.dts | 613 + 2 files

Re: [PATCH 2/2] board: dh_stm32mp1: Remove gpio_hog_probe_all() from board

2021-09-03 Thread Patrick DELAUNAY
Hi Patrice, On 9/1/21 11:51 AM, Patrice Chotard wrote: DM_GPIO_HOG flag has been replaced by GPIO_HOG flag since a while in commit 49b10cb49262 ("gpio: fixes for gpio-hog support"). And furthermore, gpio_hog_probe_all() is already called in board_r.c. So gpio_hog_probe() can be removed from

Re: [PATCH 1/2] board: stm32mp1: Remove gpio_hog_probe_all() from board

2021-09-03 Thread Patrick DELAUNAY
Hi, On 9/1/21 11:51 AM, Patrice Chotard wrote: DM_GPIO_HOG flag has been replaced by GPIO_HOG flag since a while in commit 49b10cb49262 ("gpio: fixes for gpio-hog support"). And furthermore, gpio_hog_probe_all() is already called in board_r.c. So gpio_hog_probe() can be removed from

Re: [PATCH] stm32mp: Fix board_get_usable_ram_top()

2021-09-03 Thread Patrick DELAUNAY
Hi Patrice, On 9/1/21 9:56 AM, Patrice Chotard wrote: When booting in EFI, lib/efi_loader/efi_memory.c calls board_get_usable_ram_top(0) which returns by default gd->ram_base + gd->ram_size which is the top of DDR. In case of OPTEE boot, the top of DDR is currently reserved by OPTEE,

Re: [PATCH 1/2] arm: stm32: Disable ATAGs support

2021-09-03 Thread Patrick DELAUNAY
Hi Tom, On 9/2/21 3:12 PM, Tom Rini wrote: On Thu, Sep 02, 2021 at 12:02:06PM +0200, Patrick Delaunay wrote: These platforms never had to support an ATAGs-based Linux Kernel, so remove the options. Cc: Marek Vasut Signed-off-by: Tom Rini Signed-off-by: Patrick Delaunay --- Hi, this patch

[PATCH] arm: use CONFIG_SUPPORT_PASSING_ATAGS

2021-09-03 Thread Patrick Delaunay
Simplify the bootm and the spl code by using the new config CONFIG_SUPPORT_PASSING_ATAGS. Signed-off-by: Patrick Delaunay --- This patch depends of Tom Rini patch [1] for CONFIG_SUPPORT_PASSING_ATAGS addition. [1] "arm: Disable ATAGs support"

Re: [PATCH] config/sifive_unmatched: add preboot commands

2021-09-03 Thread David Abdurachmanov
On Sun, Aug 15, 2021 at 6:27 PM Alexander von Gluck IV wrote: > > * Opens up u-boot to properly search through USB media > for a valid boot media > * The MMC on the unmatched is slow, so a model of running > the OS from USB or NVMe is a compelling one. (putting just > u-boot on the sd card)

Re: [PATCH 2/3] efi_loader: fix boot_service_capability_min calculation

2021-09-03 Thread Masahisa Kojima
On Fri, 3 Sept 2021 at 16:01, Heinrich Schuchardt wrote: > > On 9/3/21 3:55 AM, Masahisa Kojima wrote: > > TCG EFI Protocol Specification requires to the input > > ProtocolCapability.Size < size of the EFI_TCG2_BOOT_SERVICE_CAPABILITY > > up to and including the vendor ID field. > > > Current

[PATCH] MAINTAINERS: Update ARM TI entry

2021-09-03 Thread Lokesh Vutla
Move TI maintainership to Tom. Updated with the following commands: find ./ -name MAINTAINERS | xargs sed -i s/"Lokesh Vutla "/"Tom Rini "/g Signed-off-by: Lokesh Vutla --- MAINTAINERS| 2 +- board/davinci/da8xxevm/MAINTAINERS | 2 +- board/ti/am43xx/MAINTAINERS

Re: [PATCH] doc: Remove information about CAPSULE_FMP_HEADER

2021-09-03 Thread Michal Simek
Hi, On 9/2/21 9:57 PM, Heinrich Schuchardt wrote: > On 8/27/21 12:41 PM, Michal Simek wrote: >> This Kconfig symbol was never added to U-Boot but it was mentioned in the >> origin commit c35df7c9e43e ("qemu: arm64: Add documentation for capsule >> update"). That's why remove it from documentation

Re: [PATCH 0/2] Fix qspi read and write issues

2021-09-03 Thread Michal Simek
On 8/27/21 10:36 AM, Ashok Reddy Soma wrote: > This patch series fixes below issues > - Switch genfifo start to manual start mode > - Unaligned DMA reads > - Minor improvements in initialization > > > > Ashok Reddy Soma (2): > spi: zynqmp_gqspi: Switch genfifo start to manual mode >

Re: [PATCH 3/3] efi_loader: fix efi_tcg2_hash_log_extend_event() parameter check

2021-09-03 Thread Heinrich Schuchardt
On 9/3/21 8:51 AM, Ilias Apalodimas wrote: Hi Heinrich, On Fri, Sep 03, 2021 at 08:22:30AM +0200, Heinrich Schuchardt wrote: On 9/3/21 3:55 AM, Masahisa Kojima wrote: TCG EFI Protocol Specification defines that PCRIndex parameter passed from caller must be 0 to 23. TPM2_MAX_PCRS is currently

[PATCH v2 15/15] update CAAM MAINTAINER

2021-09-03 Thread Gaurav Jain
Signed-off-by: Gaurav Jain --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4cf0c33c5d..938f372917 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1258,3 +1258,10 @@ T: git https://source.denx.de/u-boot/u-boot.git F:

[PATCH v2 14/15] PPC: Enable Job ring driver model in U-Boot

2021-09-03 Thread Gaurav Jain
removed sec_init() call and CONFIG_FSL_CAAM from defconfig. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 44 +++ arch/powerpc/cpu/mpc85xx/cpu_init.c | 17 +--

[PATCH v2 13/15] PPC: Add crypto node in device tree

2021-09-03 Thread Gaurav Jain
device tree imported from linux kernel. c500bee1c5b2 (tag: v5.14-rc4) Linux 5.14-rc4 Signed-off-by: Gaurav Jain --- arch/powerpc/dts/p2041si-post.dtsi | 1 + arch/powerpc/dts/p3041si-post.dtsi | 1 + arch/powerpc/dts/p4080si-post.dtsi | 1 + arch/powerpc/dts/p5040si-post.dtsi | 1 +

[PATCH v2 12/15] Layerscape: Enable Job ring driver model in U-Boot.

2021-09-03 Thread Gaurav Jain
LS(1021/1012/1028/1043/1046/1088/2088), LX2160, LX2162 platforms are enabled with JR driver model. removed sec_init() call from board files. removed CONFIG_FSL_CAAM from defconfig files. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain ---

[PATCH v2 11/15] Layerscape: Add crypto node in device tree

2021-09-03 Thread Gaurav Jain
LS(1021/1012/1028/1043/1046/1088/2088), LX2160 - updated device tree Signed-off-by: Gaurav Jain --- arch/arm/dts/fsl-ls1012a.dtsi | 46 ++- arch/arm/dts/fsl-ls1028a.dtsi | 41 ++- arch/arm/dts/fsl-ls1043a.dtsi | 45

[PATCH v2 10/15] crypto/fsl: Fix kick_trng

2021-09-03 Thread Gaurav Jain
From: Ye Li fix hwrng performance issue in kernel. Signed-off-by: Ye Li Acked-by: Gaurav Jain > --- drivers/crypto/fsl/jr.c | 109 ++-- include/fsl_sec.h | 1 + 2 files changed, 94 insertions(+), 16 deletions(-) diff --git a/drivers/crypto/fsl/jr.c

[PATCH v2 09/15] crypto/fsl: i.MX8: Enable Job ring driver model in SPL and U-Boot.

2021-09-03 Thread Gaurav Jain
i.MX8(QM/QXP) - added support for JR driver model. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Signed-off-by: Horia Geantă --- arch/arm/Kconfig | 3 +++ arch/arm/include/asm/arch-imx8/imx-regs.h | 5 -

[PATCH v2 08/15] i.MX8: Add crypto node in device tree

2021-09-03 Thread Gaurav Jain
i.MX8(QM/QXP) - updated device tree for supporting DM in SPL. disabled use of JR1 in SPL and uboot, as JR1 is reserved for SECO FW. Signed-off-by: Gaurav Jain --- arch/arm/dts/fsl-imx8dx.dtsi | 61 +++- arch/arm/dts/fsl-imx8qm-mek-u-boot.dtsi | 34 -

[PATCH v2 06/15] i.MX7: Enable Job ring driver model in U-Boot.

2021-09-03 Thread Gaurav Jain
i.MX7D - added support for JR driver model. removed sec_init() call, sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain --- arch/arm/Kconfig | 2 +- arch/arm/mach-imx/mx7/Kconfig | 3 +++ arch/arm/mach-imx/mx7/soc.c | 11

[PATCH v2 07/15] i.MX7ULP: Enable Job ring driver model in U-Boot.

2021-09-03 Thread Gaurav Jain
added crypto node in device tree. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain --- arch/arm/Kconfig | 2 +- arch/arm/dts/imx7ulp.dtsi| 24 arch/arm/mach-imx/mx7ulp/Kconfig | 4

[PATCH v2 05/15] i.MX6: Enable Job ring driver model in U-Boot.

2021-09-03 Thread Gaurav Jain
i.MX6(SX/UL) - added support for JR driver model. removed sec_init() call, sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain --- arch/arm/mach-imx/mx6/Kconfig | 8 arch/arm/mach-imx/mx6/soc.c | 12 2 files changed,

[PATCH v2 04/15] crypto/fsl: i.MX8M: Enable Job ring driver model in SPL and U-Boot.

2021-09-03 Thread Gaurav Jain
i.MX8MM/MN/MP/MQ - added support for JR driver model. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain --- arch/arm/Kconfig | 2 +- arch/arm/include/asm/arch-imx8m/imx-regs.h | 1 +

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

2021-09-03 Thread Gaurav Jain
disabled use of JR0 in SPL and uboot, as JR0 is reserved for secure boot. Signed-off-by: Gaurav Jain --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 18 +- arch/arm/dts/imx8mm.dtsi | 1 + arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi | 18 +-

[PATCH v2 02/15] crypto/fsl: Add CAAM support for bkek, random number generation

2021-09-03 Thread Gaurav Jain
added api and descriptor for blob key encryption key(bkek) generation. added api for random number generation. Signed-off-by: Gaurav Jain Signed-off-by: Ji Luo --- drivers/crypto/fsl/desc.h | 5 +++ drivers/crypto/fsl/fsl_blob.c | 82 +++

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

2021-09-03 Thread Gaurav Jain
added device tree support for job ring driver. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain --- cmd/Kconfig | 1 + drivers/crypto/fsl/Kconfig | 7 + drivers/crypto/fsl/Makefile | 2 + drivers/crypto/fsl/jr.c |

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

2021-09-03 Thread Gaurav Jain
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) fixed hwrng performance issue in kernel. i.MX platforms: i.MX6,

Re: [PATCH 2/3] efi_loader: fix boot_service_capability_min calculation

2021-09-03 Thread Heinrich Schuchardt
On 9/3/21 3:55 AM, Masahisa Kojima wrote: TCG EFI Protocol Specification requires to the input ProtocolCapability.Size < size of the EFI_TCG2_BOOT_SERVICE_CAPABILITY up to and including the vendor ID field. Current implementation does different calculation, let's fix it. Signed-off-by:

Re: [PATCH 3/3] efi_loader: fix efi_tcg2_hash_log_extend_event() parameter check

2021-09-03 Thread Ilias Apalodimas
Hi Heinrich, On Fri, Sep 03, 2021 at 08:22:30AM +0200, Heinrich Schuchardt wrote: > On 9/3/21 3:55 AM, Masahisa Kojima wrote: > > TCG EFI Protocol Specification defines that PCRIndex parameter > > passed from caller must be 0 to 23. > > TPM2_MAX_PCRS is currently used to check the range of

Re: [PATCH 1/3] efi_loader: add missing parameter check for EFI_TCG2_PROTOCOL api

2021-09-03 Thread Ilias Apalodimas
Reviewed-by: Ilias Apalodimas On Fri, 3 Sept 2021 at 04:54, Masahisa Kojima wrote: > > TCG EFI Protocol Specification defines the required parameter > checking and return value for each API. > This commit adds the missing parameter check and > fixes the wrong return value to comply the

Re: [PATCH 3/3] efi_loader: fix efi_tcg2_hash_log_extend_event() parameter check

2021-09-03 Thread Heinrich Schuchardt
On 9/3/21 3:55 AM, Masahisa Kojima wrote: TCG EFI Protocol Specification defines that PCRIndex parameter passed from caller must be 0 to 23. TPM2_MAX_PCRS is currently used to check the range of PCRIndex, but TPM2_MAX_PCRS is tpm2 device dependent and may have larger value. This commit newly

Re: [PATCH 3/3] efi_loader: fix efi_tcg2_hash_log_extend_event() parameter check

2021-09-03 Thread Ilias Apalodimas
Reviewed-by: Ilias Apalodimas On Fri, 3 Sept 2021 at 04:54, Masahisa Kojima wrote: > > TCG EFI Protocol Specification defines that PCRIndex parameter > passed from caller must be 0 to 23. > TPM2_MAX_PCRS is currently used to check the range of PCRIndex, > but TPM2_MAX_PCRS is tpm2 device

Re: [PATCH 2/3] efi_loader: fix boot_service_capability_min calculation

2021-09-03 Thread Ilias Apalodimas
Reviewed-by: Ilias Apalodimas On Fri, 3 Sept 2021 at 04:54, Masahisa Kojima wrote: > > TCG EFI Protocol Specification requires to the input > ProtocolCapability.Size < size of the EFI_TCG2_BOOT_SERVICE_CAPABILITY > up to and including the vendor ID field. > Current implementation does different