Re: [PATCH v3 0/3] fpga: zynqmp: Adding support of loading authenticated images

2021-11-14 Thread Michal Simek
On 11/5/21 22:16, Oleksandr Suvorov wrote: Hello Michal, On Wed, Nov 3, 2021 at 1:45 PM Michal Simek wrote: On 11/2/21 14:49, Oleksandr Suvorov wrote: This patchset introduces support for the authenticated FPGA images on ZynqMP boards, besides that introducing common way to pass the

Re: [PATCH v5 02/11] tools: mkeficapsule: add firmwware image signing

2021-11-14 Thread AKASHI Takahiro
Heinrich, On Mon, Nov 08, 2021 at 01:55:24PM +0900, AKASHI Takahiro wrote: > Heinrich, > > On Fri, Nov 05, 2021 at 06:35:08PM +0900, AKASHI Takahiro wrote: > > On Fri, Nov 05, 2021 at 11:35:00AM +0900, AKASHI Takahiro wrote: > > > On Thu, Nov 04, 2021 at 08:02:40PM -0600, Simon Glass wrote: > >

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

2021-11-14 Thread Gaurav Jain
Hello Michael > -Original Message- > From: Michael Walle > Sent: Monday, November 8, 2021 2:29 PM > To: ZHIZHIKIN Andrey > Cc: Gaurav Jain ; Adam Ford ; > U-Boot Mailing List ; Stefano Babic ; > Fabio Estevam ; Peng Fan ; Simon > Glass ; Priyanka Jain ; Ye Li > ; Horia Geanta ; Ji Luo >

[PATCH v5 16/16] update CAAM MAINTAINER

2021-11-14 Thread Gaurav Jain
Signed-off-by: Gaurav Jain --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6db5354322..7d6f0051a2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1296,3 +1296,10 @@ T: git https://source.denx.de/u-boot/u-boot.git F:

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

2021-11-14 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 Reviewed-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 44 +++

[PATCH v5 14/16] PPC: Add crypto node in device tree

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

[PATCH v5 13/16] Layerscape: Enable Job ring driver model in U-Boot.

2021-11-14 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 v5 12/16] Layerscape: Add crypto node in device tree

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

[PATCH v5 11/16] crypto/fsl: Fix kick_trng

2021-11-14 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 v5 10/16] crypto/fsl: i.MX8: Enable Job ring driver model in SPL and U-Boot.

2021-11-14 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ă Reviewed-by: Ye Li --- arch/arm/Kconfig | 3 +++

[PATCH v5 09/16] i.MX8: Add crypto node in device tree

2021-11-14 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 Reviewed-by: Ye Li --- arch/arm/dts/fsl-imx8dx.dtsi | 61 +++- arch/arm/dts/fsl-imx8qm-mek-u-boot.dtsi

[PATCH v5 08/16] i.MX7ULP: Enable Job ring driver model in U-Boot.

2021-11-14 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 Reviewed-by: Ye Li --- arch/arm/Kconfig | 2 +- arch/arm/dts/imx7ulp.dtsi| 24

[PATCH v5 07/16] i.MX7: Enable Job ring driver model in U-Boot.

2021-11-14 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 Reviewed-by: Ye Li --- arch/arm/Kconfig | 2 +- arch/arm/mach-imx/mx7/Kconfig | 3 +++

[PATCH v5 06/16] i.MX6: Enable Job ring driver model in U-Boot.

2021-11-14 Thread Gaurav Jain
i.MX6,i.MX6SX,i.MX6UL - 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 Reviewed-by: Ye Li --- arch/arm/mach-imx/mx6/Kconfig | 20

[PATCH v5 05/16] mx6sabre: Remove unnecessary SPL configs

2021-11-14 Thread Gaurav Jain
From: Ye Li Because we don't use SPL_DM on mx6sabresd and mx6sabreauto, so it is unnecessary to have SPL DTB related configs and SPL_OF_CONTROL enabled. Signed-off-by: Ye Li Reviewed-by: Fabio Estevam Reviewed-by: Gaurav Jain --- configs/mx6sabreauto_defconfig | 2 --

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

2021-11-14 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 Reviewed-by: Ye Li --- arch/arm/Kconfig | 2 +- arch/arm/include/asm/arch-imx8m/imx-regs.h | 1 +

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

2021-11-14 Thread Gaurav Jain
disabled use of JR0 in SPL and uboot, as JR0 is reserved for secure boot. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 19 ++- arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi | 19 ++- arch/arm/dts/imx8mp-evk-u-boot.dtsi

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

2021-11-14 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 Reviewed-by: Ye Li --- drivers/crypto/fsl/desc.h | 5 +++ drivers/crypto/fsl/fsl_blob.c | 82 +++

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

2021-11-14 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 Reviewed-by: Ye Li --- cmd/Kconfig | 1 + drivers/crypto/fsl/Kconfig | 7 + drivers/crypto/fsl/Makefile | 4 +-

[PATCH v5 00/16] Add CAAM driver model support

2021-11-14 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) fix build issue for mx6sabre: Remove SPL DTB related configs and

Re: [PATCH u-boot-marvell 09/11] phy: marvell: a3700: Convert to official DT bindings in COMPHY driver

2021-11-14 Thread Stefan Roese
On 11/12/21 18:27, Marek Behún wrote: On Fri, 12 Nov 2021 14:29:54 +0100 Stefan Roese wrote: On 11/3/21 03:02, Marek Behún wrote: From: Pali Rohár Convert A3720 common PHY driver to official DT bindings. This puts us closer to be able to synchronize A3720 device-trees with those from

Re: [PATCH] LynxOS is no longer supported

2021-11-14 Thread Stefan Roese
On 11/13/21 18:13, Thomas Huth wrote: LynxOS needed the do_bootm_lynxkdi() function that got removed in 7e713067ee ("Remove LYNX KDI remainders") - and that function needed a lynxkdi_boot() function, where the last implementation had been removed in 98f705c9ce ("powerpc: remove 4xx support")

Re: [PATCH] driver: gadget: fastboot: Link endpoint and descriptors

2021-11-14 Thread qianfan
Hi: I had pushed a new version and you can read it from http://patchwork.ozlabs.org/project/uboot/patch/tencent_aecdf2ed56a768ba5afb470f1b5350eba...@qq.com/ This also fixed fastboot data abort bug on am335x platform such as: => fastboot 0 musb-hdrc: peripheral reset irq lost! ** Bad device

[PATCH] lib: sparse: Make CHUNK_TYPE_RAW buffer aligned

2021-11-14 Thread qianfanguijin
From: qianfan Zhao CHUNK_TYPE_RAW buffer is not aligned, and flash sparse images by fastboot will report "Misaligned operation" if DCACHE is enabled. Flashing Sparse Image CACHE: Misaligned operation at range [8428, 84001028] CACHE: Misaligned operation at range [84001034, 84002034] CACHE:

Re: [PATCH] pci: Work around PCIe link training failures

2021-11-14 Thread Maciej W. Rozycki
Hi Pali, > > Well, this code checks for non-zero lnkcap2 first and ignores it if it's > > zero, so I believe it does the right thing. Have I missed anything? > > I'm reading spec again and I'm not sure now. It has following section: > > For software to determine the supported Link speeds

[PATCH v2] sf: Querying write-protect status before operating the flash

2021-11-14 Thread chaochao2021666
From: chao zeng When operating the write-protection flash,spi_flash_std_write() and spi_flash_std_erase() would return wrong result.The flash is protected, but write or erase the flash would show "OK". Check the flash write protection state before operating the flash and give a prompt to show

Re: [RFC 07/22] dm: blk: add UCLASS_PARTITION

2021-11-14 Thread AKASHI Takahiro
Hi Simon, On Sat, Nov 13, 2021 at 02:32:20PM -0700, Simon Glass wrote: > Hi Heinrich, > > On Sat, 13 Nov 2021 at 11:42, Heinrich Schuchardt wrote: > > > > Am 13. November 2021 19:14:32 MEZ schrieb Simon Glass : > > >Hi, > > > > > >On Mon, 8 Nov 2021 at 17:09, Simon Glass wrote: > > >> > > >>

Re: [PATCH] Dockerfile, CI: Update to latest "focal" tag

2021-11-14 Thread Tom Rini
On Sat, Nov 13, 2021 at 06:37:14PM -0500, Tom Rini wrote: > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] Dockerfile: build swtpm

2021-11-14 Thread Tom Rini
On Tue, Nov 09, 2021 at 07:51:20PM +0100, Heinrich Schuchardt wrote: > For testing the TPM drivers and the EFI_TCG2_PROTOCOL we need the tool > swtpm. > > Once we move to Ubuntu Impish we can take libtpms from package libtpms-dev. > > Signed-off-by: Heinrich Schuchardt Applied to

