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

2023-01-18 Thread Svyatoslav Ryhel
ср, 18 січ. 2023 р. о 21:42 Simon Glass пише: > > Hi Svyatoslav, > > On Wed, 18 Jan 2023 at 01:44, Svyatoslav Ryhel wrote: > > > > 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. > > > >

[PATCH 11/11] driver: cache-v5l2: Fix type casting warning on RV32

2023-01-18 Thread Yu Chien Peter Lin
This patch fixes following warning for riscv32 compilation. drivers/cache/cache-v5l2.c:122:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 122 | regs = (struct l2cache *)dev_read_addr(dev); |^ Signed-off-by: Yu Chien Peter Lin

[PATCH 10/11] configs: ae350: Display CPU and board info for AE350 platforms

2023-01-18 Thread Yu Chien Peter Lin
Display information about CPU and board during start up. Signed-off-by: Yu Chien Peter Lin --- configs/ae350_rv32_defconfig | 2 ++ configs/ae350_rv32_spl_defconfig | 2 ++ configs/ae350_rv32_spl_xip_defconfig | 2 ++ configs/ae350_rv32_xip_defconfig | 2 ++ configs/ae350_rv64_de

[PATCH 09/11] configs: ae350: Increase maximum retry count for AE350 platforms

2023-01-18 Thread Yu Chien Peter Lin
Loading image over TFTP is often interrupted since it does more than 10 times retries, increase the number of retries so it will not easily stop the transmission. Signed-off-by: Yu Chien Peter Lin --- configs/ae350_rv32_defconfig | 1 + configs/ae350_rv32_spl_defconfig | 1 + configs

[PATCH 08/11] configs: ae350: Enable v5l2 cache for AE350 platforms

2023-01-18 Thread Yu Chien Peter Lin
Enable cache-v5l2 driver for each AE350 defconfig. Signed-off-by: Yu Chien Peter Lin --- configs/ae350_rv32_defconfig | 1 + configs/ae350_rv32_spl_defconfig | 3 +++ configs/ae350_rv32_spl_xip_defconfig | 3 +++ configs/ae350_rv32_xip_defconfig | 1 + configs/ae350_rv64_defconfi

[PATCH 07/11] riscv: ax25: cache.c: Cleanups to L1/L2 cache function used in SPL

2023-01-18 Thread Yu Chien Peter Lin
This patch refines L1 cache enable/disable and v5l2-cache enable functions. Signed-off-by: Yu Chien Peter Lin --- arch/riscv/cpu/ax25/cache.c | 100 1 file changed, 68 insertions(+), 32 deletions(-) diff --git a/arch/riscv/cpu/ax25/cache.c b/arch/riscv/cpu/a

[PATCH 06/11] riscv: ae350: dts: Update L2 cache compatible string

2023-01-18 Thread Yu Chien Peter Lin
Update the compatible string of L2 cache. Signed-off-by: Yu Chien Peter Lin --- arch/riscv/dts/ae350_32.dts | 2 +- arch/riscv/dts/ae350_64.dts | 2 +- drivers/cache/cache-v5l2.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/riscv/dts/ae350_32.dts b/arch/riscv/dts/

[PATCH 05/11] riscv: cpu: ax25: Simplify cache enabling logic in harts_early_init()

2023-01-18 Thread Yu Chien Peter Lin
This patch improves the cache enabling operation in harts_early_init(), also moves the CSR definition to include/asm/arch-andes/csr.h and drops unnecessary i/d-cache disable functions from cleanup_before_linux(). Signed-off-by: Yu Chien Peter Lin --- arch/riscv/cpu/ax25/cpu.c | 46

[PATCH 04/11] driver: cache: cache-v5l2: Update memory-mapped scheme to support Gen2 platform

2023-01-18 Thread Yu Chien Peter Lin
The L2C configuration register has MAP field to indicate its version is v0 (Gen1) or v1 (Gen2) L2-cache. This patch makes the driver compatible with both memory-mapped scheme. Signed-off-by: Yu Chien Peter Lin --- drivers/cache/cache-v5l2.c | 32 1 file changed,

[PATCH 03/11] board: AndesTech: ax25-ae350.c: Enable v5l2-cache in spl_board_init()

2023-01-18 Thread Yu Chien Peter Lin
The L2-cache is not enabled currently, the enbale_caches() will call the v5l2_enable() callback to enable it in SPL. Signed-off-by: Yu Chien Peter Lin --- board/AndesTech/ax25-ae350/ax25-ae350.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/board/AndesTech

[PATCH 02/11] riscv: Remove redundant Kconfig "RISCV_NDS_CACHE"

2023-01-18 Thread Yu Chien Peter Lin
From: Leo Yu-Chi Liang There is no need for RISCV_NDS_CACHE config to control cache switches. Signed-off-by: Leo Yu-Chi Liang Reviewed-by: Yu Chien Peter Lin --- arch/riscv/cpu/ax25/Kconfig | 10 - arch/riscv/cpu/ax25/cache.c | 84 + drivers/cache/Kconf

[PATCH 01/11] riscv: global_data.h: Correct the comment for PLICSW

2023-01-18 Thread Yu Chien Peter Lin
PLIC is used for external interrupt, while PLICSW is an Andes-specific design for software interrupt. Signed-off-by: Yu Chien Peter Lin --- arch/riscv/include/asm/global_data.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/include/asm/global_data.h b/arch/riscv/

[PATCH 00/11] cache operation cleanups for Andes AE350 platform

2023-01-18 Thread Yu Chien Peter Lin
This patchset is intended to enable L2-cache in U-boot SPL, along with cache operations cleanup for AE350 platforms. Leo Yu-Chi Liang (1): riscv: Remove redundant Kconfig "RISCV_NDS_CACHE" Yu Chien Peter Lin (10): riscv: global_data.h: Correct the comment for PLICSW board: AndesTech: ax25-a

Re: [PATCH] arm64: a37xx: pinctrl: probe after binding

2023-01-18 Thread Stefan Roese
On 1/17/23 15:08, Robert Marko wrote: Currently, pinctrl drivers are getting probed during post-bind, however that is being reverted, and on A37XX pinctrl driver is the one that registers the GPIO driver during the probe. So, if the pinctrl driver doesn't get probed GPIO-s won't get registered a

Re: [PATCH] tee: optee: fix a print error on rng probing

2023-01-18 Thread Jens Wiklander
On Wed, Jan 18, 2023 at 11:51 PM Etienne Carriere wrote: > > On Wed, 18 Jan 2023 at 19:54, Ilias Apalodimas > wrote: > > > > Thanks Patrick, > > > > On Wed, 18 Jan 2023 at 18:53, Patrick DELAUNAY > > wrote: > > > > > > Hi > > > > > > On 1/18/23 16:38, Ilias Apalodimas wrote: > > > > If we fail t

Re: [PATCH v2 14/17] riscv: dts: jh7110: Add initial StarFive JH7110 device tree

2023-01-18 Thread Sean Anderson
On 1/19/23 01:18, David Abdurachmanov wrote: On Wed, Jan 18, 2023 at 10:19 AM Yanhong Wang wrote: Add initial device tree for the JH7110 RISC-V SoC. Signed-off-by: Yanhong Wang --- arch/riscv/dts/jh7110.dtsi | 497 + 1 file changed, 497 insertions(+)

Re: [PATCH v2 14/17] riscv: dts: jh7110: Add initial StarFive JH7110 device tree

2023-01-18 Thread David Abdurachmanov
On Wed, Jan 18, 2023 at 10:19 AM Yanhong Wang wrote: > > Add initial device tree for the JH7110 RISC-V SoC. > > Signed-off-by: Yanhong Wang > --- > arch/riscv/dts/jh7110.dtsi | 497 + > 1 file changed, 497 insertions(+) > create mode 100644 arch/riscv/dts/jh7

Please pull u-boot-dm

2023-01-18 Thread Simon Glass
Hi Tom, https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/14776 The following changes since commit 5b958dea5c678dbdb2aeb6ac3c0c8cc8dfea065c: Merge branch '2022-01-16-bootstd-updates' (2023-01-17 08:55:40 -0500) are available in the Git repository at: git://git.denx.de/u-boot-

Re: [PATCH v9 08/14] binman: Support optional external blobs

2023-01-18 Thread Simon Glass
Some blobs are actually not necessary for the board to work correctly. Add a property to allow this to be indicated. Missing optional blobs do not cause a build failure. Signed-off-by: Simon Glass --- (no changes since v8) Changes in v8: - Move support for optional external blobs into this seri

Re: [PATCH 3/8] binman: Add a null entry

2023-01-18 Thread Simon Glass
It is sometimes useful to define an entry which does not have its own contents but does appear in the image. The contents are set by the section which contains it, even though it appears as an entry in the fdtmap. Add support for this. Signed-off-by: Simon Glass --- tools/binman/entries.rst

Re: [PATCH 5/8] binman: Support overlapping entries

2023-01-18 Thread Simon Glass
In some cases it is useful to have an entry overlap with another in a section, either to update the contents within a blob, or to add an entry to the fdtmap that covers only part of the blob. Add support for this. Signed-off-by: Simon Glass --- tools/binman/binman.rst | 9 ++

Re: [PATCH v9 12/14] rockchip: Convert all boards to use binman

2023-01-18 Thread Simon Glass
Instead of the bash script, use binman to generate the FIT for arm64. For 32-bit boards, use binman for all images, dropping the intermediate files. With this change, only Zynq is now using SPL_FIT_GENERATOR so update the Kconfig rule accordingly. Clean up the Makefile to the extent possible. Un

Re: [PATCH 1/8] binman: Add a test for an inner section with a size

2023-01-18 Thread Simon Glass
This is a slightly different scenario from the existing testSections tests. Add a new test for it. Signed-off-by: Simon Glass --- tools/binman/ftest.py | 6 ++ tools/binman/test/267_section_inner.dts | 16 2 files changed, 22 insertions(+) create mode 10

Re: [PATCH 2/8] binman: Clarify use of False when obtaining data

2023-01-18 Thread Simon Glass
This means that the data is not yet available. Update some comments to make this clearer. Signed-off-by: Simon Glass --- tools/binman/entry.py | 3 ++- tools/binman/etype/section.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH 4/8] binman: Add a function to check for special section nodes

2023-01-18 Thread Simon Glass
This appears in two places in the code. Use a shared function instead. Signed-off-by: Simon Glass --- tools/binman/etype/fit.py | 3 +-- tools/binman/etype/section.py | 13 - 2 files changed, 13 insertions(+), 3 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH 6/8] binman: Provide general support for updating ELF symbols

