arm64: allow ioremap_cache() to use existing RAM mappings
authorMark Salter <msalter@redhat.com>
Thu, 24 Oct 2013 14:54:17 +0000 (15:54 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 30 Oct 2013 12:10:37 +0000 (12:10 +0000)
commitc04e8e2fe5e0163fd37ccec7f538be8fa63be40e
tree913804962b54cac275b6b2112c202b976265e19e
parentd0f38f9130b7683e39611c5a661349e301ee43c8
arm64: allow ioremap_cache() to use existing RAM mappings

Some drivers (ACPI notably) use ioremap_cache() to map an area which could
either be outside of kernel RAM or in an already mapped reserved area of
RAM. To avoid aliases with different caching attributes, ioremap() does
not allow RAM to be remapped. But for ioremap_cache(), the existing kernel
mapping may be used.

Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/io.h
arch/arm64/mm/ioremap.c