From: Randolph Sapp <[email protected]> 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 first 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/[email protected]/ [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 v6: - Drop patches that have been picked up already - Add board_get_usable_ram_top for the sandbox - s/boot_fdt_reserve_region/boot_fdt_handle_region/ v7: - Remove board_get_usable_ram_top for the sandbox - Reinstate bank hopping logic for U-Boot reserved region - Update description for gd->initial_relocaddr, make it clear this is also an exclusive value - Add disclaimer to boot_fdt_add_mem_rsv_regions - Add static boot_fdt_handle_mem_rsv_regions as a generic walker for the two calls into boot_fdt_add_mem_rsv_regions - Make boot_fdt_add_mem_rsv_regions fdt pointer const - Leave the PRAM region out of the reservation. Previous commit messages indicate that this is intended. - Add a test for boot_fdt_add_mem_rsv_regions Randolph Sapp (3): boot_fdt_add_mem_rsv_regions: free old dtb reservations test: boot: add a fdt reserved region check memory: reserve from start_addr_sp to initial_relocaddr boot/image-fdt.c | 77 +++++++++++++++++++++++-------- common/board_f.c | 9 +++- include/asm-generic/global_data.h | 9 ++++ include/image.h | 2 +- lib/efi_loader/efi_memory.c | 2 +- lib/lmb.c | 7 +-- test/boot/Makefile | 1 + test/boot/image_fdt.c | 53 +++++++++++++++++++++ test/cmd_ut.c | 2 + test/py/tests/test_suite.py | 2 +- 10 files changed, 137 insertions(+), 27 deletions(-) create mode 100644 test/boot/image_fdt.c -- 2.54.0

