Re: [PATCH 01/26] Revert "pci: pci-uclass: Dynamically allocate the PCI regions"

2021-02-09 Thread Stefan Roese
Hi Simon, Bin & Tom, On 10.02.21 06:10, Simon Glass wrote: Hi Bin, On Tue, 9 Feb 2021 at 17:47, Bin Meng wrote: Hi Simon, On Sun, Feb 7, 2021 at 11:34 PM Simon Glass wrote: Hi Bin, On Sun, 7 Feb 2021 at 08:11, Bin Meng wrote: This reverts commit

Re: [PATCH 14/25] arm: Remove sheevaplug board

2021-02-09 Thread Chris Packham
On Wed, 10 Feb 2021, 2:07 AM Tom Rini, wrote: > This board has not been converted to CONFIG_DM_MMC by the deadline of > v2019.04, which is almost two years ago. In addition there are other DM > migrations it is also missing. Remove it. > We did get the odd bug report from debian for

Re: [PATCH 24/25] arm: Remove db-88f6281-bp board

2021-02-09 Thread Chris Packham
On Wed, 10 Feb 2021, 2:04 AM Tom Rini, wrote: > This board has not been converted to CONFIG_DM_MMC by the deadline of > v2019.04, which is almost two years ago. In addition there are other DM > migrations it is also missing. Remove it. > > Cc: Chris Packham > Signed-off-by: Tom Rini > I did

Re: [PATCH 1/1] efi_loader: fix get_last_capsule()

2021-02-09 Thread Heinrich Schuchardt
Am 10. Februar 2021 07:43:25 MEZ schrieb AKASHI Takahiro : >On Wed, Feb 10, 2021 at 07:05:10AM +0100, Heinrich Schuchardt wrote: >> Am 10. Februar 2021 01:38:38 MEZ schrieb AKASHI Takahiro >: >> >On Tue, Feb 09, 2021 at 09:37:42PM +0100, Heinrich Schuchardt wrote: >> >> fix get_last_capsule()

Re: [PATCH 1/1] efi_loader: fix get_last_capsule()

2021-02-09 Thread Heinrich Schuchardt
Am 10. Februar 2021 07:43:25 MEZ schrieb AKASHI Takahiro : >On Wed, Feb 10, 2021 at 07:05:10AM +0100, Heinrich Schuchardt wrote: >> Am 10. Februar 2021 01:38:38 MEZ schrieb AKASHI Takahiro >: >> >On Tue, Feb 09, 2021 at 09:37:42PM +0100, Heinrich Schuchardt wrote: >> >> fix get_last_capsule()

Re: [PATCH 1/1] efi_loader: fix get_last_capsule()

2021-02-09 Thread AKASHI Takahiro
On Wed, Feb 10, 2021 at 07:05:10AM +0100, Heinrich Schuchardt wrote: > Am 10. Februar 2021 01:38:38 MEZ schrieb AKASHI Takahiro > : > >On Tue, Feb 09, 2021 at 09:37:42PM +0100, Heinrich Schuchardt wrote: > >> fix get_last_capsule() leads to writes beyond the stack allocated > >buffer. > >> This

Re: [PATCH 1/1] efi_loader: fix get_last_capsule()

2021-02-09 Thread Heinrich Schuchardt
Am 10. Februar 2021 01:38:38 MEZ schrieb AKASHI Takahiro : >On Tue, Feb 09, 2021 at 09:37:42PM +0100, Heinrich Schuchardt wrote: >> fix get_last_capsule() leads to writes beyond the stack allocated >buffer. >> This was indicated when enabling the stack protector. >> >> utf16_utf8_strcpy() only

Re: [PATCH 01/26] Revert "pci: pci-uclass: Dynamically allocate the PCI regions"

2021-02-09 Thread Simon Glass
Hi Bin, On Tue, 9 Feb 2021 at 17:47, Bin Meng wrote: > > Hi Simon, > > On Sun, Feb 7, 2021 at 11:34 PM Simon Glass wrote: > > > > Hi Bin, > > > > On Sun, 7 Feb 2021 at 08:11, Bin Meng wrote: > > > > > > This reverts commit e002474158d1054a7a2ff9a66149384c639ff242. > > > > > > Commit

Re: [PATCH u-boot-dm + u-boot-spi v2 1/7] dm: core: add test for ofnode_get_addr_size_index()

2021-02-09 Thread Simon Glass
On Tue, 9 Feb 2021 at 07:45, Marek Behún wrote: > > Add test for ofnode_get_addr_size_index(), which will test OF address > translation. > > Signed-off-by: Marek Behún > Cc: Simon Glass > --- > test/dm/ofnode.c | 23 +++ > 1 file changed, 23 insertions(+) Reviewed-by:

Re: [PATCH u-boot-dm + u-boot-spi v2 2/7] dm: core: add non-translating version of ofnode_get_addr_size_index()

2021-02-09 Thread Simon Glass
On Tue, 9 Feb 2021 at 07:45, Marek Behún wrote: > > Add functions ofnode_get_addr_size_index_notrans(), which is a > non-translating version of ofnode_get_addr_size_index(). > > Some addresses are not meant to be translated, for example those of MTD > fixed-partitions. > > Signed-off-by: Marek

Re: [PATCH v5 2/4] button: add a simple Analog to Digital Converter device based button driver

2021-02-09 Thread Simon Glass
Hi Marek, On Tue, 9 Feb 2021 at 01:43, Marek Szyprowski wrote: > > Hi Simon, > > On 08.02.2021 18:08, Simon Glass wrote: > > On Mon, 8 Feb 2021 at 09:10, Marek Szyprowski > > wrote: > >> On 06.02.2021 17:21, Simon Glass wrote: > >>> On Thu, 4 Feb 2021 at 03:36, Marek Szyprowski > >>> wrote:

