[PATCH] efi_loader: Fix buffer underflow If the array index 'i' < 128, the 'codepage' array is accessed using [-128...-1] in efi_unicode_collation.c:262. This can lead to a buffer overflow. Negative i

2022-11-21 Thread Mikhail Ilin
Fixes: 0bc4b0da7b59 ("efi_loader: EFI_UNICODE_COLLATION_PROTOCOL") Signed-off-by: Mikhail Ilin --- lib/efi_loader/efi_unicode_collation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_unicode_collation.c b/lib/efi_loader/efi_unicode_collation.c index

Re: [PATCH] Subject: [patch]SPI: GD SPI: Add Gigadevice SPI NOR part numbers

2022-11-21 Thread Michal Simek
Hi, On 11/21/22 23:11, Vlim wrote: Hi, Michal, Regarding the following item,   drivers/mtd/spi/spi-nor-ids.c | 137 +++---    3 files changed, 94 insertions(+), 45 deletions(-) diff --git a/configs/xilinx_zynqmp_mini_qspi_defconfig

RE: [PATCH] mtd: spi-nor-core: Invert logic to reflect sst26 flash unlocked

2022-11-21 Thread Soma, Ashok Reddy
Hi Jan, > -Original Message- > From: Jan Kiszka > Sent: Tuesday, November 22, 2022 12:05 PM > To: Soma, Ashok Reddy ; u- > b...@lists.denx.de > Cc: ja...@amarulasolutions.com; vigne...@ti.com; Simek, Michal > ; g...@xilinx.com; git (AMD-Xilinx) > ; Algapally, Santosh Sagar > > Subject:

Re: [PATCH] mtd: spi-nor-core: Invert logic to reflect sst26 flash unlocked

2022-11-21 Thread Jan Kiszka
On 22.11.22 06:18, Ashok Reddy Soma wrote: > From: Algapally Santosh Sagar > > flash_is_locked is changed to flash_is_unlocked with commit 513c6071ce73 > ("mtd: spi: Convert is_locked callback to is_unlocked"). sst26_is_locked() > is also changed to sst26_is_unlocked() but the logic remained

Re: [PATCH] mtd: spi-nor-core: Invert logic to reflect sst26 flash unlocked

2022-11-21 Thread Dhruva Gole
These changes make sense to me, On 22/11/22 10:48, Ashok Reddy Soma wrote: From: Algapally Santosh Sagar flash_is_locked is changed to flash_is_unlocked with commit 513c6071ce73 ("mtd: spi: Convert is_locked callback to is_unlocked"). sst26_is_locked() is also changed to sst26_is_unlocked()

[PATCH] mtd: spi-nor-core: Invert logic to reflect sst26 flash unlocked

2022-11-21 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar flash_is_locked is changed to flash_is_unlocked with commit 513c6071ce73 ("mtd: spi: Convert is_locked callback to is_unlocked"). sst26_is_locked() is also changed to sst26_is_unlocked() but the logic remained same. Invert the logic for the flash lock/unlock to work

Re: [PATCH] SPI: GD SPI, enable GIGADEVICE in the config file

2022-11-21 Thread Dhruva Gole
Hi Victor, One small suggestion, kindly follow the linux kernel guidelines on sending emails, > It’s also strongly recommended that you use plain text in your email body, for patches and other emails alike. https://useplaintext.email may be useful for information on how to configure your

Re: [PATCH 05/12] clk: clk-k3: Add support for J784S4 SoC

2022-11-21 Thread Sean Anderson
On 11/19/22 13:59, Hari Nagalla wrote: Add support for J784S4 SoC. Signed-off-by: Hari Nagalla Signed-off-by: Apurva Nandan --- drivers/clk/ti/clk-k3.c | 6 ++ include/k3-clk.h| 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/clk/ti/clk-k3.c

[PATCH] arm: socfpga: n5x: Remove invalid configuration for N5X

2022-11-21 Thread Jit Loon Lim
From: Tien Fong Chee These configurations no longer valid for N5X, remove them. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/Kconfig | 1 - arch/arm/mach-socfpga/Makefile | 11 +++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git

[PATCH] ddr: altera: n5x: Enhance driver to support LPDDR4

2022-11-21 Thread Jit Loon Lim
From: Tien Fong Chee Enhance driver to common DDR driver for supporting both DDR4 and LPDDR4. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- arch/arm/dts/socfpga_n5x_socdk-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git

[PATCH] ddr: altera: n5x: Remove all codes used for emulation

2022-11-21 Thread Jit Loon Lim
From: Tien Fong Chee Remove all DDR4 codes used for emulation in preparation to run on n5x device. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- drivers/ddr/altera/sdram_n5x.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/ddr/altera/sdram_n5x.c

[PATCH] ddr: altera: n5x: Restructure DDR driver in preparation to support LPDDR4

