ARM: 7755/1: handle user space mapped pages in flush_kernel_dcache_page
authorSimon Baatz <gmbnomis@gmail.com>
Mon, 10 Jun 2013 20:10:12 +0000 (21:10 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 29 Jun 2013 03:06:28 +0000 (04:06 +0100)
commitfa76cd49f117853eb06d3de8f343a99421d8ddc3
tree810f04d93f0f4c61f7ca33d75ba317ee198a5315
parent2c07c6d6f4653047f8f7b06dcdf9478c48d07e37
ARM: 7755/1: handle user space mapped pages in flush_kernel_dcache_page

commit 1bc39742aab09248169ef9d3727c9def3528b3f3 upstream.

Commit f8b63c1 made flush_kernel_dcache_page a no-op assuming that
the pages it needs to handle are kernel mapped only.  However, for
example when doing direct I/O, pages with user space mappings may
occur.

Thus, continue to do lazy flushing if there are no user space
mappings.  Otherwise, flush the kernel cache lines directly.

Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/arm/include/asm/cacheflush.h
arch/arm/mm/flush.c