[PATCH v2 1/1] timer: imx-gpt: Add timer support for i.MX SoCs family

2021-02-09 Thread Jesse Taube
This timer driver is using GPT Timer (General Purpose Timer) available on almost all i.MX SoCs family. Since this driver is only meant to provide u-boot's timer and counter, and most of the i.MX* SoCs use a 24Mhz crystal, let's only deal with that specific source. Signed-off-by: Giulio Benetti

[PATCH v2 0/1] Add driver support for the IMX General Purpose Timer (GPT) available

2021-02-09 Thread Jesse Taube
Giulio Benetti (3): timer: imx-gpt: Add timer support for i.MX SoCs family Jesse Taube (1): timer: imx-gpt: Add timer support for i.MX SoCs family drivers/timer/Kconfig | 7 ++ drivers/timer/Makefile| 1 + drivers/timer/imx-gpt-timer.c | 132

[PATCH 13/16] ppc: Remove MPC8641HPCN board

2021-02-09 Thread Tom Rini
This board relies on using CONFIG_LIBATA but does not enable CONFIG_AHCI. The deadline for this conversion was the v2019.07 release. The use of CONFIG_AHCI requires CONFIG_DM. The deadline for this conversion was v2020.01. Remove this board. Cc: Priyanka Jain Signed-off-by: Tom Rini ---

[PATCH 10/16] ppc: Remove MPC8544DS board

2021-02-09 Thread Tom Rini
This board relies on using CONFIG_LIBATA but does not enable CONFIG_AHCI. The deadline for this conversion was the v2019.07 release. The use of CONFIG_AHCI requires CONFIG_DM. The deadline for this conversion was v2020.01. Remove this board. Cc: Priyanka Jain Signed-off-by: Tom Rini ---

[PATCH 09/16] ppc: Remove MPC8349ITX board

2021-02-09 Thread Tom Rini
This board relies on using CONFIG_LIBATA but does not enable CONFIG_AHCI. The deadline for this conversion was the v2019.07 release. The use of CONFIG_AHCI requires CONFIG_DM. The deadline for this conversion was v2020.01. Remove this board. Signed-off-by: Tom Rini ---

[PATCH 12/16] ppc: Remove MPC8610HPCD board

2021-02-09 Thread Tom Rini
This board relies on using CONFIG_LIBATA but does not enable CONFIG_AHCI. The deadline for this conversion was the v2019.07 release. The use of CONFIG_AHCI requires CONFIG_DM. The deadline for this conversion was v2020.01. Remove this board. Cc: Priyanka Jain Signed-off-by: Tom Rini ---

[PATCH 16/16] ata: Make LIBATA means AHCI is enabled mandatory.

2021-02-09 Thread Tom Rini
The migration deadline for having LIBATA mean that AHCI is also enabled was v2019.07. As that has long since passed, adjust the Kconfig dependencies. Signed-off-by: Tom Rini --- Makefile| 11 --- drivers/ata/Kconfig | 6 -- 2 files changed, 4 insertions(+), 13

[PATCH 14/16] boards: Disable CMD_SATA on platforms that no longer have a SATA driver enabled

2021-02-09 Thread Tom Rini
There are a number of platforms that depend on a SATA driver that has been converted to require AHCI but the platforms themselves are behind on other migrations that would make it trivial to enable AHCI. Disable SATA in these cases. Signed-off-by: Tom Rini --- arch/powerpc/cpu/mpc83xx/Kconfig

[PATCH 15/16] drivers: ata: Remove mvsata_ide driver

2021-02-09 Thread Tom Rini
The mvsata_ide driver was due for DM conversion by v2019.07. As that has long passed, remove the driver and disable it in the boards which had enabled it. Signed-off-by: Tom Rini --- Makefile | 10 - arch/arm/mach-kirkwood/include/mach/config.h | 2 -

[PATCH 11/16] ppc: Remove MPC8572DS board

2021-02-09 Thread Tom Rini
This board relies on using CONFIG_LIBATA but does not enable CONFIG_AHCI. The deadline for this conversion was the v2019.07 release. The use of CONFIG_AHCI requires CONFIG_DM. The deadline for this conversion was v2020.01. Remove this board. Cc: Priyanka Jain Signed-off-by: Tom Rini ---

[PATCH 06/16] arm: Remove dms-ba16 board

2021-02-09 Thread Tom Rini
This board relies on using CONFIG_LIBATA but does not enable CONFIG_AHCI. The deadline for this conversion was the v2019.07 release. The use of CONFIG_AHCI requires CONFIG_DM. The deadline for this conversion was v2020.01. Remove this board. Cc: Akshay Bhat Cc: Ken Lin Signed-off-by: Tom

[PATCH 08/16] arm: Remove mx53loco board

2021-02-09 Thread Tom Rini
This board relies on using CONFIG_LIBATA but does not enable CONFIG_AHCI. The deadline for this conversion was the v2019.07 release. The use of CONFIG_AHCI requires CONFIG_DM. The deadline for this conversion was v2020.01. Remove this board. Cc: Jason Liu Signed-off-by: Tom Rini ---

[PATCH 07/16] arm: Remove ot1200 board

2021-02-09 Thread Tom Rini
This board relies on using CONFIG_LIBATA but does not enable CONFIG_AHCI. The deadline for this conversion was the v2019.07 release. In order to convert to using the DWC SATA driver under DM further migrations are required. Cc: Christian Gmeiner Signed-off-by: Tom Rini ---

[PATCH 05/16] arm: Remove highbank board