2022-11-21 Thread Jit Loon Lim
From: Tien Fong Chee Restructure DDR driver so that driver has the ability to recognize the DDR type by populating DDR handoff from bitstream. This is also in preparation to improve driver for supporting additional LPDDR4. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim ---

Re: [PATCH] SPI: GD SPI: added Gigadevice part #s in the ids.c file

2022-11-21 Thread Fabio Estevam
On Mon, Nov 21, 2022 at 9:04 PM Victor Lim wrote: > > Updated the ids.c file with Gigadevice SPI NOR part #s. What exactly was updated? Please describe it here. > Signed-Off-by: Victor Lim > --- > drivers/mtd/spi/spi-nor-ids.c | 137 +++--- > 1 file changed, 92

Re: [PATCH 37/38] post: Migrate to Kconfig

2022-11-21 Thread Simon Glass
Hi Tom, On Mon, 21 Nov 2022 at 15:57, Tom Rini wrote: > > On Mon, Nov 21, 2022 at 03:51:10PM -0700, Simon Glass wrote: > > On Sat, 19 Nov 2022 at 16:53, Tom Rini wrote: > > > > > > We move the existing CONFIG_POST_* functionality over to CFG_POST and > > > then introduce CONFIG_POST to Kconfig.

[PATCH] SPI: GD SPI: added Gigadevice part #s in the ids.c file

2022-11-21 Thread Victor Lim
Updated the ids.c file with Gigadevice SPI NOR part #s. Signed-Off-by: Victor Lim --- drivers/mtd/spi/spi-nor-ids.c | 137 +++--- 1 file changed, 92 insertions(+), 45 deletions(-) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index

Re: [PATCH] Subject: [patch]SPI: GD SPI: Add Gigadevice SPI NOR part numbers

2022-11-21 Thread Vlim
Hi, Michal, Regarding the following item, > drivers/mtd/spi/spi-nor-ids.c | 137 +++--- > 3 files changed, 94 insertions(+), 45 deletions(-) > > diff --git a/configs/xilinx_zynqmp_mini_qspi_defconfig > b/configs/xilinx_zynqmp_mini_qspi_defconfig > index

Re: [PATCH] SPI: GD SPI, enable GIGADEVICE in the config file

2022-11-21 Thread Vlim
Hi, Michal, With this patch, I have only changed the defconfig files. Please see if this is ok. Regards, Victor From: Victor Lim Sent: Monday, November 21, 2022 13:58 To: u-boot@lists.denx.de ; michal.si...@xilinx.com ; vikhyat.go...@amd.com ;

[PATCH] SPI: GD SPI, enable GIGADEVICE in the config file

2022-11-21 Thread Victor Lim
Added GIGADEVICE=y in the defconfig files Signed-off-by: Victor Lim --- configs/xilinx_zynqmp_mini_qspi_defconfig | 1 + configs/zynq_cse_qspi_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/xilinx_zynqmp_mini_qspi_defconfig

Re: [PATCH 37/38] post: Migrate to Kconfig

2022-11-21 Thread Tom Rini
On Mon, Nov 21, 2022 at 03:51:10PM -0700, Simon Glass wrote: > On Sat, 19 Nov 2022 at 16:53, Tom Rini wrote: > > > > We move the existing CONFIG_POST_* functionality over to CFG_POST and > > then introduce CONFIG_POST to Kconfig. > > > > Signed-off-by: Tom Rini > > --- > >

Re: [000/241] Finish migration to Kconfig or CFG namespace

2022-11-21 Thread Tom Rini
On Mon, Nov 21, 2022 at 03:51:06PM -0700, Simon Glass wrote: > Hi Tom, > > On Sun, 20 Nov 2022 at 06:34, Tom Rini wrote: > > > > Hey all, > > > > The intention of this series isn't to apply it just yet. This was a very > > quick scripted migration and so there's cases where we do more than one >

Re: [PATCH 36/38] sandbox: Rework how SDL is enabled / disabled

2022-11-21 Thread Simon Glass
On Sat, 19 Nov 2022 at 16:46, Tom Rini wrote: > > Given that we can use Kconfig logic directly to see if we have a program > available on the host or not, change from passing NO_SDL to instead > controlling CONFIG_SANDBOX_SDL in Kconfig directly. Introduce > CONFIG_HOST_HAS_SDL as the way to test

Re: [PATCH 16/38] sandbox: Move CONFIG_IO_TRACE to Kconfig

2022-11-21 Thread Simon Glass
On Sat, 19 Nov 2022 at 16:45, Tom Rini wrote: > > This is only used on sandbox, so select it there. > > Cc: Simon Glass > Signed-off-by: Tom Rini > --- > arch/Kconfig | 1 + > common/Kconfig| 3 +++ > include/configs/sandbox.h | 2 -- > 3 files changed, 4

Re: [PATCH] CI: Make more use of git safe.directory

2022-11-21 Thread Simon Glass
On Mon, 21 Nov 2022 at 10:52, Tom Rini wrote: > > We have a number of jobs that will have git complain about needing to > set safe.directory and this being untrue as a fatal error, but then > complete. Set this flag correctly now as it should be used, and may > prevent a future failure. > >

