From: Tom Rini Date: Fri, 17 Jul 2020 09:29:26 -0400 Subject: [PATCH 1/4] lmb/bdinfo: dump lmb info via bdinfo In-Reply-To: <20200612124121.13846-2-t-kristo@ti.com> References: <20200612124121.13846-1-t-kristo@ti.com> <20200612124121.13846-2-t-kristo@ti.com> Message-ID: <20200717132926.GB26384@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Jun 12, 2020 at 03:41:18PM +0300, Tero Kristo wrote: > Dump lmb status from the bdinfo command. This is useful for seeing the > reserved memory regions from the u-boot cmdline. > > Signed-off-by: Tero Kristo > --- > cmd/bdinfo.c | 8 +++++++- > include/lmb.h | 1 + > lib/lmb.c | 42 +++++++++++++++++++++++------------------- > 3 files changed, 31 insertions(+), 20 deletions(-) > > diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c > index dba552b03f..05e1b27de0 100644 > --- a/cmd/bdinfo.c > +++ b/cmd/bdinfo.c > @@ -10,6 +10,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -365,8 +366,13 @@ static int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, > #if CONFIG_IS_ENABLED(MULTI_DTB_FIT) > print_num("multi_dtb_fit", (ulong)gd->multi_dtb_fit); > #endif > - if (gd->fdt_blob) > + if (gd->fdt_blob) { > + struct lmb lmb; > print_num("fdt_blob", (ulong)gd->fdt_blob); > + lmb_init_and_reserve(&lmb, gd->bd, (void *)gd->fdt_blob); > + lmb_dump_all_force(&lmb); > + } > + > print_cpu_word_size(); > > return 0; Can you please rebase this on top of master? Simon's series to cleanup bdinfo stuff has been applied, thanks. The rest of your changes are fine and under test now. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: