From: Tero Kristo Date: Fri, 17 Jul 2020 16:45:40 +0300 Subject: [PATCH 1/4] lmb/bdinfo: dump lmb info via bdinfo In-Reply-To: <20200717132926.GB26384@bill-the-cat> References: <20200612124121.13846-1-t-kristo@ti.com> <20200612124121.13846-2-t-kristo@ti.com> <20200717132926.GB26384@bill-the-cat> Message-ID: <5ab16a3b-fd71-3fdc-2578-cf0f7c74dc41@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 17/07/2020 16:29, Tom Rini wrote: > 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. Yeah, I can repost this single patch. Thanks for the heads-up. -Tero -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki