]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: BMIPS: Flush the readahead cache after DMA.
authorRalf Baechle <ralf@linux-mips.org>
Fri, 27 Mar 2015 14:17:31 +0000 (15:17 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 1 Apr 2015 15:22:04 +0000 (17:22 +0200)
commit45ba4f7fc68e67d8c5c31d966d575bf114e69acf
tree594343e6a7a718994b8c5c73a0d2083d0b0b2945
parent3e94e1802f88732598dddfb42c5e07a4ae4260c2
MIPS: BMIPS: Flush the readahead cache after DMA.

BMIPS 3300/435x/438x CPUs have a readahead cache that is separate from
the L1/L2.  During a DMA operation, accesses adjacent to a DMA buffer
may cause parts of the DMA buffer to be prefetched into the RAC.  To
avoid possible coherency problems, flush the RAC upon DMA completion.

Derived from Kevin Cernekee's https://patchwork.linux-mips.org/patch/9602/.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mach-bmips/dma-coherence.h