Commit 0d7040ad authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: fix POWER3 NUMA init

From: Anton Blanchard <anton@samba.org>

We were passing in the hole size as kB not pages to free_area_init which
made the VM misbehave.  This only hit on POWER3 because POWER4 and newer
places IO above all memory and so doesnt have a hole.
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 81d5fd84
......@@ -457,7 +457,7 @@ void __init paging_init(void)
zones_size[ZONE_DMA] = end_pfn - start_pfn;
zholes_size[ZONE_DMA] = 0;
if (nid == 0)
zholes_size[ZONE_DMA] = node0_io_hole_size;
zholes_size[ZONE_DMA] = node0_io_hole_size >> PAGE_SHIFT;
dbg("free_area_init node %d %lx %lx (hole: %lx)\n", nid,
zones_size[ZONE_DMA], start_pfn, zholes_size[ZONE_DMA]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment