Re: [PATCH 5/6] efi_loader: GOP: Add damage notification on BLT

2022-06-07 Thread Heinrich Schuchardt
On 6/7/22 01:43, Alexander Graf wrote: Now that we have a damage tracking API, let's populate damage done by UEFI payloads when they BLT data onto the screen. Signed-off-by: Alexander Graf Reported-by: Da Xue --- lib/efi_loader/efi_gop.c | 11 +++ 1 file changed, 11 insertions(+)

[PATCH v1 0/2] add npcm750 AES/SHA driver

2022-06-07 Thread Jim Liu
Nuvoton BMC npcm750 have AES HW engine and SHA HW engine Jim Liu (2): crypto: nuvoton: Add NPCM7xx AES driver crypto: nuvoton: Add NPCM7xx SHA driver arch/arm/include/asm/arch-npcm7xx/aes.h | 53 ++ drivers/crypto/Kconfig | 2 + drivers/crypto/Makefile |

Re: [PATCH v2 10/14] microblaze: cache: introduce cpuinfo structure

2022-06-07 Thread Michal Simek
út 31. 5. 2022 v 20:15 odesílatel Ovidiu Panait napsal: > > Introduce a minimal cpuinfo structure to hold cache related info. The > instruction/data cache size and cache line size are initialized early in > the boot to default Kconfig values. They will be overwritten with data > from PVR/dtb if

Re: [PATCH 7/8] tpm: Implement state command for Cr50

2022-06-07 Thread Ilias Apalodimas
On Mon, Feb 28, 2022 at 05:11:24PM -0700, Simon Glass wrote: > Add a vendor-specific TPM2 command for this and implement it for Cr50. > > Signed-off-by: Simon Glass > --- > > drivers/tpm/cr50_i2c.c | 117 + > include/tpm-v2.h | 54

Re: [PATCH 1/2] drivers: tee: optee: discover OP-TEE services

2022-06-07 Thread Ilias Apalodimas
Hi Etienne, [...] > > > + > > > +#ifndef CONFIG_OPTEE_SERVICE_DISCOVERY > > > /* > > >* in U-Boot, the discovery of TA on the TEE bus is not supported: > > >* only bind the drivers associated to the supported OP-TEE TA > > >*/ > > > if

[PATCH v2] xilinx: zynqmp: Do not use 0 as spl bss start address

2022-06-07 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Do not use 0 as address for memory because of the special meaning for pointers (null pointer). Change the spl bss start address to the second page. Signed-off-by: Stefan Herbrechtsmeier --- The problem was discovered with a static array initialized with zero. The

Re: [PATCH] crypto: fsl_hash: Remove unnecessary alignment check in caam_hash()

2022-06-07 Thread Heiko Thiery
Hi Fabio, Am Di., 7. Juni 2022 um 04:41 Uhr schrieb Fabio Estevam : > > Hi Stefan, > > On Fri, Apr 29, 2022 at 10:35 AM Stefan Roese wrote: > > > > While working on an LX2160 based board and updating to latest mainline > > I noticed problems using the HW accelerated hash functions on this > >

[PATCH v2 03/23] tools: relocate-rela: Use global variables

2022-06-07 Thread Michal Simek
Declare rela_start/end and text_base as global variables. It will help with using these variables for ELF decoding. Signed-off-by: Michal Simek --- (no changes since v1) tools/relocate-rela.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/relocate-rela.c

[PATCH v2 00/23] microblaze: Add support for full relocation

2022-06-07 Thread Michal Simek
Hi, this series is adding support for full rela relocation. Origin NEEDS_MANUAL_RELOC option is still there as default. Code has been tested with multiple configurations on QEMU. - Origin behavior - u-boot - Relocated version - u-boot.elf - Loading u-boot.bin to higher address than TEXT_BASE -

[PATCH v2 01/23] tools: relocate-rela: Open binary u-boot file later

2022-06-07 Thread Michal Simek
There is no value to open u-boot binary file so early. Better to check all values first and then open binary file. Signed-off-by: Michal Simek --- (no changes since v1) tools/relocate-rela.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH v2 02/23] Makefile: Fix description for relocate-rela parameters

2022-06-07 Thread Michal Simek
Numbers in comment are shifter which is visible from command which calls them. Also relocate-rela usage is describing them. "Usage: %s" Signed-off-by: Michal Simek --- (no changes since v1) Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile

[PATCH v2 22/23] tools: relocate-rela: Add support for 32bit Microblaze relocation

2022-06-07 Thread Michal Simek
Microblaze is 32bit that's why it is using elf32 format. Relocation code requires to get information about rela and dynsym senctions and also text base which was used for compilation. Code build with -fPIC and linked with -pic generates 4 relocation types. R_MICROBLAZE_NONE is the easiest one

[PATCH v2 12/23] microblaze: Separate code end substraction

2022-06-07 Thread Michal Simek
Follow up patch will convert symbol handling that's why it is necessary to separate logic around symbols to special instruction. It adds 4B for new instruction but it is worth to do it to have code ready for for full relocation. Signed-off-by: Michal Simek --- (no changes since v1)

[PATCH v2 21/23] tools: relocate-rela: Add support for elf32 decoding

2022-06-07 Thread Michal Simek
Add support for 32bit ELF format which is used by Microblaze. Also check that code runs only for Microblaze. Function finds information about rela.dyn and dynsym which will be used later for relocation. Signed-off-by: Michal Simek --- (no changes since v1) tools/relocate-rela.c | 141

[PATCH v2 19/23] tools: relocate-rela: Extract elf64 reloc to special function

2022-06-07 Thread Michal Simek
Adding support for new type requires to change code layout that's why move elf64 code to own function for easier maintenance. It also solves the problem with not calling fclose in case of error. Return value from rela_elf64 is saved to variable that's why fclose() is called all the time.

Re: [PATCH 0/6] Add video damage tracking

2022-06-07 Thread Heinrich Schuchardt
On 6/7/22 01:43, Alexander Graf wrote: This patch set speeds up graphics output on ARM by a factor of 60x. On most ARM SBCs, we keep the frame buffer in DRAM and map it as cached, but need it accessible by the display controller which reads directly from a later point of consistency. Hence, we

[PATCH v1] misc: nuvoton: Add NPCM7xx otp controller driver

2022-06-07 Thread Jim Liu
Add Nuvoton BMC npcm750 otp driver Signed-off-by: Jim Liu --- arch/arm/include/asm/arch-npcm7xx/otp.h | 90 + drivers/misc/Kconfig| 9 + drivers/misc/Makefile | 1 + drivers/misc/npcm_otp.c | 512 4 files

Re: [PATCH v2 01/14] cmd: cpu: migrate cpu command to U_BOOT_CMD_WITH_SUBCMDS()

2022-06-07 Thread Michal Simek
út 31. 5. 2022 v 20:14 odesílatel Ovidiu Panait napsal: > > Migrate cpu command to use U_BOOT_CMD_WITH_SUBCMDS() helper macro, to > reduce duplicated code. This also fixes the cpu command on boards that > enable CONFIG_NEEDS_MANUAL_RELOC. > > Signed-off-by: Ovidiu Panait > --- > NOTE: this

Re: [PATCH 4/8] tpm: Correct the define-space command in TPMv2

2022-06-07 Thread Ilias Apalodimas
Hi Simon, Thanks for fixing this. On Mon, Feb 28, 2022 at 05:11:21PM -0700, Simon Glass wrote: > The message format is incorrect. Fix it. > > Signed-off-by: Simon Glass > --- > > lib/tpm-v2.c | 18 +++--- > 1 file changed, 11 insertions(+), 7 deletions(-) > > diff --git

Please pull u-boot-watchdog/master

2022-06-07 Thread Stefan Roese
Hi Tom, please pull the following watchdog related fix: - Fix SPL build with watchdog disabled in asm files (Pali) Here the Azure build, without any issues:

Re: [PATCH v3 0/3] usb: add isp1760 hcd support

2022-06-07 Thread Rui Miguel Silva
Hi all, On Wed, May 25, 2022 at 02:22:48PM +0100, Rui Miguel Silva wrote: > Add support for the usb isp1760 host controller family, which > for example is present in MPS3 FPGA board from Arm (isp1763). > > First we move some helper functions and defines to a more > common place to be shared by

Re: [PATCH] crypto: fsl_hash: Remove unnecessary alignment check in caam_hash()

2022-06-07 Thread Heiko Thiery
Sorry for the typo in the mailadress. Heiko Thiery schrieb am Di., 7. Juni 2022, 09:44: > Hi Fabio, > > > Am Di., 7. Juni 2022 um 04:41 Uhr schrieb Fabio Estevam < > feste...@gmail.com>: > > > > Hi Stefan, > > > > On Fri, Apr 29, 2022 at 10:35 AM Stefan Roese wrote: > > > > > > While working

[PATCH v2 23/23] microblaze: Add support for run time relocation

2022-06-07 Thread Michal Simek
Microblaze is using NEEDS_MANUAL_RELOC from the beginnging. This is causing issues with function pointer arrays which need to be updated manually after relocation. Building code with -fPIC and linking with -pic will remove this limitation and there is no longer need to run manual update. By

[PATCH] .gitignore: add files produced by b4

2022-06-07 Thread Andrey Zhizhikin
b4 utility [1] is introduced by Linux Kernel developers and used to fetch patches and patch series from lore.kernel.org and is proven to be useful for U-Boot development. Detailed usage of the tool can be read under post from the original author [2]. This tool fetches files from the list and

Re: [PATCH v2] xilinx: zynqmp: Do not use 0 as spl bss start address

2022-06-07 Thread Michal Simek
út 7. 6. 2022 v 9:44 odesílatel Stefan Herbrechtsmeier napsal: > > From: Stefan Herbrechtsmeier > > Do not use 0 as address for memory because of the special meaning for > pointers (null pointer). Change the spl bss start address to the second > page. > > Signed-off-by: Stefan Herbrechtsmeier >

[PATCH v2 17/23] microblaze: Add comment about reset location

2022-06-07 Thread Michal Simek
Better to add comment to explain why reset vector points all the time to origin U-Boot location. If reset happens U-Boot should start from it's origin location. Signed-off-by: Michal Simek --- (no changes since v1) arch/microblaze/cpu/start.S | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 16/23] microblaze: Remove _start symbol handling at U-Boot start

2022-06-07 Thread Michal Simek
Right now U-Boot runs all the time from the same address where it is loaded but going to full relocation code starting address doesn't need to be fixed and can be simply discovered from reading PC register. That's why use r20 to get PC address and subtract offset from the beginning to get starting

[PATCH v1 1/2] crypto: nuvoton: Add NPCM7xx AES driver

2022-06-07 Thread Jim Liu
add nuvoton BMC npcm750 AES driver Signed-off-by: Jim Liu --- arch/arm/include/asm/arch-npcm7xx/aes.h | 53 + drivers/crypto/Kconfig | 2 + drivers/crypto/Makefile | 1 + drivers/crypto/nuvoton/Kconfig | 8 + drivers/crypto/nuvoton/Makefile

[PATCH v1 2/2] crypto: nuvoton: Add NPCM7xx SHA driver

2022-06-07 Thread Jim Liu
add nuvoton BMC npcm750 SHA driver Signed-off-by: Jim Liu --- drivers/crypto/nuvoton/Kconfig| 6 + drivers/crypto/nuvoton/Makefile | 1 + drivers/crypto/nuvoton/npcm_sha.c | 897 ++ 3 files changed, 904 insertions(+) create mode 100644

Re: [PATCH 1/2] drivers: tee: optee: discover OP-TEE services

2022-06-07 Thread Etienne Carriere
Hi Ilias, On Mon, 6 Jun 2022 at 11:49, Ilias Apalodimas wrote: > > Hi Etienne, > > On Wed, Jun 01, 2022 at 10:27:51AM +0200, Etienne Carriere wrote: > > This change defines resources for OP-TEE service drivers to register > > themselves for being bound to when OP-TEE firmware reports the related

Re: [PATCH v2 01/14] cmd: cpu: migrate cpu command to U_BOOT_CMD_WITH_SUBCMDS()

2022-06-07 Thread Ovidiu Panait
that fixes the pointers after relocation (the cpu driver makes use of the events feature)? Without this, in my testing the event handlers are not called at all after relocation: https://lore.kernel.org/u-boot/20220515184029.2169025-2-ovpan...@gmail.com/ It seems it is not currently applied to the 2022

[PATCH v2 11/23] microblaze: Enable REMAKE_ELF

2022-06-07 Thread Michal Simek
Enable u-boot.elf recreation from u-boot.bin to prepare for removing manul relocation. Enable option for big endian configuration but it is not used too much that's why it is completely untested. By supporting this system there is a need to define LITTLE/BIG endian Kconfig options to pass -EL/-EB

[PATCH v2 14/23] microblaze: Optimize register usage in relocate_code

2022-06-07 Thread Michal Simek
There are additional operations which can be done simpler that's why improve logic around relocation address r7 handling and _start symbol. Signed-off-by: Michal Simek --- (no changes since v1) arch/microblaze/cpu/start.S | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff

[PATCH v2 15/23] microblaze: Remove code around r20 in relocate_code()

2022-06-07 Thread Michal Simek
r20 is not used that's why remove logic around it. Signed-off-by: Michal Simek --- (no changes since v1) arch/microblaze/cpu/start.S | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/microblaze/cpu/start.S b/arch/microblaze/cpu/start.S index f2d6d12deb73..c3d925c1d151 100644 ---

[PATCH v2 13/23] microblaze: Change stack protection address to new stack address

2022-06-07 Thread Michal Simek
SLR low address is still setup to 0 that's why only high limit should be updated. STACK_SIZE macro is present and could be possible used for low address alignment but it is not done by this patch. Signed-off-by: Michal Simek --- (no changes since v1) arch/microblaze/cpu/start.S | 1 + 1 file

[PATCH v2 09/23] microblaze: Fix typo in exception.c

2022-06-07 Thread Michal Simek
Trivial fix. Signed-off-by: Michal Simek --- (no changes since v1) arch/microblaze/cpu/exception.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/microblaze/cpu/exception.c b/arch/microblaze/cpu/exception.c index d3640d3903b8..9414776afa7f 100644 ---

Re: [PATCH 2/8] tpm: Require a digest source when extending the PCR

2022-06-07 Thread Ilias Apalodimas
On Mon, Feb 28, 2022 at 05:11:19PM -0700, Simon Glass wrote: > This feature is used for measured boot. It is not currently supported in > the TPM drivers, but add it to the API so that code which expects it can > signal its request. > > Signed-off-by: Simon Glass > --- > > cmd/tpm-v1.c |