2023-01-18 Thread Simon Glass
The current support for updating variables in a binary is hard-coded to work with U-Boot: - It assumes the image starts at __image_copy_start - It uses the existing U-Boot-specific entry types It is useful for other projects to use these feature. Add properties to enable writing symbols for any

Re: [PATCH 7/8] dtoc: Add a way to read a phandle with params

2023-01-18 Thread Simon Glass
Add a function to read a phandle and associated name and offset. This is useful for binman. Signed-off-by: Simon Glass --- tools/dtoc/fdt_util.py| 28 +++ tools/dtoc/test/dtoc_test_phandle.dts | 1 + tools/dtoc/test_fdt.py| 11 +++

Re: [PATCH 8/8] binman: Support positioning an entry by and ELF symbol

2023-01-18 Thread Simon Glass
In some cases it is useful to position an entry over the top of a symbol in an ELF file. For example, if the symbol holds a version string then it allows the string to be accessed from the fdtmap. Add support for this. Suggested-by: Pali Rohár Suggested-by: Keith Short Signed-off-by: Simon Glas

Re: [PATCH 1/2] Revert "patman: invoke the checkpatch.pl script with '--u-boot' and '--strict'"

2023-01-18 Thread Simon Glass
On Fri, 2023-01-13 at 08:50 -0500, Maxim Cournoyer wrote: > This reverts commit 648d8186dd7f9c444fb07f355090d275dcdd4de4, because > it broke usage of patman on Linux, whose check script doesn't know > about '--strict' or '--u-boot'. I can confirm that this reverts fixes the reported issue: Tested

Re: [PATCH 2/2] patman: symlink top level .checkpatch.conf

2023-01-18 Thread Simon Glass
On Fri, 13 Jan 2023 at 06:51, Maxim Cournoyer wrote: > > This makes it possible to run the patman test suite simply by invoking > 'pytest' from the patman sub-directory: > > $ cd tools/patman > $ pytest > > Otherwise, the top level .checkpatch.conf would be ignored and > multiple test_checkpat

[PATCH] Revert "config: tools only: add VIDEO to build bmp_logo"

2023-01-18 Thread Fabio Estevam
This reverts commit 1cfba53ca46cade2dbf4e067afc8c19e72909a4b. Since commit 1cfba53ca46c ("config: tools only: add VIDEO to build bmp_logo") the build of tools-only_defconfig fails: | /bin/sh: line 1: tools/bmp_logo: No such file or directory This has been noticed in OpenEmbedded and Debian [1].

Re: [PATCH] tee: optee: fix a print error on rng probing

2023-01-18 Thread Etienne Carriere
On Wed, 18 Jan 2023 at 19:54, Ilias Apalodimas wrote: > > Thanks Patrick, > > On Wed, 18 Jan 2023 at 18:53, Patrick DELAUNAY > wrote: > > > > Hi > > > > On 1/18/23 16:38, Ilias Apalodimas wrote: > > > If we fail to probe the optee-rng device, we print a wrong message > > > referring to the firmwa

[PATCH v5 0/2] efi_loader: console improvements

2023-01-18 Thread Jan Kiszka
Changes to v4: - move cursor to bottom-right before scrolling Jan Jan Kiszka (2): efi_loader: Avoid overwriting previous outputs on console screen clearing efi_loader: Set default console colors on efi_cout_clear_screen if needed lib/efi_loader/Kconfig | 9 + lib/ef

[PATCH v5 1/2] efi_loader: Avoid overwriting previous outputs on console screen clearing

2023-01-18 Thread Jan Kiszka
From: Jan Kiszka Before clearing the screen, ensure that no previous output of firmware or UEFI programs will be overwritten on serial devices or other streaming consoles. This helps generating complete boot logs. Tested regarding multi-output against qemu-x86_defconfig. Still, there were remain

[PATCH v5 2/2] efi_loader: Set default console colors on efi_cout_clear_screen if needed

2023-01-18 Thread Jan Kiszka
From: Jan Kiszka Ensures a consistent background color of the whole screen for succeeding outputs as both demanded by the spec and implemented in EDK2 as well. Signed-off-by: Jan Kiszka --- lib/efi_loader/efi_console.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/efi_loader/ef

Re: [PATCH v4 1/2] efi_loader: Avoid overwriting previous outputs on console screen clearing

2023-01-18 Thread Jan Kiszka
On 18.01.23 22:02, Heinrich Schuchardt wrote: > > > Am 18. Januar 2023 21:58:42 MEZ schrieb Jan Kiszka : >> On 18.01.23 21:56, Heinrich Schuchardt wrote: >>> >>> >>> Am 18. Januar 2023 21:44:58 MEZ schrieb Jan Kiszka : From: Jan Kiszka Before clearing the screen, ensure that no pr

Re: [PATCH v2] ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository

2023-01-18 Thread Tony Dinh
On Wed, Jan 18, 2023 at 10:30 AM Pali Rohár wrote: > > On Tuesday 17 January 2023 17:18:43 Tony Dinh wrote: > > Hi Pali, > > > > On Tue, Jan 17, 2023 at 1:25 PM Pali Rohár wrote: > > > > > > Hello! > > > > > > On Tuesday 17 January 2023 13:02:46 Tony Dinh wrote: > > > > Hi Pali, > > > > > > > > O

