Re: [PATCH] configs: phycore-imx8mp: Disable CONFIG_ANDROID_BOOT_IMAGE

2024-07-04 Thread Benjamin Hahn
Hello, Please do not apply. We will leave this feature enabled for now. Benjamin On 03.07.24 15:42, Benjamin Hahn wrote: > CONFIG_ANDROID_BOOT_IMAGE gets enabled implicitly by FASTBOOT, but we > don't need that feature. > > Signed-off-by: Benjamin Hahn > --- > configs/phycore-imx8mp_defconfig |

[RFC PATCH v2 00/48] Make U-Boot memory reservations coherent

2024-07-04 Thread Sughosh Ganu
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 allocating and freeing memory, does not have any visibility of the memo

[RFC PATCH v2 01/48] malloc: Support testing with realloc()

2024-07-04 Thread Sughosh Ganu
From: Simon Glass At present in tests it is possible to cause an out-of-memory condition with malloc() but not realloc(). Add support to realloc() too, so code which uses that function can be tested. Signed-off-by: Simon Glass Signed-off-by: Sughosh Ganu --- common/dlmalloc.c | 4 1 file

[RFC PATCH v2 02/48] lib: Handle a special case with str_to_list()

2024-07-04 Thread Sughosh Ganu
From: Simon Glass The current implementation can return an extra result at the end when the string ends with a space. Fix this by adding a special case. Signed-off-by: Simon Glass Signed-off-by: Sughosh Ganu --- lib/strto.c | 4 +++- test/str_ut.c | 4 +--- 2 files changed, 4 insertions(+),

[RFC PATCH v2 03/48] alist: Add support for an allocated pointer list

2024-07-04 Thread Sughosh Ganu
From: Simon Glass In various places it is useful to have an array of structures, but allow it to grow. In some cases we work around it by setting maximum number of entries, using a Kconfig option. In other places we use a linked list, which does not provide for random access and can complicate th

[RFC PATCH v2 04/48] lib: Convert str_to_list() to use alist

2024-07-04 Thread Sughosh Ganu
From: Simon Glass Use this new data structure in the utility function. Signed-off-by: Simon Glass Signed-off-by: Sughosh Ganu --- lib/strto.c | 35 +++ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/lib/strto.c b/lib/strto.c index f83ac67c66..f

[RFC PATCH v2 05/48] alist: add a couple of helper functions

2024-07-04 Thread Sughosh Ganu
Add a couple of helper functions to detect an empty and full alist. Signed-off-by: Sughosh Ganu --- Changes since V1: New patch include/alist.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/include/alist.h b/include/alist.h index a68afc9fff..bab146c35d 100644 --- a

[RFC PATCH v2 06/48] alist: add a function declaration for alist_expand_by()

2024-07-04 Thread Sughosh Ganu
The alist_expand_by() function is a global function. Add a declaration for the function in the header. Signed-off-by: Sughosh Ganu --- Changes since V1: New patch include/alist.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/alist.h b/include/alist.h index bab146c35d..d7c

[RFC PATCH v2 07/48] lmb: remove the unused lmb_is_reserved() function

2024-07-04 Thread Sughosh Ganu
The lmb_is_reserved() API is not used. There is another API, lmb_is_reserved_flags() which can be used to check if a particular memory region is reserved. Remove the unused API. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas --- Changes since V1: None include/lmb.h | 11 ---

[RFC PATCH v2 08/48] lmb: staticize __lmb_alloc_base()

2024-07-04 Thread Sughosh Ganu
The __lmb_alloc_base() function is only called from within the lmb module. Moreover, the lmb_alloc() and lmb_alloc_base() API's are good enough for the allocation API calls. Make the __lmb_alloc_base() function static. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas --- Changes since V

[RFC PATCH v2 09/48] lmb: remove call to lmb_init()

2024-07-04 Thread Sughosh Ganu
The LMB module will be changed to have persistent and global memory maps of available and used memory. With this change, there won't be any need to explicitly initialise the LMB memory maps. Remove the call to the lmb_init() function. Signed-off-by: Sughosh Ganu --- Changes since V1: New patch

[RFC PATCH v2 10/48] lmb: remove local instances of the lmb structure variable

2024-07-04 Thread Sughosh Ganu
With the move of the LMB structure to a persistent state, there is no need to declare the variable locally, and pass it as part of the LMB API's. Remove all local variable instances and change the API's correspondingly. Signed-off-by: Sughosh Ganu --- Changes since V1: None arch/arc/lib/cache.c

[RFC PATCH v2 11/48] lmb: pass a flag to image_setup_libfdt() for lmb reservations

2024-07-04 Thread Sughosh Ganu
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 present. Pass a flag to the image_setup_libfdt() function to indicate if

[RFC PATCH v2 12/48] lmb: allow for resizing lmb regions

2024-07-04 Thread Sughosh Ganu
Allow for resizing of LMB regions if the region attributes match. The current code returns a failure status on detecting an overlapping address. This worked up until now since the LMB calls were not persistent and global -- the LMB memory map was specific and private to a given caller of the LMB AP

[RFC PATCH v2 13/48] lmb: make LMB memory map persistent and global

