diff options
author | Sergey Dyasly <dserrg@gmail.com> | 2013-09-24 15:38:00 (GMT) |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-05-05 09:44:20 (GMT) |
commit | 4aeced5ed3e351ffad601615a11305b6e2eb16e1 (patch) | |
tree | e8b1e391ba251205b4ae51524bba195f7bd3aa94 /block/blk-lib.c | |
parent | 3da1d25c3849e8a02d4f70feeae16711ad458eaf (diff) | |
download | linux-fsl-qoriq-4aeced5ed3e351ffad601615a11305b6e2eb16e1.tar.xz |
ARM: 7840/1: LPAE: don't reject mapping /dev/mem above 4GB
commit 3159f372354e8e1f5dee714663d705dd2c7e0759 upstream.
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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'block/blk-lib.c')
0 files changed, 0 insertions, 0 deletions