]> asedeno.scripts.mit.edu Git - linux.git/commit
nds32: To implement these icache invalidation APIs since nds32 cores don't snoop
authorGreentime Hu <greentime@andestech.com>
Thu, 28 Jun 2018 10:03:25 +0000 (18:03 +0800)
committerGreentime Hu <greentime@andestech.com>
Tue, 3 Jul 2018 03:11:56 +0000 (11:11 +0800)
commitf706abf188a82c9d961ed267a18ff5cb5e9aace9
tree28db7e7a06825befed2c0c3b903f6fefa1818ede
parenta78945c357f58665d6a5da8a69e085898e831c70
nds32: To implement these icache invalidation APIs since nds32 cores don't snoop
data cache.
This issue is found by Guo Ren. Based on the Documentation/core-api/cachetlb.rst
and it says:

"Any necessary cache flushing or other coherency operations
that need to occur should happen here.  If the processor's
instruction cache does not snoop cpu stores, it is very
likely that you will need to flush the instruction cache
for copy_to_user_page()."

"If the icache does not snoop stores then this
routine(flush_icache_range) will need to flush it."

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Signed-off-by: Greentime Hu <greentime@andestech.com>
arch/nds32/include/asm/cacheflush.h
arch/nds32/mm/cacheflush.c