]> git.dujemihanovic.xyz Git - u-boot.git/commit
lmb: prohibit allocations above ram_top even from same bank
authorSughosh Ganu <sughosh.ganu@linaro.org>
Mon, 2 Dec 2024 07:06:24 +0000 (12:36 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 6 Dec 2024 23:47:23 +0000 (17:47 -0600)
commit1a48b0be93d48f9ec5498297ec775fb572d3d150
treef3931994b148b4383235a9e6055587167f957ed7
parentef9574da96f0cb8644c2a211000447cbf625260f
lmb: prohibit allocations above ram_top even from same bank

There are platforms which set the value of ram_top based on certain
restrictions that the platform might have in accessing memory above
ram_top, even when the memory region is in the same DRAM bank. So,
even though the LMB allocator works as expected, when trying to
allocate memory above ram_top, prohibit this by marking all memory
above ram_top as reserved, even if the said memory region is from the
same bank.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Tested-by: Andreas Schwab <schwab@suse.de>
lib/lmb.c