[PATCHv5 0/6] various memory related fixups
Randolph Sapp
rs at ti.com
Mon Apr 27 23:34:06 CEST 2026
On Wed Apr 22, 2026 at 12:09 PM CDT, rs wrote:
> From: Randolph Sapp <rs at ti.com>
>
> Nitpicks and fixes from the discovery thread on adding PocketBeagle2 support
> [1]. This does a lot of general setup required for the device, but these
> modifications themselves aren't device specific. For those specifically
> interested in PocketBeagle2 support and don't care about these details, my
> development branch is public [2].
>
> That second patch may provoke some opinions, but honestly if that warning was
> still present I wouldn't have spent a week poking holes in both the EFI and LMB
> allocations systems. Please let me know if there is a specific usecase that it
> breaks though.
>
> [1] https://lore.kernel.org/all/DHHC66BBMD27.YHGIH43C6XBK@ti.com/
> [2] https://github.com/StaticRocket/u-boot/tree/feature/pocketbeagle2
>
> v2:
> - Remove additional increment and decrement in lmb_free_fdt_regions
> - Drop the patch to backfill EFI_CONVENTIONAL_MEMORY
> - Adjust the removal loop nitpick patch description
> - Change the reserve memory patch to use new end_addr_sp
> v3:
> - Update lmb flags to use the macro documentation for constants
> - Change efi_mem_sort to use list_for_each_entry_safe
> v4:
> - Fix typos in LMB allocation flags macro documentation
> - Rename end_addr_sp to initial_relocaddr
> - Keep the map_sysmem dance in the efi u-boot reservation
> - Use the active device tree pointed to by gd->fdt_blob to clean up old
> reservations
> v5:
> - Keep return value as long in boot_fdt_reserve_region
> - Fix formatting in initial_relocaddr patch
>
>
> Randolph Sapp (6):
> lmb: allocation flags macro documentation
> boot_fdt_add_mem_rsv_regions: free old dtb reservations
> efi_dt_fixup: use fdtdec_get_bool
> efi_selftest_memory: check for duplicates first
> efi_mem_sort: use list_for_each_entry_safe instead
> memory: reserve from start_addr_sp to initial_relocaddr
>
> arch/mips/lib/bootm.c | 2 +-
> boot/bootm.c | 2 +-
> boot/bootm_os.c | 2 +-
> boot/image-board.c | 2 +-
> boot/image-fdt.c | 55 ++++++++++++++++++--------
> common/board_f.c | 9 ++++-
> include/asm-generic/global_data.h | 7 ++++
> include/image.h | 2 +-
> include/lmb.h | 30 +++++++++++---
> lib/efi_loader/efi_dt_fixup.c | 3 +-
> lib/efi_loader/efi_memory.c | 49 ++++++++---------------
> lib/efi_selftest/efi_selftest_memory.c | 21 +++++-----
> lib/lmb.c | 41 ++++---------------
> 13 files changed, 118 insertions(+), 107 deletions(-)
Any more comments on this series?
More information about the U-Boot
mailing list