OSDN Git Service

dma-direct: handle DMA_ATTR_NON_CONSISTENT in common code
authorChristoph Hellwig <hch@lst.de>
Fri, 14 Jun 2019 13:59:14 +0000 (15:59 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 25 Jun 2019 12:27:58 +0000 (14:27 +0200)
commitc2f2124e0d447ad02a41a92361b3734366797680
tree01b1d3e6e2d3f0f93e01b15ce1fac97aed58e841
parent4b85faed211ccfbcc7f3adf1cd62f0b00d1a172b
dma-direct: handle DMA_ATTR_NON_CONSISTENT in common code

Only call into arch_dma_alloc if we require an uncached mapping,
and remove the parisc code manually doing normal cached
DMA_ATTR_NON_CONSISTENT allocations.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Helge Deller <deller@gmx.de> # parisc
arch/parisc/kernel/pci-dma.c
kernel/dma/direct.c