summaryrefslogtreecommitdiffstats
path: root/arch/csky/abiv2/cacheflush.c
Commit message (Collapse)AuthorAgeFilesLines
* csky: Fixup wrong update_mmu_cache implementationGuo Ren2019-04-221-11/+2
| | | | | | | | | | | | | | | | | | | In our stress test, we found some crash problem caused by: if (!(vma->vm_flags & VM_EXEC)) return; in update_mmu_cache(). Seems current update_mmu_cache implementation is wrong and we retread to the conservative implementation. Also the usage of kmap_atomic in update_mmu_cache is risky, page-virtual may be scheduled out and changed, so we must use preempt_disable & pagefault_disable which is called by kmap_atomic(). Signed-off-by: Guo Ren <ren_guo@c-sky.com> Cc: Arnd Bergmann <arnd@arndb.de>
* csky: Cache and TLB routinesGuo Ren2018-10-251-0/+60
This patch adds cache and tlb sync codes for abiv1 & abiv2. Signed-off-by: Guo Ren <ren_guo@c-sky.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de>
OpenPOWER on IntegriCloud