[GIT PULL] please pull fsl-qoriq-2022-8-17

2022-08-16 Thread Peng Fan (OSS)
Hi Tom, Please pull fsl-qoriq-2022-8-17 CI: https://source.denx.de/u-boot/custodians/u-boot-fsl-qoriq/-/pipelines/13155 Enable SPL authentication for ls1021atwr Fdt fixups for ls1043ardb v7.0 board Thanks, Peng.

[PATCH] xilinx: zynqmp: Fix AES with a user provided key

2022-08-16 Thread Janne Ylalehto
The user provided key address was not flushed in struct aes because of the flushing location in the function. Signed-off-by: Janne Ylalehto --- board/xilinx/zynqmp/cmds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/xilinx/zynqmp/cmds.c

Re: [PATCH] arm: kirkwood: 88f6281: Detect CONFIG_SYS_TCLK from SAR register

2022-08-16 Thread Michael Walle
Am 2022-08-17 00:39, schrieb Pali Rohár: On Wednesday 17 August 2022 00:14:20 Pali Rohár wrote: On Tuesday 16 August 2022 23:34:13 Michael Walle wrote: > Am 2022-08-16 22:00, schrieb Pali Rohár: > > Bit 21 in SAR register specifies if TCLK is running at 166 MHz or 200 > > MHz. > > This

Re: [PATCH] arm: kirkwood: 88f6281: Detect CONFIG_SYS_TCLK from SAR register

2022-08-16 Thread Pali Rohár
On Wednesday 17 August 2022 00:14:20 Pali Rohár wrote: > On Tuesday 16 August 2022 23:34:13 Michael Walle wrote: > > Am 2022-08-16 22:00, schrieb Pali Rohár: > > > Bit 21 in SAR register specifies if TCLK is running at 166 MHz or 200 > > > MHz. > > > This information is undocumented in public

Re: [PATCH] arm: kirkwood: 88f6281: Detect CONFIG_SYS_TCLK from SAR register

2022-08-16 Thread Pali Rohár
On Tuesday 16 August 2022 23:34:13 Michael Walle wrote: > Am 2022-08-16 22:00, schrieb Pali Rohár: > > Bit 21 in SAR register specifies if TCLK is running at 166 MHz or 200 > > MHz. > > This information is undocumented in public Marvell Kirkwood Functional > > Specifications [2], but is available

Re: [PATCH v2 6/6] test: py: fru: add a test for the fru command

2022-08-16 Thread Jae Hyun Yoo
Hi Simon, On 8/16/2022 1:42 PM, Simon Glass wrote: Hi Jae, On Mon, 15 Aug 2022 at 16:58, Jae Hyun Yoo wrote: Add a simple test for the 'fru' command. Signed-off-by: Jae Hyun Yoo --- Changes from v1: * Newly added in v2. (Heinrich) configs/sandbox64_defconfig| 1 +

Re: [PATCH v2 3/6] cmd: fru: fix a sandbox segfault issue

