]> asedeno.scripts.mit.edu Git - linux.git/commit
dma-mapping: make dma_atomic_pool_init self-contained
authorChristoph Hellwig <hch@lst.de>
Sat, 3 Aug 2019 09:42:15 +0000 (12:42 +0300)
committerChristoph Hellwig <hch@lst.de>
Thu, 29 Aug 2019 14:43:33 +0000 (16:43 +0200)
commit8e3a68fb55e00e0760bd8023883e064f1f93c62d
tree534cbf26b705987972b800501afec405b9175533
parent419e2f1838819e954071dfa1d1f820ab3386ada1
dma-mapping: make dma_atomic_pool_init self-contained

The memory allocated for the atomic pool needs to have the same
mapping attributes that we use for remapping, so use
pgprot_dmacoherent instead of open coding it.  Also deduct a
suitable zone to allocate the memory from based on the presence
of the DMA zones.

Signed-off-by: Christoph Hellwig <hch@lst.de>
arch/arc/mm/dma.c
arch/arm64/mm/dma-mapping.c
arch/csky/mm/dma-mapping.c
arch/nds32/kernel/dma.c
include/linux/dma-mapping.h
kernel/dma/remap.c