diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2009-01-14 15:46:01 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-02-10 21:38:00 -0500 |
commit | 059f134f844ec52772353c95693fcb5b86e80193 (patch) | |
tree | 3ce447cd163b61463225ab62f8728daa22c89a4d /arch/powerpc/kernel/prom.c | |
parent | 33642d31d19c967b9739253912cdd48885509805 (diff) |
powerpc: Allow debugging of LMBs with lmb=debug
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>
Diffstat (limited to 'arch/powerpc/kernel/prom.c')
-rw-r--r-- | arch/powerpc/kernel/prom.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index f00f83109ab3..5ec6a9e23933 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c | |||
@@ -1075,11 +1075,6 @@ static void __init early_reserve_mem(void) | |||
1075 | DBG("reserving: %llx -> %llx\n", base, size); | 1075 | DBG("reserving: %llx -> %llx\n", base, size); |
1076 | lmb_reserve(base, size); | 1076 | lmb_reserve(base, size); |
1077 | } | 1077 | } |
1078 | |||
1079 | #if 0 | ||
1080 | DBG("memory reserved, lmbs :\n"); | ||
1081 | lmb_dump_all(); | ||
1082 | #endif | ||
1083 | } | 1078 | } |
1084 | 1079 | ||
1085 | #ifdef CONFIG_PHYP_DUMP | 1080 | #ifdef CONFIG_PHYP_DUMP |
@@ -1221,6 +1216,7 @@ void __init early_init_devtree(void *params) | |||
1221 | lmb_enforce_memory_limit(limit); | 1216 | lmb_enforce_memory_limit(limit); |
1222 | 1217 | ||
1223 | lmb_analyze(); | 1218 | lmb_analyze(); |
1219 | lmb_dump_all(); | ||
1224 | 1220 | ||
1225 | DBG("Phys. mem: %lx\n", lmb_phys_mem_size()); | 1221 | DBG("Phys. mem: %lx\n", lmb_phys_mem_size()); |
1226 | 1222 | ||