]> 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>
Tue, 22 Nov 2011 17:30:32 +0000 (17:30 +0000)
commitb368d31576bea88917e1db091dc37dfca67669f2
treec32e2257f62380872202203d20ed09c6d81aa899
parentdc18925538511b1775c167401633bd5a5f6b8e5a
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