]> git.baikalelectronics.ru Git - kernel.git/commit
csky: Optimize abiv2 copy_to_user_page with VM_EXEC
authorGuo Ren <guoren@linux.alibaba.com>
Mon, 27 Jan 2020 11:57:29 +0000 (19:57 +0800)
committerGuo Ren <guoren@linux.alibaba.com>
Fri, 21 Feb 2020 07:43:24 +0000 (15:43 +0800)
commit6d8865340970c92789c9afa3f24567f83230d617
tree2338b9a232542393b39987b2a6bb5b16951c8ef0
parenta82eeb4fe194b36d8fafcfb6b2040674297cd4d3
csky: Optimize abiv2 copy_to_user_page with VM_EXEC

Only when vma is for VM_EXEC, we need sync dcache & icache. eg:
 - gdb ptrace modify user space instruction code area.

Add VM_EXEC condition to reduce unnecessary cache flush.

The abiv1 cpus' cache are all VIPT, so we still need to deal with
dcache aliasing problem. But there is optimized way to use cache
color, just like what's done in arch/csky/abiv1/inc/abi/page.h.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
arch/csky/abiv2/inc/abi/cacheflush.h