Re: [PATCH 0/8] An effort to bring DT bindings compliance within U-boot

2023-12-26 Thread Simon Glass
Hi Sumit, On Tue, Dec 26, 2023 at 10:06 AM Sumit Garg wrote: > > Hi Simon, > > On Tue, 26 Dec 2023 at 15:17, Simon Glass wrote: > > > > Hi Sumit, > > > > On Fri, Dec 22, 2023 at 5:34 AM Sumit Garg wrote: > > > > > > On Thu, 21 Dec 2023 at 20:48, Simon Glass wrote: > > > > > > > > Hi, > > > >

Re: [PATCH v2 3/8] scripts/Makefile.lib: Statically define *-u-boot.dtsi files location

2023-12-26 Thread Simon Glass
Hi Sumit, On Tue, Dec 26, 2023 at 10:09 AM Sumit Garg wrote: > > On Tue, 26 Dec 2023 at 15:17, Simon Glass wrote: > > > > Hi Sumit, > > > > On Fri, Dec 22, 2023 at 6:12 AM Sumit Garg wrote: > > > > > > Allow u-boot to build DTB from a different directory tree such that > > > *-u-boot.dtsi

vexpress and DM_SERIAL

2023-12-26 Thread Simon Glass
Hi Kristian, Do you think it would be possible to migrate the vexpress_ca9x4 board to use DM_SERIAL? Thanks, SImon

Re: Passing boot logs to Linux?

2023-12-26 Thread Dragan Simic
On 2023-12-26 23:38, Csókás Bence wrote: On 2023. 12. 26. 19:09, Dragan Simic wrote: On 2023-12-26 10:46, Simon Glass wrote: On Thu, Dec 21, 2023 at 2:23 AM Dragan Simic wrote: On 2023-12-21 02:44, Dragan Simic wrote: > On 2023-12-21 02:37, Dragan Simic wrote: >> On 2023-12-21 02:03, Daniel

Re: [PATCH 5/5] test: unit test for smbios command

2023-12-26 Thread Simon Glass
Hi Heinrich, On Tue, Dec 26, 2023 at 10:11 AM Heinrich Schuchardt wrote: > > On 12/26/23 10:47, Simon Glass wrote: > > Hi Heinrich, > > > > On Sat, Dec 23, 2023 at 12:49 AM Heinrich Schuchardt > > wrote: > >> > >> Provide a unit test for the smbios command. > >> > >> Provide different test

[PATCH v4 7/7] smbios: Require the caller to align the SMBIOS table

2023-12-26 Thread Simon Glass
All callers handle this alignment, so drop the unnecessary code. This simplifies things a little. Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt --- (no changes since v1) include/smbios.h | 5 + lib/smbios.c | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) diff

[PATCH v4 6/7] efi: Use the correct GUID for the SMBIOS table

2023-12-26 Thread Simon Glass
EFI does not use the 'anchor string' to determine the SMBIOS table version, instead preferring to have two separate GUIDs. Use the correct one, depending on the table version. Call unmap_system() to balance to the use of map_sysmem() Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt

[PATCH v4 5/7] smbios: Correct gd_smbios_start()

2023-12-26 Thread Simon Glass
This should access arch-specific properties. Fix it and update the existing usage. Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt --- (no changes since v2) Changes in v2: - Add a new patch to correct gd_smbios_start() include/asm-generic/global_data.h | 2 +-

[PATCH v4 4/7] smbios: Use SMBIOS 3.0 to support an address above 4GB

2023-12-26 Thread Simon Glass
When the SMBIOS table is written to an address above 4GB a 32-bit table address is not large enough. Use an SMBIOS3 table in that case. Note that we cannot use efi_allocate_pages() since this function has nothing to do with EFI. There is no equivalent function to allocate memory below 4GB in

[PATCH v4 3/7] smbios: SMBIOS 3.0 (64-bit) Entry Point structure

2023-12-26 Thread Simon Glass
From: Heinrich Schuchardt Add definition of the SMBIOS 3.0 (64-bit) Entry Point structure. Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass Signed-off-by: Simon Glass --- Changes in v4: - Bring in this patch from Heinrich's series include/smbios.h | 26

[PATCH v4 2/7] smbios: Move the rest of the SMBIOS2 code

2023-12-26 Thread Simon Glass
Move all of this logic into the else clause, since it will not be used for SMBIOS3 Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt --- (no changes since v1) lib/smbios.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/lib/smbios.c

[PATCH v4 1/7] smbios: Refactor 32-bit code into an else statement

2023-12-26 Thread Simon Glass
In preparation for adding support for SMBIOS3 move this code into an else statement. There is no functional change. Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt --- (no changes since v1) lib/smbios.c | 38 +- 1 file changed, 21

[PATCH v4 0/7] smbios: Deal with tables beyond 4GB

2023-12-26 Thread Simon Glass
When the malloc() region extends beyond 4GB on ARM we may end up with an SMBIOS table in that region. Add support for writing an SMBIOS3 table, which supports a 64-bit address. Note that this problem does not happen on x86 since it requires the tables to be placed just below 1MB in memory,

Re: [RFC PATCH 00/16] Introduce ICSSG Ethernet driver

2023-12-26 Thread MD Danish Anwar
On 22/12/23 6:13 pm, Roger Quadros wrote: > > On 22/12/2023 12:26, MD Danish Anwar wrote: >> Hi Roger, >> >> On 20/12/23 3:29 pm, Roger Quadros wrote: >>> Hi, >>> >>> On 19/12/2023 12:11, MD Danish Anwar wrote: Introduce ICSSG PRUETH support in uboot. The ICSSG driver is used in TI

Re: [PATCH v4] fdt: Allow the devicetree to come from a bloblist

2023-12-26 Thread Ilias Apalodimas
Hi Tom, On Tue, 26 Dec 2023 at 14:07, Tom Rini wrote: > > On Tue, Dec 26, 2023 at 09:46:25AM +, Simon Glass wrote: > > > Standard passage provides for a bloblist to be passed from one firmware > > phase to the next. That can be used to pass the devicetree along as well. > > Add an option to

Re: [PATCH 0/8] An effort to bring DT bindings compliance within U-boot

2023-12-26 Thread Sumit Garg
Hi Tony, On Wed, 27 Dec 2023 at 10:11, Tony Dinh wrote: > > Hi Sumit > Hi Simon, > > On Tue, Dec 26, 2023 at 2:13 AM Sumit Garg wrote: > > > > Hi Simon, > > > > On Tue, 26 Dec 2023 at 15:17, Simon Glass wrote: > > > > > > Hi Sumit, > > > > > > On Fri, Dec 22, 2023 at 5:34 AM Sumit Garg wrote:

Re: [PATCH 0/8] An effort to bring DT bindings compliance within U-boot

2023-12-26 Thread Tony Dinh
Hi Sumit Hi Simon, On Tue, Dec 26, 2023 at 2:13 AM Sumit Garg wrote: > > Hi Simon, > > On Tue, 26 Dec 2023 at 15:17, Simon Glass wrote: > > > > Hi Sumit, > > > > On Fri, Dec 22, 2023 at 5:34 AM Sumit Garg wrote: > > > > > > On Thu, 21 Dec 2023 at 20:48, Simon Glass wrote: > > > > > > > > Hi,

Re: [PATCH v3 3/4] net: tftp: remove explicit efi configuration dependency

2023-12-26 Thread AKASHI Takahiro
Hi Simon, On Tue, Dec 26, 2023 at 09:47:03AM +, Simon Glass wrote: > Hi Heinrich, > > On Wed, Dec 20, 2023 at 9:17???AM Heinrich Schuchardt > wrote: > > > > > > > > Am 20. Dezember 2023 05:46:16 MEZ schrieb Simon Glass : > > >Hi, > > > > > >On Mon, 18 Dec 2023 at 17:17, AKASHI Takahiro > >

Re: [PATCH v3 1/4] efi_loader: split unrelated code from efi_bootmgr.c

2023-12-26 Thread AKASHI Takahiro
On Mon, Dec 25, 2023 at 10:17:06AM +0100, Heinrich Schuchardt wrote: > On 12/18/23 03:38, AKASHI Takahiro wrote: > > Some code moved from cmd/bootefi.c is actually necessary only for "bootefi > > " command (starting an image manually loaded by a user using U-Boot > > load commands or other methods

Re: Passing boot logs to Linux?

2023-12-26 Thread Csókás Bence
On 2023. 12. 26. 19:09, Dragan Simic wrote: > Hello, > > On 2023-12-26 10:46, Simon Glass wrote: >> On Thu, Dec 21, 2023 at 2:23 AM Dragan Simic wrote: >>> On 2023-12-21 02:44, Dragan Simic wrote: >>> > On 2023-12-21 02:37, Dragan Simic wrote: >>> >> On 2023-12-21 02:03, Daniel Golle wrote: >>>

Re: [PATCH] arm: apple: Disable SMBIOS again

2023-12-26 Thread Tom Rini
On Sun, 24 Dec 2023 19:12:55 +0100, Mark Kettenis wrote: > Apple machines do not have memory below 4G. Since U-Boot does > not support the SMBIOS 3 header structures this means we can't > support SMBIOS on these machines. Unfortunately the refactoring > of the SMBIOS code this cycle

Re: [PATCH v1] spi: npcm_pspi: Fix the wrong clock divider calculation

2023-12-26 Thread Tom Rini
On Tue, 26 Dec 2023 10:00:06 +0800, Jim Liu wrote: > Fix the wrong clock divider calculation. > > Applied to u-boot/master, thanks! -- Tom

Re: Passing boot logs to Linux?

2023-12-26 Thread Dragan Simic
Hello, On 2023-12-26 10:46, Simon Glass wrote: On Thu, Dec 21, 2023 at 2:23 AM Dragan Simic wrote: On 2023-12-21 02:44, Dragan Simic wrote: > On 2023-12-21 02:37, Dragan Simic wrote: >> On 2023-12-21 02:03, Daniel Golle wrote: >>> On Thu, Dec 21, 2023 at 12:55:20AM +0100, Dragan Simic wrote:

[PATCH v2] rockchip: rk35xx: expand space for decompressed kernel

2023-12-26 Thread Hugh Cole-Baker
An uncompressed 6.7.0-rc1 Linux kernel Image built with the arm64 defconfig is about 40MB. This does not fit in to the space between kernel_comp_addr_r and fdt_addr_r, so when uncompressing an Image.gz to this size, the FDT will be overwritten. Rearrange addresses to have 128MiB for the kernel and

Re: [PATHv3 8/8] Makefile: add dtbs to clean

2023-12-26 Thread Tom Rini
On Tue, Dec 26, 2023 at 09:46:19PM +0600, Maxim Uvarov wrote: > CI test checks that generated dtb has to be cleaned up. > Use the same clean procedure as Linux top level Makefile has. > > Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v9 7/8] config: xea: Enable the SPL_FIT config option

2023-12-26 Thread Tom Rini
On Tue, Dec 26, 2023 at 05:14:52PM +0530, Venkatesh Yadav Abbarapu wrote: > Enable the config SPL_FIT, as getting the below error > ../arm-xilinx-linux-gnueabi-ld.bfd.real: drivers/core/ofnode.o: in function > `ofnode_get_property': > /u-boot/drivers/core/ofnode.c:1185: undefined reference to

Re: [PATCH v9 8/8] axm/taurus: Disable the SPL_SPI config

2023-12-26 Thread Tom Rini
On Tue, Dec 26, 2023 at 05:14:53PM +0530, Venkatesh Yadav Abbarapu wrote: > Disabling the CONFIG_SPL_SPI for the axm and taurus defconfigs, > as facing the SPL size issue "SPL image too big". > > Signed-off-by: Venkatesh Yadav Abbarapu > --- > board/siemens/taurus/taurus.c | 4 +++- >

[PATHv3 8/8] Makefile: add dtbs to clean

2023-12-26 Thread Maxim Uvarov
CI test checks that generated dtb has to be cleaned up. Use the same clean procedure as Linux top level Makefile has. Signed-off-by: Maxim Uvarov --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 220411a293..b443831a93 100644 --- a/Makefile +++

[PATHv3 7/8] omap3: use device specific naming for mem_init

2023-12-26 Thread Maxim Uvarov
Use device specific naming for functions so as to not overlap with common function names. Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini --- arch/arm/include/asm/arch-omap3/mem.h | 2 +- arch/arm/mach-omap2/omap3/board.c | 2 +- arch/arm/mach-omap2/omap3/emif4.c | 4 ++--

[PATHv3 6/8] bcm_ns3: use device specific naming for variables

2023-12-26 Thread Maxim Uvarov
Use device specific naming for variables so as to not overlap with common function names. Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini Reviewed-by: Peter Robinson --- include/configs/bcm_ns3.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATHv3 5/8] mach-socfpga: do not overlap defines with lwip

2023-12-26 Thread Maxim Uvarov
Fix compilation issue with overlapping lwip and march defines. Signed-off-by: Maxim Uvarov Reviewed-by: Simon Glass --- arch/arm/mach-socfpga/include/mach/handoff_soc64.h | 6 -- arch/arm/mach-socfpga/wrap_handoff_soc64.c | 9 + 2 files changed, 9 insertions(+), 6

[PATHv3 4/8] driver/net/rtl8139: remove debug print

2023-12-26 Thread Maxim Uvarov
debug print delays reset of the driver. Finally I see bunch of "rx error " errors in the screen. CI can not handle many prints. While network works fine there Reproduced with: make CROSS_COMPILE=sh2-linux- r2dplus_defconfig all qemu-system-sh4 -M r2d -nographic -serial null \ -serial

[PATHv3 3/8] sandbox: eth-raw-os: successful return code is 0

2023-12-26 Thread Maxim Uvarov
all network drivers return 0 on the successful transmission. Signed-off-by: Maxim Uvarov Reviewed-by: Simon Glass --- arch/sandbox/cpu/eth-raw-os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/cpu/eth-raw-os.c b/arch/sandbox/cpu/eth-raw-os.c index

[PATHv3 2/8] net/smc911x: fix return from smc911x_send

2023-12-26 Thread Maxim Uvarov
return value of smc911x_send is ignored, but on sucesseful send we need return 0 and or error -ETIMEOUT, not opposite. Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- drivers/net/smc911x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATHv3 1/8] test_net: print out net list

2023-12-26 Thread Maxim Uvarov
Printing net list is useful in CI log files. Signed-off-by: Maxim Uvarov Reviewed-by: Simon Glass --- test/py/tests/test_net.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/py/tests/test_net.py b/test/py/tests/test_net.py index b2241ae6a4..cd5b791a6a 100644 ---

[PATHv3 0/8] net fixes prior lwip

2023-12-26 Thread Maxim Uvarov
Add small net fixes prior lwip patches. v3: - some small review fixes. v2: - rebase on the top of master tree with descriptions fixes suggested in review comments. Maxim Uvarov (8): test_net: print out net list net/smc911x: fix return from smc911x_send sandbox: eth-raw-os: successful

Re: [PATCH v2 6/6] smbios: Require the caller to align the SMBIOS table

2023-12-26 Thread Heinrich Schuchardt
On 10/15/23 04:45, Simon Glass wrote: All callers handle this alignment, so drop the unnecessary code. This simplifies things a little. Signed-off-by: Simon Glass Reviewed: Heinrich Schuchardt --- (no changes since v1) include/smbios.h | 5 + lib/smbios.c | 2 -- 2 files

Re: [PATCH v2 5/6] efi: Use the correct GUID for the SMBIOS table

2023-12-26 Thread Heinrich Schuchardt
On 10/15/23 04:45, Simon Glass wrote: EFI does not use the 'anchor string' to determine the SMBIOS table version, instead preferring to have two separate GUIDs. Use the correct one, depending on the table version. Call unmap_system() to balance to the use of map_sysmem() Signed-off-by: Simon

Re: [PATCH v2 4/6] smbios: Correct gd_smbios_start()

2023-12-26 Thread Heinrich Schuchardt
On 10/15/23 04:45, Simon Glass wrote: This should access arch-specific properties. Fix it and update the existing usage. Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt --- Changes in v2: - Add a new patch to correct gd_smbios_start() include/asm-generic/global_data.h | 2

Re: [PATCH v8 7/8] config: xea: Enable the SPL_FIT config option

2023-12-26 Thread Fabio Estevam
Please run /scripts/get_maintainer.pl and add the board maintainer on Cc. I have added Lukasz. On Tue, Dec 26, 2023 at 6:43 AM Venkatesh Yadav Abbarapu wrote: > > Enable the config SPL_FIT. Please improve the commit log by explaining why SPL_FIT is being enabled.

Re: Fwd: [scr1564375] your CVE ID requests

2023-12-26 Thread Tom Rini
On Tue, Dec 26, 2023 at 08:07:20AM +0300, sploitem wrote: > -- Forwarded message - > От: > Date: вт, 19 дек. 2023 г. в 20:39 > Subject: Re: [scr1564375] your CVE ID requests > To: > Cc: > > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > > > [Suggested description] >

Re: [PATHv2 9/9] Makefile: add dtbs to clean

2023-12-26 Thread Maxim Uvarov
On Tue, 26 Dec 2023 at 15:50, Simon Glass wrote: > Hi Maxim, > > On Mon, Dec 25, 2023 at 3:42 PM Maxim Uvarov > wrote: > > > > CI test checks that generated dtb has to be cleaned up. > > > > Signed-off-by: Maxim Uvarov > > --- > > Makefile | 3 ++- > > 1 file changed, 2 insertions(+), 1

Re: [PATHv2 9/9] Makefile: add dtbs to clean

2023-12-26 Thread Maxim Uvarov
On Tue, 26 Dec 2023 at 20:26, Tom Rini wrote: > On Tue, Dec 26, 2023 at 06:27:58PM +0600, Maxim Uvarov wrote: > > On Tue, 26 Dec 2023 at 15:50, Simon Glass wrote: > > > > > Hi Maxim, > > > > > > On Mon, Dec 25, 2023 at 3:42 PM Maxim Uvarov > > > wrote: > > > > > > > > CI test checks that

Re: CVE-2019-14194 patch bypass

2023-12-26 Thread Tom Rini
On Wed, Aug 02, 2023 at 11:16:17PM +0300, sploit em wrote: > Hello. > > I was analyzing CVE-2019-14194 and I think the patch can be bypassed. > patch > > > In nfs_read_reply, rlen is signed int. So we can

Re: [PATCH v3 4/4] fs: remove explicit efi configuration dependency

2023-12-26 Thread Tom Rini
On Tue, Dec 26, 2023 at 09:46:52AM +, Simon Glass wrote: > Hi, > > On Wed, Dec 20, 2023 at 1:25 PM Tom Rini wrote: > > > > On Tue, Dec 19, 2023 at 09:46:27PM -0700, Simon Glass wrote: > > > Hi Heinrich, > > > > > > On Mon, 18 Dec 2023 at 15:16, Heinrich Schuchardt > > > wrote: > > > > > >

Re: [PATHv2 9/9] Makefile: add dtbs to clean

2023-12-26 Thread Tom Rini
On Tue, Dec 26, 2023 at 06:27:58PM +0600, Maxim Uvarov wrote: > On Tue, 26 Dec 2023 at 15:50, Simon Glass wrote: > > > Hi Maxim, > > > > On Mon, Dec 25, 2023 at 3:42 PM Maxim Uvarov > > wrote: > > > > > > CI test checks that generated dtb has to be cleaned up. > > > > > > Signed-off-by: Maxim

Fwd: [scr1564375] your CVE ID requests

2023-12-26 Thread sploitem
-- Forwarded message - От: Date: вт, 19 дек. 2023 г. в 20:39 Subject: Re: [scr1564375] your CVE ID requests To: Cc: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 > [Suggested description] > Integer underflow in ipv6 net component when processing incoming packets.

[PATCH v9 8/8] axm/taurus: Disable the SPL_SPI config

2023-12-26 Thread Venkatesh Yadav Abbarapu
Disabling the CONFIG_SPL_SPI for the axm and taurus defconfigs, as facing the SPL size issue "SPL image too big". Signed-off-by: Venkatesh Yadav Abbarapu --- board/siemens/taurus/taurus.c | 4 +++- configs/axm_defconfig | 7 ++- configs/taurus_defconfig | 7 ++- 3 files

[PATCH v9 7/8] config: xea: Enable the SPL_FIT config option

2023-12-26 Thread Venkatesh Yadav Abbarapu
Enable the config SPL_FIT, as getting the below error ../arm-xilinx-linux-gnueabi-ld.bfd.real: drivers/core/ofnode.o: in function `ofnode_get_property': /u-boot/drivers/core/ofnode.c:1185: undefined reference to `fdt_getprop' make[1]: *** [scripts/Makefile.spl:527: spl/u-boot-spl] Error 1

