[ARM] mmu: add option to map lowmem with page mappings
authorGary King <gking@nvidia.com>
Thu, 7 Oct 2010 19:44:06 +0000 (12:44 -0700)
committerRebecca Schultz Zavin <rebecca@android.com>
Fri, 8 Oct 2010 22:58:59 +0000 (15:58 -0700)
commitac21b321048091bdbf45bbda87161cc9f312c393
treefd1afe64a29cc791787e31308ca27a76c4560bed
parentbd3ee16444d6e35e6f2837521c2508fb05dc436d
[ARM] mmu: add option to map lowmem with page mappings

add a kernel configuration to map the kernel's lowmem pages using PTE
mappings, rather than the default behavior of 1MiB section mappings.
on ARMv7 processors, to support allocating pages with DMA-coherent
cache attributes, the cache attributes specified in the kernel's
mapping must match cache attributes specified for other mappings;
to ensure that this is the case, the kernel's attributes must be
specified on a per-page basis.

to avoid problems caused by the init_mm page table allocations exceeding
the available initial memory, when this config is enabled lowmem is
initially mapped using sections (matches current behavior), then remapped
using pages after bootmem is initialized

Change-Id: I8a6feba1d6806d007e17d9d4616525b0446c0fb1
Signed-off-by: Gary King <gking@nvidia.com>
arch/arm/mm/Kconfig
arch/arm/mm/mmu.c