Re: [PATCH 35/38] scripts/config_whitelist.txt: Remove more referenced symbols

2022-11-21 Thread Simon Glass
On Sat, 19 Nov 2022 at 16:52, Tom Rini wrote: > > Perform some deeper investigation on the remaining symbols listed in > this file and remove more. > > Signed-off-by: Tom Rini > --- > include/configs/P1010RDB.h | 2 -- > scripts/config_whitelist.txt | 22 -- > 2 files

Re: [PATCH 37/38] post: Migrate to Kconfig

2022-11-21 Thread Simon Glass
On Sat, 19 Nov 2022 at 16:53, Tom Rini wrote: > > We move the existing CONFIG_POST_* functionality over to CFG_POST and > then introduce CONFIG_POST to Kconfig. > > Signed-off-by: Tom Rini > --- > arch/powerpc/cpu/mpc85xx/cpu.c| 2 +- > configs/P2041RDB_NAND_defconfig

Re: [PATCH 19/38] arm: samsung: Move CONFIG_MISC_COMMON to Kconfig

2022-11-21 Thread Simon Glass
On Sat, 19 Nov 2022 at 16:49, Tom Rini wrote: > > This option controls using board/samsung/common/misc.c, so add a Kconfig > file there as well and select it from the boards which use this > functionality. > > Signed-off-by: Tom Rini > --- > arch/arm/Kconfig| 1 + >

Re: [PATCH 01/38] power: pmic: Guard non-DM_PMIC drivers with a check for POWER_LEGACY

2022-11-21 Thread Simon Glass
On Sat, 19 Nov 2022 at 16:45, Tom Rini wrote: > > As we have more legacy PMIC drivers to move to Kconfig, guard them all > with POWER_LEGACY or SPL_POWER_LEGACY. Do the same kind of check for > building the drivers too. This also means that we need to resort the > list slightly in the Makefile. >

Re: [000/241] Finish migration to Kconfig or CFG namespace

2022-11-21 Thread Simon Glass
Hi Tom, On Sun, 20 Nov 2022 at 06:34, Tom Rini wrote: > > Hey all, > > The intention of this series isn't to apply it just yet. This was a very > quick scripted migration and so there's cases where we do more than one > symbol, or we can see there's define but unused symbols. But it also > shows

Fwd: New Defects reported by Coverity Scan for Das U-Boot

2022-11-21 Thread Tom Rini
Here's the latest report -- Forwarded message - From: Date: Mon, Nov 21, 2022 at 12:44 PM Subject: New Defects reported by Coverity Scan for Das U-Boot To: Hi, Please find the latest report on new defect(s) introduced to Das U-Boot found with Coverity Scan. 2 new defect(s)

Re: [PATCH v2] board_f: Add support for CONFIG_OF_BOARD_FIXUP for XIP images

2022-11-21 Thread Marek Behún
On Mon, 21 Nov 2022 12:45:32 -0500 Tom Rini wrote: > On Mon, Nov 21, 2022 at 06:42:01PM +0100, Pali Roh_r wrote: > > + Tom > > > > On Wednesday 02 November 2022 00:23:03 Pali Roh_r wrote: > > > On Monday 10 October 2022 17:48:58 Simon Glass wrote: > > > > Hi, > > > > > > > > On Sun, 28 Aug

Re: Broken commit de47ff536363289f92f85ed1e4901724d238432d

2022-11-21 Thread Pali Rohár
On Wednesday 02 November 2022 00:14:21 Pali Rohár wrote: > On Monday 10 October 2022 14:20:20 Marek Behún wrote: > > On Sun, 9 Oct 2022 12:32:02 -0400 > > Tom Rini wrote: > > > > > On Sun, Oct 09, 2022 at 03:10:45PM +0200, Pali Rohár wrote: > > > > On Sunday 09 October 2022 08:45:03 Tom Rini

[PATCH] CI: Make more use of git safe.directory

2022-11-21 Thread Tom Rini
We have a number of jobs that will have git complain about needing to set safe.directory and this being untrue as a fatal error, but then complete. Set this flag correctly now as it should be used, and may prevent a future failure. Signed-off-by: Tom Rini --- .azure-pipelines.yml | 2 ++

Re: [PATCH v2] board_f: Add support for CONFIG_OF_BOARD_FIXUP for XIP images

2022-11-21 Thread Tom Rini
On Mon, Nov 21, 2022 at 06:42:01PM +0100, Pali Rohár wrote: > + Tom > > On Wednesday 02 November 2022 00:23:03 Pali Rohár wrote: > > On Monday 10 October 2022 17:48:58 Simon Glass wrote: > > > Hi, > > > > > > On Sun, 28 Aug 2022 at 09:19, Marek Behún wrote: > > > > > > > > From: Pali Rohár > >

Re: [PATCH v2] board_f: Add support for CONFIG_OF_BOARD_FIXUP for XIP images

