]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: memremap: implement arch_memremap_wb()
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 22 Feb 2016 14:02:08 +0000 (15:02 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 4 Apr 2016 08:26:42 +0000 (10:26 +0200)
commit9ab9e4fce45379cb6a7dbf87cf8f8e6ba01853c2
tree905b07720628e6a24a1f719f0af05543712ef66e
parentc269cba35b061181bc23c470809c00e8f71e535a
ARM: memremap: implement arch_memremap_wb()

The generic memremap() falls back to using ioremap_cache() to create
MEMREMAP_WB mappings if the requested region is not already covered
by the linear mapping, unless the architecture provides an implementation
of arch_memremap_wb().

Since ioremap_cache() is not appropriate on ARM to map memory with the
same attributes used for the linear mapping, implement arch_memremap_wb()
which does exactly that. Also, relax the WARN() check to allow MT_MEMORY_RW
mappings of pfn_valid() pages.

Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
arch/arm/include/asm/io.h
arch/arm/mm/ioremap.c
arch/arm/mm/nommu.c