2021-02-09 Thread Tom Rini
This board relies on using CONFIG_LIBATA but does not enable CONFIG_AHCI. The deadline for this conversion was the v2019.07 release. The use of CONFIG_AHCI requires CONFIG_DM. The deadline for this conversion was v2020.01. Remove this board. Cc: Rob Herring Signed-off-by: Tom Rini ---

[PATCH 04/16] ppc: configs: Remove a few non-updated build configurations

2021-02-09 Thread Tom Rini
In the cases of T2080RDB_SECURE_BOOT, T2080RDB_SRIO_PCIE_BOOT, P2041RDB_SECURE_BOOT, P2041RDB_SRIO_PCIE_BOOT, P3041DS_SRIO_PCIE_BOOT and P4080DS_SRIO_PCIE_BOOT while some forms of the board have been migrated more fully to current build standards, these have not. Remove them. Cc: Priyanka Jain

[PATCH 03/16] ata: DWC_AHSATA depends on BLK

2021-02-09 Thread Tom Rini
The dwc ahsata driver is written such that CONFIG_BLK must be enabled, add this as a dependency in Kconfig. Signed-off-by: Tom Rini --- drivers/ata/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index f2f8275aeca8..3914f996d91c 100644 ---

[PATCH 02/16] am57xx_hs_evm_usb: Enable AHCI and BLK

2021-02-09 Thread Tom Rini
Enable the AHCI and BLK features to complete migration of various drivers. Cc: Andrew F. Davis Cc: Lokesh Vutla Signed-off-by: Tom Rini --- configs/am57xx_hs_evm_usb_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/am57xx_hs_evm_usb_defconfig

[PATCH 01/16] ls1012aqds_tfa_SECURE_BOOT: Remove unused CONFIG_SCSI_AHCI

2021-02-09 Thread Tom Rini
Signed-off-by: Tom Rini --- configs/ls1012aqds_tfa_SECURE_BOOT_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/ls1012aqds_tfa_SECURE_BOOT_defconfig b/configs/ls1012aqds_tfa_SECURE_BOOT_defconfig index 8f6ca820a24b..214a2bb9e735 100644 ---

Re: [PATCH v4 6/9] mtd: spi-nor-core: Add overlaid sector erase feature

2021-02-09 Thread Takahiro Kuwano
Hi Pratyush, On 2/2/2021 3:56 AM, Pratyush Yadav wrote: > Hi Takahiro, > > On 28/01/21 01:36PM, tkuw584...@gmail.com wrote: >> From: Takahiro Kuwano >> >> Some of Spansion/Cypress chips have overlaid 4KB sectors at top and/or >> bottom, depending on the device configuration, while U-Boot

Re: [PATCH 01/26] Revert "pci: pci-uclass: Dynamically allocate the PCI regions"

2021-02-09 Thread Tom Rini
On Wed, Feb 10, 2021 at 08:46:51AM +0800, Bin Meng wrote: > Hi Simon, > > On Sun, Feb 7, 2021 at 11:34 PM Simon Glass wrote: > > > > Hi Bin, > > > > On Sun, 7 Feb 2021 at 08:11, Bin Meng wrote: > > > > > > This reverts commit e002474158d1054a7a2ff9a66149384c639ff242. > > > > > > Commit

Re: [PATCH u-boot] fs: btrfs: do not fail when offset of a ROOT_ITEM is not -1

2021-02-09 Thread Qu Wenruo
On 2021/2/10 上午9:05, Marek Behun wrote: On Wed, 10 Feb 2021 08:09:14 +0800 Qu Wenruo wrote: On 2021/2/10 上午1:33, Marek Behún wrote: When the btrfs_read_fs_root() function is searching a ROOT_ITEM with location key offset other than -1, it currently fails via BUG_ON. The offset can have

Re: [PATCH u-boot] fs: btrfs: do not fail when offset of a ROOT_ITEM is not -1

2021-02-09 Thread Marek Behun
On Wed, 10 Feb 2021 08:09:14 +0800 Qu Wenruo wrote: > On 2021/2/10 上午1:33, Marek Behún wrote: > > When the btrfs_read_fs_root() function is searching a ROOT_ITEM with > > location key offset other than -1, it currently fails via BUG_ON. > > > > The offset can have other value than -1, though.

Re: [PATCH 01/26] Revert "pci: pci-uclass: Dynamically allocate the PCI regions"

2021-02-09 Thread Bin Meng
Hi Simon, On Sun, Feb 7, 2021 at 11:34 PM Simon Glass wrote: > > Hi Bin, > > On Sun, 7 Feb 2021 at 08:11, Bin Meng wrote: > > > > This reverts commit e002474158d1054a7a2ff9a66149384c639ff242. > > > > Commit e002474158d1 ("pci: pci-uclass: Dynamically allocate the PCI > > regions") > > changes

Re: [PATCH 1/1] efi_loader: fix get_last_capsule()

2021-02-09 Thread AKASHI Takahiro
On Tue, Feb 09, 2021 at 09:37:42PM +0100, Heinrich Schuchardt wrote: > fix get_last_capsule() leads to writes beyond the stack allocated buffer. > This was indicated when enabling the stack protector. > > utf16_utf8_strcpy() only stops copying when reaching '\0'. The current > invocation always

Re: [PATCH 00/26] ppc: qemu: Convert qemu-ppce500 to driver model

2021-02-09 Thread Bin Meng
On Sun, Feb 7, 2021 at 11:11 PM Bin Meng wrote: > > At present when building qemu-ppce500 the following warnings are seen: > > = WARNING == > This board does not use CONFIG_DM. CONFIG_DM will be > compulsory starting with the v2020.01 release. > Failure to

Re: [PATCH u-boot 1/2] fs: btrfs: skip xattrs in directory listing