2022-11-21 Thread Pali Rohár
+ Tom On Wednesday 02 November 2022 00:23:03 Pali Rohár wrote: > On Monday 10 October 2022 17:48:58 Simon Glass wrote: > > Hi, > > > > On Sun, 28 Aug 2022 at 09:19, Marek Behún wrote: > > > > > > From: Pali Rohár > > > > > > When U-Boot is running from flash memory (execute in place) then > >

Re: [PATCH] powerpc: dts: keymile: Deduplicate binman code

2022-11-21 Thread Pali Rohár
+ Tom On Tuesday 01 November 2022 23:57:08 Pali Rohár wrote: > PING? > > On Sunday 09 October 2022 14:28:19 Pali Rohár wrote: > > PING? > > > > On Wednesday 03 August 2022 13:20:49 Pali Rohár wrote: > > > kmcent2-u-boot.dtsi file contains copy of powerpc u-boot.dtsi binman file. > > > So remove

Re: [PATCH] gpio: renesas: Simplify .request/.rfree callbacks

2022-11-21 Thread Pali Rohár
+ Tom On Wednesday 02 November 2022 09:58:10 Stefan Roese wrote: > Hi Pali, > > added Marek to Cc > > On 01.11.22 23:57, Pali Rohár wrote: > > On Sunday 09 October 2022 14:34:55 Pali Rohár wrote: > > > On Friday 02 September 2022 21:56:07 Pali Rohár wrote: > > > > On Wednesday 03 August 2022

Re: [PATCH] ubifs: Allow to silence debug dumps

2022-11-21 Thread Pali Rohár
+ Tom On Tuesday 01 November 2022 23:26:37 Pali Rohár wrote: > PING again > > On Sunday 09 October 2022 13:30:26 Pali Rohár wrote: > > PING again after more than one month. > > > > On Thursday 25 August 2022 15:53:32 Pali Rohár wrote: > > > PING? Who can review and take this patch? It is needed

Re: [PATCH] cmd: ubifs: Do not show usage when command fails

2022-11-21 Thread Pali Rohár
+ Tom On Tuesday 01 November 2022 23:20:15 Pali Rohár wrote: > ping? > > On Sunday 09 October 2022 13:18:47 Pali Rohár wrote: > > PING? > > > > On Sunday 07 August 2022 21:58:56 Pali Rohár wrote: > > > Return value -1 cause U-Boot to print usage message. Return value > > > 1 (CMD_RET_FAILURE)

[ANN] U-Boot v2023.01-rc2 released

2022-11-21 Thread Tom Rini
Hey all, Getting back on schedule, here's -rc2. We're getting well in to the stabilization period now, but there's still some things I would like to see come in including a net PR. In terms of a changelog, git log --merges v2023.01-rc1..v2023.01-rc2 contains what I've pulled but as always,

Re: [PATCH] Revert "imx: imx8: apalis: switch to binman"

2022-11-21 Thread Tom Rini
On Tue, Nov 15, 2022 at 11:49:40AM +0100, Stefano Babic wrote: > This reverts commit b8072ae848b73e89a73ba5b535324e4dc2793f37. > > Signed-off-by: Stefano Babic > Reported-by: Marcel Ziswiler > Acked-by: Marcel Ziswiler I saw you had mentioned putting this in to the -imx tree, but given that

Re: [PATCH 3/3] Nokia RX-51: Do not overwrite standard $loadaddr variable

2022-11-21 Thread Tom Rini
On Sun, Nov 20, 2022 at 05:56:28PM +0100, Pali Rohár wrote: > Instead of overwriting $loadaddr variable, use custom temporary > $fileloadaddr variable. So scripts can access default/original address > stored in $loadaddr at build time. > > Signed-off-by: Pali Rohár Applied to u-boot/master,

Re: [PATCH 2/3] Nokia RX-51: Document debugging options and compile command

2022-11-21 Thread Tom Rini
On Sun, Nov 20, 2022 at 05:56:27PM +0100, Pali Rohár wrote: > Add example command how to compile U-Boot and add new documentation section > describing how to enable early debug UART and verbose log output for N900. > > Signed-off-by: Pali Rohár Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 1/3] arm32: Fix relocation of env_addr if POSITION_INDEPENDENT=y

2022-11-21 Thread Tom Rini
On Sun, Nov 20, 2022 at 05:56:26PM +0100, Pali Rohár wrote: > Apply commit 534f0fbd6520 ("arm64: Fix relocation of env_addr if > POSITION_INDEPENDENT=y") also for 32-bit ARM. > > This change fixes crashing of U-Boot on ARMv7 (Omap3 / Cortex-A8) Nokia N900 > phone (real HW). Note that qemu

Re: [PATCH] usb: gadget: dfu: Fix the unchecked length field

