]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: 7840/1: LPAE: don't reject mapping /dev/mem above 4GB
authorSergey Dyasly <dserrg@gmail.com>
Tue, 24 Sep 2013 15:38:00 +0000 (16:38 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 29 Oct 2013 11:06:03 +0000 (11:06 +0000)
commit3159f372354e8e1f5dee714663d705dd2c7e0759
tree6ac30e573a919746517032111272f06061d2f329
parent31d141e3a666269a3b6fcccddb0351caf7454240
ARM: 7840/1: LPAE: don't reject mapping /dev/mem above 4GB

With LPAE enabled, physical address space is larger than 4GB. Allow mapping any
part of it via /dev/mem by using PHYS_MASK to determine valid range.

PHYS_MASK covers 40 bits with LPAE enabled and 32 bits otherwise.

Reported-by: Vassili Karpov <av1474@comtv.ru>
Signed-off-by: Sergey Dyasly <dserrg@gmail.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/mmap.c