2021-02-09 Thread Qu Wenruo
On 2021/2/10 上午2:05, Marek Behún wrote: Skip xattrs in directory listing. U-Boot filesystem drivers do not list xattrs. Signed-off-by: Marek Behún Cc: David Sterba Cc: Qu Wenruo Cc: Tom Rini Reviewed-by: Qu Wenruo Thanks, Qu --- fs/btrfs/btrfs.c | 5 - 1 file changed, 4

Re: [PATCH u-boot 2/2] fs: btrfs: change directory list output to be aligned as before

2021-02-09 Thread Qu Wenruo
On 2021/2/10 上午2:05, Marek Behún wrote: Since commit 325dd1f642dd ("fs: btrfs: Use btrfs_iter_dir() to ...") when btrfs is listing a directory, the output is not aligned: 15 Wed Sep 09 13:20:03 2020 boot.scr -> @/boot/boot.scr 0 Tue Feb 02 12:42:09 2021 @

Re: [PATCH u-boot] fs: btrfs: do not fail when offset of a ROOT_ITEM is not -1

2021-02-09 Thread Qu Wenruo
On 2021/2/10 上午1:33, Marek Behún wrote: When the btrfs_read_fs_root() function is searching a ROOT_ITEM with location key offset other than -1, it currently fails via BUG_ON. The offset can have other value than -1, though. This can happen for example if a subvolume is renamed: $ btrfs

Re: [PATCH 3/5] lib: ecdsa: Implement signature verification for crypto_algo API

2021-02-09 Thread Alex G.
On 2/9/21 9:56 AM, Patrick DELAUNAY wrote: Hi, [snip] diff --git a/lib/ecdsa/ecdsa-verify.c b/lib/ecdsa/ecdsa-verify.c index d2e6a40f4a..d84f6eb093 100644 --- a/lib/ecdsa/ecdsa-verify.c +++ b/lib/ecdsa/ecdsa-verify.c @@ -1,13 +1,128 @@   // SPDX-License-Identifier: GPL-2.0+   /* + * ECDSA

[PATCH u-boot-marvell 3/4] arm: mvebu: turris_omnia: Enable CMD_WDT

2021-02-09 Thread Marek Behún
This command can be sometimes used for debugging. Signed-off-by: Marek Behún Cc: Pali Rohár Cc: Stefan Roese --- configs/turris_omnia_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig index 810eacefc2..295f05f3b3

[PATCH u-boot-marvell 4/4] arm: mvebu: turris_omnia: Enable CMD_FS_UUID

2021-02-09 Thread Marek Behún
This command can be useful for U-Boot scripts. Signed-off-by: Marek Behún Cc: Pali Rohár Cc: Stefan Roese --- configs/turris_omnia_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig index 295f05f3b3..a8218da1a0 100644

[PATCH u-boot-marvell 1/4] rtc: add armada38x driver

2021-02-09 Thread Marek Behún
Add RTC driver for Armada 38x, based on Linux' driver. For now implement only `marvell,armada-380-rtc` compatible. Signed-off-by: Marek Behún Cc: Pali Rohár Cc: Stefan Roese Cc: Baruch Siach Cc: Chris Packham Cc: Simon Glass --- drivers/rtc/Kconfig | 7 ++ drivers/rtc/Makefile|

[PATCH u-boot-marvell 2/4] arm: mvebu: turris_omnia: Enable DM_RTC and RTC_ARMADA38X

2021-02-09 Thread Marek Behún
With this the date command is available on Turris Omnia. Signed-off-by: Marek Behún Cc: Pali Rohár Cc: Stefan Roese --- configs/turris_omnia_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig index

Re: [PATCH 2/5] lib: ecdsa: Add skeleton to implement ecdsa verification in u-boot

2021-02-09 Thread Alex G.
Hi Patrick, On 2/9/21 9:11 AM, Patrick DELAUNAY wrote: Hi, On 1/11/21 4:41 PM, Alexandru Gagniuc wrote: Prepare the source tree for accepting implementations of the ECDSA algorithm. This patch deals with the boring aspects of Makefiles and Kconfig files. Signed-off-by: Alexandru Gagniuc ---  

Re: [PATCH] timer: imx-gpt: Add timer support for i.MX SoCs family

