powerpc: Always trim numa memory to lmb_end_of_DRAM()
authorMilton Miller <miltonm@bga.com>
Mon, 20 Oct 2008 15:37:04 +0000 (15:37 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 21 Oct 2008 04:19:12 +0000 (15:19 +1100)
commitfe55249d17f7979cf9bbc58e38e9ceaf1918b415
treef02da5bb8437bcba4e38a760eef2b77f9a52d0a5
parent6a75a6b8e85e92cc774d42a4e113c76c30b5a539
powerpc: Always trim numa memory to lmb_end_of_DRAM()

numa_enforce_memory_limit tried to be smart and only call lmb_end_of_DRAM
when a memory limit was set via mem= on the command line.  However,
the early boot code will also limit memory added to the lmb system
when iommu=off is specified.  When this happens, the page allocator
is given pages not in the linear mapping and this results in a fatal
data reference to the unmapped page.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/numa.c