Re: [PATCH 5/8] tpm: sandbox: Allow init of TPM in a different phase

2022-06-07 Thread Ilias Apalodimas
Hi Simon, On Mon, Feb 28, 2022 at 05:11:22PM -0700, Simon Glass wrote: > At present the emulator assumes that the TPM is inited in the same phase > where it is used. But in fact SPL may init the TPM, so we don't want to > complain when U-Boot proper later uses it. Remove this check. > > It

Re: [PATCH 3/8] tpm: Correct the permissions command in TPMv1

2022-06-07 Thread Ilias Apalodimas
Hi Simon, On Mon, Feb 28, 2022 at 05:11:20PM -0700, Simon Glass wrote: > The offset here is incorrect. Fix it. > > Signed-off-by: Simon Glass > --- > > lib/tpm-v1.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/lib/tpm-v1.c b/lib/tpm-v1.c > index

Re: [PATCH] watchdog: Fix SPL build with watchdog disabled in asm files

2022-06-07 Thread Stefan Roese
On 04.06.22 15:06, Pali Rohár wrote: PING? On Thursday 28 April 2022 13:33:09 Pali Rohár wrote: Allow to compile assembler files in SPL build which calls WATCHDOG_RESET function when watchdog is disabled in SPL and enabled in U-Boot proper. This issue was fixed in past by commit 7fbd42f5afc4

Re: [PATCH] fs/squashfs: sqfs_read: Prevent arbitrary code execution

2022-06-07 Thread Jincheng Wang
It works well, thanks for your work. Miquel Raynal 于2022年6月3日周五 23:26写道: > > Following Jincheng's report, an out-of-band write leading to arbitrary > code execution is possible because on one side the squashfs logic > accepts directory names up to 65535 bytes (u16), while U-Boot fs logic >

Re: [PATCH 2/2] mvebu: uDPU: disable non-present peripherals

2022-06-07 Thread Stefan Roese
On 03.06.22 12:53, Robert Marko wrote: uDPU like eDPU does not expose SCSI based peripherals like SATA nor PCI and for sure it does not have the Intel E1000 PCI card. So, like for eDPU remove those from the defconfig. Signed-off-by: Robert Marko Reviewed-by: Stefan Roese Thanks, Stefan

Re: [PATCH 6/6] video: Only dcache flush damaged lines

2022-06-07 Thread Heinrich Schuchardt
On 6/7/22 01:43, Alexander Graf wrote: Now that we have a damage area tells us which parts of the frame buffer actually need updating, let's only dcache flush those on video_sync() calls. With this optimization in place, frame buffer updates - especially on large screen such as 4k displays -

[PATCH v2 07/23] microblaze: Fix early stack allocation

2022-06-07 Thread Michal Simek
CONFIG_SYS_INIT_SP_OFFSET macro place stack to TEXT_BASE - SYS_MALLOC_F_LEN but there is no reason to do it now because board_init_f_alloc_reserve() returns exact location where stack should be. That's why stack location is calculated at run time and there is no need to hardcode it via macro. This

[PATCH v2 04/23] tools: relocate-rela: Read rela start/end directly from ELF

2022-06-07 Thread Michal Simek
There is no need to pass section information via parameters. Let's read text base and rela start/end directly from elf. It will help with reading other information from ELF for others architecture. Input to relocate-rela is u-boot binary and u-boot ELF. Signed-off-by: Michal Simek --- (no

[PATCH v2 05/23] microblaze: Switch absolute branches to relative

2022-06-07 Thread Michal Simek
There is no reason to use absolute branches and use just relative. This change helps with moving binary to different location and start it from there. Signed-off-by: Michal Simek --- (no changes since v1) arch/microblaze/cpu/start.S | 18 +- 1 file changed, 9 insertions(+), 9

[PATCH v2 10/23] mips: Move endianness selection to arch/Kconfig

2022-06-07 Thread Michal Simek
This option will be used by Microblaze that's why move it to generic location to be able to use it. Signed-off-by: Michal Simek --- Changes in v2: - new patch in series to solve Kconfig warning arch/Kconfig | 22 ++ arch/mips/Kconfig | 18 -- 2 files

[PATCH v2 08/23] microblaze: Remove CONFIG_TEXT_BASE from code

2022-06-07 Thread Michal Simek
Use symbol instead macro to find where U-Boot starts. Signed-off-by: Michal Simek --- (no changes since v1) arch/microblaze/cpu/start.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/microblaze/cpu/start.S b/arch/microblaze/cpu/start.S index

[PATCH v2 06/23] microblaze: Fix stack protection behavior

2022-06-07 Thread Michal Simek
When U-Boot starts stack protection can be already enabled that's why setup the lowest possible SLR value which is address 0. And the highest possible stack in front of U-Boot. That's why you should never load U-Boot to the beginning of DDR. There must be some space reserved. Code is using this

[PATCH v3 1/3] drivers: tee: optee: remove unused probe local variable

2022-06-07 Thread Etienne Carriere
Removes local variable child in optee_probe() that is not used. Cc: Patrick Delaunay Signed-off-by: Etienne Carriere --- No change since v2. New change not in v1 series. --- drivers/tee/optee/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tee/optee/core.c

[PATCH v3 2/3] drivers: tee: optee: discover OP-TEE services

2022-06-07 Thread Etienne Carriere
This change defines resources for OP-TEE service drivers to register themselves for being bound to when OP-TEE firmware reports the related service is supported. OP-TEE services are discovered during optee driver probe sequence which mandates optee driver is always probe once bound. Discovery of

[PATCH v3 3/3] drivers: rng: optee_rng: register to CONFIG_OPTEE_SERVICE_DISCOVERY

2022-06-07 Thread Etienne Carriere
Changes optee_rng driver to register itself has a OP-TEE service so that a device is bound for the driver when OP-TEE enumerates the PTA RNG service. Cc: Sughosh Ganu Cc: Patrick Delaunay Signed-off-by: Etienne Carriere --- No change since v2. No change since v1. --- drivers/rng/Kconfig

Re: [PATCH 1/2] mvebu: eDPU: disable SCSI support

2022-06-07 Thread Stefan Roese
On 03.06.22 12:53, Robert Marko wrote: eDPU does not use SCSI nor it has SATA exposed, and commit arm: mvebu: a3720: Set BOOT_TARGET_DEVICES list to enabled peripherals now allows compiling U-boot wihout all of the BOOT_TARGET_DEVICES since not all boards have all of the listed peripherals

[GIT PULL] xilinx patches for v2022.07-rc4-v2

2022-06-07 Thread Michal Simek
Hi Tom, please pull this one patch to your tree. I found one issue with some boards that's why I would like to fix it in this release. Thanks, Michal The following changes since commit 0f259fe79d7f0dca716bc954c211b0e6bc606d72: Merge tag 'efi-2022-07-rc4-4' of

[PATCH v2 18/23] microblaze: Create SYM_ADDR macro to deal with symbols

2022-06-07 Thread Michal Simek
Symbol handling depends on compilation flags. Right now manual relocation is used that's why symbols can be referenced just by name and there is no need to find them out. But when position independent code (PIC) is used symbols need to be described differently. That's why having one macro change

[PATCH v2 20/23] tools: relocate-rela: Check that relocation works only for EM_AARCH64

2022-06-07 Thread Michal Simek
Relocation support is only for EM_AARCH64 that's why check machine type to make sure that the code will never run on any unsupported one. Signed-off-by: Michal Simek --- (no changes since v1) tools/relocate-rela.c | 5 + 1 file changed, 5 insertions(+) diff --git a/tools/relocate-rela.c

Re: [PATCH 1/8] tpm: Export the TPM-version functions

2022-06-07 Thread Ilias Apalodimas
Hi Simon, Apologies the late reply. I wasn't cc'ed on those and missed them in my mailbox. On Mon, Feb 28, 2022 at 05:11:18PM -0700, Simon Glass wrote: > These functions should really be available outside the TPM code, so that > other callers can find out which version the TPM is. Rename them

[PATCH v1] misc: nuvoton: Add host interface configuartion driver

2022-06-07 Thread Jim Liu
add nuvoton BMC npcm750 host configuartion driver Signed-off-by: Jim Liu --- drivers/misc/Makefile | 1 + drivers/misc/npcm_host_intf.c | 110 ++ 2 files changed, 111 insertions(+) create mode 100644 drivers/misc/npcm_host_intf.c diff --git

Re: [ANN] U-Boot v2022.07-rc4 released

2022-06-07 Thread Christian Gmeiner
Am Mo., 6. Juni 2022 um 16:26 Uhr schrieb Tom Rini : > > Hey all, > > It's release day and so here's v2022.07-rc4. There were a few more > fixes that I had seen that were either regressions or minor and > seemingly safe fixes that I've pulled them in. If there are any bug > fixes people are

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

2022-06-07 Thread Michal Simek
On 6/1/22 10:46, Oleksandr Suvorov wrote: 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 --- (no changes since v1) include/versalpl.h | 2 +-

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

2022-06-07 Thread Michal Simek
On 6/1/22 10:46, Oleksandr Suvorov wrote: Convert taken FPGA image "compatible" string to a binary compatible flag and pass it to an FPGA driver. Signed-off-by: Oleksandr Suvorov --- (no changes since v1) common/spl/spl_fit.c | 10 +++--- 1 file changed, 7 insertions(+), 3

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

2022-06-07 Thread Oleksandr Suvorov
Hi Michal, On Tue, Jun 7, 2022 at 3:47 PM Michal Simek wrote: > > Hi, > > On 6/7/22 13:37, Oleksandr Suvorov wrote: > > Hi Michal, > > > > On Tue, Jun 7, 2022 at 2:32 PM Michal Simek wrote: > >> > >> > >> > >> On 6/1/22 10:46, Oleksandr Suvorov wrote: > >>> Store a set of supported bitstream