Re: [PATCH v4 1/2] efi_loader: Avoid overwriting previous outputs on console screen clearing

2023-01-18 Thread Heinrich Schuchardt
Am 18. Januar 2023 21:58:42 MEZ schrieb Jan Kiszka : >On 18.01.23 21:56, Heinrich Schuchardt wrote: >> >> >> Am 18. Januar 2023 21:44:58 MEZ schrieb Jan Kiszka : >>> From: Jan Kiszka >>> >>> Before clearing the screen, ensure that no previous output of firmware >>> or UEFI programs will be ov

Re: [PATCH v4 1/2] efi_loader: Avoid overwriting previous outputs on console screen clearing

2023-01-18 Thread Jan Kiszka
On 18.01.23 21:56, Heinrich Schuchardt wrote: > > > Am 18. Januar 2023 21:44:58 MEZ schrieb Jan Kiszka : >> From: Jan Kiszka >> >> Before clearing the screen, ensure that no previous output of firmware >> or UEFI programs will be overwritten on serial devices or other >> streaming consoles. This

Re: [PATCH v4 2/2] efi_loader: Set default console colors on efi_cout_clear_screen if needed

2023-01-18 Thread Heinrich Schuchardt
Am 18. Januar 2023 21:44:59 MEZ schrieb Jan Kiszka : >From: Jan Kiszka > >Ensures a consistent background color of the whole screen for succeeding >outputs as both demanded by the spec and implemented in EDK2 as well. > >Signed-off-by: Jan Kiszka Reviewed-by: Heinrich Schuchard >--- > lib/

Re: [PATCH v4 1/2] efi_loader: Avoid overwriting previous outputs on console screen clearing

2023-01-18 Thread Heinrich Schuchardt
Am 18. Januar 2023 21:44:58 MEZ schrieb Jan Kiszka : >From: Jan Kiszka > >Before clearing the screen, ensure that no previous output of firmware >or UEFI programs will be overwritten on serial devices or other >streaming consoles. This helps generating complete boot logs. > >Tested regarding mu

[PATCH v4 1/2] efi_loader: Avoid overwriting previous outputs on console screen clearing

2023-01-18 Thread Jan Kiszka
From: Jan Kiszka Before clearing the screen, ensure that no previous output of firmware or UEFI programs will be overwritten on serial devices or other streaming consoles. This helps generating complete boot logs. Tested regarding multi-output against qemu-x86_defconfig. Still, there were remain

[PATCH v4 0/2] efi_loader: console improvements

2023-01-18 Thread Jan Kiszka
Changes to earlier versions: - dropped merged "Let networking support depend on NETDEVICES" - made scrolling on clear-screen a Kconfig option Jan Jan Kiszka (2): efi_loader: Avoid overwriting previous outputs on console screen clearing efi_loader: Set default console colors on efi_cout

[PATCH v4 2/2] efi_loader: Set default console colors on efi_cout_clear_screen if needed

2023-01-18 Thread Jan Kiszka
From: Jan Kiszka Ensures a consistent background color of the whole screen for succeeding outputs as both demanded by the spec and implemented in EDK2 as well. Signed-off-by: Jan Kiszka --- lib/efi_loader/efi_console.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/efi_loader/ef

[PATCH] ifwitool: Fix member access

2023-01-18 Thread Simon Glass
On a second and third look, a recent patch seems to be writing to the wrong place - updating offsets from the address of the pointer instead of what the pointer points to. Fix it. Signed-off-by: Simon Glass Fixes: 2d1b2ac13fe ("tool: ifwitool: Fix buffer overflow") --- tools/ifwitool.c | 40 ++

Re: [PATCH 1/1] configs: enable CONFIG_LEGACY_IMAGE_FORMAT on sandbox

2023-01-18 Thread Simon Glass
Hi Heinrich, On Sat, 14 Jan 2023 at 18:31, Simon Glass wrote: > > On Sat, 14 Jan 2023 at 04:43, Heinrich Schuchardt > wrote: > > > > The sandbox should be able to execute scripts in legacy U-Boot image format > > for testing. > > > > Signed-off-by: Heinrich Schuchardt > > --- > > configs/sandb

Re: [PATCH 4/4] rockchip: Add sha256 hash to FIT images

2023-01-18 Thread Simon Glass
On Tue, 17 Jan 2023 at 15:55, Jonas Karlman wrote: > > Add sha256 hash to FIT images when CONFIG_SPL_FIT_SIGNATURE=y. > > Signed-off-by: Jonas Karlman > --- > arch/arm/dts/rockchip-u-boot.dtsi | 20 > 1 file changed, 20 insertions(+) > Reviewed-by: Simon Glass

Re: [PATCH 3/4] binman: Add subnodes to the nodes generated by split-elf

2023-01-18 Thread Simon Glass
Hi Jonas, On Tue, 17 Jan 2023 at 15:55, Jonas Karlman wrote: > > Add hash and signature nodes to generated nodes by split-elf operation. > > Signed-off-by: Jonas Karlman > --- > tools/binman/etype/fit.py | 9 +++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/tools/bin

Re: [PATCH 1/4] binman: Add support for align argument to mkimage tool

2023-01-18 Thread Simon Glass
Hi Jonas, On Tue, 17 Jan 2023 at 15:54, Jonas Karlman wrote: > > Add support to indicate what alignment to use for the FIT and its > external data. Pass the alignment to mkimage via the -B flag. > > Signed-off-by: Jonas Karlman > --- > tools/binman/btool/mkimage.py | 5 - > tools/binman/ety