[PATCH v9 4/8] spi: spi-uclass: Read chipselect and restrict capabilities

2023-12-26 Thread Venkatesh Yadav Abbarapu
From: Ashok Reddy Soma Read chipselect properties from DT which are populated using 'reg' property and save it in plat->cs[] array for later use. Also read multi chipselect capability which is used for parallel-memories and return errors if they are passed on using DT but driver is not capable

[PATCH v9 5/8] spi: zynqmp_gqspi: Add parallel memories support in GQSPI driver

2023-12-26 Thread Venkatesh Yadav Abbarapu
Add support for parallel memories in zynqmp_gqspi.c driver. In case of parallel memories STRIPE bit is set and sent to the qspi ip, which will send data bits to both the flashes in parallel. However for few commands we should not use stripe, instead send same data to both the flashes. Those

[PATCH v9 3/8] mtd: spi-nor: Add parallel and stacked memories support in read_bar and write_bar

2023-12-26 Thread Venkatesh Yadav Abbarapu
From: Ashok Reddy Soma Add support for parallel memories and stacked memories configuration in read_bar and write_bar functions. Signed-off-by: Ashok Reddy Soma Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/mtd/spi/spi-nor-core.c | 55 +- 1 file changed,

[PATCH v9 2/8] mtd: spi-nor: Add parallel memories support for read_sr and read_fsr