Re: [PATCH] fs/squashfs: sqfs_read: Prevent arbitrary code execution

2022-06-07 Thread Tom Rini
On Tue, Jun 07, 2022 at 06:00:38PM +0800, Jincheng Wang wrote: > It works well, thanks for your work. Can you please provide a Tested-by? Thanks! > > > Miquel Raynal 于2022年6月3日周五 23:26写道: > > > > Following Jincheng's report, an out-of-band write leading to arbitrary > > code execution is

Re: Unpatched Critical Flaws Disclosed in U-Boot Bootloader for Embedded Devices

2022-06-07 Thread Tom Rini
On Tue, Jun 07, 2022 at 08:06:07PM +0800, Turritopsis Dohrnii Teo En Ming wrote: > Subject: Unpatched Critical Flaws Disclosed in U-Boot Bootloader for > Embedded Devices > > Good day from Singapore, > > I am sharing this news article for more awareness. > > Article: Unpatched Critical Flaws

Re: [ANN] U-Boot v2022.07-rc4 released

2022-06-07 Thread Tom Rini
On Tue, Jun 07, 2022 at 11:11:20AM +0200, Christian Gmeiner wrote: > Am Mo., 6. Juni 2022 um 16:26 Uhr schrieb Tom Rini : > > > > Hey all, > > > > It's release day and so here's v2022.07-rc4. There were a few more > > fixes that I had seen that were either regressions or minor and > > seemingly

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

2022-06-07 Thread Michal Simek
On 6/1/22 10:46, Oleksandr Suvorov wrote: 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 --- (no changes since v1) boot/Kconfig

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

2022-06-07 Thread Oleksandr Suvorov
Hi Adrian, On Tue, Jun 7, 2022 at 4:01 PM Adrian Fiergolski wrote: > > Oleksandr, > > yes, I will try to find some time slot to test them. However, don't you > want to first implement Michael's suggestions, so I test the final version? Sure, no problem, Adrian. > > Regards, > Adrian > > On

Re: [PATCH] watchdog: add amlogic watchdog support

2022-06-07 Thread Neil Armstrong
On 07/06/2022 16:00, Neil Armstrong wrote: On 07/06/2022 15:28, Philippe Boos wrote: Add support for hardware watchdog timer for Amlogic SoCs. This driver has been heavily inspired by his Linux equivalent (meson_gxbb_wdt.c). Reviewed-by: Jerome Brunet Signed-off-by: Philippe Boos --- This

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

2022-06-07 Thread Michal Simek
On 6/1/22 10:46, Oleksandr Suvorov wrote: 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 --- (no changes since v1) include/versalpl.h | 2 +-

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

2022-06-07 Thread Oleksandr Suvorov
Hi Michal, On Tue, Jun 7, 2022 at 2:32 PM Michal Simek wrote: > > > > On 6/1/22 10:46, Oleksandr Suvorov wrote: > > 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. > > > >

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

2022-06-07 Thread Michal Simek
Hi, On 6/7/22 13:37, Oleksandr Suvorov wrote: Hi Michal, On Tue, Jun 7, 2022 at 2:32 PM Michal Simek wrote: On 6/1/22 10:46, Oleksandr Suvorov wrote: 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

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. > > > > Signed-off-by: Oleksandr Suvorov > > --- > > > > (no

Unpatched Critical Flaws Disclosed in U-Boot Bootloader for Embedded Devices

2022-06-07 Thread Turritopsis Dohrnii Teo En Ming
Subject: Unpatched Critical Flaws Disclosed in U-Boot Bootloader for Embedded Devices Good day from Singapore, I am sharing this news article for more awareness. Article: Unpatched Critical Flaws Disclosed in U-Boot Bootloader for Embedded Devices Link:

Re: [PATCH] armv8: Fix TCR 64-bit writes

2022-06-07 Thread Andre Przywara
On Mon, 6 Jun 2022 23:00:08 +0200 (CEST) Mark Kettenis wrote: Hi Mark, > > From: Andre Przywara > > Date: Mon, 9 May 2022 17:08:49 +0100 > > > > The AArch64 TCR_ELx register is a 64-bit register, and many newer > > architecture features use bits in the upper half. So far U-Boot was > >

[PATCH] watchdog: add amlogic watchdog support

2022-06-07 Thread Philippe Boos
Add support for hardware watchdog timer for Amlogic SoCs. This driver has been heavily inspired by his Linux equivalent (meson_gxbb_wdt.c). Reviewed-by: Jerome Brunet Signed-off-by: Philippe Boos --- This watchdog driver has been tested on a GXL libretech-cc board and also on a custom G12a

Re: [PATCH] watchdog: add amlogic watchdog support

2022-06-07 Thread Neil Armstrong
On 07/06/2022 15:28, Philippe Boos wrote: Add support for hardware watchdog timer for Amlogic SoCs. This driver has been heavily inspired by his Linux equivalent (meson_gxbb_wdt.c). Reviewed-by: Jerome Brunet Signed-off-by: Philippe Boos --- This watchdog driver has been tested on a GXL

[PATCH] armv8: always use current exception level for TCR_ELx access

2022-06-07 Thread Andre Przywara
Currently get_tcr() takes an "el" parameter, to select the proper version of the TCR_ELx system register. This is problematic in case of the Apple M1, since it runs with HCR_EL2.E2H fixed to 1, so TCR_EL2 is actually using the TCR_EL1 layout, and we get the wrong version. For U-Boot's purposes

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

2022-06-07 Thread Michal Simek
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. Signed-off-by: Oleksandr Suvorov --- (no changes since v1) drivers/fpga/fpga.c | 26 ++

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

2022-06-07 Thread Adrian Fiergolski
Oleksandr, yes, I will try to find some time slot to test them. However, don't you want to first implement Michael's suggestions, so I test the final version? 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

Re: [PATCH] cmd: dm: migrate dm command to use U_BOOT_CMD_WITH_SUBCMDS()

2022-06-07 Thread Tom Rini
On Sun, May 08, 2022 at 01:01:42PM +0300, Ovidiu Panait wrote: > Migrate dm command to use U_BOOT_CMD_WITH_SUBCMDS() helper macro, to reduce > duplicated code. We can also drop the CONFIG_NEEDS_MANUAL_RELOC exception, > as the command list is updated post relocation in board_r.c initcall >

Re: [PATCH] boot: image-pre-load: drop unused CONFIG_SYS_BOOTM_LEN

2022-06-07 Thread Tom Rini
On Sat, May 07, 2022 at 09:23:05PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > CONFIG_SYS_BOOTM_LEN is not used in this file, drop it. > > Signed-off-by: Peng Fan > Reviewed-by: Tom Rini Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 1/1] dm: fix DM_EVENT dependencies