2022-11-21 Thread Tom Rini
On Thu, Nov 03, 2022 at 09:37:48AM +0530, Venkatesh Yadav Abbarapu wrote: > DFU implementation does not bound the length field in USB > DFU download setup packets, and it does not verify that > the transfer direction. Fixing the length and transfer > direction. > > CVE-2022-2347 > >

Re: [PATCH] Revert "cli_readline: Only insert printable chars"

2022-11-21 Thread Tom Rini
On Wed, Nov 02, 2022 at 12:40:46AM +0100, Pali Rohár wrote: > This reverts commit d2e64d29c44dee6d455f7705dd1cf1af8674ad9a. > > This commit broke support for pound sign (£) and euro sign (€) keys on > Nokia N900 keypad. > > Signed-off-by: Pali Rohár > Reviewed-by: Simon Glass Applied to

Re: [PATCH] spl: Fix SPL_ATF and SPL_OPENSBI dependencies

2022-11-21 Thread Tom Rini
On Sun, Oct 30, 2022 at 11:26:19PM -0500, Samuel Holland wrote: > The code for these two options depends on having the FIT loadables > recorded in the FDT. Thus, these options require the full version of > the SPL_LOAD_FIT code. > > Signed-off-by: Samuel Holland Applied to u-boot/master,

Re: [PATCH v2] configs: mediatek: enable boot via extlinux

2022-11-21 Thread Tom Rini
On Fri, Oct 28, 2022 at 10:28:27AM +0200, Julien STEPHAN wrote: > From: Alexandre Mergnat > > Enable FAT and SYSBOOT to use extlinux boot script > > Signed-off-by: Jerome Brunet > Signed-off-by: Alexandre Mergnat > Signed-off-by: Julien STEPHAN Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 1/2] Fix usage of CONFIG_PREBOOT

2022-11-21 Thread Tom Rini
On Sun, Jul 10, 2022 at 01:42:55PM +0200, Pali Rohár wrote: > Due to usage of PREBOOT in Kconfig, macro CONFIG_PREBOOT is always defined > when CONFIG_USE_PREBOOT is enabled. In case CONFIG_PREBOOT is not > explicitly enabled it is set to empty C string and therefore > '#ifdef CONFIG_PREBOOT'

Re: [PATCH v1 0/3] Implement Tegra Timer with dependencies

2022-11-21 Thread Svyatoslav Ryhel
пн, 21 лист. 2022 р. о 18:49 Peter Robinson пише: > > On Mon, Nov 21, 2022 at 4:29 PM Svyatoslav Ryhel wrote: > > > > This is re-send of v1 patches. Almost a month passed, I got no > > review and timer implementation deadline is approaching. > > > > - rework clock_osc_freq detection as it is

Re: [PATCH v1 0/3] Implement Tegra Timer with dependencies

2022-11-21 Thread Peter Robinson
On Mon, Nov 21, 2022 at 4:29 PM Svyatoslav Ryhel wrote: > > This is re-send of v1 patches. Almost a month passed, I got no > review and timer implementation deadline is approaching. > > - rework clock_osc_freq detection as it is needed for timer > - implement timer for ARMv7 Tegra devices > - set

Re: [PATCH] cli_hush: fix 'exit' cmd that was not exiting scripts

2022-11-21 Thread Hector Palacios
On 11/21/22 09:55, Hector Palacios wrote: Hi Marek, On 11/19/22 15:12, Marek Vasut wrote: On 11/18/22 12:19, Hector Palacios wrote: Commit 8c4e3b79bd0bb76eea16869e9666e19047c0d005 supposedly passed one-level up the argument passed to 'exit' but it also broke 'exit' purpose of stopping a

[PATCH v2 3/3] ARM: tegra: include timer as default option

2022-11-21 Thread Svyatoslav Ryhel
Enable TIMER as default option for add Tegra devices and enable TEGRA_TIMER for TEGRA_ARMV7_COMMON. Additionally enable SPL_TIMER if build as SPL part and drop deprecated configs from common header. Signed-off-by: Svyatoslav Ryhel --- arch/arm/Kconfig | 1 +

[PATCH v2 2/3] drivers: timer: add timer driver for ARMv7 based Tegra devices

2022-11-21 Thread Svyatoslav Ryhel
Add timer support for T20/T30/T114 and T124 based devices. Driver is based on DM, has device tree support and can be used on SPL and early boot stage. Tested-by: Andreas Westman Dorcsak # ASUS TF600T T30 Tested-by: Jonas Schwöbel # Surface RT T30 Tested-by: Robert Eckelmann # ASUS TF101 T20

[PATCH v2 1/3] ARM: tegra: remap clock_osc_freq for all Tegra family

2022-11-21 Thread Svyatoslav Ryhel
Enum clock_osc_freq was designed to use only with T20. This patch remaps it to use additional frequencies, added in T30+ SoC while maintaining backwards compatibility with T20. Tested-by: Andreas Westman Dorcsak # ASUS TF600T T30 Tested-by: Jonas Schwöbel # Surface RT T30 Tested-by: Robert

[PATCH v1 0/3] Implement Tegra Timer with dependencies