2024-07-04 Thread Sughosh Ganu
The current LMB API's for allocating and reserving memory use a per-caller based memory view. Memory allocated by a caller can then be overwritten by another caller. Make these allocations and reservations persistent using the alloced list data structure. Two alloced lists are declared -- one for

[RFC PATCH v2 14/48] lmb: remove config symbols used for lmb region count

2024-07-04 Thread Sughosh Ganu
The LMB memory maps are now being maintained through a couple of alloced lists, one for the available(added) memory, and one for the used memory. These lists are not static arrays but can be extended at runtime. Remove the config symbols which were being used to define the size of these lists with

[RFC PATCH v2 15/48] test: lmb: remove the test for max regions

2024-07-04 Thread Sughosh Ganu
The LMB memory map is now persistent and global, and the CONFIG_LMB_USE_MAX_REGIONS config symbol has now been removed. Remove the corresponding lmb test case. Signed-off-by: Sughosh Ganu --- Changes since V1: New patch test/lib/lmb.c | 67 -- 1 f

[RFC PATCH v2 16/48] lmb: config: add lmb config symbols for SPL

2024-07-04 Thread Sughosh Ganu
Add separate config symbols for enabling the LMB module for the SPL phase. The LMB module implementation now relies on alloced list data structure which requires heap area to be present. Add specific config symbol for the SPL phase of U-Boot so that this can be enabled on platforms which support a

[RFC PATCH v2 17/48] lmb: allow lmb module to be used in SPL

2024-07-04 Thread Sughosh Ganu
With the introduction of separate config symbols for the SPL phase of U-Boot, the condition checks need to be tweaked so that platforms that enable the LMB module in SPL are also able to call the LMB API's. Use the appropriate condition checks to achieve this. Signed-off-by: Sughosh Ganu --- Chan

[RFC PATCH v2 18/48] lmb: introduce a function to add memory to the lmb memory map

2024-07-04 Thread Sughosh Ganu
Introduce a function lmb_add_memory() to add available memory to the LMB memory map. Call this function during board init once the LMB data structures have been initialised. Signed-off-by: Sughosh Ganu --- Changes since V1: * Add memory only till ram_top to the LMB memory map, instead of all en

[RFC PATCH v2 19/48] lmb: remove the lmb_init_and_reserve() function

2024-07-04 Thread Sughosh Ganu
With the changes to make the LMB reservations persistent, the common memory regions are being added during board init. Remove the now superfluous lmb_init_and_reserve() function. Signed-off-by: Sughosh Ganu --- Changes since V1: * Removed the replacement of lmb_init_and_reserve() with lmb_add_m

[RFC PATCH v2 20/48] lmb: reserve common areas during board init

2024-07-04 Thread Sughosh Ganu
The LMB module provides API's for allocating and reserving chunks of memory which is then typically used for things like loading images for booting. Reserve the portion of memory that is occupied by the U-Boot image itself, and other parts of memory that might have been marked as reserved in the bo

[RFC PATCH v2 21/48] lmb: remove lmb_init_and_reserve_range() function

2024-07-04 Thread Sughosh Ganu
With the move to make the LMB allocations persistent and the common memory regions being reserved during board init, there is no need for an explicit reservation of a memory range. Remove the lmb_init_and_reserve_range() function. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas Reviewe

[RFC PATCH v2 22/48] lmb: init: initialise the lmb data structures during board init

2024-07-04 Thread Sughosh Ganu
The memory map maintained by the LMB module is now persistent and global. This memory map is being maintained through the alloced list structure which can be extended at runtime -- there is one list for the available memory, and one for the used memory. Allocate and initialise these lists during th

[RFC PATCH v2 23/48] lmb: use the BIT macro for lmb flags

2024-07-04 Thread Sughosh Ganu
Use the BIT macro for assigning values to the LMB flags instead of assigning random values to them. Signed-off-by: Sughosh Ganu --- Changes since V1: New patch based on review comment from Heinrich include/lmb.h | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/

[RFC PATCH v2 24/48] lmb: add a common implementation of arch_lmb_reserve()

2024-07-04 Thread Sughosh Ganu
Almost all of the current definitions of arch_lmb_reserve() are doing the same thing. The only exception in a couple of cases is the alignment parameter requirement. Have a generic weak implementation of this function, keeping the highest value of alignment that is being used(16K). Also, instead o

[RFC PATCH v2 25/48] sandbox: spl: enable lmb in SPL

2024-07-04 Thread Sughosh Ganu
Enable the LMB module in the SPL stage. This will allow the LMB code to be exercised and tested in the SPL stage. Signed-off-by: Sughosh Ganu --- Changes since V1: New patch configs/sandbox_spl_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox_spl_defconfig b/configs

[RFC PATCH v2 26/48] sandbox: iommu: remove lmb allocation in the driver

2024-07-04 Thread Sughosh Ganu
The sandbox iommu driver uses the LMB module to allocate a particular range of memory for the device virtual address(DVA). This used to work earlier since the LMB memory map was caller specific and not global. But with the change to make the LMB allocations global and persistent, adding this memory

[RFC PATCH v2 27/48] zynq: lmb: do not add to lmb map before relocation

2024-07-04 Thread Sughosh Ganu
The LMB memory is typically not needed very early in the platform's boot. Do not add memory to the LMB map before relocation. Reservation of common areas and adding of memory is done after relocation. Signed-off-by: Sughosh Ganu --- Changes since V1: None board/xilinx/common/board.c | 31 --

[RFC PATCH v2 28/48] test: cedit: use allocated address for reading file

2024-07-04 Thread Sughosh Ganu
Instead of a randomly selected address, use an LMB allocated one for reading the file into memory. With the LMB map now being persistent and global, the address used for reading the file might be already allocated as non-overwritable, resulting in a failure. Get a valid address from LMB and then re

[RFC PATCH v2 29/48] test: lmb: tweak the tests for the persistent lmb memory map

2024-07-04 Thread Sughosh Ganu
The LMB memory maps are now persistent, with alloced lists being used to keep track of the available and free memory. Make corresponding changes in the test functions so that the list information can be accessed by the tests for checking against expected values. Also introduce functions to initiali

[RFC PATCH v2 30/48] test: lmb: run lmb tests only manually

2024-07-04 Thread Sughosh Ganu
The LMB code has been changed so that the memory reservations and allocations are now persistent and global. With this change, the design of the LMB tests needs to be changed accordingly. Mark the LMB tests to be run only manually. The tests won't be run as part of the unit test suite, but would be

[RFC PATCH v2 31/48] test: lmb: add a separate class of unit tests for lmb

2024-07-04 Thread Sughosh Ganu
Add the LMB unit tests under a separate class of tests. The LMB tests involve changing the LMB's memory map. With the memory map now persistent and global, running these tests has a side effect and impact any subsequent tests. Run these tests separately so that the system can be reset on completion

[RFC PATCH v2 32/48] test: lmb: invoke the LMB unit tests from a separate script

2024-07-04 Thread Sughosh Ganu
With the LMB tests moved under a separate class of unit tests, invoke these from a separate script which would allow for a system reset once the tests have been run. This enables clearing up the LMB memory map after having run the tests. Signed-off-by: Sughosh Ganu --- Changes since V1: New patch

[RFC PATCH v2 33/48] test: bdinfo: dump the global LMB memory map

2024-07-04 Thread Sughosh Ganu
The LMB code has been changed to make the memory reservations persistent and global. Make corresponding change the the lmb_test_dump_all() function to print the global LMB available and used memory. Signed-off-by: Sughosh Ganu --- Changes since V1: * Corresponding changes needed to work with alis

[RFC PATCH v2 34/48] lmb: add versions of the lmb API with flags

2024-07-04 Thread Sughosh Ganu
The LMB module is to be used as a backend for allocating and freeing up memory requested from other modules like EFI. These memory requests are different from the typical LMB reservations in that memory required by the EFI module cannot be overwritten, or re-requested. Add versions of the LMB API f

[RFC PATCH v2 35/48] lmb: add a flag to allow suppressing memory map change notification

2024-07-04 Thread Sughosh Ganu
Add a flag LMB_NONOTIFY that can be passed to the LMB API's for reserving memory. This will then result in no notification being sent from the LMB module for the changes to the LMB's memory map. Signed-off-by: Sughosh Ganu --- Changes since V1: New patch include/lmb.h | 1 + 1 file changed, 1 i

[RFC PATCH v2 36/48] efi: memory: use the lmb API's for allocating and freeing memory

2024-07-04 Thread Sughosh Ganu
Use the LMB API's for allocating and freeing up memory. With this, the LMB module becomes the common backend for managing non U-Boot image memory that might be requested by other modules. Signed-off-by: Sughosh Ganu --- Changes since V1: New patch lib/efi_loader/Kconfig | 1 + lib/efi_loa

[RFC PATCH v2 37/48] event: add event to notify lmb memory map changes

2024-07-04 Thread Sughosh Ganu
Add an event which would be used for notifying changes in the LMB modules' memory map. This is to be used for having a synchronous view of the memory that is currently in use, and that is available for allocations. Signed-off-by: Sughosh Ganu --- Changes since V1: * Remove the event for EFI notif

[RFC PATCH v2 38/48] lib: Kconfig: add a config symbol for getting lmb memory map updates

2024-07-04 Thread Sughosh Ganu
Add a Kconfig symbol to enable getting updates on any memory map changes that might be done by the LMB module. This notification mechanism can then be used to have a synchronous view of allocated and free memory. Signed-off-by: Sughosh Ganu --- Changes since V1: * Change the description to highli

[RFC PATCH v2 39/48] add a function to check if an address is in RAM memory

2024-07-04 Thread Sughosh Ganu
Add a function to check if a given address falls within the RAM address used by U-Boot. This will be used to notify other modules if the address gets allocated, so as to not get re-allocated by some other module. Signed-off-by: Sughosh Ganu --- Changes since V1: * Have a common weak function for

[RFC PATCH v2 40/48] lmb: notify of any changes to the LMB memory map

2024-07-04 Thread Sughosh Ganu
In U-Boot, LMB and EFI are two primary modules who provide memory allocation and reservation API's. Both these modules operate with the same regions of memory for allocations. Use the LMB memory map update event to notify other interested listeners about a change in it's memory map. This can then b

