]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Flush dcache for flush_kernel_dcache_page
authorPaul Burton <paul.burton@imgtec.com>
Tue, 1 Mar 2016 02:37:56 +0000 (02:37 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 13 May 2016 12:01:57 +0000 (14:01 +0200)
commit119390c9eca69b08653455920da9c42e9dd714f2
tree093531ec5198ae6eb270d45a252208340a6636bb
parentda36c5fa0e58e07803858a1be4bf38fc5909a113
MIPS: Flush dcache for flush_kernel_dcache_page

The flush_kernel_dcache_page function was previously essentially a nop.
This is incorrect for MIPS, where if a page has been modified & either
it aliases or it's executable & the icache doesn't fill from dcache then
the content needs to be written back from dcache to the next level of
the cache hierarchy (which is shared with the icache).

Implement this by simply calling flush_dcache_page, treating this
kmapped cache flush function (flush_kernel_dcache_page) exactly the same
as its non-kmapped counterpart (flush_dcache_page).

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Lars Persson <lars.persson@axis.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/12719/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/cacheflush.h