2022-11-21 Thread Svyatoslav Ryhel
This is re-send of v1 patches. Almost a month passed, I got no review and timer implementation deadline is approaching. - rework clock_osc_freq detection as it is needed for timer - implement timer for ARMv7 Tegra devices - set timer to be selected automatically Svyatoslav Ryhel (3): ARM:

Re: [PATCH 09/12] board: ti: j784s4: Add board support for J784S4 SoC

2022-11-21 Thread Tom Rini
On Sat, Nov 19, 2022 at 12:59:30PM -0600, Hari Nagalla wrote: > Add board support for J784S4 SoC. > > Signed-off-by: Hari Nagalla Patches 9, 11 and 12 should be folded together as it's all adding the board itself. [snip] > diff --git a/board/ti/j784s4/evm.c b/board/ti/j784s4/evm.c > new file

Re: [PATCH 03/12] arm: K3: Add basic support for J784S4 SoC definition

2022-11-21 Thread Tom Rini
On Sat, Nov 19, 2022 at 12:59:24PM -0600, Hari Nagalla wrote: > Add basic support for J784S4 SoC definition > > Signed-off-by: Hari Nagalla > Signed-off-by: Apurva Nandan > Signed-off-by: Bryan Bratloff > Signed-off-by: Nishant Menon [snip] > diff --git a/include/configs/j784s4_evm.h

[PATCH 2/2] include: configs: soc64: Update source command format

2022-11-21 Thread Jit Loon Lim
From: Yau Wai Gan HSD #1509829545-2: U-boot script is in FIT image, this requires to update the source command to supply the FIT subimage name. Signed-off-by: Yau Wai Gan Signed-off-by: Jit Loon Lim --- include/configs/socfpga_soc64_common.h | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 1/2] arm: dts: soc64: Add U-boot script in FIT Image

2022-11-21 Thread Jit Loon Lim
From: Yau Wai Gan HSD #1509829545-1: Build u-boot script in FIT image format to align with binman usage. Signed-off-by: Yau Wai Gan Signed-off-by: Jit Loon Lim --- arch/arm/dts/socfpga_soc64_fit-u-boot.dtsi | 23 ++ 1 file changed, 23 insertions(+) diff --git

[PATCH] include: configs: soc64: Disable SPL load U-Boot image using raw method

2022-11-21 Thread Jit Loon Lim
From: Sin Hui Kho Since u-boot raw image is no longer supported, SPL will not use raw method to load u-boot raw image. This changes is applicable for all Intel SOC64 device for NAND boot. Signed-off-by: Sin Hui Kho Signed-off-by: Jit Loon Lim --- include/configs/socfpga_soc64_common.h | 3

Re: [PATCH] lib: zlib: Use post-increment only in inffast.c.

2022-11-21 Thread Tom Rini
On Sun, Sep 11, 2022 at 04:46:37PM +0800, Jit Loon Lim wrote: > From: Chin Liang See > > An old inffast.c optimization turns out to not be optimal anymore > with modern compilers, and furthermore was not compliant with the > C standard, for which decrementing a pointer before its allocated >

[PATCH] configs: socfpga: Wrapping up function ID for SMC register access

2022-11-21 Thread Jit Loon Lim
From: Tien Fong Chee Wrapping up function ID for SMC register access, so that all details such as write / read / update function ID can be wrapped up. User can direct running SMC command with wrapped function ID into environment variables without bothering respective register access function ID.

[PATCH] configs: socfpga: n5x: Enables required configs for DDR retention

2022-11-21 Thread Jit Loon Lim
From: Tien Fong Chee Enables required configs to support DDR retention. including generic firmware loader for loading backup calibration data, and SHA384 checking. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- configs/socfpga_n5x_atf_defconfig | 5 +

[PATCH] include: configs: soc64: Use CONFIG_SPL_ATF to differentiate bootfile

2022-11-21 Thread Jit Loon Lim
From: Siew Chin Lim Legacy boot flow (SPL->U-Boot Proper->OS) boot to OS via Kernel Image and dtb files using booti command. ATF boot flow (SPL->ATF->U-Boot Proper->OS) boot to OS via kernel.itb file using bootm command. Change to use CONFIG_SPL_ATF to differentiate the bootfile of default

[PATCH] configs: defconfig: Boot to OS via FIT Image for N5X

2022-11-21 Thread Jit Loon Lim
From: Siew Chin Lim Update to boot OS via FIT image from N5X and enable FIT signature check via crc32 algorithm. And, remove CONFIGs for emulation only. Signed-off-by: Siew Chin Lim Signed-off-by: Jit Loon Lim --- configs/socfpga_n5x_atf_defconfig | 4 +++- configs/socfpga_n5x_vab_defconfig

Re: [PATCH] Revert "lib: sparse: Make CHUNK_TYPE_RAW buffer aligned"