2023-12-26 Thread Venkatesh Yadav Abbarapu
From: Ashok Reddy Soma Add support for parallel memories flash configuration in read status register and read flag status register functions. Signed-off-by: Ashok Reddy Soma Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/mtd/spi/spi-nor-core.c | 50 -- 1

[PATCH v9 1/8] mtd: spi-nor: Add parallel and stacked memories support

2023-12-26 Thread Venkatesh Yadav Abbarapu
From: Ashok Reddy Soma In parallel mode, the current implementation assumes that a maximum of two flashes are connected. The QSPI controller splits the data evenly between both the flashes so, both the flashes that are connected in parallel mode should be identical. During each operation SPI-NOR

[PATCH v9 6/8] spi: zynq_qspi: Add parallel memories support in QSPI driver

2023-12-26 Thread Venkatesh Yadav Abbarapu
Add support for parallel memories in zynq_qspi.c driver. In case of parallel memories STRIPE bit is set and sent to the qspi ip, which will send data bits to both the flashes in parallel. However for few commands we should not use stripe, instead send same data to both the flashes. Those commands

[PATCH v9 0/8] spi-nor: Add parallel and stacked memories support

2023-12-26 Thread Venkatesh Yadav Abbarapu
This series adds support for Xilinx qspi parallel and stacked memeories. In parallel mode, the current implementation assumes that a maximum of two flashes are connected. The QSPI controller splits the data evenly between both the flashes so, both the flashes that are connected in parallel mode

Re: [PATCH v4] fdt: Allow the devicetree to come from a bloblist

2023-12-26 Thread Tom Rini
On Tue, Dec 26, 2023 at 09:46:25AM +, Simon Glass wrote: > Standard passage provides for a bloblist to be passed from one firmware > phase to the next. That can be used to pass the devicetree along as well. > Add an option to support this. > > Tests for this will be added as part of the

Re: [PATCH v2 3/6] smbios: Use SMBIOS 3.0 to support an address above 4GB

2023-12-26 Thread Heinrich Schuchardt
On 10/15/23 04:45, Simon Glass wrote: When the SMBIOS table is written to an address above 4GB a 32-bit table address is not large enough. Use an SMBIOS3 table in that case. Note that we cannot use efi_allocate_pages() since this function has nothing to do with EFI. There is no equivalent

Re: [PATCH v2 2/6] smbios: Move the rest of the SMBIOS2 code

2023-12-26 Thread Heinrich Schuchardt
On 10/15/23 04:45, Simon Glass wrote: Move all of this logic into the else clause, since it will not be used for SMBIOS3 Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt

Re: [PATCH v2 1/6] smbios: Refactor 32-bit code into an else statement

2023-12-26 Thread Heinrich Schuchardt
On 10/15/23 04:45, Simon Glass wrote: In preparation for adding support for SMBIOS3 move this code into an else statement. There is no functional change. Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt

[PATCH v2 1/1] lib: smbios: verify_checksum() is duplicate

2023-12-26 Thread Heinrich Schuchardt
The function verify_checksum() duplicates what table_compute_checksum() does. Replace it. table_compute_checksum() is always compiled. Fixes: 415eab0655a8 ("smbios: add parsing API") Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- v2: mention that

Re: [PATCH 4/8] dts: Add alternative location for upstream DTB builds

2023-12-26 Thread Sumit Garg
On Tue, 26 Dec 2023 at 15:17, Simon Glass wrote: > > Hi Sumit, > > On Wed, Dec 20, 2023 at 12:01 PM Sumit Garg wrote: > > > > Hi Simon, > > > > On Wed, 20 Dec 2023 at 10:17, Simon Glass wrote: > > > > > > Hi Sumit, > > > > > > On Thu, 14 Dec 2023 at 06:52, Sumit Garg wrote: > > > > > > > >

Re: [PATCH 5/5] test: unit test for smbios command

2023-12-26 Thread Heinrich Schuchardt
On 12/26/23 10:47, Simon Glass wrote: Hi Heinrich, On Sat, Dec 23, 2023 at 12:49 AM Heinrich Schuchardt wrote: Provide a unit test for the smbios command. Provide different test functions for QEMU, sandbox, and other systems. Signed-off-by: Heinrich Schuchardt ---

Re: [PATCH v2 3/8] scripts/Makefile.lib: Statically define *-u-boot.dtsi files location

2023-12-26 Thread Sumit Garg
On Tue, 26 Dec 2023 at 15:17, Simon Glass wrote: > > Hi Sumit, > > On Fri, Dec 22, 2023 at 6:12 AM Sumit Garg wrote: > > > > Allow u-boot to build DTB from a different directory tree such that > > *-u-boot.dtsi files can be included from a common location. Currently > > that location is

Re: [PATCH 0/8] An effort to bring DT bindings compliance within U-boot

2023-12-26 Thread Sumit Garg
Hi Simon, On Tue, 26 Dec 2023 at 15:17, Simon Glass wrote: > > Hi Sumit, > > On Fri, Dec 22, 2023 at 5:34 AM Sumit Garg wrote: > > > > On Thu, 21 Dec 2023 at 20:48, Simon Glass wrote: > > > > > > Hi, > > > > > > On Thu, Dec 21, 2023 at 3:03 PM Tom Rini wrote: > > > > > > > > On Thu, Dec 14,

Re: ACPI: usage of sandbox virtual addresses

2023-12-26 Thread Heinrich Schuchardt
On 12/26/23 10:50, Simon Glass wrote: Hi Heinrich, On Tue, Dec 26, 2023 at 8:56 AM Heinrich Schuchardt wrote: Hello Simon, currently we use sandbox virtual addresses in all ACPI tables. This means that an application started by the U-Boot sandbox consuming these tables will crash due to

Re: [PATCH 2/5] smbios: type2: contained object handles

2023-12-26 Thread Heinrich Schuchardt
On 12/26/23 10:50, Simon Glass wrote: Hi Heinrich, On Sat, Dec 23, 2023 at 12:49 AM Heinrich Schuchardt wrote: The type 2 structure must include information about the contained objects. It is fine to set the number of contained object handles to 0. Add the missing field. Fixes:

Re: [PATCH 4/5] doc: man-page for smbios command

2023-12-26 Thread Simon Glass
On Sat, Dec 23, 2023 at 12:49 AM Heinrich Schuchardt wrote: > > Provide a man-page for the smbios command. > > Signed-off-by: Heinrich Schuchardt > --- > doc/usage/cmd/smbios.rst | 93 > doc/usage/index.rst | 1 + > 2 files changed, 94

Re: [PATCH 1/1] lib: smbios: remove redundant next_header()

