]> git.baikalelectronics.ru Git - kernel.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)
commit2eaa6c939096f8448680b909f037f58274e97712
tree534cbf26b705987972b800501afec405b9175533
parent9125c84ae7f8a07369327acd97edca6f6569893c
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