[PATCH 2/2] ARM: dts: stm32mp: alignment with v6.3-rc3

2023-04-18 Thread Patrick Delaunay
Device tree alignment with Linux kernel v6.3-rc3: - ARM: dts: stm32: add i2c nodes into stm32mp131.dtsi - ARM: dts: stm32: enable i2c1 and i2c5 on stm32mp135f-dk.dts - ARM: dts: stm32: add spi nodes into stm32mp131.dtsi - ARM: dts: stm32: add pinctrl and disabled spi5 node in stm32mp135f-dk - ARM:

[PATCH 0/2] ARM: dts: stm32mp: alignment with v6.3-rc3

2023-04-18 Thread Patrick Delaunay
Alignment with Linux device tree v6.3-rc3 for STM32MP13x and STM32MP15x STMicroelectronics board and common files, SoC and pincontrol dtsi. I also include the new dt-bindings files video-interfaces.h as it is done in Linux kernel. Patrick Delaunay (2): media: dt-bindings: media: Add macros

[PATCH 1/2] media: dt-bindings: media: Add macros for video interface bus types

2023-04-18 Thread Patrick Delaunay
Add a new dt-bindings/media/video-interfaces.h header that defines macros corresponding to the bus types from media/video-interfaces.yaml. This allows avoiding hardcoded constants in device tree sources. Based on linux commit f7eeb0084593 ("media: dt-bindings: media: Add macros for video

[PATCH v2 11/18] x86: Set up LPC only after relocation

2023-04-18 Thread Simon Glass
Probing LPC can cause PCI enumeration to take place, which significantly increases pre-relocation memory usage. Also, LPC is somtimes enabled directly by SPL. Adjust the logic to probe the LPC only after relocation. This allows chromebook_link64 to start up without a much larger

[PATCH v2 13/18] x86: Return mtrr_add_request() to its old purpose

2023-04-18 Thread Simon Glass
This function used to be for adding a list of requests to be actioned on relocation. Revert it back to this purpose, to avoid problems with boards which need control of their MTRRs (i.e. those which don't use FSP). The mtrr_set_next_var() function is available when the next free variable-MTRR

[PATCH v2 12/18] x86: Tidy up address for loading U-Boot from SPL

2023-04-18 Thread Simon Glass
Use the binman symbols for this, to avoid hard-coding the value. We could use CONFIG_X86_OFFSET_U_BOOT for the address, but it seems better to obtain the offset and size through the same mechanism. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to tidy up address for loading

[PATCH v2 14/18] x86: spl: Avoid using init_cache_f_r() from SPL

2023-04-18 Thread Simon Glass
This function is used by U-Boot proper. It does not set up MTRRs when SPL is enabled, but we do want this done when it is called from SPL. In fact it is confusing to use the same function from SPL, since there are require a few conditions there. All init_cache_f_r() really does is commit the

[PATCH v2 10/18] x86: spl: Show debugging for BSS

2023-04-18 Thread Simon Glass
Show the area of memory cleared for BSS, when debugging is enabled. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/spl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c index bdf57ef7b5bd..eb0af219ae29 100644

Re: [PATCH v2 04/18] sf: Rename spi-nor-tiny functions

2023-04-18 Thread Raghavendra, Vignesh
On 4/18/2023 9:00 PM, Simon Glass wrote: > The 'tiny' SPI nor functions have the same name as their big brothers, > which can be confusing. Use different names so it is clear which > version is in the image. > > Signed-off-by: Simon Glass > --- > > (no changes since v1) > >

[PATCH v2 17/17] mmc: rockchip_sdhci: Limit number of blocks read in a single command

2023-04-18 Thread Jonas Karlman
Using DMA to load TF-A into SRAM fails when booting from eMMC on RK3588. ## Checking hash(es) for Image atf-3 ... sha256 error! Bad hash value for 'hash' hash node in 'atf-3' image node spl_load_simple_fit: can't load image loadables index 2 (ret = -1) mmc_load_image_raw_sector: mmc block

[PATCH v2 16/17] mmc: sdhci: Allow disabling of SDMA in SPL

2023-04-18 Thread Jonas Karlman
From: Peter Geis Rockchip emmc devices have a similar issue to Rockchip dwmmc devices, where performing DMA to SRAM later causes issues with suspend/resume. Allow us to toggle SDMA in SPL for sdhci similar to ADMA support, so we can ensure DMA is not used when loading the SRAM code.

[PATCH v2 15/17] clk: rockchip: rk3588: Add limited TMCLK_EMMC clock support

2023-04-18 Thread Jonas Karlman
The device tree sdhci node reference the TMCLK_EMMC clock, add limited support this clock to rk3588 cru driver. Fixes probe of sdhci driver. Signed-off-by: Jonas Karlman --- v2: - No change drivers/clk/rockchip/clk_rk3588.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH 1/1] sandbox: enable CONFIG_EFI_CAPSULE_AUTHENTICATE

2023-04-18 Thread Simon Glass
Hi Heinrich, On Fri, 14 Apr 2023 at 02:39, Heinrich Schuchardt wrote: > > Without CONFIG_EFI_CAPSULE_AUTHENTICATE=y the following tests are skipped: > > * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_fit.py > * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_raw.py > >

Re: [PATCH v11 07/10] arm_ffa: introduce sandbox test cases for UCLASS_FFA

2023-04-18 Thread Simon Glass
On Wed, 12 Apr 2023 at 03:43, Abdellatif El Khlifi wrote: > > Add functional test cases for the FF-A support > > These tests rely on the FF-A sandbox emulator and FF-A > sandbox driver which help in inspecting the FF-A communication. > > Signed-off-by: Abdellatif El Khlifi > Cc: Tom Rini > Cc:

Re: [PATCH v2] spl: fit: Report fdt error for loading u-boot

2023-04-18 Thread Simon Glass
Hi, On Tue, 11 Apr 2023 at 04:24, Su, Bao Cheng wrote: > > Dear all, > > Any updates or new comments on this? How should I proceed? This expands error reporting, so I think this is better than what we have. Reviewed-by: Simon Glass More comments below. > > BRs/Baocheng Su > > On Thu,

Re: [PATCH v3 08/25] menu: Make use of CLI character processing

2023-04-18 Thread Simon Glass
Hi Daniel, On Tue, 11 Apr 2023 at 14:19, Daniel Golle wrote: > > On Fri, Jan 06, 2023 at 08:52:26AM -0600, Simon Glass wrote: > > Avoid duplicating some of the escape-sequence processing here and use the > > CLI function instead. > > > > Signed-off-by: Simon Glass > > --- > > > > [...] > > diff

Re: [PATCH v11 08/10] arm_ffa: introduce armffa command Sandbox test

2023-04-18 Thread Simon Glass
Hi Abdellatif, On Wed, 12 Apr 2023 at 03:43, Abdellatif El Khlifi wrote: > > Add Sandbox test for the armffa command > > Signed-off-by: Abdellatif El Khlifi > Reviewed-by: Simon Glass > Cc: Tom Rini > Cc: Simon Glass > Cc: Ilias Apalodimas > Cc: Jens Wiklander > > --- > Changelog: >

Re: [PATCH v2 0/1] meson: Demonstration of using binman to produce the image

2023-04-18 Thread Simon Glass
Hi Da, On Fri, 7 Apr 2023 at 21:34, Da Xue wrote: > > On Wed, Apr 5, 2023 at 2:39 PM Simon Glass wrote: > > > > Hi Christian, > > > > On Mon, 3 Apr 2023 at 20:10, Christian Hewitt > > wrote: > > > > > > > On 2 Apr 2023, at 6:41 am, Simon Glass wrote: > > > > > > > > Hi Mark, > > > > > > > >

Re: [PATCH 1/1] sandbox: correct posix_types.h define

2023-04-18 Thread Simon Glass
On Mon, 17 Apr 2023 at 01:09, Heinrich Schuchardt wrote: > > arch/arm/include/asm/posix_types.h and > arch/sandbox/include/asm/posix_types.h should use different defines. > > Add SPDX header. > > Signed-off-by: Heinrich Schuchardt > --- > arch/sandbox/include/asm/posix_types.h | 7 --- > 1

Re: [PATCH 1/6] misc: add Qualcomm GENI SE QUP device driver

2023-04-18 Thread Simon Glass
Hi Vladimir, On Wed, 12 Apr 2023 at 06:45, Vladimir Zapolskiy wrote: > > On 3/31/23 04:23, Konrad Dybcio wrote: > > > > > > On 30.03.2023 21:47, Vladimir Zapolskiy wrote: > >> This change adds a Qualcomm GENI SE QUP device driver as a wrapper for > >> actually enabled and used serial devices

Re: Support for NXP S32K3 Family

2023-04-18 Thread Simon Glass
Hi Ashok, On Fri, 14 Apr 2023 at 08:55, Ashok Kumar wrote: > > Hi Folks, > > > I am trying to build a u-boot boot-loader for my S32K344 board. > > Can you guys please help me, which defconf/config file is suitable for > my S32K344 board for building a u-boot binaries? If you look in MAINTAINERS

Re: [PATCH v8 00/13] bootstd: Convert rockchip and add various fixes and tweaks

2023-04-18 Thread Simon Glass
Hi Tom, On Wed, 12 Apr 2023 at 17:03, Simon Glass wrote: > > Hi Tom, > > On Sun, 9 Apr 2023 at 18:07, Tom Rini wrote: > > > > On Sun, Apr 09, 2023 at 08:18:31AM +1200, Simon Glass wrote: > > > Hi Tom, > > > [..] > > > > Because that's the key here, on the 564 platforms that use > > > >

Re: The u-boot supports i2c-over-hid?

2023-04-18 Thread Simon Glass
Hi, +Heinrich Schuchardt +Heiko Schocher On Thu, 13 Apr 2023 at 08:58, skyo...@126.com wrote: > > Hello, > I would like to ask whether i2c-over-hid is not supported under u-boot at > present. At present, we have this development need. I would like to ask > whether it is feasible to

Re: [PATCH v2 3/7] sandbox64: fix: return unsigned long in readq()

2023-04-18 Thread Simon Glass
On Mon, 17 Apr 2023 at 03:12, Abdellatif El Khlifi wrote: > > make readq return unsigned long > > readq should return 64-bit data > > Signed-off-by: Abdellatif El Khlifi > --- > arch/sandbox/cpu/cpu.c| 2 +- > arch/sandbox/include/asm/io.h | 2 +- > 2 files changed, 2 insertions(+), 2

Re: Reading file would overwrite reserved memory. Failed to load 'hello_world.bin - imx7d-pico - Uboot 2022.04

2023-04-18 Thread Simon Glass
Hi Neuber, On Mon, 10 Apr 2023 at 14:59, Neuber Sousa wrote: > > https://stackoverflow.com/questions/71073386/reading-file-would-overwrite-reserved-memory-failed-to-load-hello-world-bin > > Hi, > > I had this issue last year and I solved it via device tree. However, I used > Yocto hardknott and

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

2023-04-18 Thread Simon Glass
Hi Filip, On Tue, 11 Apr 2023 at 14:24, Filip Žaludek wrote: > > > > On 2/8/23 20:01, Mark Kettenis wrote: > >> Date: Wed, 8 Feb 2023 19:45:36 +0100 > >> From: Michal Suchánek > >> > >> Hello, > >> > >> On Wed, Jan 18, 2023 at 05:01:12PM +0100, Filip Žaludek wrote: > >>> > >>> > >>> Hi Michal,

Re: [PATCH v11 06/10] arm_ffa: introduce sandbox FF-A support

2023-04-18 Thread Simon Glass
Hi Abdellatif, On Wed, 12 Apr 2023 at 03:43, Abdellatif El Khlifi wrote: > > Emulate Secure World's FF-A ABIs and allow testing U-Boot FF-A support > > Features of the sandbox FF-A support: > > - Introduce an FF-A emulator > - Introduce an FF-A device driver for FF-A comms with emulated Secure

Re: [PATCH] ata: pci: enable bus mastering

2023-04-18 Thread Simon Glass
On Tue, 11 Apr 2023 at 06:55, Bin Meng wrote: > > On Tue, Apr 11, 2023 at 7:23 PM Christian Gmeiner > wrote: > > > > The non DM code path already would enable pci bus mastering. Do the > > same for the DM code path. > > > > Fixes AHCI problems I am seeing on an Intel Apollolake device. > > > >

Re: [PATCH] rmobile: avoid deprecated srec_cat flags

2023-04-18 Thread Marek Vasut
On 4/18/23 20:20, Ralph Siemsen wrote: The -l-e-constant flag has been deprecated since 2012. [1] Use the recommended replacement instead. [1] https://sourceforge.net/p/srecord/code/ci/1.59.D009/ Signed-off-by: Ralph Siemsen I'm afraid this needs some backward compatibility sreccat version

Re: [PATCH] scripts/Makefile.lib: also consider $(CONFIG_SYS_BOARD)-u-boot.dtsi

2023-04-18 Thread Simon Glass
Hi Rasmus, On Wed, 12 Apr 2023 at 05:05, Rasmus Villemoes wrote: > > On 19/03/2023 20.29, Simon Glass wrote: > > Hi Rasmus, > > > > On Sun, 19 Mar 2023 at 13:34, Rasmus Villemoes > > wrote: > >> > >> On 18/03/2023 21.20, Simon Glass wrote: > >> > > Now, the only way to be really sure

Re: [PATCH] doc:fix typo in 'mmc write' example

2023-04-18 Thread Simon Glass
On Sun, 9 Apr 2023 at 07:01, Alexander Shirokov wrote: > > In the 'mmc write' command example, it writes 16 blocks (0x10). But the > output contains 256 (0x100) blocks. This patch fixes the mismatch. > > Signed-off-by: Alexander Shirokov > --- > doc/usage/cmd/mmc.rst | 2 +- > 1 file changed, 1

Re: [PATCH] tools: env: update lock path in README

2023-04-18 Thread Simon Glass
On Wed, 12 Apr 2023 at 05:24, John Keeping wrote: > > Commit aeb40f1166 ("tools: env: use /run to store lockfile") updated the > path to the lockfile but did not update the documentation to match. > > Use the new path in the documentation. > > Fixes: aeb40f1166 ("tools: env: use /run to store

Re: [PATCH] docs: fix wrong proftool usage

2023-04-18 Thread Simon Glass
On Wed, 12 Apr 2023 at 13:05, Pavel Skripkin wrote: > > Guide shows incorrect usage of proftool, which is confusing. If proftool > is used w/o '-o' argument it complains like following > > $ ./sandbox/tools/proftool -m sandbox/System.map -t trace dump-ftrace > > trace.dat > Must provide trace

Re: [PATCH] sandbox: disable tracing before unmapping RAM

2023-04-18 Thread Simon Glass
On Wed, 12 Apr 2023 at 12:55, Pavel Skripkin wrote: > > Currently doing 'reset' command in sandbox with tracing enabled causes > SIGSEV > > ``` > Hit any key to stop autoboot: 0 > => > => > => reset > resetting ... > Segmentation fault (core dumped) > > ``` > > Tracing callback uses RAM buffer

Re: [PATCH v2 2/3] net: dhcp6: pxe: Add DHCP/PXE commands for IPv6

2023-04-18 Thread Simon Glass
Hi Sean, On Mon, 10 Apr 2023 at 18:03, Sean Edmond wrote: > > > On 2023-04-07 11:55 a.m., Simon Glass wrote: > > Hi Sean, > > > > On Fri, 7 Apr 2023 at 18:56, wrote: > >> From: Sean Edmond > >> > >> Adds commands to support DHCP and PXE with IPv6. > >> > >> New configs added: > >> - CMD_DHCP6

Re: [PATCH 16/30] ide: Avoid preprocessor for CONFIG_LBA48

2023-04-18 Thread Simon Glass
Hi Mattijs, On Tue, 28 Mar 2023 at 08:18, Mattijs Korpershoek wrote: > > On mar., mars 28, 2023 at 08:07, Simon Glass wrote: > > > Use IS_ENABLED() instead for all conditions. Add the 'lba48' flag into > > struct blk_desc always, since it uses very little space. Use a bool so > > the meaning is

Re: [PATCH v11 03/10] lib: uuid: introduce testcase for uuid_str_to_le_bin

2023-04-18 Thread Simon Glass
On Wed, 12 Apr 2023 at 03:43, Abdellatif El Khlifi wrote: > > provide a test case > > Signed-off-by: Abdellatif El Khlifi > Cc: Simon Glass > > --- > Changelog: > === > > v11: > > * use ut_asserteq_mem() > > MAINTAINERS | 5 + > test/lib/Makefile | 1 + >

Re: Reading file would overwrite reserved memory. Failed to load 'hello_world.bin - imx7d-pico - Uboot 2022.04

2023-04-18 Thread Simon Glass
Hi Neuber, On Sun, 9 Apr 2023 at 07:02, neuber sousa wrote: > > https://stackoverflow.com/questions/71073386/reading-file-would-overwrite-reserved-memory-failed-to-load-hello-world-bin > > > Hi, > > I had this issue last year and I solved it via device tree. However, I > used Yocto hardknott and

Re: [PATCH v3 3/3] test: eth: IPv6 network discovery unit test

2023-04-18 Thread Simon Glass
On Wed, 12 Apr 2023 at 10:10, wrote: > > From: Ehsan Mohandesi > > Test router advertisement validation and processing functions. > > Signed-off-by: Ehsan Mohandesi > --- > test/dm/eth.c | 88 > +++ > 1 file changed, 88 insertions(+)

Re: [PATCH 5/7] ARM: dts: rockchip: rk3588s-u-boot: add pcie2x1l2 with PHY

2023-04-18 Thread Jonas Karlman
Hi Eugen, On 2023-04-17 11:19, Eugen Hristev wrote: > From: Joseph Chen > > Add the node for pciE 2x1l 2 device together with the corresponding > combphy. > > Signed-off-by: Joseph Chen > [eugen.hris...@collabora.com: moved to -u-boot.dtsi, minor > adaptations] > Signed-off-by: Eugen Hristev

Re: [PATCH] dm: core: introduce uclass_get_device_by_of_path()

2023-04-18 Thread Simon Glass
Hi Rasmus, On Thu, 13 Apr 2023 at 09:17, Rasmus Villemoes wrote: > > There's quite a few instances of board-specific code doing > > off = fdt_path_offset(gd->fdt_blob, ...); > ... > ret = uclass_get_device_by_of_offset(..., off, ); > > looking for an eeprom or a pmic via some alias. Such

Re: [RESEND PATCH v2] netconsole: various improvements

2023-04-18 Thread Simon Glass
Hi Tony, On Mon, 3 Apr 2023 at 15:42, Tony Dinh wrote: > > Use CONFIG_CONSOLE_MUX for netconsole. When netconsole is running, > stdin/stdout/stder must be set to some primary console, in addtion to nc. > For example, stdin=serial,nc. Some recent Linux kernels will not boot with > only nc on the

Re: [PATCH v1 4/4] board: asus: grouper: add Google Nexus 7 (2012) support

2023-04-18 Thread Simon Glass
Hi Svyatoslav, On Wed, 12 Apr 2023 at 13:50, Svyatoslav Ryhel wrote: > > Nexus 7 is a mini tablet computer co-developed by Google and Asus > that runs the Android operating system. The Nexus 7 features a 7" > display, an Nvidia Tegra 3 quad-core chip, 1 GB of RAM and 8/16 GB > of internal

Re: [PATCH] uclass: add uclass_find_device_by_phandle_id() helper

2023-04-18 Thread Simon Glass
On Thu, 13 Apr 2023 at 09:16, Rasmus Villemoes wrote: > > The functions uclass_find_device_by_phandle() and > uclass_get_device_by_phandle_id() both loop over a given uclass > looking for a device with a given phandle. Factor that out to a common > helper. > > For now, there are no (known

Re: [PATCH v4 01/10] ARM: armv7: add non-SPL enable for Cortex SMPEN

2023-04-18 Thread Marek Vasut
On 4/18/23 16:32, Ralph Siemsen wrote: On Mon, Apr 17, 2023 at 4:21 PM Marek Vasut wrote: On 4/17/23 20:26, Ralph Siemsen wrote: On Mon, Apr 17, 2023 at 07:04:15PM +0200, Marek Vasut wrote: You could send this patch as a separate one. In fact I did that almost a year ago:

RE: [PATCH v1 0/4] Tegra: add ASUS/Google Nexus 7 (2012) support

2023-04-18 Thread Tom Warren
Thanks, Svyatoslav. I do all my testing on top of TOT u-boot-tegra/master, as that's what I'll use to send a PR to TomR. Before I apply any patches, I usually sync to TOT u-boot/master, via 'git rebase', then apply the patches, then build/test. But in this case, rebasing to TOT u-boot/master

Re: [PATCH 07/13] smegw01: Enable EMMC boot from multiple partitions

2023-04-18 Thread Pali Rohár
On Tuesday 18 April 2023 10:47:38 Fabio Estevam wrote: > From: Eduard Strehlau > > GPT Partition labels are used for determining the right > root filesystem to boot from. > > The U-Boot environment is configured to reside in the eMMC hardware > boot partition we are currently booted from. > >

Re: [PATCH] riscv: Support riscv64 image type

2023-04-18 Thread Simon Glass
Hi Rick, On Mon, 10 Apr 2023 at 01:26, Rick Chen wrote: > > Allow U-Boot to load 32 or 64 bits RISC-V Kernel Image > distinguishly. It helps to avoid someone maybe make a mistake > to run 32-bit U-Boot to load 64-bit kernel. > > Signed-off-by: Rick Chen > > --- > The patchset is based on

Re: [PATCH 03/13] input: Only reset the keyboard when running bare metal

2023-04-18 Thread Simon Glass
Hi Bin, On Thu, 23 Mar 2023 at 11:55, Simon Glass wrote: > > Hi Bin, > > On Tue, 21 Mar 2023 at 14:25, Bin Meng wrote: > > > > Hi Simon, > > > > On Tue, Mar 21, 2023 at 2:40 AM Simon Glass wrote: > > > > > > Hi Bin, > > > > > > On Mon, 20 Mar 2023 at 19:32, Bin Meng wrote: > > > > > > > > Hi

Re: [PATCH v4 3/6] tools: Add mkfwumdata tool for FWU metadata image

2023-04-18 Thread Simon Glass
Hi, On Fri, 14 Apr 2023 at 07:53, Michal Simek wrote: > > > > On 4/10/23 06:25, Jassi Brar wrote: > > On Wed, 29 Mar 2023 at 15:02, Simon Glass wrote: > >> > >> Hi, > >> > >> On Tue, 28 Mar 2023 at 10:16, wrote: > >>> > >>> From: Masami Hiramatsu > >>> > >>> Add 'mkfwumdata' tool to generate

Re: [PATCH 1/1] test: fix pylint warning for capsule tests

2023-04-18 Thread Simon Glass
Hi Heinrich, On Fri, 14 Apr 2023 at 02:34, Heinrich Schuchardt wrote: > > Fix pylint warnings like: > > * Class inherits from object > * Missing module description > * Missing class description > * First line of comment blank > * Superfluous imports > > Signed-off-by: Heinrich Schuchardt > ---

Re: [PATCH v3 2/3] test/py: IPv6 network discovery test

2023-04-18 Thread Simon Glass
Hi, On Wed, 12 Apr 2023 at 10:10, wrote: > > From: Ehsan Mohandesi > > Test the IPv6 network discovery feature if indicated by boardenv file. > > Signed-off-by: Ehsan Mohandesi > > Conflicts: > configs/sandbox64_defconfig > configs/sandbox_defconfig >

Re: [PATCH v3 00/16] x86: Various minor enhancements for coreboot

2023-04-18 Thread Simon Glass
Hi Bin, On Sun, 26 Mar 2023 at 22:16, Simon Glass wrote: > > This series includes some patches generated while getting U-Boot to boot > more nicely on Brya, an Adler Lake Chromebook. > > This includes: > - show the ACPI tables with 'acpi list' > - get the UART to work even if coreboot doesn't

Re: [PATCH v4 0/9] Add video damage tracking

2023-04-18 Thread Simon Glass
Hi Antonio, +Alex Graf +Heinrich Schuchardt On Fri, 14 Apr 2023 at 08:55, Antonio Murdaca wrote: > > Hi, this patch set applies cleanly on 2023.01 and solves the issue on the > rockpro64 where the grub would take forever to draw on the screen. Could we get some tests added for this so we can

Re: [PATCH v2 0/3] rpi: Convert to standard boot

2023-04-18 Thread Simon Glass
Hi Peter, On Sun, 2 Apr 2023 at 14:29, Simon Glass wrote: > > This series moves Raspberry Pi boards over to use standard boot. > > It also moves rpi over to use a text-based environment. Unfortunately it > is not possible to empty the header file due to several CFG options. > > Fix the repeated

Re: [PATCH 4/4] common: spl: spl: Remove video driver before u-boot proper

2023-04-18 Thread Simon Glass
Hi Nikhil, On Mon, 10 Apr 2023 at 02:21, Nikhil M Jain wrote: > > Add method to remove video driver before loading u-boot proper. When > bootstage changes from SPL to u-boot proper, noo method is called to > remove video driver, and at u-boot proper if video driver is not > enabled, the video

Re: [PATCH v11 05/10] arm_ffa: introduce armffa command

2023-04-18 Thread Simon Glass
Hi Abdellatif, On Wed, 12 Apr 2023 at 03:43, Abdellatif El Khlifi wrote: > > Provide armffa command showcasing the use of the U-Boot FF-A support > > armffa is a command showcasing how to invoke FF-A operations. > This provides a guidance to the client developers on how to > call the FF-A bus

Re: [PATCH v11 04/10] arm_ffa: introduce Arm FF-A support

2023-04-18 Thread Simon Glass
Hi Abdellatif, On Wed, 12 Apr 2023 at 03:43, Abdellatif El Khlifi wrote: > > Add Arm FF-A support implementing Arm Firmware Framework for Armv8-A v1.0 > > The Firmware Framework for Arm A-profile processors (FF-A v1.0) [1] > describes interfaces (ABIs) that standardize communication > between

Re: [PATCH v11 09/10] arm_ffa: efi: introduce FF-A MM communication

2023-04-18 Thread Simon Glass
Hi Abdellatif, On Wed, 12 Apr 2023 at 03:43, Abdellatif El Khlifi wrote: > > Add MM communication support using FF-A transport > > This feature allows accessing MM partitions services through > EFI MM communication protocol. MM partitions such as StandAlonneMM > or smm-gateway secure partitions

Re: using binman sym for size of u-boot itb

2023-04-18 Thread Simon Glass
Hi Rasmus, On Fri, 3 Mar 2023 at 03:25, Rasmus Villemoes wrote: > > On imx8mp, binman is heavily used for the assembling of all the various > pieces. Partly for my own future reference: > > There's u-boot-spl-ddr which is u-boot-spl.bin with the DDR firmware > blobs tacked on at the end, and the

Re: [PATCH] Revert "fdtdec: drop needlessly convoluted CONFIG_PHANDLE_CHECK_SEQ"

2023-04-18 Thread Simon Glass
Hi Rasmus, On Mon, 1 Aug 2022 at 07:13, Rasmus Villemoes wrote: > > On 31/07/2022 15.28, Tom Rini wrote: > > On Sat, Jul 30, 2022 at 07:27:26PM -0600, Simon Glass wrote: > >> Hi Tom, > >> > > >> Shall I pick it up for the upcoming release? > > > > I don't think we should pick up the revert as I

Re: [PATCH v5 4/4] test/py: efi_capsule: test for FMP versioning

2023-04-18 Thread Simon Glass
Hi Masahisa, On Mon, 10 Apr 2023 at 03:07, Masahisa Kojima wrote: > > This test covers FMP versioning for both raw and FIT image, > and both signed and non-signed capsule update. > > Signed-off-by: Masahisa Kojima > --- > Changes in v5: > - get aligned to the device tree based versioning > >

Re: [PATCH v2 3/3] net: share fastboot boot handle logic between transports

2023-04-18 Thread Simon Glass
On Wed, 12 Apr 2023 at 12:49, Dmitrii Merkurev wrote: > > Introduce reboot, boot and continue commands support to > TCP fastboot by moving existing UDP logic into the common module. > > Signed-off-by: Dmitrii Merkurev > Cc: Ying-Chun Liu (PaulLiu) > Cc: Simon Glass > Сс: Joe Hershberger > Сс:

[PATCH v2 2/2] mtd: cfi: change cfi_flash_bank_size() return type

2023-04-18 Thread Nuno Sá
Move return type to phys_size_t instead of plain unsigned long. Signed-off-by: Nuno Sá --- v2: * new patch. drivers/mtd/cfi_flash.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index 47a48d927201..9c030de3afef

Re: [PATCH v4 01/10] ARM: armv7: add non-SPL enable for Cortex SMPEN

2023-04-18 Thread Ralph Siemsen
On Mon, Apr 17, 2023 at 4:21 PM Marek Vasut wrote: > > On 4/17/23 20:26, Ralph Siemsen wrote: > > On Mon, Apr 17, 2023 at 07:04:15PM +0200, Marek Vasut wrote: > >> You could send this patch as a separate one. > > > > In fact I did that almost a year ago: > >

[PATCH v2 01/18] dm: Emit the arch_cpu_init_dm() even only before relocation

2023-04-18 Thread Simon Glass
The original function was only called once, before relocation. The new one is called again after relocation. This was not the intend of the original call. Fix this by renaming and updating the calling logic. With this, chromebook_link64 makes it through SPL. Fixes: 7fe32b3442f ("event: Convert

[PATCH v2 04/18] sf: Rename spi-nor-tiny functions

2023-04-18 Thread Simon Glass
The 'tiny' SPI nor functions have the same name as their big brothers, which can be confusing. Use different names so it is clear which version is in the image. Signed-off-by: Simon Glass --- (no changes since v1) drivers/mtd/spi/spi-nor-tiny.c | 16 1 file changed, 8

[PATCH v2 05/18] x86: ivybridge: Ensure LPC is available for GPIO base

2023-04-18 Thread Simon Glass
The bd82x6x_get_gpio_base() does not work if the LPC is not set up. Probe it early to avoid this problem. In chromebook_link64 this propblem shows up as an inability to read the GPIO straps for the memory type. Signed-off-by: Simon Glass --- (no changes since v1)

[PATCH v2 02/18] binman: Support writing symbols for ucode etypes

2023-04-18 Thread Simon Glass
Allow symbol writing in these cases so that U-Boot can find the position and size of U-Boot at runtime. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/etype/u_boot_spl_with_ucode_ptr.py | 2 +- tools/binman/etype/u_boot_tpl_with_ucode_ptr.py | 2 +-

[PATCH v2 10/17] mmc: rockchip_sdhci: Rearrange and simplify used regs and flags

2023-04-18 Thread Jonas Karlman
This rearrange and remove duplicate defines to make the code cleaner. There is no need to read vendor area1 and use an offset each time, it is easier and clearer to just use the reg offset defined in TRM, same as the other vendor regs. This also removes use of the misspelled const for the RK3588

[PATCH v2 06/17] mmc: rockchip_sdhci: Use set_clock and config_dll sdhci_ops

2023-04-18 Thread Jonas Karlman
Change to configure clock and DLL in set_clock and config_dll ops instead of in the set_ios_post ops. With this change the output clock is turned off while configuring DLL parameters, according to the design recommendations. Signed-off-by: Jonas Karlman --- v2: - No change

[PATCH v2 09/17] mmc: rockchip_sdhci: Remove empty get_phy and set_enhanced_strobe ops

2023-04-18 Thread Jonas Karlman
Remove empty implementations of get_phy and set_enhanced_strobe ops. Change driver set_enhanced_strobe to return 0 in order to allow missing implementation of the ops. Signed-off-by: Jonas Karlman --- v2: - No change drivers/mmc/rockchip_sdhci.c | 14 +- 1 file changed, 1

[PATCH v2 07/17] mmc: rockchip_sdhci: Refactor execute tuning error handling

2023-04-18 Thread Jonas Karlman
Check return value from mmc_send_cmd and clear HOST_CONTROL2 when there is an error. Also skip enable of interrupt signaling and remove a delay, a delay is already happening in sdhci_send_command. Signed-off-by: Jonas Karlman --- v2: - No change drivers/mmc/rockchip_sdhci.c | 35

[PATCH v2 08/17] mmc: rockchip_sdhci: Update speed mode controls in set_ios_post

2023-04-18 Thread Jonas Karlman
Refactor set_ios_post ops to correctly set UHS Speed Select field values according to TRM. Also set or unset Enhanced Strobe Enable bit and eMMC Card present bit in set_ios_post, the Enhanced Strobe Enable bit was never unset after switching to HS400ES mode. Signed-off-by: Jonas Karlman --- v2:

[PATCH v2 05/17] mmc: rockchip_sdhci: Add set_clock and config_dll sdhci_ops

2023-04-18 Thread Jonas Karlman
Add support for the set_clock and config_dll sdhci_ops. Use of these ops will allow configuration of DLL while the output clock is disabled. Signed-off-by: Jonas Karlman --- v2: - No change drivers/mmc/rockchip_sdhci.c | 29 +++-- 1 file changed, 27 insertions(+), 2

Re: [PATCH] usb: onboard-hub: Don't disable regulator in remove() callback

2023-04-18 Thread Patrice CHOTARD
Hi On 4/18/23 13:53, Marek Vasut wrote: > On 4/18/23 13:49, Fabio Estevam wrote: >> Hi Patrice and Marek, >> >> On Tue, Apr 18, 2023 at 4:22 AM Patrice CHOTARD >> wrote: >> Isn't the regulator enable/disable refcounted ? >>> >>> There is no refcount on regulator that's why we let regulator

[PATCH v2 03/18] sf: Guard against zero erasesize

2023-04-18 Thread Simon Glass
With tiny SPI flash the erasesize is 0 which can cause a divide-by-zero error. Check for this and returns a proper error instead. Signed-off-by: Simon Glass --- (no changes since v1) drivers/mtd/spi/sf_probe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [PATCH 1/5] mtd/spinand: rework detect procedure for different READ_ID operation

2023-04-18 Thread Michael Nazzareno Trimarchi
Hi On Tue, Apr 18, 2023 at 8:20 PM Mikhail Kshevetskiy wrote: > > I can try to resend patches (flash drivers synced with linux-6.1). > Unfortunately I am not sure I will be able to do it after changes in our > mail system. I don't think that re-sync now is what we want to do. The idea here is

[PATCH v2 03/17] mmc: rockchip_sdhci: Fix use of device private data

2023-04-18 Thread Jonas Karlman
The device private data is misused in rockchip_sdhci_of_to_plat and rockchip_sdhci_execute_tuning. In these functions dev_get_priv is assigned to struct sdhci_host: struct sdhci_host *host = dev_get_priv(dev); Instead, the sdhci host should refer to host in struct rockchip_sdhc: struct

[PATCH v2 04/17] mmc: rockchip_sdhci: Remove unneeded emmc_phy_init

2023-04-18 Thread Jonas Karlman
Remove the unneeded emmc_phy_init now that the no-inverter flag is handled correctly after commit 2321a991bbb5 ("rockchip: sdhci: rk3568: bypass DLL when clk <= 52 MHz"). Signed-off-by: Jonas Karlman --- v2: - No change drivers/mmc/rockchip_sdhci.c | 26 -- 1 file

[PATCH v2 02/17] mmc: sdhci: Set UHS Mode Select field for UHS SDR25 mode

2023-04-18 Thread Jonas Karlman
Set correct UHS Mode Select field value for UHS SDR25 (50MHz) mode. Fixes: d1c0a2200afb ("mmc: sdhci: Add support for HOST_CONTROL2 and setting UHS timings") Signed-off-by: Jonas Karlman --- v2: - No change drivers/mmc/sdhci.c | 4 1 file changed, 4 insertions(+) diff --git

[PATCH] rmobile: avoid deprecated srec_cat flags

2023-04-18 Thread Ralph Siemsen
The -l-e-constant flag has been deprecated since 2012. [1] Use the recommended replacement instead. [1] https://sourceforge.net/p/srecord/code/ci/1.59.D009/ Signed-off-by: Ralph Siemsen --- arch/arm/mach-rmobile/Makefile | 48 +- 1 file changed, 24

Re: [PATCH 2/2] ARM: dts: stm32mp: alignment with v6.3-rc3

2023-04-18 Thread Marek Vasut
On 4/18/23 15:59, Patrick Delaunay wrote: Device tree alignment with Linux kernel v6.3-rc3: - ARM: dts: stm32: add i2c nodes into stm32mp131.dtsi - ARM: dts: stm32: enable i2c1 and i2c5 on stm32mp135f-dk.dts - ARM: dts: stm32: add spi nodes into stm32mp131.dtsi - ARM: dts: stm32: add pinctrl and

Re: [PATCH V3 2/2] ARM: dts: rockchip: rk3588s-u-boot: Add rng node

2023-04-18 Thread Chris Morgan
On Mon, Apr 17, 2023 at 06:13:18PM +0530, Sughosh Ganu wrote: > On Thu, 13 Apr 2023 at 19:43, Chris Morgan wrote: > > > > From: Chris Morgan > > > > Add a node for the trng found on RK3588 SoCs. > > > > Changes in V3: > > - Added Reviewed-By tag. > > > > Changes in V2: > > - None > > > >

Re: [PATCH 2/2] configs: rk3399: add Radxa ROCK Pi 4 variants

2023-04-18 Thread FUKAUMI Naoki
hi, On 4/13/23 11:22, Kever Yang wrote: On 2023/4/8 17:11, FUKAUMI Naoki wrote: compared to ROCK Pi 4B, - ROCK Pi 4A: without Wi-Fi/BT - ROCK Pi 4A+: with OP1, without Wi-Fi/BT - ROCK Pi 4B+: with OP1 It will be better to re-use one defconfig all the board in one series, the peripheral

Re: [PATCH U-BOOT 1/3] btrfs: fix offset within btrfs_read_extent_reg()

2023-04-18 Thread Dominique Martinet
Qu Wenruo wrote on Tue, Apr 18, 2023 at 09:58:37AM +0800: > The subject can be changed to "btrfs: fix offset when reading compressed > extents". > The original one is a little too generic. Ok. > > btrfs_file_read() > > -> btrfs_read_extent_reg > > (aligned part loop from 0x4048 to

[PATCH v2 1/2] mtd: cfi: respect reg address length

2023-04-18 Thread Nuno Sá
flash_get_size() will get the flash size from the device itself and go through all erase regions to read protection status. However, the device mappable region (eg: devicetree reg property) might be lower than the device full size which means that the above cycle will result in a data bus

[PATCH U-BOOT v2] btrfs: fix offset when reading compressed extents

2023-04-18 Thread Dominique Martinet
;fs: btrfs: Introduce btrfs_read_extent_inline() and btrfs_read_extent_reg()") Signed-off-by: Dominique Martinet --- Changes in v2: - Keep offset decomposition explicit where it is used - Add reproducer/clarify explanation in commit message - Drop other patches temporarily - Link to v1: https

[PATCH v2 00/17] rockchip: eMMC fixes for RK3568 and support for RK3588

2023-04-18 Thread Jonas Karlman
This series fixes eMMC HS400 modes on RK3568 and add support for RK3588. It has been tested with rock-3a-rk3568/rock5b-rk3588 defconfig and CONFIG_MMC_HS200_SUPPORT=y CONFIG_MMC_HS400_SUPPORT=y CONFIG_MMC_HS400_ES_SUPPORT=y CONFIG_MMC_SPEED_MODE_SET=y using the following command to

[PATCH v2 01/17] mmc: sdhci: Fix HISPD bit handling for MMC HS 52MHz mode

2023-04-18 Thread Jonas Karlman
Set High Speed Enable bit for MMC High Speed (52MHz) mode. Fixes: f12341a95295 ("mmc: sdhci: Fix HISPD bit handling") Signed-off-by: Jonas Karlman --- v2: - No change drivers/mmc/sdhci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index

Re: [PATCH 1/5] mtd/spinand: rework detect procedure for different READ_ID operation

2023-04-18 Thread Mikhail Kshevetskiy
I can try to resend patches (flash drivers synced with linux-6.1). Unfortunately I am not sure I will be able to do it after changes in our mail system. Mikhail Kshevetskiy On 18.04.2023 16:48, Michael Nazzareno Trimarchi wrote: > [External email] > > > > > > Hi Frieder > > On Tue, Apr 18, 2023

Re: [PATCH U-BOOT 2/3] btrfs: btrfs_file_read: allow opportunistic read until the end

2023-04-18 Thread Dominique Martinet
Dominique Martinet wrote on Tue, Apr 18, 2023 at 12:53:35PM +0900: > Ok, there is one exception for inline extents apparently.. But I'm not > still not convinced the `aligned_start != file_offset` check is enough > for that either; I'd say it's unlikely but the inline part can be > compressed, so

Re: [PATCH U-BOOT 2/3] btrfs: btrfs_file_read: allow opportunistic read until the end

2023-04-18 Thread Dominique Martinet
Qu Wenruo wrote on Tue, Apr 18, 2023 at 11:21:00AM +0800: > > No, was just thinking the leading part being a separate loop doesn't > > seem to make sense either as the code shouldn't care about sector size > > alignemnt but about full extents. > > The main concern related to the leading unaligned

Re: [PATCH U-BOOT 2/3] btrfs: btrfs_file_read: allow opportunistic read until the end

2023-04-18 Thread Dominique Martinet
Qu Wenruo wrote on Tue, Apr 18, 2023 at 10:02:00AM +0800: > > /* Read the tailing unaligned part*/ > > Can we remove this part completely? > > IIRC if we read until the target end, the unaligned end part can be > completely removed then. The "Read the aligned part" loop stops at

Re: [PATCH U-BOOT 2/3] btrfs: btrfs_file_read: allow opportunistic read until the end

2023-04-18 Thread Dominique Martinet
Qu Wenruo wrote on Tue, Apr 18, 2023 at 10:53:41AM +0800: > > I have a feeling the loop could just be updated to go to the end > > `while (cur < end)` as it doesn't seem to care about the end > > alignment... Should I update v2 to do that instead? > > Yeah, it would be very awesome if you can

Re: [PATCH U-BOOT 3/3] btrfs: btfs_file_read: zero trailing data if no extent was found

2023-04-18 Thread Dominique Martinet
Qu Wenruo wrote on Tue, Apr 18, 2023 at 10:04:56AM +0800: > > This is a theorical fix only and hasn't been tested on a file that > > actually runs this code path. > > IIRC there is a memset() at the very beginning of btrfs_file_read() to set > the whole dest memory to zero. Right, sorry. I'll

[PATCH v2 08/18] x86: Tidy up availability of string functions

2023-04-18 Thread Simon Glass
For now, just enable the fast-but-large string functions in 32-boot U-Boot proper only. Avoid using them in SPL. We cannot use then in 64-bit builds since we only have 32-bit assembly. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/include/asm/string.h | 6 +-

[PATCH v2 09/18] x86: mrc: Correct SPL debug message

2023-04-18 Thread Simon Glass
SPL printf() does not normally support %#x so just use %x instead. Hex is expected in U-Boot anyway. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/mrccache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/lib/mrccache.c

[PATCH v2 07/18] x86: Support debug UART in 64-bit mode

2023-04-18 Thread Simon Glass
The debug UART is already set up in SPL, so there is no need to do anything here. We must provide the (empty) function though. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/cpu/x86_64/cpu.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/cpu/x86_64/cpu.c

[PATCH v2 06/18] x86: samus: Drop EFI_LOADER

2023-04-18 Thread Simon Glass
This adds a lot of code so that it cannot be build with the binary blobs. It is not used on this board. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) configs/chromebook_samus_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/chromebook_samus_defconfig

  1   2   3   >