2022-11-21 Thread Sean Anderson
On 11/21/22 09:50, Gary Bisson wrote: > Hi, > > On Fri, Nov 18, 2022 at 10:36:58AM -0500, Sean Anderson wrote: >> On 11/18/22 07:13, Gary Bisson wrote: >> > This reverts commit 62649165cb02ab95b57360bb362886935f524f26. >> > >> > The patch decreased the write performance quite a bit. >> > Here is

Re: [PATCH] rtc: add ht1380 driver

2022-11-21 Thread Tom Rini
On Mon, Nov 21, 2022 at 05:47:16PM +0300, Sergei Antonov wrote: > On Wed, 26 Oct 2022 at 14:34, Sergei Antonov wrote: > > > > On Wed, 26 Oct 2022 at 02:35, Simon Glass wrote: > > > > > > +static void ht1380_half_period_delay(void) > > > > +{ > > > > + /* Delay for half a period. 1 us

Re: [PATCH] Revert "lib: sparse: Make CHUNK_TYPE_RAW buffer aligned"

2022-11-21 Thread Gary Bisson
Hi, On Fri, Nov 18, 2022 at 10:36:58AM -0500, Sean Anderson wrote: > On 11/18/22 07:13, Gary Bisson wrote: > > This reverts commit 62649165cb02ab95b57360bb362886935f524f26. > > > > The patch decreased the write performance quite a bit. > > Here is an example on an i.MX 8M Quad platform. > > -

Re: [PATCH] rtc: add ht1380 driver

2022-11-21 Thread Sergei Antonov
On Wed, 26 Oct 2022 at 14:34, Sergei Antonov wrote: > > On Wed, 26 Oct 2022 at 02:35, Simon Glass wrote: > > > > +static void ht1380_half_period_delay(void) > > > +{ > > > + /* Delay for half a period. 1 us complies with the 500 KHz maximum > > > + input serial clock limit given

[PATCH] arm: socfpga: Move linux_qspi_enable from bootcommand to board_prep_linux function

2022-11-21 Thread Jit Loon Lim
From: Siew Chin Lim Move 'linux_qspi_enable' from bootcommand to board_prep_linux function when OS booted from FIT image for Stratix 10 and Agilex. This flow is common for all Intel SOC64 devices. U-Boot will update 'fdt_addr' environment value based on FIT image in board_prep_linux function,

[PATCH] configs: defconfig: Load OS via FIT image in QSPI ATF boot for Stratix 10 and Agilex

2022-11-21 Thread Jit Loon Lim
From: Siew Chin Lim Update to load OS via FIT image in Stratix 10 and Agilex QSPI ATF boot flow. And, enable FIT signature checking with crc32 algorithm. Signed-off-by: Siew Chin Lim Signed-off-by: Jit Loon Lim --- configs/socfpga_agilex_qspi_atf_defconfig| 6 +-

[PATCH] configs: defconfig: Remove duplicated CONFIG in socfpga_n5x_defconfig

2022-11-21 Thread Jit Loon Lim
From: Siew Chin Lim Remove duplicated CONFIG in socfpga_n5x_defconfig. Signed-off-by: Siew Chin Lim Signed-off-by: Jit Loon Lim --- configs/socfpga_n5x_defconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/configs/socfpga_n5x_defconfig b/configs/socfpga_n5x_defconfig index

Re: [PATCH v2 2/3] clk: stm32mp13: introduce STM32MP13 RCC driver

2022-11-21 Thread Sean Anderson
On 11/21/22 08:00, Gabriel FERNANDEZ wrote: On 11/8/22 02:59, Sean Anderson wrote: On 10/26/22 12:44, Gabriel Fernandez wrote: Introduce STM32MP13 RCC driver using Common Clock Framework. Please augment this commit message with some of the explanations you sent last time. ok

[PATCH] configs: defconfig: Load OS via FIT image in Stratix 10 and Agilex NAND boot

2022-11-21 Thread Jit Loon Lim
From: Siew Chin Lim Update to load OS via FIT image in Stratix 10 and Agilex NAND boot flow. And, enable FIT signature checking with crc32 algorithm. Signed-off-by: Siew Chin Lim Signed-off-by: Jit Loon Lim --- configs/socfpga_agilex_nand_atf_defconfig| 6 +-

[PATCH] arm: socfpga: n5x: Enable all features as in exisiting devices

2022-11-21 Thread Jit Loon Lim
From: Tien Fong Chee Enable more configurations and features as in Agilex device since all these hardware peripherals no change in N5X compare with Agilex. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- configs/socfpga_n5x_atf_defconfig | 2 ++ configs/socfpga_n5x_defconfig

Re: [Uboot-stm32] [PATCH v2 1/2] usb: hub: allow to increase HUB_DEBOUNCE_TIMEOUT

2022-11-21 Thread Patrick DELAUNAY
Hi, On 9/24/22 19:04, Marek Vasut wrote: On 9/12/22 15:37, Patrick DELAUNAY wrote: Hi, Hi, On 9/9/22 14:24, Marek Vasut wrote: On 9/9/22 11:45, Patrick Delaunay wrote: Add a new CONFIG_USB_HUB_DEBOUNCE_TIMEOUT to increase the HUB_DEBOUNCE_TIMEOUT value, for example to 2s because some usb

[PATCH] configs/agilex: enable FPGA Partial Reconfiguration command

2022-11-21 Thread Jit Loon Lim
From: "Chew, Chiau Ee" This is to enable config to support FPGA Partial Reconfiguration command in agilex ATF and non-ATF uboot build. Signed-off-by: Chew, Chiau Ee Signed-off-by: Jit Loon Lim --- configs/socfpga_agilex_atf_defconfig| 1 + configs/socfpga_agilex_defconfig

[PATCH] configs: Enable ATF support for QSPI & NAND boot

2022-11-21 Thread Jit Loon Lim
From: Chee Hong Ang HSD #1508277418: Add defconfigs with ATF support for QSPI and NAND boot on Stratix10 and Agilex platforms. Signed-off-by: Chee Hong Ang Signed-off-by: Jit Loon Lim --- configs/socfpga_agilex_nand_atf_defconfig| 88 +++

Re: [PATCH v2 2/3] clk: stm32mp13: introduce STM32MP13 RCC driver

2022-11-21 Thread Gabriel FERNANDEZ
On 11/8/22 02:59, Sean Anderson wrote: On 10/26/22 12:44, Gabriel Fernandez wrote: Introduce STM32MP13 RCC driver using Common Clock Framework. Please augment this commit message with some of the explanations you sent last time. ok Signed-off-by: Gabriel Fernandez Reviewed-by:

Re: problem with reading the NV memory index of TPM slb9670

2022-11-21 Thread Ilias Apalodimas
Hi Simon, thanks for the cc Tasos thanks for the report. Here's what happens here On Fri, 18 Nov 2022 at 22:50, Simon Glass wrote: > > +Ilias Apalodimas > > > On Tue, 15 Nov 2022 at 23:12, Tasos Terzidis wrote: > > > > Hello, > > > > I tried to use a tpm2 command for reading the NV memory

Re: [PATCH 0/3] cmd: pxe: support INITRD and FDT selection with FIT

2022-11-21 Thread Quentin Schulz
Hi Patrick, Thanks for looking at it. On 10/28/22 11:01, Patrick Delaunay wrote: Since the commit d5ba6188dfbf ("cmd: pxe_utils: Check fdtcontroladdr in label_boot") the FDT or the FDTDIR label is required in extlinux.conf and the fallback done by bootm command when only the device tree is

Re: [PATCH] riscv: use imply instead of select for SPL_SEPARATE_BSS

2022-11-21 Thread Zong Li
On Mon, Nov 21, 2022 at 12:00 PM Sean Anderson wrote: > > On 11/16/22 02:08, Zong Li wrote: > > Use imply instead of select, then it can still be disabled by > > board-specific defconfig, or be set to n manually. > > > > Signed-off-by: Zong Li > > --- > > arch/Kconfig | 2 +- > > 1 file

Re: [PATCH] Subject: [patch]SPI: GD SPI: Add Gigadevice SPI NOR part numbers

2022-11-21 Thread Michal Simek
On 11/17/22 01:56, Victor lim wrote: added gigadevice in the defconfig file and ID in the ids.c file Signed-off-by: Victor Lim --- configs/xilinx_zynqmp_mini_qspi_defconfig | 1 + configs/zynq_cse_qspi_defconfig | 1 + This should be done in separate patch.

[PATCH v1] clk: nuvoton: fix bug for calculate pll clock

2022-11-21 Thread Jim Liu
Fix bug for npcm7xx bmc calculate pll clock. PLLCON1 need to divide by 2. Signed-off-by: Jim Liu --- drivers/clk/nuvoton/clk_npcm7xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/nuvoton/clk_npcm7xx.c b/drivers/clk/nuvoton/clk_npcm7xx.c index

[PATCH v1] i2c: nuvoton: renamed the NPCM i2c driver

2022-11-21 Thread Jim Liu
The Makefile name is npcm_i2c but the driver is npcm-i2c. Signed-off-by: Jim Liu --- drivers/i2c/{npcm-i2c.c => npcm_i2c.c} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename drivers/i2c/{npcm-i2c.c => npcm_i2c.c} (100%) diff --git a/drivers/i2c/npcm-i2c.c b/drivers/i2c/npcm_i2c.c

Re: [PATCH] cli_hush: fix 'exit' cmd that was not exiting scripts

2022-11-21 Thread Hector Palacios
Hi Marek, On 11/19/22 15:12, Marek Vasut wrote: On 11/18/22 12:19, Hector Palacios wrote: Commit 8c4e3b79bd0bb76eea16869e9666e19047c0d005 supposedly passed one-level up the argument passed to 'exit' but it also broke 'exit' purpose of stopping a script. In reality, even if 'do_exit()' is