Re: [PATCH v1] tee: sandbox: check for buffer size

2024-04-22 Thread Oleksandr Suvorov
On Sun, Apr 21, 2024 at 11:48 PM Igor Opaniuk wrote: > > Add additional check for buffer size when reading out persistent > storage value and provide back actual value size. > > Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov > --- > > drivers/tee/sandbo

Re: [PATCH v2] qemu-arm: round down memory to multiple of 2MB for LPAE

2024-02-01 Thread Oleksandr Suvorov
le of 2MB when > CONFIG_ARMV7_LPAE=y. > > Fixes: 3fa914af82("arm: qemu: implement enable_caches()") > Signed-off-by: Igor Opaniuk > Reviewed-by: Oleksandr Suvorov > > --- > > Changes in v2: > - Adjust commit message, add more details > > board/emulatio

[PATCH v2] mach-imx: bootaux: fix building with disabled bootelf

2023-08-31 Thread Oleksandr Suvorov
: c0f037f6a2a ("mach-imx: bootaux: elf firmware support") Signed-off-by: Oleksandr Suvorov --- Changes in v2: - select LIB_ELF unconditionally arch/arm/mach-imx/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index d

Re: [PATCH] mach-imx: bootaux: fix building with disabled bootelf

2023-08-31 Thread Oleksandr Suvorov
Hi Tom, On Sun, Aug 27, 2023 at 2:50 AM Tom Rini wrote: > > On Sat, Aug 26, 2023 at 06:16:36PM +0300, Oleksandr Suvorov wrote: > > Hi Heinrich, > > > > On Sat, Aug 26, 2023 at 4:46 PM Heinrich Schuchardt > > wrote: > > > > > > On 8/26/23 15

Re: [PATCH v2] spl: watchdog: introduce SPL_HW_WATCHDOG

2023-08-29 Thread Oleksandr Suvorov
Hi Stefan, On Mon, Aug 28, 2023 at 5:30 PM Stefan Roese wrote: > > Hi Oleksandr, > > On 8/28/23 15:23, Oleksandr Suvorov wrote: > > Hi Stefan, > > > > On Thu, Aug 24, 2023 at 2:24 PM Stefan Roese wrote: > >> > >> On 8/23/23 14:00, Oleksandr

Re: [PATCH v2] spl: watchdog: introduce SPL_HW_WATCHDOG

2023-08-28 Thread Oleksandr Suvorov
Hi Stefan, On Thu, Aug 24, 2023 at 2:24 PM Stefan Roese wrote: > > On 8/23/23 14:00, Oleksandr Suvorov wrote: > > Add SPL_HW_WATCHDOG Kconfig symbol which can be used to enable > > non-WDT hardware watchdog in SPL. > > Hmmm, my hope / plan was to completely drop HW_WATCHD

Re: [PATCH] mach-imx: bootaux: fix building with disabled bootelf

2023-08-26 Thread Oleksandr Suvorov
Hi Heinrich, On Sat, Aug 26, 2023 at 4:46 PM Heinrich Schuchardt wrote: > > On 8/26/23 15:24, Oleksandr Suvorov wrote: > > If CMD_ELF disabled and IMX_BOOTAUX enabled, the u-boot building ends > > up with a linking error [1]. Select LIB_ELF for all cases when > > v

[PATCH] mach-imx: bootaux: fix building with disabled bootelf