2022-08-16 Thread Jae Hyun Yoo
Hi Simon, On 8/16/2022 1:42 PM, Simon Glass wrote: [...] Reviewed-by: Simon Glass Thanks for your review! [...] int fru_display(int verbose); -int fru_capture(unsigned long addr); -int fru_generate(unsigned long addr, int argc, char *const argv[]); +int fru_capture(const void

Re: [PATCH] arm: kirkwood: 88f6281: Detect CONFIG_SYS_TCLK from SAR register

2022-08-16 Thread Michael Walle
Am 2022-08-16 22:00, schrieb Pali Rohár: Bit 21 in SAR register specifies if TCLK is running at 166 MHz or 200 MHz. This information is undocumented in public Marvell Kirkwood Functional Specifications [2], but is available in Linux v3.15 kirkwood code [1]. Commit 8ac303d49f89 ("arm: kirkwood:

Re: [PATCH] [RFC] cmd: i2c: fix default address len for DM_I2C

2022-08-16 Thread Simon Glass
Hi Tim, On Tue, 16 Aug 2022 at 13:50, Tim Harvey wrote: > > On Mon, Aug 15, 2022 at 3:16 PM Simon Glass wrote: > > > > Hi Tim, > > > > On Mon, 15 Aug 2022 at 11:48, Tim Harvey wrote: > > > > > > On Sat, Aug 13, 2022 at 7:59 AM Simon Glass wrote: > > > > > > > > Hi Tim, > > > > > > > > On Thu,

Re: [PATCH v2 6/6] test: py: fru: add a test for the fru command

2022-08-16 Thread Simon Glass
Hi Jae, On Mon, 15 Aug 2022 at 16:58, Jae Hyun Yoo wrote: > > Add a simple test for the 'fru' command. > > Signed-off-by: Jae Hyun Yoo > --- > Changes from v1: > * Newly added in v2. (Heinrich) > > configs/sandbox64_defconfig| 1 + > configs/sandbox_defconfig | 1 + >

Re: [PATCH v4 03/13] binman: Disable compressed data header

2022-08-16 Thread Simon Glass
Hi Stefan, On Tue, 16 Aug 2022 at 06:03, Stefan Herbrechtsmeier wrote: > > Hi Simon, > > Am 16.08.2022 um 13:48 schrieb Simon Glass: > > Hi Stefan, > > > > On Tue, 16 Aug 2022 at 02:42, Stefan Herbrechtsmeier > > wrote: > >> > >> From: Stefan Herbrechtsmeier > >> > >> Disable the compressed

Re: [RESEND PATCH v2 6/6] net: fm: Add support for FIT firmware

2022-08-16 Thread Simon Glass
On Tue, 16 Aug 2022 at 09:16, Sean Anderson wrote: > > Fman microcode is executable code (AFAICT) loaded into a > coprocessor. As such, if verified boot is enabled, it must be verified > like other executable code. However, this is not currently done. > > This commit adds verified boot

Re: [PATCH v2 3/6] cmd: fru: fix a sandbox segfault issue

2022-08-16 Thread Simon Glass
Hi Jae, On Mon, 15 Aug 2022 at 16:58, Jae Hyun Yoo wrote: > > This command doesn't work with sandbox because direct memory access > causes a segfault error. Fix it up using map_sysmem(). > > Signed-off-by: Jae Hyun Yoo > --- > Changes from v1: > * Newly added in v2. > >

Re: [RESEND PATCH v2 2/6] image: fit: Add some helpers for getting data

2022-08-16 Thread Simon Glass
On Tue, 16 Aug 2022 at 09:16, Sean Anderson wrote: > > Several different firmware users have repetitive code to extract the > firmware data from a FIT. Add some helper functions to reduce the amount > of repetition. fit_conf_get_prop_node (eventually) calls > fdt_check_node_offset_, so we can

Re: [RESEND PATCH v2 5/6] net: Convert fit verification to use fit_get_data_*

2022-08-16 Thread Simon Glass
On Tue, 16 Aug 2022 at 09:16, Sean Anderson wrote: > > Several ethernet drivers load firmware from FIT images. Convert them to > use the fit_get_data helpers. > > Signed-off-by: Sean Anderson > --- > > Changes in v2: > - New > > drivers/net/fsl-mc/mc.c| 30 +++--- >

Re: [RESEND PATCH v2 4/6] cmd: fpga: Convert to use fit_get_data_node

2022-08-16 Thread Simon Glass
On Tue, 16 Aug 2022 at 09:16, Sean Anderson wrote: > > This converts the FIT loading process of the fpga command to use s/This converts/Convert/ > fit_get_data_node. > > Signed-off-by: Sean Anderson > --- > > Changes in v2: > - New > > cmd/fpga.c | 24 ++-- > 1 file

Re: [PATCH 5/5] arm: kirkwood: Do not overwrite CONFIG_SYS_TCLK

2022-08-16 Thread Michael Walle
Am 2022-08-16 21:38, schrieb Pali Rohár: On Tuesday 16 August 2022 20:17:08 Pali Rohár wrote: Hello! On Tuesday 16 August 2022 11:37:48 Michael Walle wrote: > Hi! > > > On Sunday 01 August 2021 20:07:16 Chris Packham wrote: > > > On Sun, Aug 1, 2021 at 12:23 AM Pali Rohár wrote: > > > > > > >

Re: [PATCH 5/5] arm: kirkwood: Do not overwrite CONFIG_SYS_TCLK

2022-08-16 Thread Michael Walle
Am 2022-08-16 20:17, schrieb Pali Rohár: > > If I understand correctly > > the defines in kw88f6281.h/kw88f6192.h were sensible defaults but > > boards were able to override it to reflect the hardware configuration. > > Anyway, I think that this patch should not cause issue as it is changing >

Re: [PATCH 5/5] arm: kirkwood: Do not overwrite CONFIG_SYS_TCLK

2022-08-16 Thread Pali Rohár
On Tuesday 16 August 2022 21:38:51 Pali Rohár wrote: > Meanwhile I have found following email thread: > https://lore.kernel.org/linux-arm-kernel/20121020113800.gc21...@lunn.ch/t/#u > > Where are more 6281 boards with 166 MHz TCLK and there is interesting output: > $ dmesg | grep -i tclk > [

[PATCH] arm: kirkwood: 88f6281: Detect CONFIG_SYS_TCLK from SAR register

2022-08-16 Thread Pali Rohár
Bit 21 in SAR register specifies if TCLK is running at 166 MHz or 200 MHz. This information is undocumented in public Marvell Kirkwood Functional Specifications [2], but is available in Linux v3.15 kirkwood code [1]. Commit 8ac303d49f89 ("arm: kirkwood: Do not overwrite CONFIG_SYS_TCLK") broke

Re: [PATCH] [RFC] cmd: i2c: fix default address len for DM_I2C

2022-08-16 Thread Tim Harvey
On Mon, Aug 15, 2022 at 3:16 PM Simon Glass wrote: > > Hi Tim, > > On Mon, 15 Aug 2022 at 11:48, Tim Harvey wrote: > > > > On Sat, Aug 13, 2022 at 7:59 AM Simon Glass wrote: > > > > > > Hi Tim, > > > > > > On Thu, 11 Aug 2022 at 11:57, Tim Harvey wrote: > > > > > > > > According to the comment

Re: [PATCH 5/5] arm: kirkwood: Do not overwrite CONFIG_SYS_TCLK

2022-08-16 Thread Pali Rohár
On Tuesday 16 August 2022 20:17:08 Pali Rohár wrote: > Hello! > > On Tuesday 16 August 2022 11:37:48 Michael Walle wrote: > > Hi! > > > > > On Sunday 01 August 2021 20:07:16 Chris Packham wrote: > > > > On Sun, Aug 1, 2021 at 12:23 AM Pali Rohár wrote: > > > > > > > > > > Config option

Fix KWBOOT_MSG_RSP_TIMEO_AXP in kwboot for Armada XP

2022-08-16 Thread Pali Rohár
On Wednesday 01 June 2022 12:54:28 Pali Rohár wrote: > On Wednesday 01 June 2022 12:44:01 Stefan Roese wrote: > > Hi Pali, > > > > On 01.06.22 12:27, Pali Rohár wrote: > > > On Friday 06 May 2022 14:44:48 Pali Rohár wrote: > > > > On Friday 06 May 2022 14:35:55 Stefan Roese wrote: > > > > > While

Re: [PATCH 5/5] arm: kirkwood: Do not overwrite CONFIG_SYS_TCLK

2022-08-16 Thread Pali Rohár
Hello! On Tuesday 16 August 2022 11:37:48 Michael Walle wrote: > Hi! > > > On Sunday 01 August 2021 20:07:16 Chris Packham wrote: > > > On Sun, Aug 1, 2021 at 12:23 AM Pali Rohár wrote: > > > > > > > > Config option CONFIG_SYS_TCLK is set by kw88f6281.h and kw88f6192.h > > > > files > > > > to

Re: [PATCH] arm: ARMv4 assembly compatibility

2022-08-16 Thread Ralph Siemsen
On Tue, Aug 16, 2022 at 12:17 PM Andre Przywara wrote: > > So what is the story here? This commit seems to suggest U-Boot doesn't support > even ARMv5 without "T", has this changed? There are probably other code > places which would need adjustment to run on ARMv4? Note that gcc 6.0 and later

Re: [PATCH] arm: ARMv4 assembly compatibility

2022-08-16 Thread Andre Przywara
On Wed, 10 Aug 2022 12:04:46 +0300 Sergei Antonov wrote: Hi, > There is currently a problem that U-Boot can not work on ARMv4 > because assembly imlementations of memcpy() and some other functions > use "bx lr" instruction that is not available on ARMv4 ("mov pc, lr" > should be used instead).

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

2022-08-16 Thread Jorge Ramirez-Ortiz
Early instantiation of this I2C device would lock up when being probed. https://www.nxp.com/docs/en/errata/SE050_Erratasheet.pdf 3.2.2 In scenarios of detecting I2C ICs on the bus using an empty I2C frame containing only the address the SE050 will block the I2C bus. Tested on STM32MP1

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

2022-08-16 Thread Jorge Ramirez-Ortiz, Foundries
On 16/08/22, Oleksandr Suvorov wrote: > 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

Re: [PATCH v2 1/6] ARMv8/sec_firmware: Remove SEC_FIRMWARE_FIT_CNF_NAME

2022-08-16 Thread Sean Anderson
Hi Peng, On 8/16/22 4:22 AM, Peng Fan wrote: > Hi Sean, > > On 4/23/2022 1:38 AM, Sean Anderson wrote: >> The config to use for FIT images can be better specified by enabling >> CONFIG_MULTI_DTB_FIT and implementing board_fit_config_name_match. >> >> Signed-off-by: Sean Anderson >> --- > >

[RESEND PATCH v2 6/6] net: fm: Add support for FIT firmware

2022-08-16 Thread Sean Anderson
Fman microcode is executable code (AFAICT) loaded into a coprocessor. As such, if verified boot is enabled, it must be verified like other executable code. However, this is not currently done. This commit adds verified boot functionality by encapsulating the microcode in a FIT, which can then be

[RESEND PATCH v2 4/6] cmd: fpga: Convert to use fit_get_data_node

2022-08-16 Thread Sean Anderson
This converts the FIT loading process of the fpga command to use fit_get_data_node. Signed-off-by: Sean Anderson --- Changes in v2: - New cmd/fpga.c | 24 ++-- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/cmd/fpga.c b/cmd/fpga.c index

[RESEND PATCH v2 5/6] net: Convert fit verification to use fit_get_data_*

2022-08-16 Thread Sean Anderson
Several ethernet drivers load firmware from FIT images. Convert them to use the fit_get_data helpers. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/net/fsl-mc/mc.c| 30 +++--- drivers/net/pfe_eth/pfe_firmware.c | 40 +- 2

[RESEND PATCH v2 2/6] image: fit: Add some helpers for getting data

2022-08-16 Thread Sean Anderson
Several different firmware users have repetitive code to extract the firmware data from a FIT. Add some helper functions to reduce the amount of repetition. fit_conf_get_prop_node (eventually) calls fdt_check_node_offset_, so we can avoid an explicit if. In general, this version avoids printing on

[RESEND PATCH v2 3/6] ARMv8/sec_firmware: Convert to use fit_get_data_conf_prop

2022-08-16 Thread Sean Anderson
This reduces sec_firmware_get_data to a single call to fit_get_data_conf_prop. I think sec_firmware_check_copy_loadable could also be converted, but it does not map as straightforwardly, so I have left it for a future cleanup. Signed-off-by: Sean Anderson --- Changes in v2: - New

[RESEND PATCH v2 0/6] net: fm: Verify Fman microcode

2022-08-16 Thread Sean Anderson
Surprisingly, Fman microcode does not seem to be verified. This series aims to rectify this by introducing an optional FIT wrapper. This wrapper is made mandatory if FIT_SIGNATURE is enabled. NXP boards do not use this config, so the microcode will remain unverified for them. This is OK, since we

[RESEND PATCH v2 1/6] ARMv8/sec_firmware: Remove SEC_FIRMWARE_FIT_CNF_NAME

2022-08-16 Thread Sean Anderson
The config to use for FIT images can be better specified by enabling CONFIG_MULTI_DTB_FIT and implementing board_fit_config_name_match. Signed-off-by: Sean Anderson --- (no changes since v1) arch/arm/cpu/armv8/sec_firmware.c | 17 - 1 file changed, 4 insertions(+), 13

Re: [PATCH v4 6/9] sandbox: Add cyclic demo function

2022-08-16 Thread Stefan Roese
Hi Simon, On 16.08.22 13:48, Simon Glass wrote: Hi Stefan, On Tue, 16 Aug 2022 at 04:28, Stefan Roese wrote: This patch enables the cyclic infrastructure on sandbox and also adds one simple example/demo functions using this cyclic functionality. Signed-off-by: Stefan Roese --- v4: -

Re: [PATCH v3 1/3] Convert CONFIG_SYS_L2_PL310 to Kconfig

2022-08-16 Thread Philip Oberfichtner
Just for the record: I solved the problem using ./tools/moveconfig.py -i CONFIG_SYS_L2_PL310 Patch V4 coming soon. On Thu, 2022-08-11 at 12:17 +0200, Philip Oberfichtner wrote: > Hi, > > following the whole discussion I figured using 'select SYS_l2_PL310 > if > !SYS_L2CACHE_OFF' is the

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/tee/optee/Kconfig | 14 +

Re: [RFC PATCH v2 9/9] tools: spkgimage: add Renesas SPKG format

2022-08-16 Thread Ralph Siemsen
Hi Sean, I've implemented most of the suggestions. I will post an updated series, since it seems that sending v2 of just one patch has confused patchwork. However so as not to entirely remove confusion, the updated series will be v3, since I already used v2 for the one patch. :-P On Sat, Aug

Re: [BISECTED] BeagleBone Black doesn't boot after a58147c2dbbf

2022-08-16 Thread Matwey V. Kornilov
I cannot understand what is going on. As far as I understand, read consists of i2c write of address and subsequent i2c read of data. During the i2c write process, EEPROM handles ACK/NOACK and - since there is no error code - the EEPROM handles i2c write correctly. And then it looks like no EEPROM

Re: [PATCH v2 2/7] tpm: Correct the permissions command in TPMv1

2022-08-16 Thread Ilias Apalodimas
Hi Simon On Sat, 13 Aug 2022 at 22:56, Simon Glass wrote: > > The offset here is incorrect. Fix it. Since we got it wrong the first time, any chance you can give me a link to the spec describing these offsets (both for this and the subsequent patch) Thanks /Ilias > > Signed-off-by: Simon Glass

Re: [PATCH v2 7/7] tpm: Allow committing non-volatile data

2022-08-16 Thread Ilias Apalodimas
Hi Simon, On Sat, 13 Aug 2022 at 22:56, Simon Glass wrote: > > Add an option to tell the TPM to commit non-volatile data immediately it > is changed, rather than waiting until later. This is needed in some > situations, since if the device reboots it may not write the data. Similar to the

Re: [PATCH 0/3] Introduce new sign binman's option

2022-08-16 Thread Ivan Mikhaylov
On Sat, 2022-08-13 at 08:59 -0600, Simon Glass wrote: > Hi Ivan, > > On Mon, 21 Mar 2022 at 12:43, Ivan Mikhaylov > wrote: > > > > From: Ivan Mikhaylov > > > > This patch introduces prototype of new sign binman's option. > > Enhancing the sign procedure, as example: > > > > mkimage -G

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

2022-08-16 Thread Ilias Apalodimas
Hi Simon, I know little of this device and the whole patch seems fine apart from the definitions and declarations of the state functions. On Sat, 13 Aug 2022 at 22:56, Simon Glass wrote: > > > drivers/tpm/cr50_i2c.c | 117 + > include/tpm-v2.h |

Re: [PATCH v4 9/9] cyclic: Add a simple test

2022-08-16 Thread Stefan Roese
Hi Simon, On 16.08.22 13:48, Simon Glass wrote: On Tue, 16 Aug 2022 at 04:28, Stefan Roese wrote: Add a test for cyclic function registration and activation. Signed-off-by: Stefan Roese --- v4: - New patch test/common/Makefile | 1 + test/common/cyclic.c | 31

Re: [PATCH v4 03/13] binman: Disable compressed data header

2022-08-16 Thread Stefan Herbrechtsmeier
Hi Simon, Am 16.08.2022 um 13:48 schrieb Simon Glass: Hi Stefan, On Tue, 16 Aug 2022 at 02:42, Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier Disable the compressed data header of the utilities to compress and decompress data. The header is uncommon, not supported by U-Boot

Re: [PATCH v3 2/4] arm64: smccc: clear the Xn registers after SMC calls

2022-08-16 Thread Jens Wiklander
On Mon, Aug 1, 2022 at 7:21 PM Abdellatif El Khlifi wrote: > > set to zero the x0-x17 registers > > As per the SMCCC v1.2 spec, unused result and scratch registers can leak > information after an SMC call. We can mitigate against this risk by > returning zero in each register. > > Signed-off-by:

Re: [PATCH v4 13/13] binman: Support missing compression tools

2022-08-16 Thread Simon Glass
Hi Stefan, On Tue, 16 Aug 2022 at 02:42, Stefan Herbrechtsmeier wrote: > > From: Stefan Herbrechtsmeier > > Handle missing compression tools by returning empty data and marking the > entry as 'missing'. Great to see this. This is actually a bit more subtle, see below. > > Signed-off-by:

Re: [PATCH v4 11/13] binman: Add xz bintool

2022-08-16 Thread Simon Glass
On Tue, 16 Aug 2022 at 02:42, Stefan Herbrechtsmeier wrote: > > From: Stefan Herbrechtsmeier > > Add xz bintool to binman to support on-the-fly compression. > > Signed-off-by: Stefan Herbrechtsmeier > > --- > > (no changes since v3) > > Changes in v3: > - Rebase > > Changes in v2: > - Added > >

Re: [PATCH v4 12/13] binman: Add zstd bintool

2022-08-16 Thread Simon Glass
On Tue, 16 Aug 2022 at 02:42, Stefan Herbrechtsmeier wrote: > > From: Stefan Herbrechtsmeier > > Add zstd bintool to binman to support on-the-fly compression. > > Signed-off-by: Stefan Herbrechtsmeier > > --- > > (no changes since v3) > > Changes in v3: > - Rebase > > Changes in v2: > - Added >

Re: [PATCH v4 10/13] binman: Add lzop bintool

2022-08-16 Thread Simon Glass
On Tue, 16 Aug 2022 at 02:42, Stefan Herbrechtsmeier wrote: > > From: Stefan Herbrechtsmeier > > Add lzop bintool to binman to support on-the-fly compression. > > Signed-off-by: Stefan Herbrechtsmeier > > --- > > (no changes since v3) > > Changes in v3: > - Rebase > > Changes in v2: > - Added >

Re: [PATCH v4 09/13] binman: Add gzip bintool

2022-08-16 Thread Simon Glass
On Tue, 16 Aug 2022 at 02:42, Stefan Herbrechtsmeier wrote: > > From: Stefan Herbrechtsmeier > > Add gzip bintool to binman to support on-the-fly compression of Linux > kernel images and FPGA bitstreams. The SPL basic fitImage implementation > supports only gzip decompression. > > Signed-off-by:

Re: [PATCH v4 08/13] binman: Add bzip2 bintool

2022-08-16 Thread Simon Glass
On Tue, 16 Aug 2022 at 02:42, Stefan Herbrechtsmeier wrote: > > From: Stefan Herbrechtsmeier > > Add bzip2 bintool to binman to support on-the-fly compression. > > Signed-off-by: Stefan Herbrechtsmeier > > --- > > (no changes since v3) > > Changes in v3: > - Rebase > > Changes in v2: > - Added

Re: [PATCH v4 05/13] binman: Simplify comp_util class

2022-08-16 Thread Simon Glass
On Tue, 16 Aug 2022 at 02:42, Stefan Herbrechtsmeier wrote: > > From: Stefan Herbrechtsmeier > > Simplify the comp_util class by remove duplicate code as preparation for > additional compress algorithms. > > Signed-off-by: Stefan Herbrechtsmeier > > --- > > (no changes since v3) > > Changes in

Re: [PATCH v4 6/9] sandbox: Add cyclic demo function

2022-08-16 Thread Simon Glass
Hi Stefan, On Tue, 16 Aug 2022 at 04:28, Stefan Roese wrote: > > This patch enables the cyclic infrastructure on sandbox and also adds > one simple example/demo functions using this cyclic functionality. > > Signed-off-by: Stefan Roese > --- > v4: > - Rename cyclic_struct to cyclic_info > > v3:

Re: [PATCH v4 03/13] binman: Disable compressed data header

2022-08-16 Thread Simon Glass
Hi Stefan, On Tue, 16 Aug 2022 at 02:42, Stefan Herbrechtsmeier wrote: > > From: Stefan Herbrechtsmeier > > Disable the compressed data header of the utilities to compress and > decompress data. The header is uncommon, not supported by U-Boot and > incompatible with external compressed

Re: [PATCH v4 02/13] binman: Add length header attribute to dtb entry

2022-08-16 Thread Simon Glass
Hi Stefan, On Tue, 16 Aug 2022 at 02:42, Stefan Herbrechtsmeier wrote: > > From: Stefan Herbrechtsmeier > > Add an optional length header attribute to the device tree blob entry > class based on the compressed data header from the utilities to compress > and decompress data. > > If needed the

Re: [PATCH v4 9/9] cyclic: Add a simple test

2022-08-16 Thread Simon Glass
On Tue, 16 Aug 2022 at 04:28, Stefan Roese wrote: > > Add a test for cyclic function registration and activation. > > Signed-off-by: Stefan Roese > --- > v4: > - New patch > > test/common/Makefile | 1 + > test/common/cyclic.c | 31 +++ > test/test-main.c | 3

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

2022-08-16 Thread Jorge Ramirez-Ortiz
Early instantiation of this I2C device would lock up when being probed. https://www.nxp.com/docs/en/errata/SE050_Erratasheet.pdf 3.2.2 In scenarios of detecting I2C ICs on the bus using an empty I2C frame containing only the address the SE050 will block the I2C bus. Tested on STM32MP1

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

2022-08-16 Thread Jorge Ramirez-Ortiz
Early instantiation of this I2C device would lock up when being probed. Signed-off-by: Jorge Ramirez-Ortiz --- drivers/tee/optee/Kconfig | 14 + drivers/tee/optee/i2c.c | 44 +++ 2 files changed, 54 insertions(+), 4 deletions(-) diff --git

[PATCH v4 8/9] cyclic: Add documentation

2022-08-16 Thread Stefan Roese
Add documentation for the cyclic function infrastructure, including the cyclic command. Signed-off-by: Stefan Roese Reviewed-by: Simon Glass --- v4: - Minor spelling fix - Added Simon's RB tag v3: - New patch doc/develop/cyclic.rst | 50

[PATCH v4 3/9] cyclic: Integrate cyclic infrastructure into WATCHDOG_RESET

2022-08-16 Thread Stefan Roese
This patch integrates the main function responsible for calling all registered cyclic functions cyclic_run() into the common WATCHDOG_RESET macro. This guarantees that cyclic_run() is executed very often, which is necessary for the cyclic functions to get scheduled and executed at their configured

[PATCH v4 1/9] time: Import time_after64() and friends from Linux

2022-08-16 Thread Stefan Roese
When using us times it makes sense to use 64bit variables for storage. The currently implemented time_after() and friends functions only handle 32bit variables. This patch now includes the 64bit variants as well from Linux. This will be used by the upcoming generic cyclic function infrastructure.

[PATCH v4 0/9] Add support for cyclic function execution infrastruture

2022-08-16 Thread Stefan Roese
This patchset adds the basic infrastructure to periodically execute code, e.g. all 100ms. Examples for such functions might be LED blinking etc. The functions that are hooked into this cyclic list should be small timewise as otherwise the execution of the other code that relies on a high frequent

[PATCH v4 7/9] mips: octeon_nic23: Add PCIe FLR fixup via cyclic infrastructure

2022-08-16 Thread Stefan Roese
From: Aaron Williams This patch adds a fixup function related to a PCIe FLR (Function Level Reset) problem on the NIC23 PCIe board. This function is imported from the Marvell Octeon 2013 U-Boot version as a (nearly) verbatim copy. It uses the newly introduced cyclic infrastructure, so that this

[PATCH v4 9/9] cyclic: Add a simple test

2022-08-16 Thread Stefan Roese
Add a test for cyclic function registration and activation. Signed-off-by: Stefan Roese --- v4: - New patch test/common/Makefile | 1 + test/common/cyclic.c | 31 +++ test/test-main.c | 3 +++ 3 files changed, 35 insertions(+) create mode 100644

[PATCH v4 6/9] sandbox: Add cyclic demo function

2022-08-16 Thread Stefan Roese
This patch enables the cyclic infrastructure on sandbox and also adds one simple example/demo functions using this cyclic functionality. Signed-off-by: Stefan Roese --- v4: - Rename cyclic_struct to cyclic_info v3: - No change v2: - Extend CONFIG_CYCLIC_MAX_CPU_TIME_US to 1ms as running

[PATCH v4 5/9] cyclic: Add 'cyclic list' command

2022-08-16 Thread Stefan Roese
This patch adds the cyclic command, which currently only supports the 'list' subcommand, to list all currently registered cyclic functions. Here an example: => cyclic list function: cyclic_demo, cpu-time: 7010 us, frequency: 99.80 times/s function: cyclic_demo2, cpu-time: 1 us, frequency: 1.13

[PATCH v4 4/9] cyclic: Integrate cyclic functionality at bootup in board_r/f

2022-08-16 Thread Stefan Roese
This patch adds a call to cyclic_init() to board_f/r.c, enabling the common cyclic infrastructure. After this it's possible to add cyclic functions via cyclic_register(). Signed-off-by: Stefan Roese Reviewed-by: Simon Glass --- v4: - Added Simon's RB tag v3: - No change v2: - No change

[PATCH v4 2/9] cyclic: Add basic support for cyclic function execution infrastruture

2022-08-16 Thread Stefan Roese
Add the basic infrastructure to periodically execute code, e.g. all 100ms. Examples for such functions might be LED blinking etc. The functions that are hooked into this cyclic list should be small timewise as otherwise the execution of the other code that relies on a high frequent polling (e.g.

Re: [PATCH] arm: ARMv4 assembly compatibility

2022-08-16 Thread Sergei Antonov
On Wed, 10 Aug 2022 at 12:05, Sergei Antonov wrote: > > There is currently a problem that U-Boot can not work on ARMv4 > because assembly imlementations of memcpy() and some other functions > use "bx lr" instruction that is not available on ARMv4 ("mov pc, lr" > should be used instead). Hello!

Re: [PATCH v3 3/8] cyclic: Integrate cyclic infrastructure into WATCHDOG_RESET

2022-08-16 Thread Stefan Roese
Hi Simon, On 15.08.22 19:37, Simon Glass wrote: Hi Stefan, On Mon, 15 Aug 2022 at 10:16, Stefan Roese wrote: Hi Simon, On 05.08.22 18:48, Simon Glass wrote: Hi Stefan, On Fri, 5 Aug 2022 at 08:26, Stefan Roese wrote: This patch integrates the main function responsible for calling all

[PATCH] MAINTAINERS: Update email of Neil Armstrong

2022-08-16 Thread Neil Armstrong
From: Neil Armstrong My professional e-mail will change and the BayLibre one will bounce after mid-september of 2022. This updates the MAINTAINERS files and adds an entry in the .mailmap file. Signed-off-by: Neil Armstrong --- .mailmap| 1 + MAINTAINERS

Re: [PATCH 5/5] arm: kirkwood: Do not overwrite CONFIG_SYS_TCLK

2022-08-16 Thread Michael Walle
Hi! > On Sunday 01 August 2021 20:07:16 Chris Packham wrote: > > On Sun, Aug 1, 2021 at 12:23 AM Pali Rohár wrote: > > > > > > Config option CONFIG_SYS_TCLK is set by kw88f6281.h and kw88f6192.h files > > > to correct SOC/platform value. So do not overwrite it in board config > > > include

Re: [PATCH] dt-bindings: nvmem: u-boot,env: add basic NVMEM cells

2022-08-16 Thread Rafał Miłecki
On 3.07.2022 10:48, Rafał Miłecki wrote: U-Boot doesn't have cells at hardcoded addresses. They are stored in internal format. It's still important to define relevant cells in DT so NVMEM consumers can reference them. Update binding to allow including basic cells as NVMEM device subnodes.

[PATCH v4 13/13] binman: Support missing compression tools

2022-08-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Handle missing compression tools by returning empty data and marking the entry as 'missing'. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v4: - Add missing 236_compress_dtb_missing_bintool.dts file Changes in v3: - Added tools/binman/entry.py

[PATCH v4 12/13] binman: Add zstd bintool

2022-08-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add zstd bintool to binman to support on-the-fly compression. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v3) Changes in v3: - Rebase Changes in v2: - Added tools/binman/btool/zstd.py | 30 ++

[PATCH v4 11/13] binman: Add xz bintool

2022-08-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add xz bintool to binman to support on-the-fly compression. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v3) Changes in v3: - Rebase Changes in v2: - Added tools/binman/btool/xz.py | 31 +++

[PATCH v4 10/13] binman: Add lzop bintool

2022-08-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add lzop bintool to binman to support on-the-fly compression. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v3) Changes in v3: - Rebase Changes in v2: - Added tools/binman/btool/lzop.py | 30 ++