Re: [PATCH 2/4] rockchip: Align FIT image data to SD/MMC block length

2023-01-18 Thread Simon Glass
On Tue, 17 Jan 2023 at 15:54, Jonas Karlman wrote: > > SPL load FIT images by reading the data aligned to block length. > Block length aligned image data is read directly to the load address. > Unaligned image data is written to an offset of the load address and > then the data is memcpy to the lo

Re: [PATCH 3/3] pinctrl: fix docstring

2023-01-18 Thread Simon Glass
On Wed, 18 Jan 2023 at 05:13, Michael Walle wrote: > > Fix the copy and paste error. > > Signed-off-by: Michael Walle > --- > drivers/pinctrl/pinctrl-uclass.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass

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

2023-01-18 Thread Simon Glass
Hi Svyatoslav, On Wed, 18 Jan 2023 at 01:44, Svyatoslav Ryhel wrote: > > 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

Re: [PATCH 1/7] iommu: Add DMA mapping operations

2023-01-18 Thread Simon Glass
Hi Mark, On Tue, 17 Jan 2023 at 15:04, Mark Kettenis wrote: > > In order to support IOMMUs in non-bypass mode we need device ops > to map and unmap DMA memory. The map operation enters a mapping > for a region specified by CPU address and size into the translation > table of the IOMMU and return

Re: [PATCH 1/3] pinctrl: don't fall back to pinctrl_select_state_simple()

2023-01-18 Thread Simon Glass
On Wed, 18 Jan 2023 at 06:45, Marek Vasut wrote: > > On 1/18/23 13:12, Michael Walle wrote: > > If CONFIG_PINCTRL_FULL is enabled, never fall back to the simple > > implementation. pinctrl_select_state() is called for each device and it > > is expected to fail. A fallback to the simple imeplementa

Re: [PATCH] tee: optee: fix a print error on rng probing

2023-01-18 Thread Ilias Apalodimas
Thanks Patrick, On Wed, 18 Jan 2023 at 18:53, Patrick DELAUNAY wrote: > > Hi > > On 1/18/23 16:38, Ilias Apalodimas wrote: > > If we fail to probe the optee-rng device, we print a wrong message > > referring to the firmware tpm. > > > > Signed-off-by: Ilias Apalodimas > > --- > > drivers/tee/o

Re: [PATCH v2] ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository

2023-01-18 Thread Pali Rohár
On Tuesday 17 January 2023 17:18:43 Tony Dinh wrote: > Hi Pali, > > On Tue, Jan 17, 2023 at 1:25 PM Pali Rohár wrote: > > > > Hello! > > > > On Tuesday 17 January 2023 13:02:46 Tony Dinh wrote: > > > Hi Pali, > > > > > > On Tue, Jan 17, 2023 at 12:35 AM Pali Rohár wrote: > > > > > > > > Hello! T

[PATCH] net: ipv6: fix alignment errors on ARM

2023-01-18 Thread Sergei Antonov
Commands "ping6" and "tftpboot ... -ipv6" did not work on ARM because machine code expects 4-byte alignment and some structures from net6.h are not aligned in memory. Fix by adding __packed, since it is already used in this file. Signed-off-by: Sergei Antonov --- include/net6.h | 6 +++--- 1 fi

Re: [PATCH v6 2/2] schemas: Add schema for U-Boot driver model 'phase tags'

2023-01-18 Thread Simon Glass
+U-Boot Mailing List Hi Rob, On Fri, 13 Jan 2023 at 14:00, Simon Glass wrote: > > Hi Rob, > > On Fri, 13 Jan 2023 at 13:58, Simon Glass wrote: > > > > U-Boot has some particular challenges with device tree and devices: > > > > - U-Boot has multiple build phases, such as a Secondary Program Load

Re: [PATCH 1/1] doc: man-page for bdinfo

2023-01-18 Thread Simon Glass
Hi Heinrich, On Tue, 17 Jan 2023 at 14:39, Heinrich Schuchardt wrote: > > > > On 1/17/23 21:30, Simon Glass wrote: > > On Sun, 15 Jan 2023 at 05:00, Heinrich Schuchardt > > wrote: > >> > >> Provide a man-page for the bdinfo command > >> > >> Signed-off-by: Heinrich Schuchardt > >> --- > >> do

Re: [PATCH] tee: optee: fix a print error on rng probing

2023-01-18 Thread Patrick DELAUNAY
Hi On 1/18/23 16:38, Ilias Apalodimas wrote: If we fail to probe the optee-rng device, we print a wrong message referring to the firmware tpm. Signed-off-by: Ilias Apalodimas --- drivers/tee/optee/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tee/optee/c

[PATCH] .mailmap: update e-mail address for Eugen Hristev

2023-01-18 Thread Eugen Hristev
Update e-mail address. Signed-off-by: Eugen Hristev --- Hello Tom, My old address is bouncing now, here is my new e-mail address. This is to avoid having emails sent to /dev/null , but instead actually reach me Thanks! Eugen .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailma

Re: [PATCH] rockchip: derive GPIO bank from alias if available