Re: [PATCH] pci: Work around PCIe link training failures

2021-11-14 Thread Pali Rohár
Hello! On Sunday 14 November 2021 18:07:18 Maciej W. Rozycki wrote: > Hi Pali, > > > > + dm_pci_read_config32(dev, pcie_off + PCI_EXP_LNKCAP, _lnkcap); > > > + dm_pci_read_config32(dev, pcie_off + PCI_EXP_LNKCAP2, _lnkcap2); > > > + for (speed = (exp_lnkcap & PCI_EXP_LNKCAP_SLS) - 1; > > > +

Re: [PATCH] pci: Work around PCIe link training failures

2021-11-14 Thread Maciej W. Rozycki
Hi Pali, > > + dm_pci_read_config32(dev, pcie_off + PCI_EXP_LNKCAP, _lnkcap); > > + dm_pci_read_config32(dev, pcie_off + PCI_EXP_LNKCAP2, _lnkcap2); > > + for (speed = (exp_lnkcap & PCI_EXP_LNKCAP_SLS) - 1; > > +speed >= PCI_EXP_LNKCAP_SLS_2_5GB; > > +speed--) { > > +

Re: [PATCH] pci: Work around PCIe link training failures

2021-11-14 Thread Pali Rohár
Hello Maciej! On Sunday 14 November 2021 15:16:47 Maciej W. Rozycki wrote: > + dm_pci_read_config32(dev, pcie_off + PCI_EXP_LNKCAP, _lnkcap); > + dm_pci_read_config32(dev, pcie_off + PCI_EXP_LNKCAP2, _lnkcap2); > + for (speed = (exp_lnkcap & PCI_EXP_LNKCAP_SLS) - 1; > + speed

Re: Please pull u-boot-dm

2021-11-14 Thread Tom Rini
On Sat, Nov 13, 2021 at 05:38:39PM -0700, Simon Glass wrote: > Hi Tom, > > https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/9840 > > > > The following changes since commit a51673eb75de328d3471b742e593f04b166591c4: > > configs: Resync with savedefconfig (2021-11-12 23:37:42

[PATCH] pci: Work around PCIe link training failures

2021-11-14 Thread Maciej W. Rozycki
Attempt to handle cases with a downstream port of a PCIe switch where link training never completes and the link continues switching between speeds indefinitely with the data link layer never reaching the active state. It has been observed with a downstream port of the ASMedia ASM2824 Gen 3

Re: [PATCH 1/3] watchdog: Add a driver for the Apple watchdog

2021-11-14 Thread Sven Peter
On Sun, Nov 14, 2021, at 12:19, Mark Kettenis wrote: > This driver supports the watchdog timer found on Apple's M1 SoC. > On systems that use these SoC, the watchdog timer is the primary > way to reboot the system. > > Signed-off-by: Mark Kettenis For the code that drives the HW:

[PATCH] arm: apple: Remove CONFIG_SYS_SDRAM_BASE

2021-11-14 Thread Mark Kettenis
The memory layout is taken from the device tree passed to us by m1n1, so there is no need to define this. Signed-off-by: Mark Kettenis --- include/configs/apple.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/apple.h b/include/configs/apple.h index b1f6043174..112724883b

[PATCH 3/3] arm: apple: Use watchdog timer for system reset

2021-11-14 Thread Mark Kettenis
Rely on the new watchdog timer driver and the sysreset uclass to reset the system. This gets rid of hard-coded addresses and should work on systems based on the new M1 Pro and M1 Max SoCs as well. Signed-off-by: Mark Kettenis --- arch/arm/Kconfig| 3 +++

[PATCH 2/3] arm: dts: apple: Add watchdog timer node

2021-11-14 Thread Mark Kettenis
Add a node for the watchdog timer based on the proposed Linux device tree bindings. Signed-off-by: Sven Peter Signed-off-by: Mark Kettenis --- arch/arm/dts/t8103.dtsi | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/arch/arm/dts/t8103.dtsi

[PATCH 0/4] Apple M1 watchdog timer

2021-11-14 Thread Mark Kettenis
This series adds a driver for the watchdog timer found on Apple's M1 SoC and replaces the reset_cpu() function in the board file with sysreset. The driver is based on the Linux binding proposed in [1]. [1]

[PATCH 1/3] watchdog: Add a driver for the Apple watchdog

2021-11-14 Thread Mark Kettenis
This driver supports the watchdog timer found on Apple's M1 SoC. On systems that use these SoC, the watchdog timer is the primary way to reboot the system. Signed-off-by: Mark Kettenis --- MAINTAINERS | 1 + drivers/watchdog/Kconfig | 9 +++ drivers/watchdog/Makefile

Re: [PATCH 09/10] ide: Drop unused CONFIG options

2021-11-14 Thread Heinrich Schuchardt
On 11/14/21 04:22, Simon Glass wrote: CONFIG_SYS_ATA_PORT_ADDR is not used in the code anymore. Drop it and use ATA_PORT_ADDR() locally instead. Drop CONFIG_IDE_RESET_ROUTINE and CONFIG_IDE_SWAP_IO which are also unused. Signed-off-by: Simon Glass --- README

Re: [PATCH 04/10] Convert CONFIG_PHYSMEM to Kconfig

2021-11-14 Thread Heinrich Schuchardt
On 11/14/21 04:21, Simon Glass wrote: This converts the following to Kconfig: CONFIG_PHYSMEM Signed-off-by: Simon Glass --- README | 8 arch/Kconfig | 2 ++ include/configs/edison.h | 3 --- include/configs/sandbox.h| 2 --

Re: [PATCH 02/10] sandbox: Drop CONFIG_HOST_MAX_DEVICES

2021-11-14 Thread Heinrich Schuchardt
On 11/14/21 04:21, Simon Glass wrote: This can go in the related header file. Drop the CONFIG option. 4 devices seems to be adequate. Reviewed-by: Heinrich Schuchardt Signed-off-by: Simon Glass --- cmd/host.c | 2 +- drivers/block/sandbox.c | 6 +++---

Re: [PATCH 01/10] trace: sandbox: Use only the Kconfig options

2021-11-14 Thread Heinrich Schuchardt
On 11/14/21 04:21, Simon Glass wrote: At present there are Kconfig options for tracing, but sandbox uses plain #defines to set them. Correct this and make the tracing command default to enabled so that this is not needed. Signed-off-by: Simon Glass --- cmd/Kconfig | 2 ++

[PATCH 3/5] lmb: remove extern keyword in lmb.h

2021-11-14 Thread Heinrich Schuchardt
The extern keyword is not needed in include/lmb.h to declare functions. Remove it. Signed-off-by: Heinrich Schuchardt --- include/lmb.h | 36 +--- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/include/lmb.h b/include/lmb.h index

[PATCH 4/5] lmb: drop unused lmb_size_bytes()

2021-11-14 Thread Heinrich Schuchardt
lmb_size_bytes() is unused. Signed-off-by: Heinrich Schuchardt --- include/lmb.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/include/lmb.h b/include/lmb.h index 6182054f68..ab277ca800 100644 --- a/include/lmb.h +++ b/include/lmb.h @@ -113,12 +113,6 @@ long lmb_free(struct lmb *lmb,

[PATCH 5/5] lmb: fix typo 'commun'

2021-11-14 Thread Heinrich Schuchardt
%s/commun/common/ Signed-off-by: Heinrich Schuchardt --- lib/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Kconfig b/lib/Kconfig index 70bf8e7a46..807a4c6ade 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -793,7 +793,7 @@ config LMB Support the library

[PATCH 2/5] doc: add include/lmb.h to the HTML documentation

2021-11-14 Thread Heinrich Schuchardt
Correct Sphinx style comments in include/lmb.h Add the logical memory block API to the HTML documentation. Signed-off-by: Heinrich Schuchardt --- doc/api/index.rst | 1 + doc/api/lmb.rst | 7 +++ include/lmb.h | 23 --- 3 files changed, 20 insertions(+), 11

[PATCH 1/5] lmb: remove lmb_is_nomap() from include

2021-11-14 Thread Heinrich Schuchardt
Defining static functions in includes should be avoided. Function lmb_is_nomap() is only used in the unit test. So move it to the unit test. Signed-off-by: Heinrich Schuchardt --- include/lmb.h | 7 --- test/lib/lmb.c | 5 + 2 files changed, 5 insertions(+), 7 deletions(-) diff --git

[PATCH 0/5] lmb: documentation and clean up

2021-11-14 Thread Heinrich Schuchardt
Add the LMB library to the HTML documenation. Start cleaning up the library. Heinrich Schuchardt (5): lmb: remove lmb_is_nomap() from include doc: add include/lmb.h to the HTML documentation lmb: remove extern keyword in lmb.h lmb: drop unused lmb_size_bytes() lmb: fix typo 'commun'