[RFC PATCH v2 41/48] efi_memory: add an event handler to update memory map

2024-07-04 Thread Sughosh Ganu
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 changes in memory map should be notified to other interested modules so that the allocated

[RFC PATCH v2 42/48] ti: k3: remove efi_add_known_memory() function definition

2024-07-04 Thread Sughosh Ganu
The efi_add_known_memory() function for the TI K3 platforms is adding the EFI_CONVENTIONAL_MEMORY type. This memory is now being handled through the LMB module -- the lmb_add_memory() adds this memory to the memory map. Remove the definition of the now superfluous efi_add_known_memory() function.

[RFC PATCH v2 43/48] layerscape: use the lmb API's to add RAM memory

2024-07-04 Thread Sughosh Ganu
The EFI memory allocations are now being done through the LMB module, and hence the memory map is maintained by the LMB module. Use the lmb_add_memory() API function to add the usable RAM memory to the LMB's memory map. Signed-off-by: Sughosh Ganu --- Changes since V1: New patch arch/arm/cpu/ar

[RFC PATCH v2 44/48] x86: e820: use the lmb API for adding RAM memory

2024-07-04 Thread Sughosh Ganu
The EFI_CONVENTIONAL_MEMORY type is now being managed through the LMB module. Add a separate function, lmb_add_memory() to add the RAM memory to the LMB memory map. The efi_add_known_memory() function is now used for adding any other memory type to the EFI memory map. Signed-off-by: Sughosh Ganu

[RFC PATCH v2 45/48] efi_memory: do not add RAM memory to the memory map

2024-07-04 Thread Sughosh Ganu
The EFI_CONVENTIONAL_MEMORY type, which is the usable RAM memory is now being managed by the LMB module. Remove the addition of this memory type to the EFI memory map. This memory now gets added to the EFI memory map as part of the LMB memory map update event handler. Signed-off-by: Sughosh Ganu

[RFC PATCH v2 46/48] lmb: mark the EFI runtime memory regions as reserved

2024-07-04 Thread Sughosh Ganu
Mark the EFI runtime memory region as reserved memory during board init so that it does not get allocated by the LMB module on subsequent memory requests. Signed-off-by: Sughosh Ganu --- Changes since V1: New patch lib/lmb.c | 41 - 1 file changed, 20 ins

[RFC PATCH v2 47/48] test: event: update the expected event dump output

2024-07-04 Thread Sughosh Ganu
With the addition of two events for notification of any changes to memory that is occupied and is free, the output of the event_dump.py script has changed. Update the expected event log to incorporate this change. Signed-off-by: Sughosh Ganu --- Changes since V1: * Remove the line for EFI mem map

[RFC PATCH v2 48/48] temp: mx6sabresd: bump up the size limit of the board

2024-07-04 Thread Sughosh Ganu
With the changes to add notifications for any changes to the LMB map, the size of the image exceeds the limit set. Bump up the image size limit for now to get the platform to build. This is not for committing. Signed-off-by: Sughosh Ganu --- Changes since V1: None configs/mx6sabresd_defconfig

[PATCH v3 0/5] video: Improve syncing performance with cyclic

2024-07-04 Thread Simon Glass
Now that U-Boot has a background-processing feature, it is possible to reduce the amount of 'foreground' syncing of the display. At present this happens quite often. Foreground syncing blocks all other processing, sometimes for 10ms or more. When pasting commands into U-Boot over the UART, this ty

[PATCH v3 1/5] cyclic: Add a symbol for SPL

2024-07-04 Thread Simon Glass
The cyclic subsystem is currently enabled either in all build phases or none. For tools this should not be enabled, but since lib/shc256.c and other files include watchdog.h in the host build, we must make sure that it is not enabled there. Add an SPL symbol so that there is more control of this.

[PATCH v3 2/5] video: Move last_sync to private data

2024-07-04 Thread Simon Glass
Rather than using a static variable, use the video device's private data to remember when the last video sync was completed. This allows each display to have its own sync and avoids using static data in SPL. Signed-off-by: Simon Glass --- (no changes since v1) drivers/video/video-uclass.c | 10

[PATCH v3 3/5] video: Use cyclic to handle video sync

2024-07-04 Thread Simon Glass
At present U-Boot flushes the cache after every character written to ths display. This makes the command-line slower, to the point that pasting in long strings can fail. Add a cyclic function to sync the display every 10ms. Enable this by default. Allow much longer times for sandbox, since the SD

[PATCH v3 4/5] sandbox: Increase cyclic CPU-time limit

2024-07-04 Thread Simon Glass
Now that sandbox is using cyclic for video, it trips the 1us time limit. Updating the sandbox display often takes 20ms or more. Increase the limit to 100ms to avoid a warning. Signed-off-by: Simon Glass --- (no changes since v1) common/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v3 5/5] sandbox: Drop video-sync in serial driver