2023-08-26 Thread Oleksandr Suvorov
: undefined reference to `valid_elf_image' Fixes: c0f037f6a2a ("mach-imx: bootaux: elf firmware support") Signed-off-by: Oleksandr Suvorov --- arch/arm/mach-imx/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index d94b5828d0d..c

[PATCH] ARM: imx8ulp: support env in fat and ext4

2023-08-25 Thread Oleksandr Suvorov
for all modes, returning NOWHERE when no valid mode is found. Signed-off-by: Ricardo Salveti Co-developed-by: Oleksandr Suvorov Signed-off-by: Oleksandr Suvorov --- arch/arm/mach-imx/imx8ulp/soc.c | 28 1 file changed, 12 insertions(+), 16 deletions(-) diff --git

[PATCH] Revert "arm: imx: mx7: Move CONFIG_OPTEE_TZDRAM_SIZE from lib/optee"

2023-08-25 Thread Oleksandr Suvorov
From: Ricardo Salveti This reverts commit c5b68ef8af3c2f515c1f5b8d63a69359a85d753b. CONFIG_OPTEE_TZDRAM_SIZE is used by imx6-based SoCs as well. Move the option back. Signed-off-by: Ricardo Salveti Signed-off-by: Oleksandr Suvorov --- arch/arm/mach-imx/mx7/Kconfig | 8 lib/optee

Re: [PATCH v2] usb: dwc3: Fix renaming SPL_USB_HOST_SUPPORT to SPL_USB_HOST

2023-08-25 Thread Oleksandr Suvorov
On Fri, Aug 25, 2023 at 1:39 PM Marek Vasut wrote: > > On 8/25/23 12:27, Oleksandr Suvorov wrote: > > On Wed, Aug 23, 2023 at 9:29 PM Marek Vasut wrote: > >> > >> On 8/23/23 20:21, Oleksandr Suvorov wrote: > >>> In the usb/dwc3-layerscape

[PATCH v3 2/2] usb: dwc3: Fix enabling USB_DR_MODE_HOST

2023-08-25 Thread Oleksandr Suvorov
The original logic always enables USB_DR_MODE_HOST operation mode in dwc3_layerscape_bind() in u-boot. Prevent choosing USB_DR_MODE_HOST operation mode if USB_HOST is not enabled. Fixes: 2b0b51d0bed ("usb: dwc3: add layerscape support") Signed-off-by: Oleksandr Suvorov --- Changes in

[PATCH v3 1/2] usb: dwc3: Fix renaming SPL_USB_HOST_SUPPORT to SPL_USB_HOST

2023-08-25 Thread Oleksandr Suvorov
In the usb/dwc3-layerscape driver the first option should be renamed to the latter as well. Do it. Fix original logic in dwc3_layerscape_bind() - do not enable Fixes: 333e4a621df ("Rename SPL_USB_HOST_SUPPORT to SPL_USB_HOST") Signed-off-by: Oleksandr Suvorov --- (no change

Re: [PATCH v2] usb: dwc3: Fix renaming SPL_USB_HOST_SUPPORT to SPL_USB_HOST

2023-08-25 Thread Oleksandr Suvorov
On Wed, Aug 23, 2023 at 9:29 PM Marek Vasut wrote: > > On 8/23/23 20:21, Oleksandr Suvorov wrote: > > In the usb/dwc3-layerscape driver the first option should be renamed > > to the latter as well. Do it. > > > > Fixes: 333e4a621df ("Rename SPL_USB_HOST_SUPPO

[PATCH v2] usb: dwc3: Fix renaming SPL_USB_HOST_SUPPORT to SPL_USB_HOST

2023-08-23 Thread Oleksandr Suvorov
In the usb/dwc3-layerscape driver the first option should be renamed to the latter as well. Do it. Fixes: 333e4a621df ("Rename SPL_USB_HOST_SUPPORT to SPL_USB_HOST") Signed-off-by: Oleksandr Suvorov --- Changes in v2: - [asked by Tom Rini] shrink the code using CONFIG_IS_ENABLED() d

[PATCH] arm: mach-imx: loose enabling FSL_CAAM

2023-08-23 Thread Oleksandr Suvorov
HAS_CAAM should be enabled for all architecture support it. Whereas FSL_CAAM enables a driver for a device which may be managed by another system, like OP-TEE. Allow disabling u-boot FSL CAAM driver on systems with CAAM to prevent access conflicts. Signed-off-by: Oleksandr Suvorov --- arch/arm

[PATCH] mmc: spl: select SPL_BLK for SPL_DM_MMC

2023-08-23 Thread Oleksandr Suvorov
mmc_bind() in mmc-uclass.c calls blk_create_devicef() which is defined in blk-uclass.c, so SPL_BLK is required by SPL_DM_MMC. Implicitly select SPL_BLK for SPL_DM_MMC. Signed-off-by: Oleksandr Suvorov --- drivers/mmc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc

[PATCH] spl: crypto: fix including SHA* object files in SPL

2023-08-23 Thread Oleksandr Suvorov
If one of SHA* algorithms is disabled in u-boot, its code is not included in SPL even if a given SHA* option is enabled in SPL. Fix this. Fixes: 603d15a572d ("spl: cypto: Bring back SPL_ versions of SHA") Signed-off-by: Oleksandr Suvorov --- lib/Makefile | 6 +++--- 1 file

[PATCH] usb: dwc3: Fix renaming SPL_USB_HOST_SUPPORT to SPL_USB_HOST

2023-08-23 Thread Oleksandr Suvorov
In the usb/dwc3-layerscape driver the first option should be renamed to the latter as well. Do it. Fixes: 333e4a621df ("Rename SPL_USB_HOST_SUPPORT to SPL_USB_HOST") Signed-off-by: Oleksandr Suvorov --- drivers/usb/dwc3/dwc3-layerscape.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH v2] spl: watchdog: introduce SPL_HW_WATCHDOG

2023-08-23 Thread Oleksandr Suvorov
Add SPL_HW_WATCHDOG Kconfig symbol which can be used to enable non-WDT hardware watchdog in SPL. Co-developed-by: Igor Opaniuk Signed-off-by: Igor Opaniuk Signed-off-by: Oleksandr Suvorov --- Changes in v2: - remove mistakenly included unwanted changes common/spl/Kconfig| 1

Re: [PATCH] spl: watchdog: introduce SPL_HW_WATCHDOG

2023-08-22 Thread Oleksandr Suvorov
On Tue, Aug 22, 2023 at 7:28 PM Fabio Estevam wrote: > > Hi Oleksandr, > > On Tue, Aug 22, 2023 at 12:53 PM Oleksandr Suvorov > wrote: > > > ddr-1d-imem-fw { > > - filename = "lpddr4_pmu_train_1d_imem_202006.bin&quo

[PATCH] spl: watchdog: introduce SPL_HW_WATCHDOG

2023-08-22 Thread Oleksandr Suvorov
Add SPL_HW_WATCHDOG Kconfig symbol which can be used to enable non-WDT hardware watchdog in SPL. Co-developed-by: Igor Opaniuk Signed-off-by: Igor Opaniuk Signed-off-by: Oleksandr Suvorov --- arch/arm/dts/imx8mp-u-boot.dtsi | 8 common/spl/Kconfig | 1 - drivers

[PATCH] imx: imx8: ahab: refactor do_ahab_close command

2023-08-21 Thread Oleksandr Suvorov
From: Igor Opaniuk Move an OEM closing logic to ahab_close() function to be able to use it directly without calling a u-boot command. Signed-off-by: Igor Opaniuk Co-developed-by: Oleksandr Suvorov Signed-off-by: Oleksandr Suvorov --- arch/arm/include/asm/arch-imx8/sys_proto.h | 1 + arch

[PATCH] tools: image-host: print error messages to stderr

2023-08-17 Thread Oleksandr Suvorov
The make by default cuts off the stdout output from external tools, so all error messages from the image-host are not shown in a make output. Besides that, it is a common approach to use stderr stream for error messages. Use stderr for all error messages in image-host. Signed-off-by: Oleksandr

[PATCH] spl: provide weak empty stub for reset_cpu()

2023-08-17 Thread Oleksandr Suvorov
This stub needs to link SPL properly. Signed-off-by: Oleksandr Suvorov --- common/spl/spl.c | 8 1 file changed, 8 insertions(+) diff --git a/common/spl/spl.c b/common/spl/spl.c index 0062f3f45d9..781858891b9 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -1026,3 +1026,11

[PATCH] arm: dts: imx6ull-14x14-evk-u-boot: add rngb

2023-08-08 Thread Oleksandr Suvorov
From: Ricardo Salveti Linux microPlatform uses an rngb device in optee-os in boot scheme SPL -> OPTEE -> U-Boot. To make rngb available for optee-os, enable it in SPL. Signed-off-by: Ricardo Salveti Co-developed-by: Oleksandr Suvorov Signed-off-by: Oleksandr Suvorov --- arch/a

[PATCH v2 2/2] spl: move SPL_CRC32 option to lib/Kconfig

2023-08-03 Thread Oleksandr Suvorov
All SPL hash algorithm options are collected in lib/Kconfig. Move SPL_CRC32 there as well. Signed-off-by: Oleksandr Suvorov --- Changes in v2: - add a related commit to the series. common/spl/Kconfig | 11 --- lib/Kconfig| 11 +++ 2 files changed, 11 insertions(+), 11

[PATCH v2 1/2] spl: remove duplicate SPL_MD5 option

2023-08-03 Thread Oleksandr Suvorov
ename SPL_MD5_SUPPORT to SPL_MD5") Signed-off-by: Oleksandr Suvorov --- (no changes since v1) common/spl/Kconfig | 12 1 file changed, 12 deletions(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index bee231b583a..c66d70e2a99 100644 --- a/common/spl/Kconfig +++ b/common/s

[PATCH] spl: remove duplicate SPL_MD5 option

2023-08-03 Thread Oleksandr Suvorov
ename SPL_MD5_SUPPORT to SPL_MD5") Signed-off-by: Oleksandr Suvorov --- common/spl/Kconfig | 12 1 file changed, 12 deletions(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index bee231b583a..c66d70e2a99 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -561,18 +561,6

[PATCH v3] imx: syscounter: allow timer_init for SPL build

2023-08-03 Thread Oleksandr Suvorov
: mx7: avoid some initialization if low level is skipped") Signed-off-by: Michael Scott Co-developed-by: Oleksandr Suvorov Signed-off-by: Oleksandr Suvorov Reviewed-by: Peng Fan --- Changes in v3: - add Reviewed-by from https://patchwork.ozlabs.org/project/uboot/patch/202109251518

[PATCH] lib/zlib: Fix a bug when getting a gzip header extra field

2023-06-15 Thread Oleksandr Suvorov
://github.com/madler/zlib/commit/1eb7682f845ac9e9bf9ae35bbfb3bad5dacbd91d Fixes: e89516f031d ("zlib: split up to match original source tree") Signed-off-by: Oleksandr Suvorov --- lib/zlib/inflate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/zlib/infla

[PATCH] ARM: imx9: support env in fat and ext4

2023-04-11 Thread Oleksandr Suvorov
NOWHERE when no valid mode is found. This solution is based on (with added SPL support): Link: https://lore.kernel.org/all/20211020191626.3648540-1-rica...@foundries.io/ Signed-off-by: Oleksandr Suvorov --- arch/arm/mach-imx/imx9/soc.c | 28 1 file changed, 12 insertions

Re: [PATCH] spl: Drop unwanted return in spl_fit_upload_fpga()

2023-01-24 Thread Oleksandr Suvorov
On Tue, Jan 24, 2023 at 12:56 PM Simon Glass wrote: > > This was added by mistake and renders the function useless. Fix it. > > Signed-off-by: Simon Glass > Fixes: 33c60a38bb9 ("trace: Use notrace for short") > Reported-by: Stefan Herbrechtsmeier >

[PATCH] arm: dts: imx8mn-u-boot: use versioned ddr4 firmware

2023-01-16 Thread Oleksandr Suvorov
NXP tested imx8mn-ddr4 with firmware version 201810 only. Use this version for all imx8mn targets with DRAM DDR4. Fixes: 93c4c0e4dd1 ("arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi") Signed-off-by: Oleksandr Suvorov --- arch/arm/dts/imx8mn-u-boot.dtsi | 8 1 fi

Re: [PATCH] firmware: ti_sci: fix typo in boot authentication message name

2023-01-10 Thread Oleksandr Suvorov
On Tue, Jan 10, 2023 at 2:30 PM Jorge Ramirez-Ortiz wrote: > > Fix AUTH_BOOT message identifier (s/IMIAGE/IMAGE) > > Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Oleksandr Suvorov > --- > drivers/firmware/ti_sci.c | 2 +- > drivers/firmware/ti_sci.h | 2 +- > 2 fil

[PATCH] lib: crypt: fix selecting a non-existent option

2022-09-19 Thread Oleksandr Suvorov
The option SHA256_ALGO does not exist. Remove selecting it. Fixes: 26dd9936574 ("lib: add crypt subsystem") Signed-off-by: Oleksandr Suvorov --- lib/crypt/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/crypt/Kconfig b/lib/crypt/Kconfig index a59d5c7d1d5..22af6834

Re: [PATCH] configs: stm32mp*: fix system reset

2022-09-05 Thread Oleksandr Suvorov
("configs: add stm32mp13 defconfig") > Fixes: 17aeb589fa9d ("stm32mp15: remove configs dependency on > CONFIG_TFABOOT") > > Signed-off-by: Jorge Ramirez-Ortiz Acked-by: Oleksandr Suvorov > --- > configs/stm32mp13_defconfig

Re: [PATCH] configs: stm32mp*: reset via CONFIG_RESET_SCMI

2022-09-05 Thread Oleksandr Suvorov
stm32mp15_trusted_defconfig > > +++ b/configs/stm32mp15_trusted_defconfig > > @@ -134,7 +134,6 @@ CONFIG_SPI=y > > CONFIG_DM_SPI=y > > CONFIG_STM32_QSPI=y > > CONFIG_STM32_SPI=y > > -CONFIG_SYSRESET_PSCI=y > > CONFIG_TEE=y > > CONFIG_OPTEE=y > > # CONFIG_OPTEE_TA_AVB is not set > > -- > > 2.34.1 > > -- Best regards Oleksandr Oleksandr Suvorov cryo...@gmail.com

[PATCH] spl: ahci: Fix dependency for SPL_AHCI_PCI

2022-08-25 Thread Oleksandr Suvorov
The option SPL_SATA_SUPPORT is renamed to SPL_SATA. Fix the option name. Fixes: 73059529b20 ("ata: ahci-pci: Add new option CONFIG_SPL_AHCI_PCI") Signed-off-by: Oleksandr Suvorov --- drivers/ata/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata

[PATCH] ARM: imx: imx8mn-evk: define default dfu_alt_info for emmc updates

2022-08-17 Thread Oleksandr Suvorov
From: Michael Scott Define dfu_alt_info to allow updating SPL/imx-boot and u-boot.itb via DFU (which is also used by EFI capsule updates). Signed-off-by: Michael Scott Signed-off-by: Oleksandr Suvorov --- include/configs/imx8mn_evk.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH] cmd: tpm-v2: add get_random

2022-08-17 Thread Oleksandr Suvorov
From: Jorge Ramirez-Ortiz Enable getting randomness from the tpm command line. Signed-off-by: Jorge Ramirez-Ortiz Co-developed-by: Oleksandr Suvorov Signed-off-by: Oleksandr Suvorov --- cmd/tpm-v2.c | 36 1 file changed, 36 insertions(+) diff --git

Re: [PATCH] drivers: tee: i2c: support the NXP SE05x probe errata

2022-08-16 Thread Oleksandr Suvorov
Hi Jorge, On Tue, Aug 16, 2022 at 2:28 PM Jorge Ramirez-Ortiz wrote: > > Early instantiation of this I2C device would lock up when being > probed. > > Signed-off-by: Jorge Ramirez-Ortiz With a small note below, Acked-by: Oleksandr Suvorov > --- > drivers/t

Re: [PATCH 2/2] i2c: stm32f7: do not set the STOP condition on error

2022-08-15 Thread Oleksandr Suvorov
Jorge, On Mon, Aug 15, 2022 at 2:19 PM Jorge Ramirez-Ortiz wrote: > > Sending the stop condition without waiting for TC has been > found to lock the bus. > > Tested accessing the the NXP SE05X I2C device. "the the" seems like a typo. With this, Reviewed-by: Oleksan

Re: [RESEND PATCH v3 1/1] mx7ulp: add base SPL support for mx7ulp

2022-08-07 Thread Oleksandr Suvorov
Hi Stefano, This patchset is superseded by that one https://patchwork.ozlabs.org/project/uboot/list/?series=312792 On Mon, Jul 11, 2022 at 5:05 PM Oleksandr Suvorov wrote: > > From: Ricardo Salveti > > Add a base implementation of mx7ulp SPL config header and soc, > and chang

[PATCH v4 1/2] mx7ulp: add base SPL support for mx7ulp

2022-08-05 Thread Oleksandr Suvorov
From: Ricardo Salveti Add a base implementation of mx7ulp SPL config header and soc, and changes in makefiles in order to allow building SPL on mx7ulp based devices. Signed-off-by: Ricardo Salveti Co-developed-by: Oleksandr Suvorov Signed-off-by: Oleksandr Suvorov --- Changes in v4

[PATCH v4 2/2] imx: spl: fix a comment adding IMX9

2022-08-05 Thread Oleksandr Suvorov
There is a paired to ifdef comment which should include CONFIG_IMX9 as well. Fixes: 881df6ed84c ("imx: add basic i.MX9 support") Signed-off-by: Oleksandr Suvorov --- Changes in v4: - add a small fix for imx spl. arch/arm/mach-imx/spl.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH v4 0/2] Support SPL for i.MX7ULP

2022-08-05 Thread Oleksandr Suvorov
t https://patchwork.ozlabs.org/project/uboot/list/?series=309021 Changes in v4: - rebase to the current master - fix a reference to a non-existent option SPL_MMC_SUPPORT - add a small fix for imx spl. Changes in v3: - rebase the patch to the current codebase Oleksandr Suvorov (1): imx: spl: fix

Re: [PATCH 0/2] Fix remained SPL_MMC_SUPPORT options

2022-08-05 Thread Oleksandr Suvorov
Please, ignore this patchset - these issues were fixed in another one just applied. On Thu, Aug 4, 2022 at 9:16 PM Oleksandr Suvorov wrote: > > > SPL_MMC_SUPPORT option is still used in few places in spite of > renaming in the commit 103c5f18069 ("mmc: Rename MMC_SUPPORT to MM

[PATCH 2/2] arm: imx8m: imx8mp_rsb3720a1: fix name of option SPL_MMC_SUPPORT

2022-08-04 Thread Oleksandr Suvorov
SPL_MMC_SUPPORT is renamed to SPL_MMC in the commit 103c5f18069 ("mmc: Rename MMC_SUPPORT to MMC") Fix the name of the option used in TARGET_MX7ULP_COM. Fixes: ddb56f371a7 ("arm: imx8m: add support for Advantech RSB-3720") Signed-off-by: Oleksandr Suvorov --- board/advant

[PATCH 1/2] mx7ulp_com: fix obsolete option SPL_MMC_SUPPORT

2022-08-04 Thread Oleksandr Suvorov
SPL_MMC_SUPPORT is renamed to SPL_MMC in the commit 103c5f18069 ("mmc: Rename MMC_SUPPORT to MMC") Fix the name of that option used in TARGET_MX7ULP_COM. Fixes: 8b71576f384 ("mx7ulp_com: add support for SPL") Signed-off-by: Oleksandr Suvorov --- arch/arm/mach-imx/mx7ulp/Kc

[PATCH 0/2] Fix remained SPL_MMC_SUPPORT options

2022-08-04 Thread Oleksandr Suvorov
SPL_MMC_SUPPORT option is still used in few places in spite of renaming in the commit 103c5f18069 ("mmc: Rename MMC_SUPPORT to MMC"). This patch set fixes the rest of SPL_MMC_SUPPORT options. Oleksandr Suvorov (2): mx7ulp_com: fix obsolete option SPL_MMC_SUPPORT

[PATCH v12 13/13] fpga: zynqmp: support loading encrypted bitfiles

2022-07-22 Thread Oleksandr Suvorov
urce to the AES engine if the FSBL is not encrypted. This prevents using the BBRAM or eFUSE as the key source to the AES engine during run-time applications." Signed-off-by: Adrian Fiergolski Co-developed-by: Oleksandr Suvorov Signed-off-by: Oleksandr Suvorov Tested-by: Adrian Fiergolski

[PATCH v12 12/13] fpga: zynqmp: support loading authenticated images

2022-07-22 Thread Oleksandr Suvorov
Add supporting new compatible string "u-boot,zynqmp-fpga-ddrauth" to handle loading authenticated images (DDR). Based on solution by Jorge Ramirez-Ortiz Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti --- (no changes since v11) Changes in v11: - Fix treating an inc

[PATCH v12 09/13] fpga: xilinx: pass compatible flags to load() callback

2022-07-22 Thread Oleksandr Suvorov
These flags may be used to check whether an FPGA driver is able to load a particular FPGA bitstream image. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- (no changes since v1) drivers/fpga/spartan2.c | 2 +- drivers/fpga/spartan3.c | 2

[PATCH v12 11/13] fpga: zynqmp: add bitstream compatible checking

2022-07-22 Thread Oleksandr Suvorov
Check whether the FPGA ZynqMP driver supports the given bitstream image type. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- Changes in v12: - exclude all secure-related code if FPGA_LOAD_SECURE is disabled Changes in v10: - fix grammar drivers

[PATCH v12 10/13] fpga: zynqmp: reduce zynqmppl_load() code

2022-07-22 Thread Oleksandr Suvorov
Reduce the function code by calling xilinx_pm_request() once only. Use the same variable bsize_req to store either bstream size in bytes or an address of bstream size according to a type required by the firmware version. Remove obsolete debug(). Signed-off-by: Oleksandr Suvorov Tested

[PATCH v12 08/13] spl: fit: pass real compatible flags to fpga_load()

2022-07-22 Thread Oleksandr Suvorov
Convert taken FPGA image "compatible" string to a binary compatible flag and pass it to an FPGA driver. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- Changes in v12: - convert "compatible" to flags only if FPGA_LOAD_SECU

[PATCH v12 07/13] fpga: add fpga_compatible2flag

2022-07-22 Thread Oleksandr Suvorov
Add a "compatible" string to binary flag converter, which uses a callback str2flag() of given FPGA driver if available. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- Changes in v12: - define the function only if FPGA_LOAD_SECURE enabled

[PATCH v12 06/13] fpga: pass compatible flags to fpga_load()

2022-07-22 Thread Oleksandr Suvorov
These flags may be used to check whether an FPGA driver is able to load a particular FPGA bitstream image. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- (no changes since v1) boot/image-board.c| 4 ++-- cmd/fpga.c| 8

[PATCH v12 05/13] fpga: xilinx: pass compatible flags to xilinx_load()

2022-07-22 Thread Oleksandr Suvorov
This flag is used to check whether a Xilinx FPGA driver is able to load a particular FPGA bitstream image. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- (no changes since v1) drivers/fpga/fpga.c | 2 +- drivers/fpga/xilinx.c | 2 +- include

[PATCH v12 04/13] fpga: zynqmp: add str2flags call

2022-07-22 Thread Oleksandr Suvorov
Add a call to convert FPGA "compatible" string to a binary flag. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- (no changes since v1) drivers/fpga/zynqmppl.c | 11 ++- include/xilinx.h| 3 +++ 2 files changed, 13

[PATCH v12 03/13] fpga: xilinx: add bitstream flags to driver desc

2022-07-22 Thread Oleksandr Suvorov
Store a set of supported bitstream types in xilinx_desc structure. It will be used to determine whether an FPGA image is able to be loaded with a given driver. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- (no changes since v10) Changes in v10

[PATCH v12 02/13] fpga: xilinx: add missed identifier names

2022-07-22 Thread Oleksandr Suvorov
Function definition arguments should also have identifier names. Add missed ones to struct xilinx_fpga_op callbacks, unifying code. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- (no changes since v1) include/xilinx.h | 10 ++ 1 file

[PATCH v12 01/13] fpga: add option for loading FPGA secure bitstreams

2022-07-22 Thread Oleksandr Suvorov
It allows using this feature without enabling the "fpga loads" command. Signed-off-by: Oleksandr Suvorov Co-developed-by: Adrian Fiergolski Signed-off-by: Adrian Fiergolski Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- (no changes since v1) cmd/Kconfig

[PATCH v12 00/13] fpga: zynqmp: Adding support of loading authenticated images

2022-07-22 Thread Oleksandr Suvorov
function fit_fpga_load() to simplify calls of fpga_load() from contexts without a compatible attribute. - move all ZynqMP-specific logic to drivers/fpga/zynqmppl.c - prepare for passing a "compatible" FDT property to any fpga driver. Adrian Fiergolski (1): fpga: zynqmp: support loa

[PATCH] dm: fix mis-word in SPL_DM description

2022-07-13 Thread Oleksandr Suvorov
Replace logically correct word in the description. Fixes: 91a91ff804d ("dm: Add Kconfig options for driver model SPL support") Signed-off-by: Oleksandr Suvorov --- drivers/core/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/core/Kconfig b/dr

[RESEND PATCH v3 1/1] mx7ulp: add base SPL support for mx7ulp

2022-07-11 Thread Oleksandr Suvorov
From: Ricardo Salveti Add a base implementation of mx7ulp SPL config header and soc, and changes in makefiles in order to allow building SPL on mx7ulp based devices. Signed-off-by: Ricardo Salveti Co-developed-by: Oleksandr Suvorov Signed-off-by: Oleksandr Suvorov --- Changes in v3

[RESEND PATCH v3 0/1] Support SPL for i.MX7ULP

2022-07-11 Thread Oleksandr Suvorov
I've just realized this only patch was not applied among other patches of the original patchset "Support SPL for i.MX7ULP". Please apply this patch as now "include/configs/mx7ulp_com.h" refers to non-existent "include/configs/imx7ulp_spl.h". Changes in v3: - rebase the patch to the current

Re: [PATCH v11 10/13] fpga: zynqmp: optimize zynqmppl_load() code

2022-07-08 Thread Oleksandr Suvorov
Hi Michal, On Fri, Jul 8, 2022 at 3:43 PM Michal Simek wrote: > > > > On 7/5/22 21:23, Oleksandr Suvorov wrote: > > Optimize function code preparing to add secure bitstream types > > support. > > Can you please extend this? I understand what you do below but bet

[PATCH v11 13/13] fpga: zynqmp: support loading encrypted bitfiles

2022-07-05 Thread Oleksandr Suvorov
urce to the AES engine if the FSBL is not encrypted. This prevents using the BBRAM or eFUSE as the key source to the AES engine during run-time applications." Signed-off-by: Adrian Fiergolski Co-developed-by: Oleksandr Suvorov Signed-off-by: Oleksandr Suvorov Tested-by: Adrian Fiergolski

[PATCH v11 12/13] fpga: zynqmp: support loading authenticated images

2022-07-05 Thread Oleksandr Suvorov
Add supporting new compatible string "u-boot,zynqmp-fpga-ddrauth" to handle loading authenticated images (DDR). Based on solution by Jorge Ramirez-Ortiz Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti --- Changes in v11: - Fix treating an incoming FPGA image with e

[PATCH v11 11/13] fpga: zynqmp: add bitstream compatible checking

2022-07-05 Thread Oleksandr Suvorov
Check whether the FPGA ZynqMP driver supports the given bitstream image type. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- (no changes since v10) Changes in v10: - fix grammar; drivers/fpga/zynqmppl.c | 27 +++ 1 file

[PATCH v11 10/13] fpga: zynqmp: optimize zynqmppl_load() code

2022-07-05 Thread Oleksandr Suvorov
Optimize function code preparing to add secure bitstream types support. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- (no changes since v1) drivers/fpga/zynqmppl.c | 27 +-- 1 file changed, 13 insertions(+), 14 deletions

[PATCH v11 09/13] fpga: xilinx: pass compatible flags to load() callback

2022-07-05 Thread Oleksandr Suvorov
These flags may be used to check whether an FPGA driver is able to load a particular FPGA bitstream image. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- (no changes since v1) drivers/fpga/spartan2.c | 2 +- drivers/fpga/spartan3.c | 2

[PATCH v11 08/13] spl: fit: pass real compatible flags to fpga_load()

2022-07-05 Thread Oleksandr Suvorov
Convert taken FPGA image "compatible" string to a binary compatible flag and pass it to an FPGA driver. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- (no changes since v10) Changes in v10: - made the message about ignoring legacy

[PATCH v11 07/13] fpga: pass compatible flags to fpga_load()

2022-07-05 Thread Oleksandr Suvorov
These flags may be used to check whether an FPGA driver is able to load a particular FPGA bitstream image. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- (no changes since v1) boot/image-board.c| 4 ++-- cmd/fpga.c| 8

[PATCH v11 06/13] fpga: xilinx: pass compatible flags to xilinx_load()

2022-07-05 Thread Oleksandr Suvorov
This flag is used to check whether a Xilinx FPGA driver is able to load a particular FPGA bitstream image. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- (no changes since v1) drivers/fpga/fpga.c | 2 +- drivers/fpga/xilinx.c | 2 +- include

[PATCH v11 05/13] fpga: add fpga_compatible2flag

2022-07-05 Thread Oleksandr Suvorov
Add a "compatible" string to binary flag converter, which uses a callback str2flag() of given FPGA driver if available. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- (no changes since v10) Changes in v10: - fix mixed types of re

[PATCH v11 04/13] fpga: zynqmp: add str2flags call

2022-07-05 Thread Oleksandr Suvorov
Add a call to convert FPGA "compatible" string to a binary flag. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- (no changes since v1) drivers/fpga/zynqmppl.c | 9 + include/xilinx.h| 1 + 2 files changed, 10 insertion

[PATCH v11 03/13] fpga: xilinx: add bitstream flags to driver desc

2022-07-05 Thread Oleksandr Suvorov
Store a set of supported bitstream types in xilinx_desc structure. It will be used to determine whether an FPGA image is able to be loaded with a given driver. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- (no changes since v10) Changes in v10

[PATCH v11 02/13] fpga: xilinx: add missed identifier names

2022-07-05 Thread Oleksandr Suvorov
Function definition arguments should also have identifier names. Add missed ones to struct xilinx_fpga_op callbacks, unifying code. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- (no changes since v1) include/xilinx.h | 10 ++ 1 file

[PATCH v11 01/13] fpga: add option for loading FPGA secure bitstreams

2022-07-05 Thread Oleksandr Suvorov
It allows using this feature without enabling the "fpga loads" command. Signed-off-by: Oleksandr Suvorov Co-developed-by: Adrian Fiergolski Signed-off-by: Adrian Fiergolski Tested-by: Ricardo Salveti Tested-by: Adrian Fiergolski --- (no changes since v1) cmd/Kconfig

[PATCH v11 00/13] fpga: zynqmp: Adding support of loading authenticated images

2022-07-05 Thread Oleksandr Suvorov
a_load() to simplify calls of fpga_load() from contexts without a compatible attribute. - move all ZynqMP-specific logic to drivers/fpga/zynqmppl.c - prepare for passing a "compatible" FDT property to any fpga driver. Adrian Fiergolski (1): fpga: zynqmp: support loading encrypted bitfiles

Re: [PATCH v10 00/13] fpga: zynqmp: Adding support of loading authenticated images

2022-06-18 Thread Oleksandr Suvorov
authenticated) and I confirm it > works. > > Regads, > Adrian > > On 12.06.2022 00:06, Oleksandr Suvorov wrote: > > This patchset introduces support for the authenticated and encrypted > > FPGA images on ZynqMP boards, besides that introducing common way to > > pass the

[PATCH v10 13/13] fpga: zynqmp: support loading encrypted bitfiles

2022-06-11 Thread Oleksandr Suvorov
urce to the AES engine if the FSBL is not encrypted. This prevents using the BBRAM or eFUSE as the key source to the AES engine during run-time applications." Signed-off-by: Adrian Fiergolski Co-developed-by: Oleksandr Suvorov Signed-off-by: Oleksandr Suvorov --- Changes in v10:

[PATCH v10 12/13] fpga: zynqmp: support loading authenticated images

2022-06-11 Thread Oleksandr Suvorov
Add supporting new compatible string "u-boot,zynqmp-fpga-ddrauth" to handle loading authenticated images (DDR). Based on solution by Jorge Ramirez-Ortiz Signed-off-by: Oleksandr Suvorov --- Changes in v10: - Support DDR images only if FPGA_LOAD_SECURE enabled. bo

[PATCH v10 11/13] fpga: zynqmp: add bitstream compatible checking

2022-06-11 Thread Oleksandr Suvorov
Check whether the FPGA ZynqMP driver supports the given bitstream image type. Signed-off-by: Oleksandr Suvorov --- Changes in v10: - fix grammar; drivers/fpga/zynqmppl.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/fpga/zynqmppl.c b/drivers/fpga

[PATCH v10 10/13] fpga: zynqmp: optimize zynqmppl_load() code

2022-06-11 Thread Oleksandr Suvorov
Optimize function code preparing to add secure bitstream types support. Signed-off-by: Oleksandr Suvorov --- (no changes since v1) drivers/fpga/zynqmppl.c | 27 +-- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/drivers/fpga/zynqmppl.c b/drivers/fpga

[PATCH v10 09/13] fpga: xilinx: pass compatible flags to load() callback

2022-06-11 Thread Oleksandr Suvorov
These flags may be used to check whether an FPGA driver is able to load a particular FPGA bitstream image. Signed-off-by: Oleksandr Suvorov --- (no changes since v1) drivers/fpga/spartan2.c | 2 +- drivers/fpga/spartan3.c | 2 +- drivers/fpga/versalpl.c | 2 +- drivers/fpga/virtex2.c | 2

[PATCH v10 07/13] fpga: pass compatible flags to fpga_load()

2022-06-11 Thread Oleksandr Suvorov
These flags may be used to check whether an FPGA driver is able to load a particular FPGA bitstream image. Signed-off-by: Oleksandr Suvorov --- (no changes since v1) boot/image-board.c| 4 ++-- cmd/fpga.c| 8 common/spl/spl_fit.c | 6 -- drivers/fpga/fpga.c | 5

[PATCH v10 08/13] spl: fit: pass real compatible flags to fpga_load()

2022-06-11 Thread Oleksandr Suvorov
Convert taken FPGA image "compatible" string to a binary compatible flag and pass it to an FPGA driver. Signed-off-by: Oleksandr Suvorov --- Changes in v10: - made the message about ignoring legacy compatibe option as debug common/spl/spl_fit.c | 10 +++--- 1 file changed, 7

[PATCH v10 06/13] fpga: xilinx: pass compatible flags to xilinx_load()

2022-06-11 Thread Oleksandr Suvorov
This flag is used to check whether a Xilinx FPGA driver is able to load a particular FPGA bitstream image. Signed-off-by: Oleksandr Suvorov --- (no changes since v1) drivers/fpga/fpga.c | 2 +- drivers/fpga/xilinx.c | 2 +- include/xilinx.h | 2 +- 3 files changed, 3 insertions(+), 3

[PATCH v10 05/13] fpga: add fpga_compatible2flag

2022-06-11 Thread Oleksandr Suvorov
Add a "compatible" string to binary flag converter, which uses a callback str2flag() of given FPGA driver if available. Signed-off-by: Oleksandr Suvorov --- Changes in v10: - fix mixed types of return value; drivers/fpga/fpga.c | 24 include/fpga.h

[PATCH v10 04/13] fpga: zynqmp: add str2flags call

2022-06-11 Thread Oleksandr Suvorov
Add a call to convert FPGA "compatible" string to a binary flag. Signed-off-by: Oleksandr Suvorov --- (no changes since v1) drivers/fpga/zynqmppl.c | 9 + include/xilinx.h| 1 + 2 files changed, 10 insertions(+) diff --git a/drivers/fpga/zynqmppl.c b/drivers/fpga/

[PATCH v10 03/13] fpga: xilinx: add bitstream flags to driver desc

2022-06-11 Thread Oleksandr Suvorov
Store a set of supported bitstream types in xilinx_desc structure. It will be used to determine whether an FPGA image is able to be loaded with a given driver. Signed-off-by: Oleksandr Suvorov --- Changes in v10: - move FPGA flags to macros; - initialize xilinx_desc structs directly, removing

[PATCH v10 02/13] fpga: xilinx: add missed identifier names

2022-06-11 Thread Oleksandr Suvorov
Function definition arguments should also have identifier names. Add missed ones to struct xilinx_fpga_op callbacks, unifying code. Signed-off-by: Oleksandr Suvorov --- (no changes since v1) include/xilinx.h | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git

[PATCH v10 01/13] fpga: add option for loading FPGA secure bitstreams

2022-06-11 Thread Oleksandr Suvorov
It allows using this feature without enabling the "fpga loads" command. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Co-developed-by: Adrian Fiergolski Signed-off-by: Adrian Fiergolski --- (no changes since v1) cmd/Kconfig | 3 ++- drivers/fpga/Kconf

[PATCH v10 00/13] fpga: zynqmp: Adding support of loading authenticated images

2022-06-11 Thread Oleksandr Suvorov
to drivers/fpga/zynqmppl.c - prepare for passing a "compatible" FDT property to any fpga driver. Adrian Fiergolski (1): fpga: zynqmp: support loading encrypted bitfiles Oleksandr Suvorov (12): fpga: add option for loading FPGA secure bitstreams fpga: xilinx: add missed identifier

Re: [PATCH v9 05/13] fpga: add fpga_compatible2flag

2022-06-07 Thread Oleksandr Suvorov
On Tue, Jun 7, 2022 at 3:11 PM Michal Simek wrote: > > > > On 6/1/22 10:46, Oleksandr Suvorov wrote: > > Add a "compatible" string to binary flag converter, which uses > > a callback str2flag() of given FPGA driver if available. > &

Re: [PATCH v9 00/13] fpga: zynqmp: Adding support of loading authenticated images

2022-06-07 Thread Oleksandr Suvorov
gt; Regards, > Adrian > > On 02.06.2022 17:11, Oleksandr Suvorov wrote: > > Adrian, I don't have access to the ZynqMP hardware for now, so could > > you please test this patchset? > > > > On Wed, Jun 1, 2022 at 11:46 AM Oleksandr Suvorov > > wrote: > >> >

  1   2   3   4   5   >