[PATCH v3 3/7] lmb: add lmb_dump_region() function

Simon Glass sjg at chromium.org
Thu Apr 29 18:10:46 CEST 2021


On Wed, 28 Apr 2021 at 03:23, Patrick Delaunay
<patrick.delaunay at foss.st.com> wrote:
>
> Add lmb_dump_region() function, to simplify lmb_dump_all_force().
> This patch is based on Linux memblock dump function.
>
> An example of bdinfo output is:
>
> .....
> fdt_size    = 0x000146a0
> FB base     = 0xfdd00000
> lmb_dump_all:
>  memory.cnt  = 0x1
>  memory[0]      [0xc0000000-0xffffffff], 0x40000000 bytes flags: 0
>  reserved.cnt  = 0x6
>  reserved[0]    [0x10000000-0x10045fff], 0x00046000 bytes flags: 4
>  reserved[1]    [0x30000000-0x3003ffff], 0x00040000 bytes flags: 4
>  reserved[2]    [0x38000000-0x3800ffff], 0x00010000 bytes flags: 4
>  reserved[3]    [0xe8000000-0xefffffff], 0x08000000 bytes flags: 4
>  reserved[4]    [0xfbaea344-0xfdffffff], 0x02515cbc bytes flags: 0
>  reserved[5]    [0xfe000000-0xffffffff], 0x02000000 bytes flags: 4
> arch_number = 0x00000000
> TLB addr    = 0xfdff0000
> ....
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
> ---
>
> (no changes since v1)
>
>  lib/lmb.c | 40 ++++++++++++++++++++--------------------
>  1 file changed, 20 insertions(+), 20 deletions(-)

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


More information about the U-Boot mailing list