]> asedeno.scripts.mit.edu Git - linux.git/commit
nds32: use the generic remapping allocator for coherent DMA allocations
authorChristoph Hellwig <hch@lst.de>
Sun, 28 Apr 2019 19:28:38 +0000 (14:28 -0500)
committerChristoph Hellwig <hch@lst.de>
Tue, 25 Jun 2019 12:28:06 +0000 (14:28 +0200)
commit6309513c1be47cd3805a6ceae60ab70285df36ae
treee65fe2b1df76a1a5c2ea8a126c7cc4d143136d90
parentf73c904534393133e7ddbbe5c36bb007f9c2fb7f
nds32: use the generic remapping allocator for coherent DMA allocations

Replace the code that sets up uncached PTEs with the generic vmap based
remapping code.  It also provides an atomic pool for allocations from
non-blocking context, which we not properly supported by the existing
nds32 code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Greentime Hu <greentime@andestech.com>
Reviewed-by: Greentime Hu <greentime@andestech.com>
arch/nds32/Kconfig
arch/nds32/kernel/dma.c