* [PATCH] ppc64: Fix oops for !CONFIG_NUMA
@ 2005-09-06 11:00 Michael Ellerman
0 siblings, 0 replies; only message in thread
From: Michael Ellerman @ 2005-09-06 11:00 UTC (permalink / raw)
To: Paul Mackerras
Cc: Andrew Morton, linux-kernel, linuxppc64-dev, Linus Torvalds
The SPARSEMEM EXTREME code (802f192e4a600f7ef84ca25c8b818c8830acef5a) that
went in yesterday broke PPC64 for !CONFIG_NUMA.
The problem is that (free|reserve)_bootmem don't take a page number as their
first argument, they take an address. Ruh roh.
Booted on P5 LPAR, iSeries and G5.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
---
arch/ppc64/mm/init.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: work/arch/ppc64/mm/init.c
===================================================================
--- work.orig/arch/ppc64/mm/init.c
+++ work/arch/ppc64/mm/init.c
@@ -553,12 +553,12 @@ void __init do_init_bootmem(void)
* present.
*/
for (i=0; i < lmb.memory.cnt; i++)
- free_bootmem(lmb_start_pfn(&lmb.memory, i),
+ free_bootmem(lmb.memory.region[i].base,
lmb_size_bytes(&lmb.memory, i));
/* reserve the sections we're already using */
for (i=0; i < lmb.reserved.cnt; i++)
- reserve_bootmem(lmb_start_pfn(&lmb.reserved, i),
+ reserve_bootmem(lmb.reserved.region[i].base,
lmb_size_bytes(&lmb.reserved, i));
for (i=0; i < lmb.memory.cnt; i++)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-06 11:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-06 11:00 [PATCH] ppc64: Fix oops for !CONFIG_NUMA Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®