[PATCH v4 09/13] binman: Add gzip bintool

2022-08-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add gzip bintool to binman to support on-the-fly compression of Linux kernel images and FPGA bitstreams. The SPL basic fitImage implementation supports only gzip decompression. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v3) Changes in v3: -

[PATCH v4 08/13] binman: Add bzip2 bintool

2022-08-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add bzip2 bintool to binman to support on-the-fly compression. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v3) Changes in v3: - Rebase Changes in v2: - Added tools/binman/btool/bzip2.py | 30 ++

[PATCH v4 06/13] binman: Add compression tests

2022-08-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add common test functions to test all supported compressions. Signed-off-by: Stefan Herbrechtsmeier Reviewed-by: Simon Glass --- Instead of the for loop it is possible to use Parameterized [1] testing. [1] https://github.com/wolever/parameterized (no changes

[PATCH v4 07/13] binman: Add BintoolPacker class to bintool

2022-08-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add a bintools base class for packers which compression / decompression entry contents. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v3) Changes in v3: - Document class properties Changes in v2: - Added tools/binman/bintool.py | 107

[PATCH v4 04/13] binman: Remove obsolete compressed data header handling

2022-08-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Remove the obsolete compressed data header handling from the utilities to compress and decompress data. The header is uncommon, not supported by U-Boot and incompatible with external compressed artifacts. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since