2022-06-07 Thread Tom Rini
On Sat, May 07, 2022 at 10:39:01PM +0200, Heinrich Schuchardt wrote: > CONFIG_DM_EVENT without CONFIG_EVENT is non-functional. > Let CONFIG_DM_EVENT depend on CONFIG_EVENT. > > Remove superfluous stub in include/event.h. > > Fixes: 5b896ed5856f ("event: Add events for device probe/remove") >

Re: [PATCH] scripts: Introduce {quiet_,}cmd_bin2c

2022-06-07 Thread Tom Rini
On Wed, May 11, 2022 at 10:36:07AM +0100, Pierre-Clément Tosi wrote: > Add a make command to compile binary files as C data through bin2c with > > $(call,bin2c,) > > Note that this requires BUILD_BIN2C=y. > > Cc: Simon Glass > Signed-off-by: Pierre-Clément Tosi Applied to u-boot/next,

Re: [PATCH v3 1/2] mkimage: Document more misc options

2022-06-07 Thread Tom Rini
On Mon, May 16, 2022 at 04:11:07PM -0400, Sean Anderson wrote: > Document -G and the secondary image types which can be used with -R. > Also reword the documentation of -s for clarity. > > Signed-off-by: Sean Anderson Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH 1/2] event: remove CONFIG_EVENT_DYNAMIC check in event_register()

2022-06-07 Thread Tom Rini
On Sun, May 15, 2022 at 09:40:28PM +0300, Ovidiu Panait wrote: > The whole event_register() function is wrapped in EVENT_DYNAMIC #ifdef > checks, so the inner check is not needed: > > #if CONFIG_IS_ENABLED(EVENT_DYNAMIC) > ... > int event_register(...) > { > ... > if

Re: [PATCH] mtd: mtdpart: Change size type from fdt_addr_t to fdt_size_t

2022-06-07 Thread Tom Rini
On Fri, May 13, 2022 at 10:24:51PM +0200, Pali Rohár wrote: > Set correct type for 3rd argument of ofnode_get_addr_size_index_notrans() > function. It expects fdt_size_t * and not fdt_addr_t *. > > When these two types do not have same size then U-Boot throw compile > warning: > >

Re: [PATCH 2/2] event: fix static events for CONFIG_NEEDS_MANUAL_RELOC

2022-06-07 Thread Tom Rini
On Sun, May 15, 2022 at 09:40:29PM +0300, Ovidiu Panait wrote: > Static events do not currently work post-relocation for boards that enable > CONFIG_NEEDS_MANUAL_RELOC. Relocate event handler pointers for all event > spies to fix this. > > Tested on Microblaze. > > Signed-off-by: Ovidiu Panait

Re: [PATCH] bootm: Fix Linux silent console on newer kernels

2022-06-07 Thread Tom Rini
On Thu, May 19, 2022 at 06:26:05PM -0400, Sean Anderson wrote: > Linux determines its console based on several sources: > > 1. the console command line parameter > 2. device tree (e.g. /chosen/stdout-path) > 3. various other board- and arch-specific sources > > If the console parameter

Re: [PATCH] fdtdec: drop needlessly convoluted CONFIG_PHANDLE_CHECK_SEQ

2022-06-07 Thread Tom Rini
On Thu, May 19, 2022 at 11:10:43AM +0200, Rasmus Villemoes wrote: > Asking if the alias we found actually points at the device tree node > we passed in (in the guise of its offset from blob) can be done simply > by asking if the fdt_path_offset() of the alias' path is identical to > offset. > >

Re: [PATCH] serial: smh: Fake tstc

2022-06-07 Thread Tom Rini
On Tue, May 17, 2022 at 01:55:07PM -0400, Sean Anderson wrote: > ARM semihosting provides no provisions for determining if there is > pending input. The only way to determine if there is console input is to > do a read (and block until the user types something). For this reason, > we always

Re: [PATCH] dm: core: convert of_machine_is_compatible to livetree

2022-06-07 Thread Tom Rini
On Tue, May 17, 2022 at 02:37:05PM +0200, Patrick Delaunay wrote: > Replace in the function of_machine_is_compatible(), the used API > fdt_node_check_compatible() by ofnode_device_is_compatible() > to support a live tree. > > Signed-off-by: Patrick Delaunay > Reviewed-by: Patrice Chotard

Re: [PATCH] pci: Handle failed calloc in decode_regions()

2022-06-07 Thread Tom Rini
On Thu, May 19, 2022 at 05:48:30PM +0100, Pierre-Clément Tosi wrote: > Add a check for calloc() failing to allocate the requested memory. > > Make decode_regions() return an error code. > > Cc: Bin Meng > Cc: Simon Glass > Cc: Stefan Roese > Signed-off-by: Pierre-Clément Tosi >

Re: [PATCH v3 2/2] mkimage: Support signing 'auto' FITs

2022-06-07 Thread Tom Rini
On Mon, May 16, 2022 at 04:11:08PM -0400, Sean Anderson wrote: > This adds support for signing images in auto-generated FITs. To do this, > we need to add a signature node. The algorithm name property already has > its own option, but we need one for the key name hint. We could have > gone the -G

Re: [PATCH 2/8] configs: imx8mm_data_modul_edm_sbc: not select SPL_RAM_DEVICE

2022-06-07 Thread Marek Vasut
On 6/7/22 19:26, Alper Nebi Yasak wrote: On 06/06/2022 17:07, Marek Vasut wrote: On 6/3/22 09:17, Peng Fan (OSS) wrote: From: Peng Fan i.MX8M use FIT image, not RAW image. And to support binman symbols, u_boot_any could be optimized if RAW image is not selected, otherwise there will be build

Re: [PATCH 2/8] configs: imx8mm_data_modul_edm_sbc: not select SPL_RAM_DEVICE

2022-06-07 Thread Alper Nebi Yasak
On 06/06/2022 17:07, Marek Vasut wrote: > On 6/3/22 09:17, Peng Fan (OSS) wrote: >> From: Peng Fan >> >> i.MX8M use FIT image, not RAW image. And to support binman symbols, >> u_boot_any could be optimized if RAW image is not selected, otherwise >> there will be build failure. So not select

Re: binman: Why is the first word the compressed size in compressed data

2022-06-07 Thread Alper Nebi Yasak
On 03/06/2022 18:07, Stefan Herbrechtsmeier wrote: > Am 02.06.2022 um 20:10 schrieb Alper Nebi Yasak: >> On 01/06/2022 11:29, Stefan Herbrechtsmeier wrote: >>> Hi Simon, >>> >>> I want to compress a FPGA Image on the fly via binman but this doesn't >>> work. I have add a bintool implementation for

Re: [GIT PULL] xilinx patches for v2022.07-rc4-v2

2022-06-07 Thread Tom Rini
On Tue, Jun 07, 2022 at 09:37:21AM +0200, Michal Simek wrote: > Hi Tom, > > please pull this one patch to your tree. I found one issue with some boards > that's why I would like to fix it in this release. > > Thanks, > Michal > > The following changes since commit

Re: Please pull u-boot-watchdog/master

2022-06-07 Thread Tom Rini
On Tue, Jun 07, 2022 at 10:44:52AM +0200, Stefan Roese wrote: > Hi Tom, > > please pull the following watchdog related fix: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: BUG in u-boot for ODROID-XU3/XU4/HC1/HC2

2022-06-07 Thread Tom Rini
On Sat, May 28, 2022 at 03:10:51AM +0300, Gabriel Hojda wrote: > hi, > > i've recently tried u-boot 2022.04 (u-boot-v2022.04.tar.bz2) and my > odroid-hc2 didn't boot with uefi (default since Fedora 35) but worked when i > used exlinux.conf > > trying to track down the problem, i've found that

Re: [PATCH] .gitignore: add files produced by b4

2022-06-07 Thread Tom Rini
On Tue, Jun 07, 2022 at 10:13:00AM +0200, Andrey Zhizhikin wrote: > b4 utility [1] is introduced by Linux Kernel developers and used to > fetch patches and patch series from lore.kernel.org and is proven > to be useful for U-Boot development. Detailed usage of the tool can be > read under post

  1   2   >