OSDN Git Service

dma-noncoherent: add a arch_sync_dma_for_cpu_all hook
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Jun 2018 11:08:51 +0000 (13:08 +0200)
committerPaul Burton <paul.burton@mips.com>
Sun, 24 Jun 2018 16:27:27 +0000 (09:27 -0700)
commitfaef87723ace12e5f685437c1e68cbecb69a7a89
tree98429f9c5bb8960e95fe7063c0c5017dc98c518e
parentc5e2bbb45d28d53d278f25068142a283a0a74f7a
dma-noncoherent: add a arch_sync_dma_for_cpu_all hook

The MIPS bmips platform needs a global flush when transferring ownership
back to the CPU.  Add a hook for that to the dma-noncoherent
implementation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Patchwork: https://patchwork.linux-mips.org/patch/19549/
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: David Daney <david.daney@cavium.com>
Cc: Kevin Cernekee <cernekee@gmail.com>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: Tom Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Huacai Chen <chenhc@lemote.com>
Cc: iommu@lists.linux-foundation.org
Cc: linux-mips@linux-mips.org
include/linux/dma-noncoherent.h
kernel/dma/noncoherent.c