linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] powerpc: Allow debugging of LMBs with lmb=debug
@ 2009-01-15  6:46 Michael Ellerman
  2009-01-15  6:46 ` [PATCH 2/2] lmb: Rework lmb_dump_all() output Michael Ellerman
  2009-01-15  6:47 ` [PATCH 1/2] powerpc: Allow debugging of LMBs with lmb=debug David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Ellerman @ 2009-01-15  6:46 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: David S. Miller

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>
---
 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 c09cffa..045277b 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -1070,11 +1070,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
@@ -1216,6 +1211,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());
 
-- 
1.5.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-01-15  6:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-15  6:46 [PATCH 1/2] powerpc: Allow debugging of LMBs with lmb=debug Michael Ellerman
2009-01-15  6:46 ` [PATCH 2/2] lmb: Rework lmb_dump_all() output Michael Ellerman
2009-01-15  6:47   ` David Miller
2009-01-15  6:47 ` [PATCH 1/2] powerpc: Allow debugging of LMBs with lmb=debug David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).