[PATCH] mach-snapdragon: fix erroneous lmb allocations

Tom Rini trini at konsulko.com
Mon Aug 11 15:59:08 CEST 2025


On Mon, Aug 11, 2025 at 12:45:13PM +0200, Casey Connolly wrote:

> In 6e4675b8e5d8 ("lmb: replace the lmb_alloc() and lmb_alloc_base()
> API's") an additional allocation was mistakenly introduced resulting
> in ${kernel_comp_size} containing the address of a second 64mb region
> rather than the actual value of KERNEL_COMP_SIZE.
> 
> Additionally, in b40d7b8f72f1 ("Merge patch series "lmb: use a single
> API for all allocations"") merge conflict resulted in an additional
> 128mb allocation for ${loadaddr} when CONFIG_FASTBOOT is enabled, where
> it should actually be set to the same value as ${fastboot_addr_r} to
> respect size constraints (and since it doesn't seem to interfer with
> any bootflows).
> 
> Fixup both of these, freeing up 192mb of memory.
> 
> Fixes: 6e4675b8e5d8 ("lmb: replace the lmb_alloc() and lmb_alloc_base() API's")
> Fixes: b40d7b8f72f1 ("Merge patch series "lmb: use a single API for all allocations"")
> Signed-off-by: Casey Connolly <casey.connolly at linaro.org>

Whoops, thanks. In hind sight I should have cc'd you as well when
merging all of that.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250811/f2c99039/attachment.sig>


More information about the U-Boot mailing list