2023-12-26 Thread Simon Glass
On Fri, Dec 22, 2023 at 5:59 PM Heinrich Schuchardt wrote: > > next_header() and get_next_header() only differ in how the const attribute > is used. One function taking a const parameter and returning a non-const is > good enough. > > Fixes: 3d49ee8510d3 ("efi_loader: add SMBIOS table

Re: [PATCH v2 1/2] smbios: SMBIOS 3.0 (64-bit) Entry Point structure

2023-12-26 Thread Simon Glass
Hi Heinrich, On Sat, Dec 23, 2023 at 1:03 AM Heinrich Schuchardt wrote: > > From: Heinrich Schuchardt > > Add definition of the SMBIOS 3.0 (64-bit) Entry Point structure. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > no change > --- > include/smbios.h | 26

Re: [PATCH v3 00/14] Support Firmware Handoff spec via bloblist

2023-12-26 Thread Simon Glass
Hi, On Mon, Dec 18, 2023 at 6:19 PM Raymond Mao wrote: > > Major changes: > > Update bloblist to align to Firmware Handoff spec v0.9 (up to commit #3592349 > of the spec) > (https://github.com/FirmwareHandoff/firmware_handoff). > > Includes: > - Align bloblist tags with the FW handoff spec > -

Re: [PATCH 2/5] smbios: type2: contained object handles

2023-12-26 Thread Simon Glass
Hi Heinrich, On Sat, Dec 23, 2023 at 12:49 AM Heinrich Schuchardt wrote: > > The type 2 structure must include information about the contained objects. > It is fine to set the number of contained object handles to 0. > > Add the missing field. > > Fixes: 721e992a8af5 ("x86: Add SMBIOS table

Re: [PATHv2 9/9] Makefile: add dtbs to clean

2023-12-26 Thread Simon Glass
Hi Maxim, On Mon, Dec 25, 2023 at 3:42 PM Maxim Uvarov wrote: > > CI test checks that generated dtb has to be cleaned up. > > Signed-off-by: Maxim Uvarov > --- > Makefile | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index

Re: [PATHv2 6/9] mach-socfpga: do not overlap defines with lwip

2023-12-26 Thread Simon Glass
On Mon, Dec 25, 2023 at 3:42 PM Maxim Uvarov wrote: > > Fix compilation issue with overlapping lwip and march defines. > > Signed-off-by: Maxim Uvarov > --- > arch/arm/mach-socfpga/include/mach/handoff_soc64.h | 6 -- > arch/arm/mach-socfpga/wrap_handoff_soc64.c | 9 + > 2

Re: [PATHv2 3/9] net/smc911x: fix return from smc911x_send

2023-12-26 Thread Simon Glass
On Mon, Dec 25, 2023 at 3:41 PM Maxim Uvarov wrote: > > return value of smc911x_send is ignored, but on sucesseful > send we need return 0 and or error -ETIMEOUT, not opposite. > > Signed-off-by: Maxim Uvarov > Reviewed-by: Tom Rini > --- > drivers/net/smc911x.c | 2 +- > 1 file changed, 1

Re: [PATHv2 5/9] driver/net/rtl8139: remove debug print

2023-12-26 Thread Simon Glass
On Mon, Dec 25, 2023 at 3:42 PM Maxim Uvarov wrote: > > debug print delays reset of the driver. Finally I see > bunch of "rx error " errors in the screen. CI can > not handle many prints. While network works fine there > > Reproduced with: > make CROSS_COMPILE=sh2-linux- r2dplus_defconfig all

Re: [PATHv2 1/9] test_net: print out net list

2023-12-26 Thread Simon Glass
On Mon, Dec 25, 2023 at 3:41 PM Maxim Uvarov wrote: > > Printing net list is useful in CI log files. > > Signed-off-by: Maxim Uvarov > --- > test/py/tests/test_net.py | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Simon Glass

Re: ACPI: usage of sandbox virtual addresses

2023-12-26 Thread Simon Glass
Hi Heinrich, On Tue, Dec 26, 2023 at 8:56 AM Heinrich Schuchardt wrote: > > Hello Simon, > > currently we use sandbox virtual addresses in all ACPI tables. This > means that an application started by the U-Boot sandbox consuming these > tables will crash due to accessing invalid addresses. > >

Re: Fw: Upgrade u-boot to use a redundant environment

2023-12-26 Thread Simon Glass
Hi Adrien, On Thu, Dec 7, 2023 at 12:53 PM Hernot, Adrien wrote: > > > Hi, > > We are using u-boot and until now we are using a single env storage on the > eMMC. > > We want to change to using a redundant environment, and the way to do that is > well documented (thanks for that). > > The

Re: [PATCH 2/5] linux: bitmap.h: add 'for_each_set_bitrange' iteration macro

2023-12-26 Thread Simon Glass
On Mon, Dec 11, 2023 at 12:21 PM wrote: > > From: Lukas Funke > > Add 'for_each_set_bitrange' (from Linux kernel) in order to iterate > over each set bitrange of a bitmap. This becomes handy if one wants > to generate a cpu list i.e. for isolcpu or nohz_full. > > Signed-off-by: Lukas Funke >

Re: [PATCH 1/5] sandbox: add generic find_next_zero_bit implementation

2023-12-26 Thread Simon Glass
On Mon, Dec 11, 2023 at 12:21 PM wrote: > > From: Lukas Funke > > Add generic 'find_next_zero_bit' implementation in order to enable the > use of the 'for_each_set_bitrange' macro. The implementation is currently > missing for the sandbox-arch and using the function results in a linker > error.

Re: [PATCH v6 5/8] binman: j721s2: Add firewall configurations

2023-12-26 Thread Simon Glass
Hi Manorit, On Wed, Dec 6, 2023 at 9:51 AM Manorit Chawdhry wrote: > > The following commits adds the configuration of firewalls required to > protect ATF and OP-TEE memory region from non-secure reads and > writes using master and slave firewalls present in our K3 SOCs. > > Signed-off-by:

Re: [PATCH 1/5] smbios: correct definition of gd_smbios_start() macro

2023-12-26 Thread Simon Glass
Hi Heinrich, On Sat, Dec 23, 2023 at 12:44 AM Heinrich Schuchardt wrote: > > gd_smbios_start() currently points to a non-existent field. > It should return the field written by gd_set_smbios_start(). > > Fixes: 50834884a815 ("Record the position of the SMBIOS tables") > Signed-off-by: Heinrich

Re: [PATCH v3 2/2] tools: fix build without LIBCRYPTO support

2023-12-26 Thread Simon Glass
On Thu, Dec 21, 2023 at 7:26 AM Alexander Dahl wrote: > > From: Paul-Erwan Rio > > Commit cb9faa6f98ae ("tools: Use a single target-independent config to > enable OpenSSL") introduced a target-independent configuration to build > crypto features in host tools. > > But since commit 2c21256b27d7

Re: [PATCH v3 7/9] bloblist: Load the bloblist from the previous loader

2023-12-26 Thread Simon Glass
Hi Raymond, On Fri, Dec 22, 2023 at 9:32 PM Raymond Mao wrote: > > During bloblist initialization, when CONFIG_OF_BOARD is defined, > invoke the platform custom function to load the bloblist via boot > arguments from the previous loader. > If the bloblist exists, copy it into the fixed bloblist

Re: [PATCH v3 1/9] bloblist: add API to check the register conventions

2023-12-26 Thread Simon Glass
Hi Raymond, On Fri, Dec 22, 2023 at 9:31 PM Raymond Mao wrote: > > Add bloblist_check_reg_conv() to check whether the bloblist is compliant > to the register conventions defined in Firmware Handoff specification. > This API can be used for all Arm platforms. > > Signed-off-by: Raymond Mao > ---

Re: [PATCH v3 4/9] arm: armv7: save boot arguments

2023-12-26 Thread Simon Glass
Hi Raymond, On Fri, Dec 22, 2023 at 9:31 PM Raymond Mao wrote: > > Save boot arguments r[0-3] into an array for handover of bloblist from > previous boot stage. > > Signed-off-by: Raymond Mao > --- > Changes in v2 > - New patch file created for v2. > Changes in v3 > - Swap value of r0 with r2.

Re: [PATCH v5 0/8] Move framebuffer reservation for SPL to RAM end

2023-12-26 Thread Simon Glass
On Wed, Dec 13, 2023 at 2:56 PM Devarsh Thakkar wrote: > > Hi Antoine, > > On 05/12/23 21:25, Devarsh Thakkar wrote: > > Move video memory reservation for SPL at end of RAM so that it does > > not interefere with reservations for next stage so that the next stage > > need not have holes in

Re: [PATCH v2] test/py: mii: Add tests for mii command

2023-12-26 Thread Simon Glass
Hi Love, On Tue, Dec 5, 2023 at 12:03 PM Love Kumar wrote: > > Add below test cases for mii commands: > mii_info -To display MII PHY info > mii_list - To list MII devices > mii_set_device - To set MII device > mii_read - To reads register from MII PHY address > mii_dump - To display data from

Re: [PATCH v2 3/3] efi: Avoid using dm_scan_other()

2023-12-26 Thread Simon Glass
Hi Heinrich, On Mon, Dec 18, 2023 at 3:02 PM Simon Glass wrote: > > Hi Heinrich, > > On Sat, 16 Dec 2023 at 14:02, Heinrich Schuchardt wrote: > > > > On 12/16/23 21:46, Simon Glass wrote: > > > Hi, > > > > > > On Tue, 21 Nov 2023 at 06:21, Tom Rini wrote: > > >> > > >> On Tue, Nov 21, 2023 at

Re: [PATCH v3 9/9] qemu-arm: get FDT from bloblist

2023-12-26 Thread Simon Glass
Hi, On Fri, Dec 22, 2023 at 9:32 PM Raymond Mao wrote: > > Get devicetree from a bloblist if it exists. > If not, fallback to get FDT from the specified memory address. > > Signed-off-by: Raymond Mao > --- > Changes in v2 > - Refactor of board_fdt_blob_setup(). > >

Re: [PATCH v2 2/2] smbios: copy QEMU tables

2023-12-26 Thread Simon Glass
Hi Heinrich, On Sat, Dec 23, 2023 at 1:03 AM Heinrich Schuchardt wrote: > > From: Heinrich Schuchardt > > QEMU provides SMBIOS tables with detailed information. We should not try to > replicate them in U-Boot. > > If we want to inform about U-Boot, we can add a Firmware Inventory > Information

Re: [PATCH 5/5] test: unit test for smbios command

2023-12-26 Thread Simon Glass
Hi Heinrich, On Sat, Dec 23, 2023 at 12:49 AM Heinrich Schuchardt wrote: > > Provide a unit test for the smbios command. > > Provide different test functions for QEMU, sandbox, and other systems. > > Signed-off-by: Heinrich Schuchardt > --- > test/py/tests/test_smbios.py | 47

Re: [PATCH v3 8/9] fdt: update the document and Kconfig description

2023-12-26 Thread Simon Glass
Hi Raymond, On Fri, Dec 22, 2023 at 9:32 PM Raymond Mao wrote: > > Update the document and Kconfig to describe the behavior of board > specific custom functions when CONFIG_OF_BOARD is defined. > > Signed-off-by: Raymond Mao > --- > doc/develop/devicetree/control.rst | 6 +++--- > dts/Kconfig

Re: [PATCH v3 6/9] qemu-arm: Get bloblist from boot arguments

2023-12-26 Thread Simon Glass
Hi Raymond, On Fri, Dec 22, 2023 at 9:32 PM Raymond Mao wrote: > > Add platform custom function to get bloblist from boot arguments. > Check whether boot arguments aligns with the register conventions > defined in FW Handoff spec v0.9. > Add bloblist related options into qemu default config. > >

Re: [PATCH v3 5/9] arm: armv8: save boot arguments

2023-12-26 Thread Simon Glass
On Fri, Dec 22, 2023 at 9:32 PM Raymond Mao wrote: > > Save boot arguments x[0-3] into an array for handover of bloblist from > previous boot stage. > > Signed-off-by: Raymond Mao > --- > Changes in v2 > - New patch file created for v2. > > arch/arm/cpu/armv8/start.S | 14 ++ > 1

Re: [PATCH v3 3/9] bloblist: refactor of bloblist_reloc()

2023-12-26 Thread Simon Glass
On Fri, Dec 22, 2023 at 9:31 PM Raymond Mao wrote: > > The current bloblist pointer and size can be retrieved from global > data, so we don't need to pass them from the function arguments. > This change also help to remove all external access of gd->bloblist > outside of bloblist module. > >

Re: [PATCH v3 2/9] bloblist: check bloblist with specified buffer size

2023-12-26 Thread Simon Glass
Hi Raymond, On Fri, Dec 22, 2023 at 9:31 PM Raymond Mao wrote: > > Instead of expecting the bloblist total size to be the same as the > pre-allocated buffer size, practically we are more interested in > whether the pre-allocated buffer size is bigger than the bloblist > total size. > >

Re: [PATCH 3/5] cmd: provide command to display SMBIOS information

2023-12-26 Thread Simon Glass
On Sat, Dec 23, 2023 at 12:49 AM Heinrich Schuchardt wrote: > > U-Boot can either generated an SMBIOS table or copy it from a prior boot > stage, e.g. QEMU. > > Provide a command to display the SMBIOS information. > > Currently only type 1 and 2 are translated to human readable text. > Other

Re: [PATCH v3 3/9] arm: add ACPI fields to global data

2023-12-26 Thread Simon Glass
On Tue, Dec 19, 2023 at 12:24 PM Heinrich Schuchardt wrote: > > Add fields for the location of ACPI tables to the global data. > > Signed-off-by: Heinrich Schuchardt > --- > v3: > let tables in global data depend on CONFIG_(SPL_)ACPI > v2: > new patch > --- >

  1   2   >