2024-07-04 Thread Simon Glass
With sandbox, when U-Boot is waiting for input it syncs the video display, since presumably the user has finished typing. Now that cyclic is used for video syncing, we can drop this. Cyclic will automatically call the video_idle() function when idle. Signed-off-by: Simon Glass --- (no changes s

Re: [PATCH 0/4] fs: ubifs: Fix crash and add safeguards

2024-07-04 Thread Alexander Dahl
Hello Heiko, Am Thu, Jul 04, 2024 at 06:28:31AM +0200 schrieb Heiko Schocher: > Hello Alexander, > > On 03.07.24 12:12, Alexander Dahl wrote: > > Hei hei, > > > > filesystem handling is different in U-Boot and beyond that UBI/UBIFS is > > different from other filesystems in U-Boot. There's UBI

[PATCH V4 0/6] Low Power Mode: Package TIFS Stub in BeaglePlay

2024-07-04 Thread Dhruva Gole
This series includes the binman related changes required to package TIFS Stub to support Low Power Modes on BeaglePlay. It also documents the boot flow and tispl packaging details regarding the same. Changelog: * Add more documentation around TIFS Stub for AM62, 62A and 62P * Fix documentation for

[PATCH V4 1/6] arm: dts: k3-am625-beagleplay: Package TIFS Stub

2024-07-04 Thread Dhruva Gole
Add support for packaging the TIFS Stub as it's required for basic Low Power Modes like Deep Sleep. Acked-by: Neha Malcom Francis Signed-off-by: Dhruva Gole --- arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi | 33 +++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/

[PATCH V4 2/6] doc: beagle: am62x_beagleplay: Update the boot flow to show TIFS Stub

2024-07-04 Thread Dhruva Gole
Add the AM62x boot flow to show at which point the TIFS Stub actually gets loaded. Signed-off-by: Dhruva Gole --- doc/board/beagle/am62x_beagleplay.rst |2 +- doc/board/ti/img/boot_diagram_am62.svg | 1983 2 files changed, 1984 insertions(+), 1 deletion(-) create m

[PATCH V4 3/6] doc: beagle: am62x_beagleplay: Add TIFS Stub in image format

2024-07-04 Thread Dhruva Gole
Mention the TIFS Stub in the TISP image format Signed-off-by: Dhruva Gole --- doc/board/beagle/am62x_beagleplay.rst | 2 +- doc/board/ti/img/tifsstub_dm_tispl.bin.svg | 353 + 2 files changed, 354 insertions(+), 1 deletion(-) create mode 100644 doc/board/ti/img/tifsst

[PATCH V4 5/6] doc: ti: am62*: Mention TIFS Stub in img fmts and boot flow

2024-07-04 Thread Dhruva Gole
Since AM62x, AM62P and AM62A all use similar boot flows and their low power mode s/w ARCH is also similar in the way that they make use of the TIFS Stub, update their documentation to show where TIFS Stub is. Signed-off-by: Dhruva Gole --- doc/board/ti/am62ax_sk.rst | 4 ++-- doc/board/ti/am62px

[PATCH V4 4/6] doc: ti: k3: Add TIFS Stub documentation

2024-07-04 Thread Dhruva Gole
Add documentation to briefly explain the role of TIFS Stub in relevant K3 SoC's. Signed-off-by: Dhruva Gole --- doc/board/ti/k3.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/board/ti/k3.rst b/doc/board/ti/k3.rst index 67b066a07d3a..2f63852b3801 100644 --- a/doc/board/ti/k3.rst

[PATCH V4 6/6] MAINTAINERS: Include the TI docs under ARM TI

2024-07-04 Thread Dhruva Gole
Add entry for the TI boards documentation under ARM TI Signed-off-by: Dhruva Gole --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6b32a6d94644..da730c6e4840 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -733,6 +733,7 @@ F: arch/arm/mach-omap2/

Re: [PATCH v2 0/5] bootstd: Add Android support

2024-07-04 Thread Mattijs Korpershoek
Hi Tom, On jeu., juin 20, 2024 at 08:23, Tom Rini wrote: > On Thu, Jun 13, 2024 at 12:13:07PM +0200, 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: >

Re: [PATCH] arm: mediatek: split config into separate options for the board and SoC

2024-07-04 Thread Leith Bade
Hi Weijie, > I have a better example for reference: > arch/mips/mach-mtmips > > ARCH_MTMIPS is defined for the entire MediaTek MIPS platform, same as > ARCH_MEDIATEK. > > The mtmips then defined its SoC families: > SOC_MT7620, SOC_MT7621 and SOC_MT7628 > > Each SoC has its own folder and Kconfig,

Re: [PATCH v2] arm: mvebu: Enable bootstd and other modernization for Synology DS414 (Armada XP) board

2024-07-04 Thread Phil Sutter
Hi Tony, On Fri, Jun 28, 2024 at 03:44:01PM -0700, Tony Dinh wrote: > On Fri, Jun 28, 2024 at 3:04 PM Tony Dinh wrote: > > On Wed, Jun 26, 2024 at 3:31 AM Phil Sutter wrote: > > > On Sat, Jun 15, 2024 at 03:06:54PM -0700, Tony Dinh wrote: > > > [...] > > > > diff --git a/board/Synology/ds414/ds4

[PATCH v2] msc_sm2s_imx8mp: Adjust the initrd_addr location

2024-07-04 Thread Fabio Estevam
From: Fabio Estevam Booting an initramfs with the current initrd_addr address may lead to initramfs corruption and boot failure. Fix the initramfs problem by applying the following layout suggested by Tom Rini: loadaddr=0x4048 --> Gets moved to 0x4060 in run-time: Uncompressing Kern

Re: [PATCH] msc_sm2s_imx8mp: Adjust the initrd_addr location

2024-07-04 Thread Fabio Estevam
Hi Tom, On Wed, Jul 3, 2024 at 3:22 PM Tom Rini wrote: > How is the fdt at 0x4300 not being clobbered if the initramfs at > 0x4380 is? Is it because it's just enough of a bad spot that we > relocate the fdt out of the way? With the kernel at 0x4048 > everything else is too low. kerne

[PATCH 0/3] rockchip: enable PCIe/NVMe support for Theobroma RK3588 devices

2024-07-04 Thread Quentin Schulz
onfig| 4 ++ dts/upstream/src/arm64/rockchip/rk3588-jaguar.dts | 59 +++ 3 files changed, 68 insertions(+) --- base-commit: 0f073e022ddc5070e5df1d053e4bdc1874fbcc0f change-id: 20240704-tsd-rk3588-nvme-aa133c24cb9e Best regards, -- Quentin Schulz

[PATCH 1/3] arm64: dts: rockchip: add PCIe3 support on rk3588-jaguar

2024-07-04 Thread Quentin Schulz
From: Heiko Stuebner The Jaguar SBC provides an M.2 slot connected to the pcie3 controller. In contrast to a number of other boards the pcie-refclk is gpio-controlled, so the necessary clock and is added to the list of pcie3 clocks. Signed-off-by: Heiko Stuebner Reviewed-by: Quentin Schulz Lin

[PATCH 2/3] rockchip: jaguar-rk3588: add PCIe M.2 M-KEY NVMe support

2024-07-04 Thread Quentin Schulz
From: Quentin Schulz Jaguar has an M.2 M-KEY slot for NVMes, connected to the PCIe3 4-lane PHY on RK3588. CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y is technically not necessary since it's required only for the M.2 E-KEY slot on the main PCB, but that is used typically for WiFi+BT modules, or on the

[PATCH 3/3] rockchip: tiger-rk3588: add PCIe support

2024-07-04 Thread Quentin Schulz
From: Quentin Schulz This enables PCIe support on Tiger as exposed on Q7_PCIE[0123]_[RT]X_[PN] signals and more specifically on the `PCI Express` connector on the Haikou devkit. This was tested with a PCIe to NVMe adapter (e.g. https://www.amazon.de/dp/B07RZZ3TJG). Signed-off-by: Quentin Schulz

RE: [PATCH v1 0/4] Sync StarFive JH7110 clock and reset dt-bindings with Linux

2024-07-04 Thread Hal Feng
> On 05.06.24 23:38, Conor Dooley wrote: > On Wed, Jun 05, 2024 at 08:35:15AM -0600, Tom Rini wrote: > > On Wed, Jun 05, 2024 at 01:56:13AM +, Hal Feng wrote: > > > > On 04.06.24 04:32, E Shattow wrote: > > > > Hi Hal, > > > > > > > > Instead of manual dt-bindings sync can we please adopt OF_U

zynq_gem without PHY

2024-07-04 Thread Patrick Huesmann
Dear U-Boot devs/maintainers, We are running Xilinx MPSoC based MicroTCA mezzanine boards that, according to the MicroTCA standard, connect to the crate's Ethernet switch via a 1000BASE-BX interface at the backplane (the interface is basically equivalent to a SFP module; we actually have a bri

Re: [PATCH v2 0/7] Add Starfive JH7110 Cadence USB driver

2024-07-04 Thread Heinrich Schuchardt
On 7/4/24 07:50, Minda Chen wrote: Add Starfive JH7110 Cadence USB driver and related PHY driver. So the codes can be used in visionfive2 and star64 7110 board. The driver is almost the same with kernel driver. Test with Star64 JH7110 board USB 3.0 + USB 2.0 host. The code can work. - Star64 u

Re: [PATCH v2 1/8] usb: cdns3: Set USB PHY mode in cdns3_core_init_role()

2024-07-04 Thread Roger Quadros
Hi, On 04/07/2024 08:50, Minda Chen wrote: > USB PHY maybe need to set PHY mode in different USB > dr mode. So translate to generic PHY mode and call > generic_phy_set_mode(). > > Signed-off-by: Minda Chen > --- > drivers/usb/cdns3/core.c | 25 + > 1 file changed, 25 ins

Re: [PATCH v2 2/8] phy: starfive: Add Starfive JH7110 USB 2.0 PHY driver

2024-07-04 Thread Roger Quadros
On 04/07/2024 08:50, Minda Chen wrote: > Add Starfive JH7110 USB 2.0 PHY driver, which is generic > PHY driver. > > Signed-off-by: Minda Chen > --- > drivers/phy/Kconfig| 1 + > drivers/phy/Makefile | 1 + > drivers/phy/starfive/Kconfig | 1

Re: [PATCH v2 3/8] phy: starfive: Add Starfive JH7110 PCIe 2.0 PHY driver

2024-07-04 Thread Roger Quadros
On 04/07/2024 08:50, Minda Chen wrote: > Add Starfive JH7110 PCIe 2.0 PHY driver, which is generic > PHY driver and can be used as USB 3.0 driver. > > Signed-off-by: Minda Chen > --- > drivers/phy/starfive/Kconfig | 7 + > drivers/phy/starfive/Makefile | 1 + > drivers/

Re: [PATCH 1/3] arm64: dts: rockchip: add PCIe3 support on rk3588-jaguar

2024-07-04 Thread Heiko Stübner
Am Donnerstag, 4. Juli 2024, 14:53:31 CEST schrieb Quentin Schulz: > From: Heiko Stuebner > > The Jaguar SBC provides an M.2 slot connected to the pcie3 controller. > In contrast to a number of other boards the pcie-refclk is gpio-controlled, > so the necessary clock and is added to the list of p

Re: [PATCH 2/3] rockchip: jaguar-rk3588: add PCIe M.2 M-KEY NVMe support

2024-07-04 Thread Heiko Stübner
Am Donnerstag, 4. Juli 2024, 14:53:32 CEST schrieb Quentin Schulz: > From: Quentin Schulz > > Jaguar has an M.2 M-KEY slot for NVMes, connected to the PCIe3 4-lane > PHY on RK3588. > > CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y is technically not necessary since > it's required only for the M.2 E-KEY

Re: [PATCH v2 3/8] phy: starfive: Add Starfive JH7110 PCIe 2.0 PHY driver

2024-07-04 Thread Roger Quadros
On 04/07/2024 08:50, Minda Chen wrote: > Add Starfive JH7110 PCIe 2.0 PHY driver, which is generic > PHY driver and can be used as USB 3.0 driver. > > Signed-off-by: Minda Chen > --- > drivers/phy/starfive/Kconfig | 7 + > drivers/phy/starfive/Makefile | 1 + > drivers/

Re: [PATCH v2 4/8] usb: cdns: starfive: Add cdns USB driver

2024-07-04 Thread Roger Quadros
On 04/07/2024 08:50, Minda Chen wrote: > Add cdns USB3 wrapper driver. > > Signed-off-by: Minda Chen > --- > drivers/usb/cdns3/Kconfig | 7 ++ > drivers/usb/cdns3/Makefile | 2 + > drivers/usb/cdns3/cdns3-starfive.c | 183 + > 3 files changed,

Re: [PATCH 3/3] rockchip: tiger-rk3588: add PCIe support

2024-07-04 Thread Heiko Stübner
Am Donnerstag, 4. Juli 2024, 14:53:33 CEST schrieb Quentin Schulz: > From: Quentin Schulz > > This enables PCIe support on Tiger as exposed on > Q7_PCIE[0123]_[RT]X_[PN] signals and more specifically on the `PCI > Express` connector on the Haikou devkit. > > This was tested with a PCIe to NVMe a

[PATCH] test: test for ignore OsIndications

2024-07-04 Thread Ilias Apalodimas
The tests we currently have expect the firmware update to fail when OsIndications is not set properly. However, we have a Kconfig flag that explicitly ignores that variable and trigers the capsule update regardless. Adjust the tests accordingly Signed-off-by: Ilias Apalodimas --- .../py/tests/te

Re: [PATCH] test: test for ignore OsIndications

2024-07-04 Thread Ilias Apalodimas
Hi Heinrich Please ignore this patch I messed up my rebasing. I'll send the proper one shortly On Thu, 4 Jul 2024 at 17:37, Ilias Apalodimas wrote: > > The tests we currently have expect the firmware update to fail > when OsIndications is not set properly. However, we have a Kconfig flag > that

[PATCH v2] test: test for ignore OsIndications

2024-07-04 Thread Ilias Apalodimas
The tests we currently have expect the firmware update to fail when OsIndications is not set properly. However, we have a Kconfig flag that explicitly ignores that variable. Adjust the tests accordingly Signed-off-by: Ilias Apalodimas --- Changes since v1: - v1 was rebased incorrectly and only se

[PATCH] clk: Propagate clk_set_rate() if CLK_SET_PARENT_RATE present for gate and mux

2024-07-04 Thread Michael Trimarchi
Gate and mux does not have .set_rate operation, but they could have CLK_SET_PARENT_RATE flag set. In that case it's usually possible to find a parent up the tree which is capable of setting the rate (div, pll, etc). Add clk_generic_set_rate to allow them to trasverse the clock tree. Cc: Sam Protse

Re: [PATCH v3 4/5] sandbox: Increase cyclic CPU-time limit

2024-07-04 Thread Caleb Connolly
Hi Simon, On 04/07/2024 09:48, Simon Glass wrote: Now that sandbox is using cyclic for video, it trips the 1us time limit. Updating the sandbox display often takes 20ms or more. Increase the limit to 100ms to avoid a warning. Signed-off-by: Simon Glass --- (no changes since v1) common/Kco

Re: [PATCH v3 0/5] video: Improve syncing performance with cyclic

2024-07-04 Thread Caleb Connolly
Hi Simon, On 04/07/2024 09:48, Simon Glass wrote: Now that U-Boot has a background-processing feature, it is possible to reduce the amount of 'foreground' syncing of the display. At present this happens quite often. Foreground syncing blocks all other processing, sometimes for 10ms or more. Whe

Re: [PATCH] efi_loader: adjust config options for capsule updates

2024-07-04 Thread Ilias Apalodimas
Hi Heinrich On Sun, 30 Jun 2024 at 15:47, Ilias Apalodimas wrote: > > Hi Heinrich, > > On Sun, 30 Jun 2024 at 15:23, Heinrich Schuchardt wrote: > > > > On 6/22/24 18:38, Ilias Apalodimas wrote: > > > On Sat, 22 Jun 2024 at 19:36, Heinrich Schuchardt > > > wrote: > > >> > > >> On 20.06.24 22:15

[PATCH v1] verdin-am62: add DFU, USB and UUU fastboot support

2024-07-04 Thread Vitor Soares
From: Vitor Soares Enable USB host as well as USB gadget and DFU support for a53 and r5 configs. Also, enable UUU fastboot support to download files with the UUU tool from a53. Additionally, configure usb0 to peripheral mode and add extra environment for DFU use. Signed-off-by: Vitor Soares --

Re: (subset) [PATCH 00/14] testb: Various tweaks and fixes for Labgrid

2024-07-04 Thread Tom Rini
On Sun, 23 Jun 2024 14:30:19 -0600, Simon Glass wrote: > This series includes a number of mostly unrelated changes which are in > service of running U-Boot on a lab using Labgrid. > > Changes in v2: > - Add new patch to update u-boot.cfg with CFG_... options > > Simon Glass (14): > trace: Upda

Re: [PATCH] test/py/tests: Update some network dependencies

2024-07-04 Thread Tom Rini
On Tue, 18 Jun 2024 14:23:43 -0600, Tom Rini wrote: > On tests which require "tftpboot" we need to depend not on cmd_net but > rather cmd_tftpboot. And on tests which require cmd_pxe we do not need > to also depend on cmd_net as this should be handled already via Kconfig > logic. > > Applied to

Re: [PATCH] CI: Make pytest export JUnitXML

2024-07-04 Thread Tom Rini
On Thu, 27 Jun 2024 07:43:20 -0600, Tom Rini wrote: > Both GitLab and Azure (and other CI systems) have native support for > displaying JUnitXML test report results. The pytest framework that we > use can generate these reports. Change our CI tests so that they will > generate these reports and th

[PATCH] ARM: dts: imx8mp-beacon-kit-u-boot: Drop EQoS clock work-around

2024-07-04 Thread Adam Ford
Since commit ecb1c37a7b64 ("clk: imx8mp: Add EQoS MAC clock"), the clocks for the DWMAC driver can be configured, and removing them breaks operation. Fixes: ecb1c37a7b64 ("clk: imx8mp: Add EQoS MAC clock") Suggested-by: Tim Harvey Signed-off-by: Adam Ford diff --git a/arch/arm/dts/imx8mp-beacon

RE: [PATCH] ARM: dts: imx8mp-beacon-kit-u-boot: Drop EQoS clock work-around

2024-07-04 Thread Peng Fan
> Subject: [PATCH] ARM: dts: imx8mp-beacon-kit-u-boot: Drop EQoS > clock work-around > > Since commit ecb1c37a7b64 ("clk: imx8mp: Add EQoS MAC clock"), > the clocks for the DWMAC driver can be configured, and removing > them breaks operation. > > Fixes: ecb1c37a7b64 ("clk: imx8mp: Add EQoS MAC cl

Re: [PATCH v3 00/12] xtensa: Enable qemu-xtensa board

2024-07-04 Thread Tom Rini
On Tue, 18 Jun 2024 14:56:00 +0100, Jiaxun Yang wrote: > This series enabled qemu-xtensa board. > > For dc232b CPU it needs to be built with toolchain[1]. > > This is a side product of me investigating architectures > physical address != virtual address in U-Boot. Now we can > get it covered und

Missing eth1addr for Banana Pi BPI-R3

2024-07-04 Thread Leith Bade
Hi, I have been investigating how to stop the MAC addresses on my Banana Pi BPI-R3 from changing on every boot. It appears the ethaddr and eth1addr environment variables are used for this purpose as they are randomly generated on first boot, then become fixed after being saved to the environment

Re: [PATCH v2] arm: mvebu: Enable bootstd and other modernization for Synology DS414 (Armada XP) board

2024-07-04 Thread Tony Dinh
Hi Phil, On Thu, Jul 4, 2024 at 4:27 AM Phil Sutter wrote: > > Hi Tony, > > On Fri, Jun 28, 2024 at 03:44:01PM -0700, Tony Dinh wrote: > > On Fri, Jun 28, 2024 at 3:04 PM Tony Dinh wrote: > > > On Wed, Jun 26, 2024 at 3:31 AM Phil Sutter wrote: > > > > On Sat, Jun 15, 2024 at 03:06:54PM -0700,

  1   2   >