Re: [RFC PATCH 15/31] efi_memory: add an event handler to update memory map

2024-06-10 Thread Ilias Apalodimas
On Mon, Jun 10, 2024, 5:52 PM Sughosh Ganu wrote: > hi Ilias, > > On Mon, 10 Jun 2024 at 19:48, Ilias Apalodimas > wrote: > > > > Hi Sughosh > > > > On Mon, 10 Jun 2024 at 15:25, Sughosh Ganu > wrote: > > > > > > On Mon, 10 Jun 2024 at 17:40, Ilias Apalodimas > > > wrote: > > > > > > > > On Fr

Re: [PATCH v2 1/1] drivers: bootcount: Add support for FAT filesystem

2024-06-10 Thread Heiko Schocher
Hello Amoiridis, On 10.06.24 20:51, Vasileios Amoiridis wrote: Add support to save boot count variable in a file in a FAT filesystem. Signed-off-by: Vasileios Amoiridis --- doc/README.bootcount | 12 ++--- drivers/bootcount/Kconfig | 53 +

RE: [PATCH] arm: fsl: imx8mn_bsh_smm_s2: Migrate to OF_UPSTREAM

2024-06-10 Thread Peng Fan
> Subject: [PATCH] arm: fsl: imx8mn_bsh_smm_s2: Migrate to OF_UPSTREAM > > Migrate imx8mn_bsh_smm_s2 and imx8mn_bsh_smm_s2pro boards to > OF_UPSTREAM. > > Signed-off-by: Patrick Barsanti > Tested-by: Michael Trimarchi LGTM, Reviewed-by: Peng Fan

Re: [PATCH v2 1/1] drivers: bootcount: Add support for FAT filesystem

2024-06-10 Thread Vasileios Amoiridis
On Mon, Jun 10, 2024 at 01:37:47PM -0600, Tom Rini wrote: > On Mon, Jun 10, 2024 at 08:51:16PM +0200, Vasileios Amoiridis wrote: > > > Add support to save boot count variable in a file in a FAT filesystem. > > > > Signed-off-by: Vasileios Amoiridis > > Thanks for doing this. > > Reviewed-by: T

[u-boot-test-hooks PATCH 2/2] Provide some basic scripts for Labgrid integration

2024-06-10 Thread Simon Glass
With Labgrid we don't need to specify the various methods, except for the console, which simply calls labgrid-client. This allows supporting any boards in your lab, without adding per-board configuration to these hooks. Provide ellesmere files as an example. Signed-off-by: Simon Glass --- REA

[u-boot-test-hooks PATCH 1/2] Create a common file for test scripts

2024-06-10 Thread Simon Glass
The top part of each of the u-boot-test-* files is common. Put it in a common script file to avoid duplication and to allow it to be replaced for the Labgrid integration. Signed-off-by: Simon Glass --- bin/u-boot-test-common| 31 +++ bin/u-boot-test-console |

[u-boot-test-hooks PATCH 0/2] Add support for Labgrid

2024-06-10 Thread Simon Glass
This adds hooks for use with Labgrid. The only existing hook that really does anything now is the 'console' one. There is also a new 'getrole' hook which looks up a role to find various things about it, such as the U-Boot board name. Simon Glass (2): Create a common file for test scripts Prov

[PATCH] arm: fsl: imx8mn_bsh_smm_s2: Migrate to OF_UPSTREAM

2024-06-10 Thread Patrick Barsanti
Migrate imx8mn_bsh_smm_s2 and imx8mn_bsh_smm_s2pro boards to OF_UPSTREAM. Signed-off-by: Patrick Barsanti Tested-by: Michael Trimarchi --- Note that the patch was tested by Michael on the s2 board by applying patch [1] before it, which fixes ddr timings. The board otherwise doesn't boot. Links

Re: [RFC PATCH 00/31] Make U-Boot memory reservations coherent

2024-06-10 Thread Tom Rini
On Sat, Jun 08, 2024 at 12:22:09AM +0530, Sughosh Ganu wrote: > The aim of this patch series is to fix the current state of > incoherence between modules when it comes to memory usage. The primary > issue that this series is trying to fix is that the EFI memory module > which is responsible for al

Re: [PATCH v2 1/1] drivers: bootcount: Add support for FAT filesystem

2024-06-10 Thread Tom Rini
On Mon, Jun 10, 2024 at 10:03:25PM +0200, Vasileios Amoiridis wrote: > On Mon, Jun 10, 2024 at 01:37:47PM -0600, Tom Rini wrote: > > On Mon, Jun 10, 2024 at 08:51:16PM +0200, Vasileios Amoiridis wrote: > > > > > Add support to save boot count variable in a file in a FAT filesystem. > > > > > > Si

Re: [PATCH next v3 0/8] rockchip: add support for Theobroma Systems SOM-RK3588-Q7 Tiger module

2024-06-10 Thread Heiko Stübner
Am Montag, 10. Juni 2024, 15:13:30 CEST schrieb Quentin Schulz: > This has a dependency on > https://lore.kernel.org/u-boot/20240528170406.353616-1-liujianfeng1...@gmail.com/ > > Changes in v3: > - rebased on top of next, > - changed patch series dependency from DRAM ATAGS (merged) to RK3588 >

Re: [PATCH] clk: Propagate clk_set_rate() if CLK_SET_PARENT_RATE present

2024-06-10 Thread Sam Protsenko
On Tue, May 14, 2024 at 3:26 PM Sam Protsenko wrote: > > On Wed, May 1, 2024 at 4:12 PM Sam Protsenko > wrote: > > > > On Wed, Apr 10, 2024 at 9:53 PM Sean Anderson wrote: > > > > > > On 3/7/24 19:04, Sam Protsenko wrote: > > > > Sometimes clocks provided to a consumer might not have .set_rate

Re: [PATCH v2 1/1] drivers: bootcount: Add support for FAT filesystem

2024-06-10 Thread Tom Rini
On Mon, Jun 10, 2024 at 08:51:16PM +0200, Vasileios Amoiridis wrote: > Add support to save boot count variable in a file in a FAT filesystem. > > Signed-off-by: Vasileios Amoiridis Thanks for doing this. Reviewed-by: Tom Rini Would you be able to do a follow-up that converts doc/README.bootc

Re: [PATCH 5/9] fdt: Correct condition for bloblist existing

2024-06-10 Thread Raymond Mao
Hi Simon, On Tue, 4 Jun 2024 at 23:27, Simon Glass wrote: > On some boards, the bloblist is created in SPL once SDRAM is ready. It > cannot be accessed until that point, so is not available early in SPL. > > Add a condition to avoid a hang in this case. > > This fixes a hang in chromebook_coral

[PATCH v2 1/1] drivers: bootcount: Add support for FAT filesystem

2024-06-10 Thread Vasileios Amoiridis
Add support to save boot count variable in a file in a FAT filesystem. Signed-off-by: Vasileios Amoiridis --- doc/README.bootcount | 12 ++--- drivers/bootcount/Kconfig | 53 +-- drivers/bootcount/Makefile| 2 +- .

[PATCH v2 0/1]: drivers: bootcount: Add support for FAT filesystem

2024-06-10 Thread Vasileios Amoiridis
Changes in v2: - Use generic code by utilizing FS_TYPE_ANY - Change filename from bootcount_ext.c to bootcount_fs.c v1: https://lore.kernel.org/u-boot/20240605181041.68317-1-vassilisa...@gmail.com/ This patch adds support to save the bootcount variable in a file located in FAT fi

[PATCH v2 0/9] Bug-fixes for a few boards

2024-06-10 Thread Simon Glass
This series includes fixes to get some rockchip and nvidia boards working again. It also drops the broken Beaglebone Black config and provides a devicetree fix for coral (x86). Changes in v2: - Put the conditions under EFI_TCG2_PROTOCOL - Consider MEASURED_BOOT too - Remove the superfluous if() an

Re: [RFC PATCH 22/31] test: lmb: run the LMB tests only on sandbox

2024-06-10 Thread Tom Rini
On Sat, Jun 08, 2024 at 12:22:31AM +0530, Sughosh Ganu wrote: > The LMB memory map is now persistent and global. Running the tests for > the LMB module will result in the memory map getting reset, and this > will have side-effects on the rest of the working of the platform. Run > the LMB tests onl

Re: [RFC PATCH 08/31] lmb: replcace the lmb_init_and_reserve() function

2024-06-10 Thread Tom Rini
On Sat, Jun 08, 2024 at 12:22:17AM +0530, Sughosh Ganu wrote: > With the changes to make the Logical Memory Block(LMB) allocations > persistent and with the common memory regions being reserved during > board init, the lmb_init_and_reserve() API can be removed and replaced > with a lmb_add_memory()

Re: [RFC PATCH 07/31] lmb: remove lmb_init_and_reserve_range() function

2024-06-10 Thread Tom Rini
On Sat, Jun 08, 2024 at 12:22:16AM +0530, Sughosh Ganu wrote: > With the move to make the LMB allocations persistent and the common > memory regions being reserved during board init, the > lmb_init_and_reserve_range() API can be replaced with a simple > lmb_add() call. > > Signed-off-by: Sughosh

Re: [RFC PATCH 06/31] lmb: reserve and add common memory regions post relocation

2024-06-10 Thread Tom Rini
On Sat, Jun 08, 2024 at 12:22:15AM +0530, Sughosh Ganu wrote: > The LMB module provides API's for allocating chunks of memory. The LMB > module should not be allocating memory regions that are in use, or > that might be occupied by the U-Boot image. Prevent allocations of > memory areas used by th

Re: [RFC PATCH 05/31] lmb: pass a flag to image_setup_libfdt() for lmb reservations

2024-06-10 Thread Tom Rini
On Sat, Jun 08, 2024 at 12:22:14AM +0530, Sughosh Ganu wrote: > The image_setup_libfdt() function optionally calls the LMB API to > reserve the region of memory occupied by the FDT blob. This was > earlier determined through the presence of the pointer to the lmb > structure, which is no longer pr

Re: [PATCH v2 3/9] rockchip: veyron: Add logging for power init

2024-06-10 Thread Quentin Schulz
Hi Simon, On 6/10/24 4:59 PM, Simon Glass wrote: Add better logging for power init so that CONFIG_LOG_ERROR_RETURN can be enabled. Signed-off-by: Simon Glass Reviewed-by: Quentin Schulz Thanks! Quentin

Re: [RFC PATCH 03/31] lmb: make the lmb reservations persistent

2024-06-10 Thread Tom Rini
On Mon, Jun 10, 2024 at 01:23:49PM +0200, Heinrich Schuchardt wrote: > On 1/1/70 01:00, Ilias Apalodimas wrote: > > Hi Sughosh > > > > [...] > > > > > #define LMB_ALLOC_ANYWHERE 0 > > > > > > +#if !IS_ENABLED(CONFIG_LMB_USE_MAX_REGIONS) > > > +struct lmb_property memory_regions[CONFIG_LMB

Re: [PATCH 1/1] Added arm64 assembly for examples/api crt0

2024-06-10 Thread Tom Rini
On Fri, May 17, 2024 at 07:13:48PM +, Brunham, Kalen wrote: > I've encountered a problem when compiling the 'examples/api' directory for > ARM64 in U-boot. The problem lies in the assembly code in > 'examples/api/crt0.S' where the current CONFIG_ARM code is only 32-bit. When > targeting ARM

Re: [PATCH v3] abootimg: Add init_boot image support

2024-06-10 Thread Tom Rini
On Thu, 23 May 2024 07:06:07 +, Roman Stratiienko wrote: > Quote from [1]: > > "For devices launching with Android 13, the generic ramdisk is removed > from the boot image and placed in a separate init_boot image. > This change leaves the boot image with only the GKI kernel." > > While at it

Re: [PATCH] android: Fix ramdisk loading for bootimage v3+

2024-06-10 Thread Tom Rini
On Sun, 19 May 2024 13:09:51 +, Roman Stratiienko wrote: > The boot_ramdisk and vendor_ramdisk must be both concatenated together. > Without this change, Android root is missing some of the necessary tools > to complete virtual AB OTA. > > Applied to u-boot/next, thanks! -- Tom

Re: [PATCH] arm: move _end to linker symbols

2024-06-10 Thread Tom Rini
On Tue, 28 May 2024 09:18:27 +0300, Ilias Apalodimas wrote: > commit 6e2228fb052b ("Merge patch series "Clean up arm linker scripts") > was cleaning up linker scripts for armv7 and v8 but was leaving > _end and __secure_stack_start/end. > > commit d0b5d9da5de2 ("arm: make _end compiler-generated"

Re: [PATCH] image: Set load_end on partial loads

2024-06-10 Thread Tom Rini
On Thu, 23 May 2024 11:27:09 +0200, Mattijs Korpershoek wrote: > When decompressing, it's possible that the algorithm only performs > a partial decompression. > This usually happens when CONFIG_SYS_BOOTM_LEN is too small for > the uncompressed image. > > When that happens, image_decomp() returns

Re: [PATCH] fs: relax ext4_write_file() dependency

2024-06-10 Thread Tom Rini
On Wed, 15 May 2024 07:37:16 +0300, Baruch Siach wrote: > ext4_write_file() depends on CONFIG_EXT4_WRITE. Allow build without > CONFIG_CMD_EXT4_WRITE. > > Applied to u-boot/next, thanks! -- Tom

Re: [PATCH] dm: use newly added linux/compat alloc functions

2024-06-10 Thread Tom Rini
On Wed, 15 May 2024 23:13:30 +0300, Maxim Moskalets wrote: > Applied to u-boot/next, thanks! -- Tom

Re: [PATCH v3 0/9] efi_loader: improve device-tree loading

2024-06-10 Thread Tom Rini
On Mon, Jun 10, 2024 at 06:10:08PM +0200, Heinrich Schuchardt wrote: > On 10.06.24 17:54, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 10 Jun 2024 at 08:00, Heinrich Schuchardt > > wrote: > > > > > > On 10.06.24 15:53, Simon Glass wrote: > > > > Hi Heinrich, > > > > > > > > On Mon, 10 Ju

Re: [PATCH v2 9/9] Drop the special am335x_boneblack_vboot target

2024-06-10 Thread Tom Rini
On Mon, Jun 10, 2024 at 08:59:20AM -0600, Simon Glass wrote: > Now that am335x_evm boots OK on the Beaglebone black, drop the latter > and update the docs to cover the change. > > Also add a few updates about 'make fit' and drop the note about the > security review, as U-Boot's verified boot has

Re: Proposal: U-Boot memory management

2024-06-10 Thread Tom Rini
On Mon, Jun 10, 2024 at 07:55:44AM -0600, Simon Glass wrote: > Hi Sughosh, > > On Thu, 6 Jun 2024 at 13:18, Sughosh Ganu wrote: > > > > hi Simon, > > > > On Wed, 29 May 2024 at 22:00, Simon Glass wrote: > > > > > > +Sughosh Ganu for reference > > > > > > > > > On Sun, 31 Dec 2023 at 09:16, Tom R

Re: [PATCH 2/3] avb: Implement get_preloaded_partition callback

2024-06-10 Thread Igor Opaniuk
Hi Roman, On Sun, May 19, 2024 at 9:19 PM Roman Stratiienko wrote: > > AVB can reuse already loaded images instead of loading them > from the disk. > > The get_preloaded_partition now looks for the env. variables > set by the 'abootimg load' to find the correct partition in RAM. > > Signed-off-by

[PATCH] smbios: only look for a SYSINFO udevice if SYSINFO support is enabled

2024-06-10 Thread Quentin Schulz
if (ctx.dev) parent_node = dev_read_subnode(ctx.dev, "smbios"); --- base-commit: 4f836fb324ba500ecabdba4146c3ca9e1600cdf5 change-id: 20240610-smbios-sysinfo-dca17e76e11d Best regards, -- Quentin Schulz

[PATCH] cmd: sound: fix help text

2024-06-10 Thread Quentin Schulz
ot;, "init - initialise the sound driver\n" - "sound play [[[-q|-s] len [freq]] ...] - play sounds\n" + "sound play [len [freq [len [freq ... - play sounds\n" " len - duration in ms\n" " freq - frequency in Hz\n&quo

Re: [PATCH v3 0/9] efi_loader: improve device-tree loading

2024-06-10 Thread Heinrich Schuchardt
On 10.06.24 17:54, Simon Glass wrote: Hi Heinrich, On Mon, 10 Jun 2024 at 08:00, Heinrich Schuchardt wrote: On 10.06.24 15:53, Simon Glass wrote: Hi Heinrich, On Mon, 10 Jun 2024 at 03:11, Heinrich Schuchardt wrote: In U-Boot EFI boot options can already specify both an EFI binary and an

[PATCH 3/4] dm: core: migrate debug() messages to use dm_warn

2024-06-10 Thread Quentin Schulz
From: Quentin Schulz Prior to that, seeing the debug() messages required to enable DM_DEBUG which defines DEBUG (and then _DEBUG) which in turn makes failing assert() calls reset U-Boot which isn't necessarily what is desired. Instead, let's migrate to dm_warn which is using log_debug when unset

[PATCH 4/4] dm: core: fix typo in SPL_DM_WARN prompt text

2024-06-10 Thread Quentin Schulz
From: Quentin Schulz It should read "in SPL" and not "wuth SPL". Signed-off-by: Quentin Schulz --- drivers/core/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig index 1081d61fcf0..e4b1a66ecb1 100644 --- a/drivers/core/Kconf

[PATCH 2/4] dm: core: fix signedness in debug messages

2024-06-10 Thread Quentin Schulz
From: Quentin Schulz outp always point to an unsigned type in ofnode_read_u* functions but the format specifier is currently always using signed type. This is an issue since the signed type can only contain half of the unsigned type values above 0. However, this now breaks another usecase. Inde

[PATCH 1/4] dm: core: fix misleading debug message when matching compatible

2024-06-10 Thread Quentin Schulz
From: Quentin Schulz A driver can have multiple compatible. When the id->compatible matches for that driver, the first compatible supported by the driver is currently returned, which gives the following confusing message: - found match at 'rk3588_syscon': 'rockchip,rk3588-sys-grf' matches 'r

[PATCH 0/4] dm: core: fix several debug messages and migrate debug() to dm_warn

2024-06-10 Thread Quentin Schulz
| 4 +-- 11 files changed, 146 insertions(+), 147 deletions(-) --- base-commit: 4f836fb324ba500ecabdba4146c3ca9e1600cdf5 change-id: 20240610-misc-20240610-f9dce050186b Best regards, -- Quentin Schulz

Re: [PATCH 3/3] abootimg: Implement smart image load feature

2024-06-10 Thread Igor Opaniuk
Hi Roman, On Sun, May 19, 2024 at 9:19 PM Roman Stratiienko wrote: > > Load only part of the boot partition that contains valuable > information, thus improving the boot time. > > Signed-off-by: Roman Stratiienko > --- > boot/image-android.c | 70 >

Re: [PATCH] android: Fix ramdisk loading for bootimage v3+

2024-06-10 Thread Igor Opaniuk
Hi Roman, On Sun, May 19, 2024 at 3:09 PM Roman Stratiienko wrote: > > The boot_ramdisk and vendor_ramdisk must be both concatenated together. > Without this change, Android root is missing some of the necessary tools > to complete virtual AB OTA. > > Signed-off-by: Roman Stratiienko > --- > bo

Re: Proposal: U-Boot memory management

2024-06-10 Thread Simon Glass
Hi Sughosh, On Mon, 10 Jun 2024 at 09:17, Sughosh Ganu wrote: > > hi Simon, > > On Mon, 10 Jun 2024 at 20:33, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Mon, 10 Jun 2024 at 08:40, Sughosh Ganu wrote: > > > > > > hi Simon, > > > > > > On Mon, 10 Jun 2024 at 19:25, Simon Glass wrote: > >

Re: [RFC PATCH 15/31] efi_memory: add an event handler to update memory map

2024-06-10 Thread Simon Glass
Hi, On Mon, 10 Jun 2024 at 09:42, Sughosh Ganu wrote: > > On Mon, 10 Jun 2024 at 20:47, Heinrich Schuchardt wrote: > > > > On 07.06.24 20:52, Sughosh Ganu wrote: > > > There are events that would be used to notify other interested modules > > > of any changes in available and occupied memory. Th

Re: [PATCH 5/9] fdt: Correct condition for bloblist existing

2024-06-10 Thread Simon Glass
Hi Ilias, On Tue, 4 Jun 2024 at 23:33, Ilias Apalodimas wrote: > > Hi Simon, > > On Wed, 5 Jun 2024 at 06:26, Simon Glass wrote: > > > > On some boards, the bloblist is created in SPL once SDRAM is ready. It > > cannot be accessed until that point, so is not available early in SPL. > > > > Add a

Re: [PATCH v3 0/9] efi_loader: improve device-tree loading

2024-06-10 Thread Simon Glass
Hi Heinrich, On Mon, 10 Jun 2024 at 08:00, Heinrich Schuchardt wrote: > > On 10.06.24 15:53, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 10 Jun 2024 at 03:11, Heinrich Schuchardt > > wrote: > >> > >> In U-Boot EFI boot options can already specify both an EFI binary and > >> an initrd. Wi

Re: [RFC PATCH 15/31] efi_memory: add an event handler to update memory map

2024-06-10 Thread Sughosh Ganu
On Mon, 10 Jun 2024 at 20:47, Heinrich Schuchardt wrote: > > On 07.06.24 20:52, Sughosh Ganu wrote: > > There are events that would be used to notify other interested modules > > of any changes in available and occupied memory. This would happen > > when a module allocates or reserves memory, or f

Re: [PATCH 7/9] rockchip: bob: kevin: Disable dcache in SPL

2024-06-10 Thread Simon Glass
Hi Jonas, On Thu, 6 Jun 2024 at 09:04, Simon Glass wrote: > > Hi Jonas, > > On Wed, 5 Jun 2024 at 05:07, Jonas Karlman wrote: > > > > Hi Simon, > > > > On 2024-06-05 05:25, Simon Glass wrote: > > > This causes a hang, so disable it. > > > > When I initially tested this on multiple boards there w

Re: Proposal: U-Boot memory management

2024-06-10 Thread Sughosh Ganu
hi Simon, On Mon, 10 Jun 2024 at 20:33, Simon Glass wrote: > > Hi Sughosh, > > On Mon, 10 Jun 2024 at 08:40, Sughosh Ganu wrote: > > > > hi Simon, > > > > On Mon, 10 Jun 2024 at 19:25, Simon Glass wrote: > > > > > > Hi Sughosh, > > > > > > On Thu, 6 Jun 2024 at 13:18, Sughosh Ganu wrote: > > >

Re: [PATCH 5/6] bootstd: Add a bootmeth for Android

2024-06-10 Thread Igor Opaniuk
Hi Mattijs, On Thu, Jun 6, 2024 at 2:24 PM Mattijs Korpershoek wrote: > > Android boot flow is a bit different than a regular Linux distro. > Android relies on multiple partitions in order to boot. > > A typical boot flow would be: > 1. Parse the Bootloader Control Block (BCB, misc partition) > 2

Re: [RFC PATCH 15/31] efi_memory: add an event handler to update memory map

2024-06-10 Thread Heinrich Schuchardt
On 07.06.24 20:52, Sughosh Ganu wrote: There are events that would be used to notify other interested modules of any changes in available and occupied memory. This would happen when a module allocates or reserves memory, or frees up memory. These I am worried about the "frees up memory" case.

Re: [PATCH 0/3] lib: smbios: Extend driver with using sysinfo driver

2024-06-10 Thread Simon Glass
Hi Michal, On Fri, 7 Jun 2024 at 01:53, Michal Simek wrote: > > > > On 5/24/24 12:07, Ilias Apalodimas wrote: > > Hi Michal > > > > > > On Fri, 24 May 2024 at 12:45, Michal Simek wrote: > >> > >> Hi Ilias, > >> > >> On 4/26/24 15:38, Michal Simek wrote: > >>> Hi, > >>> > >>> currently only DT wa

Re: [PATCH 3/3] lib: smbios: Detect system properties via SYSINFO IDs

2024-06-10 Thread Simon Glass
On Fri, 26 Apr 2024 at 07:38, Michal Simek wrote: > > Code is pretty much supports only DT properties and completely ignore > information coming from sysinfo driver. > Code is calling smbios_add_prop() which calls with > smbios_add_prop_si(SYSINFO_ID_NONE). But SYSINFO_ID_NONE can't > differentiat

Re: [PATCH 2/3] lib: smbios: Let detect the system via sysinfo

2024-06-10 Thread Simon Glass
On Fri, 26 Apr 2024 at 07:38, Michal Simek wrote: > > Currently code looks like that it sysinfo drivers are supported but > actually none checking that system is detected. That's why call > sysinfo_detect() to make sure that priv->detected in sysinfo uclass is > setup hence information from driver

Re: Proposal: U-Boot memory management

2024-06-10 Thread Simon Glass
Hi Sughosh, On Mon, 10 Jun 2024 at 08:40, Sughosh Ganu wrote: > > hi Simon, > > On Mon, 10 Jun 2024 at 19:25, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Thu, 6 Jun 2024 at 13:18, Sughosh Ganu wrote: > > > > > > hi Simon, > > > > > > On Wed, 29 May 2024 at 22:00, Simon Glass wrote: > > >

[PATCH v2 9/9] Drop the special am335x_boneblack_vboot target

2024-06-10 Thread Simon Glass
Now that am335x_evm boots OK on the Beaglebone black, drop the latter and update the docs to cover the change. Also add a few updates about 'make fit' and drop the note about the security review, as U-Boot's verified boot has had quite extensive review now. Signed-off-by: Simon Glass --- Change

[PATCH v2 8/9] rockchip: bob: kevin: Disable dcache in SPL

2024-06-10 Thread Simon Glass
This causes a hang, so disable it. Unfortunately the RAM-size fix does not resolve the problem and I am unsure what is wrong. As soon as the cache is enabled the board appears to hang. Fixes: 6d8cdfd1536 ("rockchip: spl: Enable caches to speed up checksum validation") Signed-off-by: Simon Glass

[PATCH v2 7/9] rockchip: Ensure memory size is available in RK3399 SPL

2024-06-10 Thread Simon Glass
At present gd->ram_size is 0 in SPL, meaning that it is not possible to enable the cache. Correct this by always populating the RAM size correctly. Part of the confusion here comes from the large blocks of code which are #ifdefed out. Add a function phase_sdram_init() which returns whether SDRAM i

[PATCH v2 5/9] fdt: Correct condition for bloblist existing

2024-06-10 Thread Simon Glass
On some boards, the bloblist is created in SPL once SDRAM is ready. It cannot be accessed until that point, so is not available early in SPL. Add a condition to avoid a hang in this case. This fixes a hang in chromebook_coral Fixes: 70fe2385943 ("fdt: Allow the devicetree to come from a bloblist

[PATCH v2 6/9] spl: Allow ATF to work when dcache is disabled

2024-06-10 Thread Simon Glass
The dcache may not be enabled in SPL. Add a check to avoid trying to use an undefined function. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- (no changes since v1) common/spl/spl_atf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/spl/spl_atf.c b/common/s

[PATCH v2 4/9] power: regulator: Handle autoset in regulators_enable_boot_on()

2024-06-10 Thread Simon Glass
With a recent change, regulators_enable_boot_on() returns an error if a regulator is already set. Check for and handle this situation. Fixes: d99fb64a98a power: regulator: Only run autoset once for each regulator Reviewed-by: Jonas Karlman Reviewed-by: Quentin Schulz Signed-off-by: Simon Glass

[PATCH v2 3/9] rockchip: veyron: Add logging for power init

2024-06-10 Thread Simon Glass
Add better logging for power init so that CONFIG_LOG_ERROR_RETURN can be enabled. Signed-off-by: Simon Glass --- Changes in v2: - Remove the superfluous if() and drop the debug() as well board/google/veyron/veyron.c | 30 -- 1 file changed, 12 insertions(+), 18 dele

[PATCH v2 2/9] tpm: Avoid code bloat when not using EFI_TCG2_PROTOCOL

2024-06-10 Thread Simon Glass
It does not make sense to enable all SHA algorithms unless they are needed. It bloats the code and in this case, causes chromebook_link to fail to build. That board does use the TPM, but not with measured boot, nor EFI. Since EFI_TCG2_PROTOCOL already selects these options, we just need to add the

[PATCH v2 1/9] nvidia: nyan-big: Disable debug UART

2024-06-10 Thread Simon Glass
This cannot be enabled early in boot since some other init is needed. At this point it is unclear exactly what init is needed, so disable the debug UART to avoid a hang. Signed-off-by: Simon Glass --- (no changes since v1) configs/nyan-big_defconfig | 1 - 1 file changed, 1 deletion(-) diff -

Re: [RFC PATCH 15/31] efi_memory: add an event handler to update memory map

2024-06-10 Thread Sughosh Ganu
On Mon, 10 Jun 2024 at 20:22, Sughosh Ganu wrote: > > hi Ilias, > > On Mon, 10 Jun 2024 at 19:48, Ilias Apalodimas > wrote: > > > > Hi Sughosh > > > > On Mon, 10 Jun 2024 at 15:25, Sughosh Ganu wrote: > > > > > > On Mon, 10 Jun 2024 at 17:40, Ilias Apalodimas > > > wrote: > > > > > > > > On Fri

Re: [RFC PATCH 15/31] efi_memory: add an event handler to update memory map

2024-06-10 Thread Sughosh Ganu
hi Ilias, On Mon, 10 Jun 2024 at 19:48, Ilias Apalodimas wrote: > > Hi Sughosh > > On Mon, 10 Jun 2024 at 15:25, Sughosh Ganu wrote: > > > > On Mon, 10 Jun 2024 at 17:40, Ilias Apalodimas > > wrote: > > > > > > On Fri, 7 Jun 2024 at 21:54, Sughosh Ganu wrote: > > > > > > > > There are events t

Re: Proposal: U-Boot memory management

2024-06-10 Thread Sughosh Ganu
hi Simon, On Mon, 10 Jun 2024 at 19:25, Simon Glass wrote: > > Hi Sughosh, > > On Thu, 6 Jun 2024 at 13:18, Sughosh Ganu wrote: > > > > hi Simon, > > > > On Wed, 29 May 2024 at 22:00, Simon Glass wrote: > > > > > > +Sughosh Ganu for reference > > > > > > > > > On Sun, 31 Dec 2023 at 09:16, Tom

Re: [RFC PATCH 09/31] lmb: allow for resizing lmb regions

2024-06-10 Thread Sughosh Ganu
hi Ilias, On Mon, 10 Jun 2024 at 19:52, Ilias Apalodimas wrote: > > Hi Sughosh > > On Mon, 10 Jun 2024 at 15:57, Sughosh Ganu wrote: > > > > On Mon, 10 Jun 2024 at 18:17, Ilias Apalodimas > > wrote: > > > > > > On Mon, 10 Jun 2024 at 15:20, Sughosh Ganu > > > wrote: > > > > > > > > hi Ilias,

Re: [PATCH 4/6] android: boot: Add set_abootimg_addr() and set_avendor_bootimg_addr()

2024-06-10 Thread Igor Opaniuk
On Thu, Jun 6, 2024 at 2:24 PM Mattijs Korpershoek wrote: > > The only way to configure the load addresses for both bootimg and > vendor_bootimg is by using the "abootimg" command. > If we want to use the C API, there is no equivalent. > > Add set_abootimg_addr() and set_avendor_bootimg_addr() so

Re: [PATCH v2 12/40] mmc: dw_mmc: Replace fifoth_val property with fifo-depth

2024-06-10 Thread Yang Xiwen
On 6/10/2024 9:11 AM, Sam Protsenko wrote: Replace fifoth_val property with its fifo-depth counterpart in all DW MMC drivers. fifo-depth is a common property used in upstream Linux kernel. The FIFOTH register value will be calculated using fifo-depth value in DW MMC core (dw_mmc.c). This change r

Re: [RFC PATCH 09/31] lmb: allow for resizing lmb regions

2024-06-10 Thread Ilias Apalodimas
Hi Sughosh On Mon, 10 Jun 2024 at 15:57, Sughosh Ganu wrote: > > On Mon, 10 Jun 2024 at 18:17, Ilias Apalodimas > wrote: > > > > On Mon, 10 Jun 2024 at 15:20, Sughosh Ganu wrote: > > > > > > hi Ilias, > > > > > > On Mon, 10 Jun 2024 at 17:34, Ilias Apalodimas > > > wrote: > > > > > > > > Hi Su

Re: [RFC PATCH 15/31] efi_memory: add an event handler to update memory map

2024-06-10 Thread Ilias Apalodimas
Hi Sughosh On Mon, 10 Jun 2024 at 15:25, Sughosh Ganu wrote: > > On Mon, 10 Jun 2024 at 17:40, Ilias Apalodimas > wrote: > > > > On Fri, 7 Jun 2024 at 21:54, Sughosh Ganu wrote: > > > > > > There are events that would be used to notify other interested modules > > > of any changes in available

Re: [PATCH v6 02/14] firmware: scmi: use a protocol's own channel if assigned

2024-06-10 Thread Quentin Schulz
Hi, On 10/11/23 12:06 PM, AKASHI Takahiro wrote: SCMI specification allows any protocol to have its own channel for the transport. While the current SCMI driver may assign its channel from a device tree, the core function, devm_scmi_process_msg(), doesn't use a protocol's channel, but always use

Re: [PATCH v3 0/9] efi_loader: improve device-tree loading

2024-06-10 Thread Heinrich Schuchardt
On 10.06.24 15:53, Simon Glass wrote: Hi Heinrich, On Mon, 10 Jun 2024 at 03:11, Heinrich Schuchardt wrote: In U-Boot EFI boot options can already specify both an EFI binary and an initrd. With this series we can additionally define the matching device-tree to be loaded in the boot option. W

Re: Proposal: U-Boot memory management

2024-06-10 Thread Simon Glass
Hi Sughosh, On Thu, 6 Jun 2024 at 13:18, Sughosh Ganu wrote: > > hi Simon, > > On Wed, 29 May 2024 at 22:00, Simon Glass wrote: > > > > +Sughosh Ganu for reference > > > > > > On Sun, 31 Dec 2023 at 09:16, Tom Rini wrote: > > > > > > On Sun, Dec 31, 2023 at 04:40:06PM +0100, Heinrich Schuchardt

Re: [PATCH v3 0/9] efi_loader: improve device-tree loading

2024-06-10 Thread Simon Glass
Hi Heinrich, On Mon, 10 Jun 2024 at 03:11, Heinrich Schuchardt wrote: > > In U-Boot EFI boot options can already specify both an EFI binary and > an initrd. With this series we can additionally define the matching > device-tree to be loaded in the boot option. > > With the last patch the boot man

[PATCH 13/13] board: phytec: phycore-am62x: Use memory nodes in higher boot stages

2024-06-10 Thread Wadim Egorov
There is no need to reread the EEPROM multiple times in different stages to detect the RAM size. We can do this once at an early stage and let higher stages decode memory nodes using fdtdec. Make sure to pass fixup memory nodes before passing to u-boot stage. Signed-off-by: Wadim Egorov --- boar

[PATCH 12/13] doc: board: phytec: phycore-am6: Use mtd commands

2024-06-10 Thread Wadim Egorov
Update Flash to SPI NOR chapter for use with mtd commands. This is more convenient as we do not have to remember any offsets in the SPI. Signed-off-by: Wadim Egorov --- doc/board/phytec/phycore-am62x.rst | 8 doc/board/phytec/phycore-am64x.rst | 8 2 files changed, 8 insertions

[PATCH 11/13] doc: board: phytec: phycore-am62x: Add USB DFU switch config

2024-06-10 Thread Wadim Egorov
Provide boot switch config for USB DFU boot. Signed-off-by: Wadim Egorov --- doc/board/phytec/phycore-am62x.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/board/phytec/phycore-am62x.rst b/doc/board/phytec/phycore-am62x.rst index bc6d5246694..f8870657be0 100644 --- a/doc/board/p

[PATCH 10/13] configs: phycore_am6xx: Update MTD & SPI configs

2024-06-10 Thread Wadim Egorov
Enable mtd command and remove SPI NOR flashes we do not populate on our SoMs. Signed-off-by: Wadim Egorov --- configs/phycore_am62x_a53_defconfig | 4 ++-- configs/phycore_am62x_r5_defconfig | 1 - configs/phycore_am64x_a53_defconfig | 4 ++-- configs/phycore_am64x_r5_defconfig | 1 - 4 files

[PATCH 09/13] board: phytec: phycore-am62x: Pull in k3_dfu.env

2024-06-10 Thread Wadim Egorov
Pull in ti/k3_dfu.env for dfu_alt_info_ram in SPL stage. Signed-off-by: Wadim Egorov --- board/phytec/phycore_am62x/phycore_am62x.env | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/phytec/phycore_am62x/phycore_am62x.env b/board/phytec/phycore_am62x/phycore_am62x.env index ada3a9233

[PATCH 08/13] configs: phycore_am62x_a53_defconfig: Enable DFU boot

2024-06-10 Thread Wadim Egorov
Enable configs required for booting via DFU. Configs taken from the am62x_a53_usbdfu.config config fragment. Signed-off-by: Wadim Egorov --- configs/phycore_am62x_a53_defconfig | 28 1 file changed, 28 insertions(+) diff --git a/configs/phycore_am62x_a53_defconfig

[PATCH 07/13] arm: dts: k3-am625-phyboard-lyra-rdk: Enable usb port in u-boot

2024-06-10 Thread Wadim Egorov
Enable usb0 in all boot phases for use with DFU. Signed-off-by: Wadim Egorov --- arch/arm/dts/k3-am625-phyboard-lyra-rdk-u-boot.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/dts/k3-am625-phyboard-lyra-rdk-u-boot.dtsi b/arch/arm/dts/k3-am625-phyboard-lyra-rdk-u-boot.

[PATCH 04/13] board: phytec: phycore-am62x: Fix CONFIG_SPL_BOARD_INIT

2024-06-10 Thread Wadim Egorov
Make sure spl_board_init() gets compiled by enabling missing CONFIG_SPL_BOARD_INIT and including hardware.h. Fixes: 085cd6459dae ("board: phytec: am62x: Add PHYTEC phyCORE-AM62x SoM") Signed-off-by: Wadim Egorov --- board/phytec/phycore_am62x/phycore-am62x.c | 1 + configs/phycore_am62x_a53_def

[PATCH 03/13] board: phytec: common: k3: Copy fixed partitions to OS device tree

2024-06-10 Thread Wadim Egorov
Copy fixed-partitions nodes from U-Boot device tree to OS device tree. Signed-off-by: Wadim Egorov --- board/phytec/common/k3/board.c | 10 ++ configs/phycore_am62x_a53_defconfig | 1 + 2 files changed, 11 insertions(+) diff --git a/board/phytec/common/k3/board.c b/board/phytec/co

[PATCH 05/13] configs: phycore_am62x: Update environment location

2024-06-10 Thread Wadim Egorov
Update environment location to align with OSPI fixed-partition definitions and provide a redundant environment at a 2nd location. Signed-off-by: Wadim Egorov --- configs/phycore_am62x_a53_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/phycore_am62x_a53_d

[PATCH 06/13] configs: phycore_am64x: Update environment location

2024-06-10 Thread Wadim Egorov
Update environment location to align with OSPI fixed-partition definitions and provide a redundant environment at a 2nd location. Signed-off-by: Wadim Egorov --- configs/phycore_am64x_a53_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/phycore_am64x_a53_d

[PATCH 02/13] arch: arm: dts: k3-am642-phyboard-electra: Add fixed partitions

2024-06-10 Thread Wadim Egorov
From: Nathan Morrisson Add a fixed partitions node to the AM64x device tree so that it can be used to fixup the Linux device tree. Signed-off-by: Nathan Morrisson Signed-off-by: Wadim Egorov --- .../k3-am642-phyboard-electra-rdk-u-boot.dtsi | 26 +++ 1 file changed, 26 inserti

[PATCH 01/13] arch: arm: dts: k3-am625-phyboard-lyra: Add fixed partitions

2024-06-10 Thread Wadim Egorov
From: Nathan Morrisson Add a fixed partitions node to the AM62x device tree so that it can be used to fixup the Linux device tree. Signed-off-by: Nathan Morrisson Signed-off-by: Wadim Egorov --- .../k3-am625-phyboard-lyra-rdk-u-boot.dtsi| 26 +++ 1 file changed, 26 inserti

[PATCH 00/13] *** Various fixes & improvements for phycore-AM6* SoMs ***

2024-06-10 Thread Wadim Egorov
This patch set is for u-boot/next. It includes various fixes and improvements for phyCORE-AM62x and phyCORE-AM64x SoMs. Notable is the last patch which prepares for use with future ECC memory fixups. Nathan Morrisson (2): arch: arm: dts: k3-am625-phyboard-lyra: Add fixed partitions arch: arm:

[PATCH next v3 8/8] rockchip: add support for Theobroma Systems SOM-RK3588-Q7 Tiger module

2024-06-10 Thread Quentin Schulz
From: Quentin Schulz The RK3588-Q7 SoM is a Qseven-compatible (70mm x 70mm, MXM-230 connector) system-on-module from Theobroma Systems, featuring the Rockchip RK3588. It provides the following feature set: * up to 16GB LPDDR4x * on-module eMMC * SD card (on a baseboard) via edge connector *

[PATCH next v3 7/8] arm64: dts: rockchip: add dual-role usb3 hosts to rk3588 Tiger-Haikou

2024-06-10 Thread Quentin Schulz
From: Heiko Stuebner Apart from the host-only usb3 controller (host2) the rk3588 also provides two dual-role controllers. On the Tiger-Haikou combination these are connected to the lower usb3-host port in host-only mode and the micro-usb3 port for dual-role operation. Add the necessary controlle

[PATCH next v3 6/8] arm64: dts: rockchip: add usb-id extcon on rk3588 tiger

2024-06-10 Thread Quentin Schulz
From: Heiko Stuebner The Q7 standard specifies a usb-id pin on the connector to distiuish between host and device mode. Model this via the usb-id extcon binding. While the pin is part of the Q7 standard, so part of the module, the extcon stays disabled in the som dtsi and will only be enabled in

[PATCH next v3 5/8] arm64: dts: rockchip: fix comment for upper usb3 port

2024-06-10 Thread Quentin Schulz
From: Heiko Stuebner The comment for the host2_xhci points to the wrong port on the board. The upper usb3 port is the correct one, so fix the comment to prevent confusion. Signed-off-by: Heiko Stuebner Reviewed-by: Quentin Schulz Link: https://lore.kernel.org/r/20240422163951.2604273-2-he...@s

[PATCH next v3 4/8] arm64: dts: rockchip: fix pcie-refclk frequency on rk3588 tiger

2024-06-10 Thread Quentin Schulz
From: Heiko Stuebner The clock-generator of course only produces a 100MHz clock rate, not 1GHz. Signed-off-by: Heiko Stuebner Reviewed-by: Quentin Schulz Link: https://lore.kernel.org/r/20240423114635.2637310-1-he...@sntech.de Signed-off-by: Heiko Stuebner [ upstream commit: 0eb2a93518fb4728

[PATCH next v3 3/8] arm64: dts: rockchip: correct gpio_pwrctrl1 typos on rk3588(s) boards

2024-06-10 Thread Quentin Schulz
From: Jing Luo gpio_pwrctrl2 gets duplicated by both rk806_dvs1_null and rk806_dvs2_null gpio_pwrctrl1 is unset. This typo appears in multiple files. Let's fix them. Note: I haven't had the chance to test them all because I don't own all of these boards (obviously). Please test if it's needed.

[PATCH next v3 2/8] arm64: dts: rockchip: move uart2 pinmux to dtsi on rk3588-tiger

2024-06-10 Thread Quentin Schulz
From: Heiko Stuebner The association of uart2 to the q7-uart pins is part of the module itself and not the baseboard used. Therefore move the pinctrl over to the tiger dtsi. Signed-off-by: Heiko Stuebner Reviewed-by: Quentin Schulz Link: https://lore.kernel.org/r/20240422143356.2596414-1-he...

  1   2   >