Skip to content

Commit

Permalink
powerpc: Allow debugging of LMBs with lmb=debug
Browse files Browse the repository at this point in the history
The lmb debugging can be turned on at boottime with lmb=debug on the
command line. However on powerpc that doesn't work, because we don't
necessarily call lmb_dump_all().

So always call lmb_dump_all() after lmb_analyze(), no output is
generated unless lmb=debug is found on the command line.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Michael Ellerman authored and Benjamin Herrenschmidt committed Feb 11, 2009
1 parent 33642d3 commit 059f134
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions arch/powerpc/kernel/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1075,11 +1075,6 @@ static void __init early_reserve_mem(void)
DBG("reserving: %llx -> %llx\n", base, size);
lmb_reserve(base, size);
}

#if 0
DBG("memory reserved, lmbs :\n");
lmb_dump_all();
#endif
}

#ifdef CONFIG_PHYP_DUMP
Expand Down Expand Up @@ -1221,6 +1216,7 @@ void __init early_init_devtree(void *params)
lmb_enforce_memory_limit(limit);

lmb_analyze();
lmb_dump_all();

DBG("Phys. mem: %lx\n", lmb_phys_mem_size());

Expand Down

0 comments on commit 059f134

Please sign in to comment.