]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: LPAE: mark memory banks with start > ULONG_MAX as highmem
authorWill Deacon <will.deacon@arm.com>
Tue, 22 Nov 2011 17:30:32 +0000 (17:30 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 2 Dec 2011 16:11:25 +0000 (16:11 +0000)
commit2dbd34373e7dacf1e40370ac71610e545de57b93
tree3b78d503a4e280428810bc4fefd8a8811076b3a8
parent1882375450f4f2009a12469d0afd93c4b778b384
ARM: LPAE: mark memory banks with start > ULONG_MAX as highmem

Memory banks living outside of the 32-bit physical address
space do not have a 1:1 pa <-> va mapping and therefore the
__va macro may wrap.

This patch ensures that such banks are marked as highmem so
that the Kernel doesn't try to split them up when it sees that
the wrapped virtual address overlaps the vmalloc space.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
arch/arm/mm/mmu.c