]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: c-r4k: Fix flush_icache_range() for EVA
authorJames Hogan <james.hogan@imgtec.com>
Thu, 1 Sep 2016 16:30:15 +0000 (17:30 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 4 Oct 2016 23:31:20 +0000 (01:31 +0200)
commitd73f3ec8b0efb156facdc185ab2fb868194c612f
treeb615c62ccdf784647b11b71f69c6beb6eaf35cd7
parent2d7aa34a801b05548812b7d126fcc1576a7b337a
MIPS: c-r4k: Fix flush_icache_range() for EVA

flush_icache_range() flushes icache lines in a protected fashion for
kernel addresses, however this isn't correct with EVA where protected
cache ops only operate on user addresses, making flush_icache_range()
ineffective.

Split the implementations of __flush_icache_user_range() from
flush_icache_range(), changing the normal flush_icache_range() to use
unprotected normal cache ops.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Leonid Yegoshin <leonid.yegoshin@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14156/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/c-r4k.c