2023-01-18 Thread John Keeping
On Tue, Jan 17, 2023 at 08:52:22PM +0100, Johan Jonker wrote: > > > On 1/17/23 19:15, John Keeping wrote: > > Upstream device trees now use standard node names like "gpio@ff..." but > > the rk_gpio driver expects a name like "gpio0@ff..." (note the index > > before the @). > > > > This is not a

[PATCH] efi_loader: silence 'Failed to load EFI variables' if the file is missing

2023-01-18 Thread Ilias Apalodimas
When we try to load EFI variables from a file in the ESP partition and the file is missing We print a scary error looking like => printenv -e ** Unable to read file ubootefi.var ** Failed to load EFI variables This is not an error though since the file wasn't there to begin with. So silence the wa

Re: [PATCH v3] console: usb: kbd: Limit poll frequency to improve performance

2023-01-18 Thread Filip Žaludek
Hi Michal, thanks for testing! Do you consider keyboard as working once it is detected without 'usb_kbd usb_kbd: Timeout poll on interrupt endpoint', or judging from subsequent typing? Note that issue is reproducible only in about 20% of reboots. For me I can always enter 'U-Boot>' shell, b

Re: [PATCH v8 03/10] arm_ffa: introduce Arm FF-A low-level driver

2023-01-18 Thread Sudeep Holla
On Wed, Jan 18, 2023 at 08:59:32AM -0500, Tom Rini wrote: > To be clear, if the position is that "this is what everyone else will > use, really" then yes, we'll follow this in U-Boot. Well, that's difficult question to provide an assertive answer TBH. I don't know all the projects using FF-A for e

[PATCH] tee: optee: fix a print error on rng probing

2023-01-18 Thread Ilias Apalodimas
If we fail to probe the optee-rng device, we print a wrong message referring to the firmware tpm. Signed-off-by: Ilias Apalodimas --- drivers/tee/optee/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c index a813a84a4f1

Re: [PATCHv3 4/5] fwu: DeveloperBox: add support for FWU

2023-01-18 Thread Michal Simek
On 1/9/23 02:07, Jassi Brar wrote: Add code to support FWU_MULTI_BANK_UPDATE. The platform does not have gpt-partition storage for Banks and MetaData, rather it used SPI-NOR backed mtd regions for the purpose. Signed-off-by: Jassi Brar --- board/socionext/developerbox/Makefile | 1 +

Re: [PATCHv3 5/5] tools: Add mkfwumdata tool for FWU metadata image

2023-01-18 Thread Michal Simek
On 1/9/23 02:07, Jassi Brar wrote: From: Masami Hiramatsu Add 'mkfwumdata' tool to generate FWU metadata image for the meta-data partition to be used in A/B Update imeplementation. Signed-off-by: Masami Hiramatsu Signed-off-by: Sughosh Ganu Signed-off-by: Jassi Brar --- ./scripts/check

Re: [PATCHv3 0/5] FWU: Handle meta-data in common code

2023-01-18 Thread Michal Simek
On 1/18/23 15:13, Jassi Brar wrote: On Wed, Jan 18, 2023 at 7:28 AM Michal Simek wrote: Hi, On 1/2/23 19:25, Jassi Brar wrote: The patchset reduces ~400 lines of code, while keeping the functionality same and making meta-data operations much faster (by using cached structures). Issue:

Re: [PATCHv3 1/5] FWU: Add FWU metadata access driver for MTD storage regions

2023-01-18 Thread Michal Simek
On 1/9/23 02:06, Jassi Brar wrote: From: Sughosh Ganu In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, on a separate region. Add a driver for reading from and writing to the metadata when the updatable images and the metadata

Re: [PATCHv3 0/5] FWU: Handle meta-data in common code

2023-01-18 Thread Tom Rini
On Wed, Jan 18, 2023 at 08:13:01AM -0600, Jassi Brar wrote: > On Wed, Jan 18, 2023 at 7:28 AM Michal Simek wrote: > > > > Hi, > > > > On 1/2/23 19:25, Jassi Brar wrote: > > > The patchset reduces ~400 lines of code, while keeping the functionality > > > same and making > > > meta-data operations

Re: [PATCHv2 05/19] dm: ns16550: Restore how we define UART_REG

2023-01-18 Thread Quentin Schulz
Hi Tom, On 1/17/23 23:10, Tom Rini wrote: Prior to commit 9591b63531fa ("Convert CONFIG_SYS_NS16550_MEM32 et al to Kconfig") we had defined CONFIG_SYS_NS16550_REG_SIZE to -1 with DM_SERIAL such that we would then have a size 0 character array. This resulted in functionally no padding. The confus

Re: [PATCHv3 0/5] FWU: Handle meta-data in common code

2023-01-18 Thread Jassi Brar
On Wed, Jan 18, 2023 at 7:28 AM Michal Simek wrote: > > Hi, > > On 1/2/23 19:25, Jassi Brar wrote: > > The patchset reduces ~400 lines of code, while keeping the functionality > > same and making > > meta-data operations much faster (by using cached structures). > > > > Issue: > > meta-data cop

Re: [PATCH v8 03/10] arm_ffa: introduce Arm FF-A low-level driver

2023-01-18 Thread Tom Rini
On Wed, Jan 18, 2023 at 01:46:54PM +, Sudeep Holla wrote: > On Wed, Jan 18, 2023 at 12:49 PM Tom Rini wrote: > > > > > I guess the problem comes down to, can we have one discovery method that > > everyone shares, or do we have to let everyone invent a new discovery > > method every time? > >

Re: [PATCH v8 03/10] arm_ffa: introduce Arm FF-A low-level driver

2023-01-18 Thread Sudeep Holla
On Wed, Jan 18, 2023 at 12:49 PM Tom Rini wrote: > > I guess the problem comes down to, can we have one discovery method that > everyone shares, or do we have to let everyone invent a new discovery > method every time? No one needs to invent any discovery method every time if the firmware speci

Re: [PATCH 1/3] pinctrl: don't fall back to pinctrl_select_state_simple()

2023-01-18 Thread Marek Vasut
On 1/18/23 13:12, Michael Walle wrote: If CONFIG_PINCTRL_FULL is enabled, never fall back to the simple implementation. pinctrl_select_state() is called for each device and it is expected to fail. A fallback to the simple imeplementation doesn't make much sense. To keep the return code consisten

Re: [PATCH 2/3] pinctrl: get rid of some ifdeffery

2023-01-18 Thread Marek Vasut
On 1/18/23 14:10, Michael Walle wrote: Am 2023-01-18 14:08, schrieb Marek Vasut: On 1/18/23 13:43, Michael Walle wrote: Am 2023-01-18 13:18, schrieb Marek Vasut: On 1/18/23 13:12, Michael Walle wrote: [...] @@ -411,12 +405,11 @@ static int __maybe_unused pinctrl_post_bind(struct udevice *de

Re: [PATCHv3 0/5] FWU: Handle meta-data in common code

2023-01-18 Thread Michal Simek
Hi, On 1/2/23 19:25, Jassi Brar wrote: The patchset reduces ~400 lines of code, while keeping the functionality same and making meta-data operations much faster (by using cached structures). Issue: meta-data copies (primary and secondary) are being handled by the backend/storage layer inste

Re: [PATCHv3 3/5] dt: fwu: developerbox: enable fwu banks and mdata regions

2023-01-18 Thread Michal Simek
On 1/9/23 02:07, Jassi Brar wrote: Specify Bank-0/1 and fwu metadata mtd regions. Signed-off-by: Jassi Brar Acked-by: Ilias Apalodimas --- .../synquacer-sc2a11-developerbox-u-boot.dtsi | 22 ++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/sy

Re: [PATCH 2/3] pinctrl: get rid of some ifdeffery

2023-01-18 Thread Michael Walle
Am 2023-01-18 14:08, schrieb Marek Vasut: On 1/18/23 13:43, Michael Walle wrote: Am 2023-01-18 13:18, schrieb Marek Vasut: On 1/18/23 13:12, Michael Walle wrote: [...] @@ -411,12 +405,11 @@ static int __maybe_unused pinctrl_post_bind(struct udevice *dev)   }     /* - * If set_st

Re: [PATCH] ns16550: Fix DM serial operation with non-DM SPL

2023-01-18 Thread Sergei Antonov
On Tue, 17 Jan 2023 at 19:14, Andre Przywara wrote: > > On Tue, 17 Jan 2023 16:12:54 +0300 > Sergei Antonov wrote: > > Hi Sergei, > > > On Tue, 17 Jan 2023 at 15:10, Andre Przywara wrote: > > > > > -#if CONFIG_IS_ENABLED(DM_SERIAL) && !defined(CONFIG_SYS_NS16550_REG_SIZE) > > > +#if CONFIG_IS_EN

Re: [PATCH 2/3] pinctrl: get rid of some ifdeffery

2023-01-18 Thread Marek Vasut
On 1/18/23 13:43, Michael Walle wrote: Am 2023-01-18 13:18, schrieb Marek Vasut: On 1/18/23 13:12, Michael Walle wrote: [...] @@ -411,12 +405,11 @@ static int __maybe_unused pinctrl_post_bind(struct udevice *dev)   }     /* - * If set_state callback is set, we assume this pinctrl

Re: [PATCH v8 03/10] arm_ffa: introduce Arm FF-A low-level driver

2023-01-18 Thread Tom Rini
On Tue, Jan 17, 2023 at 08:51:51PM -0600, Rob Herring wrote: > On Thu, Jan 12, 2023 at 5:43 PM Simon Glass wrote: > > > > Hi Rob, > > > > On Wed, 11 Jan 2023 at 19:10, Rob Herring wrote: > > > > > > On Mon, Dec 19, 2022 at 1:21 PM Simon Glass wrote: > > > > > > > > Hi Abdellatif, > > > > > > > >

Re: [PATCH 2/3] pinctrl: get rid of some ifdeffery

2023-01-18 Thread Michael Walle
Am 2023-01-18 13:18, schrieb Marek Vasut: On 1/18/23 13:12, Michael Walle wrote: [...] @@ -411,12 +405,11 @@ static int __maybe_unused pinctrl_post_bind(struct udevice *dev) } /* - * If set_state callback is set, we assume this pinctrl driver is the - * full implementation.

Re: [PATCH 2/3] pinctrl: get rid of some ifdeffery

2023-01-18 Thread Marek Vasut
On 1/18/23 13:12, Michael Walle wrote: [...] @@ -411,12 +405,11 @@ static int __maybe_unused pinctrl_post_bind(struct udevice *dev) } /* -* If set_state callback is set, we assume this pinctrl driver is the -* full implementation. In this case, its child nodes s

[PATCH 3/3] pinctrl: fix docstring

2023-01-18 Thread Michael Walle
Fix the copy and paste error. Signed-off-by: Michael Walle --- drivers/pinctrl/pinctrl-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-uclass.c b/drivers/pinctrl/pinctrl-uclass.c index e6cd0889b0..23a1504716 100644 --- a/drivers/pinctrl/pinctr

[PATCH 2/3] pinctrl: get rid of some ifdeffery

2023-01-18 Thread Michael Walle
Don't define an empty version for pinconfig_post_bind(). Just guard the call and let the linker garbage collection do the rest. This way, we also don't have to do any guesswork. Signed-off-by: Michael Walle --- drivers/pinctrl/pinctrl-uclass.c | 17 + 1 file changed, 5 insertions

[PATCH 1/3] pinctrl: don't fall back to pinctrl_select_state_simple()

2023-01-18 Thread Michael Walle
If CONFIG_PINCTRL_FULL is enabled, never fall back to the simple implementation. pinctrl_select_state() is called for each device and it is expected to fail. A fallback to the simple imeplementation doesn't make much sense. To keep the return code consistent, we need to change the -EINVAL (which w

[PATCH] arm64: zynqmp: Add support for Kria K24 SOM

2023-01-18 Thread Michal Simek
SOM itself from PS point of view is using the same configuration as K26 that's why reuse that files and only change compatible strings. The reason for creating own set of files is just in case when versions start to diverge because of HW change, supply chain issue, etc. Signed-off-by: Michal Sime

[PATCH] arm64: zynqmp: Fill model name for SOM CCs

2023-01-18 Thread Michal Simek
When U-Boot do DTB reselection origin model for SOM is used and from log it is not visible if DTB was switched or not. That's why add model directly to CC (carrier card) to show new model if reselection was successful. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-sck-kr-g-revA.dts | 1 +

[PATCH] arm64: versal: Remove xilinx_versal_mini_qspi.h configs

2023-01-18 Thread Michal Simek
The commit eaf6ea6a1dc1 ("Migrate CUSTOM_SYS_INIT_SP_ADDR to Kconfig using system-constants.h") moved custom init stack pointer address to Kconfig which ends up in situation that xilinx_versal_mini_qspi.h is not needed anymore. That's why remove the file and move defconfigs directly to xilinx_versa

Re: [PATCH] xilinx: common: Add support for partial string match in board_fit_config_name_match()

2023-01-18 Thread Michal Simek
On 1/6/23 09:38, Michal Simek wrote: Board name in FIT image can use U-Boot regular expressions SLRE to instruct U-Boot to handle all revisions for certain board. For example when name (description property) is saying "zynqmp-zcu104-revA" only description with this name is selected. When zynqm

[PATCH] arm64: zynqmp: Remove xilinx_zynqmp_mini_emmc/qspi.h configs

2023-01-18 Thread Michal Simek
The commit eaf6ea6a1dc1 ("Migrate CUSTOM_SYS_INIT_SP_ADDR to Kconfig using system-constants.h") moved custom init stack pointer address to Kconfig which ends up in situation that xilinx_zynqmp_mini_emmc/qspi.h are not needed anymore. That's why remove files and move defconfigs directly to xilinx_zy

Re: [PATCH v2] ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository

2023-01-18 Thread Stefan Roese
Hi Tony, On 1/17/23 22:02, Tony Dinh wrote: Hi Pali, On Tue, Jan 17, 2023 at 12:35 AM Pali Rohár wrote: Hello! Thank you for update. It is much better. On Monday 16 January 2023 21:34:39 Tony Dinh wrote: This syncs drivers/ddr/marvell/a38x/ with the master branch of repository ht

Re: [PATCH] ARM: dts: imx8ulp-evk: Fix iomuxc issue

2023-01-18 Thread Marcel Ziswiler
On Wed, 2023-01-18 at 17:31 +0800, Ye Li wrote: > The property fsl,mux_mask is deleted by commit ed7bda5 (imx8ulp: > synchronise device tree with linux). This causes the pinctrl > driver not work on 8ULP, so fail to print any log. > Fixes: commit ed7bda57104e ("imx8ulp: synchronise device tree wi

Re: [EXT] Re: [PATCH] ARM: dts: imx8mm-evk: Fix wrong PMIC device for new EVK board

2023-01-18 Thread Ye Li
Hi Marcel, On Tue, 2023-01-17 at 09:16 +, Marcel Ziswiler wrote: > Caution: EXT Email > > Hi Ye Li > > On Tue, 2023-01-17 at 13:34 +0800, Ye Li wrote: > > > > In commit 48ddafd (imx8mm_evk: Switch to new imx8mm evk board), > > the iMX8MM EVK support was updated to new EVK board which is > >

[PATCH] ARM: dts: imx8ulp-evk: Fix iomuxc issue

2023-01-18 Thread Ye Li
The property fsl,mux_mask is deleted by commit ed7bda5 (imx8ulp: synchronise device tree with linux). This causes the pinctrl driver not work on 8ULP, so fail to print any log. Signed-off-by: Ye Li --- arch/arm/dts/imx8ulp-evk-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/

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

2023-01-18 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 Reviewed-by: Simon Glass --- arch/arm/Kconfig | 1

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

2023-01-18 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 Tes

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

2023-01-18 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 Eckel

  1   2   >