[PATCH v4 05/13] binman: Simplify comp_util class

2022-08-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Simplify the comp_util class by remove duplicate code as preparation for additional compress algorithms. Signed-off-by: Stefan Herbrechtsmeier --- (no changes since v3) Changes in v3: - Rename COMPRESSIONS to ALGORITHMS - Rework existing comments - Add

[PATCH v4 03/13] binman: Disable compressed data header

2022-08-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Disable the compressed data header of the utilities to compress and decompress data. The header is uncommon, not supported by U-Boot and incompatible with external compressed artifacts. The header was introduced as part of commit eb0f4a4cb402 ("binman: Support

[PATCH v4 02/13] binman: Add length header attribute to dtb entry

2022-08-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add an optional length header attribute to the device tree blob entry class based on the compressed data header from the utilities to compress and decompress data. If needed the header could be enabled with the following attribute beside the compress attribute:

[PATCH v4 01/13] binman: Skip elf tests if python elftools is not available

2022-08-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Skip tests which requires python elftools if the tool is not available. Signed-off-by: Stefan Herbrechtsmeier Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - Added tools/binman/elf_test.py | 14 ++ tools/binman/ftest.py| 18

Re: [PATCH v3 6/8] sandbox: Add cyclic demo function

2022-08-16 Thread Stefan Roese
Hi Simon, On 05.08.22 18:48, Simon Glass wrote: Hi Stefan, On Fri, 5 Aug 2022 at 08:26, Stefan Roese wrote: This patch enables the cyclic infrastructure on sandbox and also adds one simple example/demo functions using this cyclic functionality. Signed-off-by: Stefan Roese --- v3: - No

Re: [PATCH] mtd: rawnand: fsl_elbc: Remove NAND_NO_SUBPAGE_WRITE flag

2022-08-16 Thread Michael Nazzareno Trimarchi
Hi Il lun 15 ago 2022, 23:55 Pali Rohár ha scritto: > On Monday 15 August 2022 23:49:17 Michael Nazzareno Trimarchi wrote: > > Hi > > > > Il lun 15 ago 2022, 10:01 Pali Rohár ha scritto: > > > > > Subpage write support for freescale eLBC NAND controller driver is > > > implemented in U-Boot

Re: [PATCH v2 1/6] ARMv8/sec_firmware: Remove SEC_FIRMWARE_FIT_CNF_NAME

2022-08-16 Thread Peng Fan
Hi Sean, On 4/23/2022 1:38 AM, Sean Anderson wrote: The config to use for FIT images can be better specified by enabling CONFIG_MULTI_DTB_FIT and implementing board_fit_config_name_match. Signed-off-by: Sean Anderson --- This patchset not able to apply, could you please repost? Thanks,

Re: [PATCH 00/13] USB support for QCS404 SoC

2022-08-16 Thread Sumit Garg
Hi, On Thu, 4 Aug 2022 at 19:57, Sumit Garg wrote: > > This series add support for USB on QCS404 SoC. USB support have > dependencies on PHY, reset and PMIC GPIO drivers, so corresponding > support has been added. There are also some renaming/reorganising > patches (#1, #3 and #9) which tries to

Re: [PATCH v2 0/2] Initial step for Linux DT sync on Qcom SoCs

2022-08-16 Thread Sumit Garg
Hi Tom, On Thu, 4 Aug 2022 at 20:09, Sumit Garg wrote: > > Hi, > > On Wed, 27 Jul 2022 at 13:52, Sumit Garg wrote: > > > > This is an initial step towards achieving complete Linux DT sync on Qcom > > SoCs/boards. It syncs up DT compatibles for pinctrl and GPIO drivers. > > > > Changes in v2: >

[PATCH v3 12/13] binman: Add zstd bintool

2022-08-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add zstd bintool to binman to support on-the-fly compression. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v3: - Rebase Changes in v2: - Added tools/binman/btool/zstd.py | 30 ++ tools/binman/comp_util.py | 4 +++-

[PATCH v3 10/13] binman: Add lzop bintool

2022-08-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add lzop bintool to binman to support on-the-fly compression. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v3: - Rebase Changes in v2: - Added tools/binman/btool/lzop.py | 30 ++ tools/binman/comp_util.py | 6 -- 2

[PATCH v3 13/13] binman: Support missing compression tools

2022-08-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Handle missing compression tools by returning empty data and marking the entry as 'missing'. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v3: - Added tools/binman/entry.py | 4 tools/binman/ftest.py | 8 2 files changed, 12 insertions(+)

[PATCH v3 11/13] binman: Add xz bintool

2022-08-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add xz bintool to binman to support on-the-fly compression. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v3: - Rebase Changes in v2: - Added tools/binman/btool/xz.py | 31 +++ tools/binman/comp_util.py | 4 +++- 2 files

[PATCH v3 08/13] binman: Add bzip2 bintool

2022-08-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add bzip2 bintool to binman to support on-the-fly compression. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v3: - Rebase Changes in v2: - Added tools/binman/btool/bzip2.py | 30 ++ tools/binman/comp_util.py | 4 +++- 2

[PATCH v3 09/13] binman: Add gzip bintool

2022-08-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add gzip bintool to binman to support on-the-fly compression of Linux kernel images and FPGA bitstreams. The SPL basic fitImage implementation supports only gzip decompression. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v3: - Rebase Changes in v2: -

  1   2   >