Home
last modified time | relevance | path

Searched hist:ae76f635d4e1cffa6870cc5472567ca9d6940a22 (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/arch/csky/include/asm/
H A Dcache.hdiff ae76f635d4e1cffa6870cc5472567ca9d6940a22 Tue Jul 30 04:16:28 CDT 2019 Guo Ren <ren_guo@c-sky.com> csky: Optimize arch_sync_dma_for_cpu/device with dma_inv_range

DMA_FROM_DEVICE only need to read dma data of memory into CPU cache,
so there is no need to clear cache before. Also clear + inv for
DMA_FROM_DEVICE won't cause problem, because the memory range for dma
won't be touched by software during dma working.

Changes for V2:
- Remove clr cache and ignore the DMA_TO_DEVICE in _for_cpu.
- Change inv to wbinv cache with DMA_FROM_DEVICE in _for_device.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Arnd Bergmann <arnd@arndb.de>
/openbmc/linux/arch/csky/mm/
H A Dcachev1.cdiff ae76f635d4e1cffa6870cc5472567ca9d6940a22 Tue Jul 30 04:16:28 CDT 2019 Guo Ren <ren_guo@c-sky.com> csky: Optimize arch_sync_dma_for_cpu/device with dma_inv_range

DMA_FROM_DEVICE only need to read dma data of memory into CPU cache,
so there is no need to clear cache before. Also clear + inv for
DMA_FROM_DEVICE won't cause problem, because the memory range for dma
won't be touched by software during dma working.

Changes for V2:
- Remove clr cache and ignore the DMA_TO_DEVICE in _for_cpu.
- Change inv to wbinv cache with DMA_FROM_DEVICE in _for_device.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Arnd Bergmann <arnd@arndb.de>
H A Dcachev2.cdiff ae76f635d4e1cffa6870cc5472567ca9d6940a22 Tue Jul 30 04:16:28 CDT 2019 Guo Ren <ren_guo@c-sky.com> csky: Optimize arch_sync_dma_for_cpu/device with dma_inv_range

DMA_FROM_DEVICE only need to read dma data of memory into CPU cache,
so there is no need to clear cache before. Also clear + inv for
DMA_FROM_DEVICE won't cause problem, because the memory range for dma
won't be touched by software during dma working.

Changes for V2:
- Remove clr cache and ignore the DMA_TO_DEVICE in _for_cpu.
- Change inv to wbinv cache with DMA_FROM_DEVICE in _for_device.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Arnd Bergmann <arnd@arndb.de>
H A Ddma-mapping.cdiff ae76f635d4e1cffa6870cc5472567ca9d6940a22 Tue Jul 30 04:16:28 CDT 2019 Guo Ren <ren_guo@c-sky.com> csky: Optimize arch_sync_dma_for_cpu/device with dma_inv_range

DMA_FROM_DEVICE only need to read dma data of memory into CPU cache,
so there is no need to clear cache before. Also clear + inv for
DMA_FROM_DEVICE won't cause problem, because the memory range for dma
won't be touched by software during dma working.

Changes for V2:
- Remove clr cache and ignore the DMA_TO_DEVICE in _for_cpu.
- Change inv to wbinv cache with DMA_FROM_DEVICE in _for_device.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Arnd Bergmann <arnd@arndb.de>