2021-02-09 Thread Giulio Benetti
Hi Jesse, On 2/9/21 9:42 PM, Jesse Taube wrote: From: Mr-Bossman This timer driver is using GPT Timer (General Purpose Timer) available on almost all i.MX SoCs family. Please provide more explanation about costraints it has. It works only with a source clock at 24Mhz. So something like: '''

Re: [PATCH u-boot-marvell 00/18] Upgrade A38x DDR3 training to version 14.0.0

2021-02-09 Thread Chris Packham
On 9/02/21 7:34 am, Marek Behún wrote: > This syncs drivers/ddr/marvell/a38x/ with the mv-ddr-devel branch > of https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell.git. > > There are some commits regarding DDR3 on top of version 14.0.0 in the > mv-ddr-marvell repository (from Chris

Re: [PATCH u-boot-marvell 00/18] Upgrade A38x DDR3 training to version 14.0.0

2021-02-09 Thread Chris Packham
On 10/02/21 2:15 am, Marek Behun wrote: > On Tue, 9 Feb 2021 06:50:35 + > Chris Packham wrote: > >> On 9/02/21 3:07 pm, Marek Behun wrote: >>> On Tue, 9 Feb 2021 01:08:54 + >>> Chris Packham wrote: >>> On 9/02/21 1:16 pm, Chris Packham wrote: > On 9/02/21 9:18 am, Marek

[PATCH] timer: imx-gpt: Add timer support for i.MX SoCs family

2021-02-09 Thread Jesse Taube
From: Mr-Bossman This timer driver is using GPT Timer (General Purpose Timer) available on almost all i.MX SoCs family. Signed-off-by: Giulio Benetti Signed-off-by: Jesse Taube --- drivers/timer/Kconfig | 7 ++ drivers/timer/Makefile| 1 + drivers/timer/imx-gpt-timer.c |

Re: [PATCH v1 1/1] drivers: mmc: iproc_sdhci: enable HS200 mode

2021-02-09 Thread Jaehoon Chung
Hi Rayagonda, On 2/9/21 1:34 PM, Rayagonda Kokatanur wrote: > From: Bharat Gooty > > Add tuning functionality which is needed for HS200 mode. > For HS200, program the correct needed 1.8 voltage I didn't test with this on target. But how did you use HS200 mode? In this patch, there is no set to

Re: [PATCH 0/5] Enable ECDSA FIT verification for stm32mp

2021-02-09 Thread Alex G.
Hi Patrick, On 2/9/21 9:08 AM, Patrick DELAUNAY wrote: [snip] For information, today the STMicroelectronics expected that the boot sequence for secure boot (with closed STM32MP1 devices) is the trusted boot chain. TF-A (BL2) => OP-TEE or  => U-Boot =>  OS     TF-A

Re: [PATCH v9] Add support for stack-protector

2021-02-09 Thread Heinrich Schuchardt
On 09.02.21 13:49, Heinrich Schuchardt wrote: > On 09.02.21 04:36, Joel Peshkin wrote: >> Add support for stack protector for UBOOT, SPL, and TPL >> as well as new pytest for stackprotector >> >> Signed-off-by: Joel Peshkin > > Before merging the patch the stack smash in > >

[PATCH 1/1] efi_loader: fix get_last_capsule()

2021-02-09 Thread Heinrich Schuchardt
fix get_last_capsule() leads to writes beyond the stack allocated buffer. This was indicated when enabling the stack protector. utf16_utf8_strcpy() only stops copying when reaching '\0'. The current invocation always writes beyond the end of value[]. The output length of utf16_utf8_strcpy() may

[PATCH 1/1] efi_loader: '.' and '..' are directories

2021-02-09 Thread Heinrich Schuchardt
'.' and '..' are directories. So when looking for capsule files it is sufficient to check that the attribute EFI_FILE_DIRECTORY is not set. We don't have to check for these special names. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_capsule.c | 4 +--- 1 file changed, 1

Re: [PATCH u-boot-marvell 00/18] Upgrade A38x DDR3 training to version 14.0.0

2021-02-09 Thread Chris Packham
On 9/02/21 10:15 pm, Pali Rohár wrote: > On Tuesday 09 February 2021 01:08:54 Chris Packham wrote: >> On 9/02/21 1:16 pm, Chris Packham wrote: >>> On 9/02/21 9:18 am, Marek Behun wrote: On Mon, 8 Feb 2021 20:11:06 + Chris Packham wrote: > Hi Marek, > > Do you have

[PATCH u-boot] cmd: pinmux: depend on PINCTRL

2021-02-09 Thread Marek Behún
The pinmux command uses functions pinctrl_get_pin_*(), which are missing if PINCTRL config option is disabled. Signed-off-by: Marek Behún Cc: Simon Glass Cc: Tom Rini --- cmd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 928a2a0a2d..4defbd9cf9

[PATCH 1/1] Allow last block to be read

2021-02-09 Thread Jesper Schmitz Mouridsen
The last block is of size media->block_size --- lib/efi_loader/efi_disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_disk.c b/lib/efi_loader/efi_disk.c index 1f6b817dea..f77f465d20 100644 --- a/lib/efi_loader/efi_disk.c +++ b/lib/efi_loader/efi_disk.c

[PATCH 0/1] Allow last block to be read

2021-02-09 Thread Jesper Schmitz Mouridsen
The last block could not be read by FreeBSD loader.efi (the gpt backup block) Jesper Schmitz Mouridsen (1): Allow last block to be read lib/efi_loader/efi_disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.30.0

[PATCHv5 5/6] sandbox: imply SCP03 and CMD_SCP03

2021-02-09 Thread Jorge Ramirez-Ortiz
From: Igor Opaniuk Enable by default SCP_03/CMD_SCP03 for sandbox target. Signed-off-by: Igor Opaniuk --- arch/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index 27843cd79c..7023223927 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -142,6 +142,8

[PATCHv5 6/6] test: py: add initial coverage for scp03 cmd

2021-02-09 Thread Jorge Ramirez-Ortiz
From: Igor Opaniuk Add initial test coverage for SCP03 command. Signed-off-by: Igor Opaniuk --- test/py/tests/test_scp03.py | 27 +++ 1 file changed, 27 insertions(+) create mode 100644 test/py/tests/test_scp03.py diff --git a/test/py/tests/test_scp03.py

[PATCHv5 4/6] doc: describe the scp03 command

2021-02-09 Thread Jorge Ramirez-Ortiz
The Secure Channel Protocol 03 command sends control requests (enable/provision) to the TEE implementing the protocol between the processor and the secure element. Signed-off-by: Jorge Ramirez-Ortiz --- doc/usage/index.rst | 1 + doc/usage/scp03.rst | 33 + 2

[PATCHv5 3/6] drivers: tee: sandbox: SCP03 control emulator

2021-02-09 Thread Jorge Ramirez-Ortiz
Adds support for a working SCP03 emulation. Input parameters are validated however the commands (enable, provision) executed by the TEE are assumed to always succeed. Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Simon Glass --- drivers/tee/optee/Kconfig | 6 + drivers/tee/sandbox.c

[PATCHv5 2/6] cmd: SCP03: enable and provision command

2021-02-09 Thread Jorge Ramirez-Ortiz
Enable and provision the SCP03 keys on a TEE controlled secured elemt from the U-Boot shell. Executing this command will generate and program new SCP03 encryption keys on the secure element NVM. Depending on the TEE implementation, the keys would then be stored in some persistent storage or

[PATCHv5 1/6] common: SCP03 control (enable and provision of keys)

2021-02-09 Thread Jorge Ramirez-Ortiz
This Trusted Application allows enabling SCP03 as well as provisioning the keys on TEE controlled secure element (ie, NXP SE050). All the information flowing on buses (ie I2C) between the processor and the secure element must be encrypted. Secure elements are pre-provisioned with a set of keys

Re: [PATCH] usb: dwc2: change compatible st,stm32mp1-hsotg to st,stm32mp15-hsotg

2021-02-09 Thread Patrick DELAUNAY
On 2/9/21 11:39 AM, Marek Vasut wrote: On 2/9/21 11:14 AM, Patrick Delaunay wrote: Hi, [...] diff --git a/drivers/usb/gadget/dwc2_udc_otg.c b/drivers/usb/gadget/dwc2_udc_otg.c index e3871e381e..ecac80fc11 100644 --- a/drivers/usb/gadget/dwc2_udc_otg.c +++

[PATCHv4 3/6] drivers: tee: sandbox: SCP03 control emulator

2021-02-09 Thread Jorge Ramirez-Ortiz
Adds support for a working SCP03 emulation. Input parameters are validated however the commands (enable, provision) executed by the TEE are assumed to always succeed. Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Simon Glass --- drivers/tee/optee/Kconfig | 6 + drivers/tee/sandbox.c

[PATCHv4 4/6] doc: describe the scp03 command

2021-02-09 Thread Jorge Ramirez-Ortiz
The Secure Channel Protocol 03 command sends control requests (enable/provision) to the TEE implementing the protocol between the processor and the secure element. Signed-off-by: Jorge Ramirez-Ortiz --- doc/usage/index.rst | 1 + doc/usage/scp03.rst | 33 + 2

[PATCHv4 6/6] test: py: add initial coverage for scp03 cmd

2021-02-09 Thread Jorge Ramirez-Ortiz
From: Igor Opaniuk Add initial test coverage for SCP03 command. Signed-off-by: Igor Opaniuk --- test/py/tests/test_scp03.py | 27 +++ 1 file changed, 27 insertions(+) create mode 100644 test/py/tests/test_scp03.py diff --git a/test/py/tests/test_scp03.py

[PATCHv4 5/6] sandbox: imply SCP03 and CMD_SCP03

2021-02-09 Thread Jorge Ramirez-Ortiz
From: Igor Opaniuk Enable by default SCP_03/CMD_SCP03 for sandbox target. Signed-off-by: Igor Opaniuk --- arch/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index 27843cd79c..7023223927 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -142,6 +142,8

[PATCHv4 1/6] common: SCP03 control (enable and provision of keys)

2021-02-09 Thread Jorge Ramirez-Ortiz
This Trusted Application allows enabling SCP03 as well as provisioning the keys on TEE controlled secure element (ie, NXP SE050). All the information flowing on buses (ie I2C) between the processor and the secure element must be encrypted. Secure elements are pre-provisioned with a set of keys

[PATCHv4 2/6] cmd: SCP03: enable and provision command

2021-02-09 Thread Jorge Ramirez-Ortiz
Enable and provision the SCP03 keys on a TEE controlled secured elemt from the U-Boot shell. Executing this command will generate and program new SCP03 encryption keys on the secure element NVM. Depending on the TEE implementation, the keys would then be stored in some persistent storage or

[PATCH 3/3] Makefile: Add (default) DEVICE_TREE to SPL FIT

2021-02-09 Thread Klaus Heinrich Kiwi
U-boot allows the default device tree to be overridden from the build environment using the DEVICE_TREE variable. Make sure that we include it in the SPL FIT mkimage build step. This also fixes a broken image in case CONFIG_OF_LIST and CONFIG_OF_OVERLAY_LIST are unset (i.e., expected to be

[PATCH 2/3] Kconfig: SPL_FIT_SIGNATURE requires SPL_LOAD_FIT

2021-02-09 Thread Klaus Heinrich Kiwi
Having the ability to support firmware FIT signatures on the SPL sounds not so useful if the SPL is not supporting to load a (U-boot) firmware as a FIT image. Signed-off-by: Klaus Heinrich Kiwi --- common/Kconfig.boot | 1 + 1 file changed, 1 insertion(+) diff --git a/common/Kconfig.boot

[PATCH 1/3] Kconfig: SPL_FIT_SIGNATURE selects FIT_SIGNATURE

2021-02-09 Thread Klaus Heinrich Kiwi
Selecting SPL_FIT_SIGNATURE (without selecting U-boot proper verified boot first) breaks the build due to CONFIG_FIT_SIGNATURE_MAX_SIZE being undefined, in addition to Kconfig warnings on RSA and IMAGE_SIGN_INFO unmet dependencies. Signed-off-by: Klaus Heinrich Kiwi --- common/Kconfig.boot |

[PATCH 0/3] Misc fixes for SPL_FIT_SIGNATURE builds

2021-02-09 Thread Klaus Heinrich Kiwi
This patch series contains a few fixes for issues found when experimenting with the SPL_FIT_SIGNATURE builds. Some of them are apparently necessary to properly integrate this U-boot feature with build systems such as Yocto, and by extension OpenBMC. -Klaus Klaus Heinrich Kiwi (3): Kconfig:

[PATCH u-boot 2/2] fs: btrfs: change directory list output to be aligned as before

2021-02-09 Thread Marek Behún
Since commit 325dd1f642dd ("fs: btrfs: Use btrfs_iter_dir() to ...") when btrfs is listing a directory, the output is not aligned: 15 Wed Sep 09 13:20:03 2020 boot.scr -> @/boot/boot.scr 0 Tue Feb 02 12:42:09 2021 @ 108 Tue Feb 02 12:54:04 2021 1.info

[PATCH u-boot 1/2] fs: btrfs: skip xattrs in directory listing

2021-02-09 Thread Marek Behún
Skip xattrs in directory listing. U-Boot filesystem drivers do not list xattrs. Signed-off-by: Marek Behún Cc: David Sterba Cc: Qu Wenruo Cc: Tom Rini --- fs/btrfs/btrfs.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/btrfs/btrfs.c b/fs/btrfs/btrfs.c index

Re: [PATCH 1/1] sandbox: allow cross-compiling sandbox

2021-02-09 Thread Heinrich Schuchardt
On 09.02.21 16:25, Simon Glass wrote: > Hi Heinrich, > > On Mon, 8 Feb 2021 at 23:26, Heinrich Schuchardt wrote: >> >> Am 9. Februar 2021 05:29:43 MEZ schrieb Simon Glass : >>> Hi Heinrich, >>> >>> On Mon, 8 Feb 2021 at 15:06, Heinrich Schuchardt >>> wrote: UEFI test files like

[PATCH btrfs-progs] btrfs-progs: do not fail when offset of a ROOT_ITEM is not -1

2021-02-09 Thread Marek Behún
When the btrfs_read_fs_root() function is searching a ROOT_ITEM with location key offset other than -1, it currently fails via BUG_ON. The offset can have other value than -1, though. This can happen for example if a subvolume is renamed: $ btrfs subvolume create X && sync Create subvolume

[PATCH u-boot] fs: btrfs: do not fail when offset of a ROOT_ITEM is not -1

2021-02-09 Thread Marek Behún
When the btrfs_read_fs_root() function is searching a ROOT_ITEM with location key offset other than -1, it currently fails via BUG_ON. The offset can have other value than -1, though. This can happen for example if a subvolume is renamed: $ btrfs subvolume create X && sync Create subvolume

Re: [PATCH 05/25] arm: imx: Remove MX23 support

2021-02-09 Thread Stefano Babic
On 09.02.21 14:02, Tom Rini wrote: > As there are now no boards for the MX23 family, remove the general > support. > I am fine to drop it. Acked-by: Stefano Babic Best regards, Stefano > Cc: Stefano Babic > Cc: Fabio Estevam > Cc: NXP i.MX U-Boot Team > Signed-off-by: Tom Rini > --- >

Re: [PATCH 10/25] arm: Remove mx35pdk board

2021-02-09 Thread Stefano Babic
On 09.02.21 14:03, Tom Rini wrote: > This board has not been converted to CONFIG_DM_MMC by the deadline of > v2019.04, which is almost two years ago. In addition there are other DM > migrations it is also missing. Remove it. This is a very old board, I am fine to remove it. Acked-by: Stefano

Re: [PATCH 3/5] lib: ecdsa: Implement signature verification for crypto_algo API

2021-02-09 Thread Patrick DELAUNAY
Hi, On 1/11/21 4:41 PM, Alexandru Gagniuc wrote: Implement the crypto_algo .verify() function for ecdsa256. Because it backends on UCLASS_ECDSA, this change is focused on parsing the keys from devicetree and passing this information to the specific UCLASS driver. Signed-off-by: Alexandru

Re: [PATCH 1/1] sandbox: allow cross-compiling sandbox

2021-02-09 Thread Simon Glass
Hi Heinrich, On Mon, 8 Feb 2021 at 23:26, Heinrich Schuchardt wrote: > > Am 9. Februar 2021 05:29:43 MEZ schrieb Simon Glass : > >Hi Heinrich, > > > >On Mon, 8 Feb 2021 at 15:06, Heinrich Schuchardt > >wrote: > >> > >> UEFI test files like helloworld.efi require an architecture specific > >>

Re: [PATCH 2/5] lib: ecdsa: Add skeleton to implement ecdsa verification in u-boot

2021-02-09 Thread Patrick DELAUNAY
Hi, On 1/11/21 4:41 PM, Alexandru Gagniuc wrote: Prepare the source tree for accepting implementations of the ECDSA algorithm. This patch deals with the boring aspects of Makefiles and Kconfig files. Signed-off-by: Alexandru Gagniuc --- include/image.h | 10 +-

Re: [PATCH 0/5] Enable ECDSA FIT verification for stm32mp

2021-02-09 Thread Patrick DELAUNAY
Hi Alexandru, On 1/11/21 4:41 PM, Alexandru Gagniuc wrote: This series is Part II of the ECDSA saga. It applies on top of [1]: * > [PATCH v4 0/6] Add support for ECDSA image signing (with test) > > I've designed the UCLASS_ECDSA such that it aligns with the ROM API > of the stm32mp. Instead

[PULL] Pull request for u-boot master / v2021.04 = u-boot-stm32-20210209

2021-02-09 Thread Patrick DELAUNAY
Hi Tom, Please pull the STM32 related patches for u-boot/master, v2021.04: u-boot-stm32-20210209 - Enable the fastboot oem commands in stm32mp15 defconfig - Fixes pinctrol for stmfx and stm32 - Add support of I2C6_K in stm32mp15 clock driver - Alignment with Linux kernel device tree v5.11

Re: [PATCH] arm: dts: stm32mp15: alignment with v5.11-rc2

2021-02-09 Thread Patrick DELAUNAY
Hi, On 1/11/21 12:33 PM, Patrick Delaunay wrote: Device tree alignment with Linux kernel v5.11-rc2 - fix DCMI DMA features on stm32mp15 family - Add alternate pinmux for FMC EBI bus - Harmonize EHCI/OHCI DT nodes name on stm32mp15 - update sdmmc IP version for STM32MP15 - Add LP timer irqs on

Re: [PATCH u-boot-marvell 00/18] Upgrade A38x DDR3 training to version 14.0.0

2021-02-09 Thread Marek Behun
On Tue, 9 Feb 2021 06:50:35 + Chris Packham wrote: > On 9/02/21 3:07 pm, Marek Behun wrote: > > On Tue, 9 Feb 2021 01:08:54 + > > Chris Packham wrote: > > > >> On 9/02/21 1:16 pm, Chris Packham wrote: > >>> On 9/02/21 9:18 am, Marek Behun wrote: > On Mon, 8 Feb 2021 20:11:06

[PATCH u-boot-dm + u-boot-spi v2 7/7] mtd: probe SPI NOR devices in mtd_probe_devices()

2021-02-09 Thread Marek Behún
In order for `mtd list` U-Boot command to list SPI NOR devices without the need to run `sf probe` before, we have to probe SPI NOR devices in mtd_probe_devices(). Signed-off-by: Marek Behún Cc: Jagan Teki Cc: Priyanka Jain Cc: Simon Glass Cc: Heiko Schocher Cc: Jagan Teki ---

[PATCH u-boot-dm + u-boot-spi v2 4/7] mtd: spi-nor: allow registering multiple MTDs when DM is enabled

2021-02-09 Thread Marek Behún
Currently when the SPI_FLASH_MTD config option is enabled, only one SPI can be registered as MTD at any time - it is the last one probed (since with old non-DM model only one SPI NOR could be probed at any time). When DM is enabled, allow for registering multiple SPI NORs as MTDs by utilizing the

[PATCH u-boot-dm + u-boot-spi v2 3/7] mtd: add support for parsing partitions defined in OF

2021-02-09 Thread Marek Behún
Add support for parsing partitions defined in device-trees via the `partitions` node with `fixed-partitions` compatible. The `mtdparts`/`mtdids` mechanism takes precedence. If some partitions are defined for a MTD device via this mechanism, the code won't register partitions for that MTD device

[PATCH u-boot-dm + u-boot-spi v2 6/7] mtd: remove mtd_probe function

2021-02-09 Thread Marek Behún
The device_probe() function does the same thing as mtd_probe() and mtd_probe() is only used in mtd_probe_uclass_mtd_devs(), where the probing can be made simpler by using uclass_foreach_dev_probe macro. Signed-off-by: Marek Behún Cc: Jagan Teki Cc: Priyanka Jain Cc: Simon Glass Cc: Heiko

[PATCH u-boot-dm + u-boot-spi v2 2/7] dm: core: add non-translating version of ofnode_get_addr_size_index()

2021-02-09 Thread Marek Behún
Add functions ofnode_get_addr_size_index_notrans(), which is a non-translating version of ofnode_get_addr_size_index(). Some addresses are not meant to be translated, for example those of MTD fixed-partitions. Signed-off-by: Marek Behún Cc: Dario Binacchi Cc: Simon Glass ---

[PATCH u-boot-dm + u-boot-spi v2 5/7] mtd: spi-nor: fill-in mtd->dev member

2021-02-09 Thread Marek Behún
Fill in mtd->dev member with nor->dev. This can be used by MTD OF partition parser. Signed-off-by: Marek Behún Cc: Jagan Teki Cc: Priyanka Jain Cc: Simon Glass Cc: Heiko Schocher Cc: Jagan Teki --- drivers/mtd/spi/sf_mtd.c | 1 + drivers/mtd/spi/spi-nor-core.c | 1 +

[PATCH u-boot-dm + u-boot-spi v2 0/7] Support SPI NORs and OF partitions in `mtd list`

2021-02-09 Thread Marek Behún
Hello, this is v2 of patchset that adds support for U-Boot to parse MTD partitions from device-tree, and also improves support for SPI NOR access via the `mtd` command. Since mtd subsystem is unmaintained, who shall apply the mtd patches? I put an u-boot-spi tag into the subject prefix, but am

[PATCH u-boot-dm + u-boot-spi v2 1/7] dm: core: add test for ofnode_get_addr_size_index()

2021-02-09 Thread Marek Behún
Add test for ofnode_get_addr_size_index(), which will test OF address translation. Signed-off-by: Marek Behún Cc: Simon Glass --- test/dm/ofnode.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/test/dm/ofnode.c b/test/dm/ofnode.c index c539134296..0e1eb0d7ea

Re: [RFC PATCH] efi_loader: disable GRUB workaround by default

2021-02-09 Thread Matthias Brugger
On 09/02/2021 13:22, Heinrich Schuchardt wrote: > On 09.02.21 12:38, matthias@kernel.org wrote: >> From: Matthias Brugger >> >> GRUB version 2.04 was published over a year ago. We should expect that >> distros use this version now. So disable the workaround by default. >> As we know that

[PATCH 6/8] rockchip: rk3368: sync main rk3368 dtsi from Linux

2021-02-09 Thread Heiko Stuebner
From: Heiko Stuebner This is the state as of v5.10 + the recently added timer0 phandle targetted at the 5.12 merge window. With this the non-mainline nodes like the dmc move to a separate rk3368-u-boot.dtsi that is included from the board-specific -u-boot.dtsi files, similar to how rk3399 does

[PATCH 8/8] rockchip: lion: update board defconfig

2021-02-09 Thread Heiko Stuebner
From: Heiko Stuebner Adds the needed target option and drivers needed for correct bringup. Signed-off-by: Heiko Stuebner --- configs/lion-rk3368_defconfig | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/configs/lion-rk3368_defconfig

  1   2   >