]> 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)
commitf4a83492a65be4e92dea434fd1ae2abdf7df5f80
tree594343e6a7a718994b8c5c73a0d2083d0b0b2945
parentc3e736588c65267cfb9d9e8de63f8c5603abd029
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