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

Simon Glass sjg at chromium.org
Sat Jul 13 17:15:59 CEST 2024


On Thu, 4 Jul 2024 at 08:37, Sughosh Ganu <sughosh.ganu at linaro.org> wrote:
>
> 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 board's DTB.
>
> Mark these regions of memory with the LMB_NOOVERWRITE flag to indicate
> that these regions cannot be re-requested or overwritten.
>
> Signed-off-by: Sughosh Ganu <sughosh.ganu at linaro.org>
> ---
> Changes since V1:
> * Mark the reserved regions as LMB_NOOVERWRITE.
> * Call the lmb_reserve_common() function in U-Boot proper after
>   relocation.
>
>  lib/lmb.c | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list