]> git.baikalelectronics.ru Git - kernel.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)
commit80a93b03acf4fddc5c0a9161e06e2ea3a03803da
treee65fe2b1df76a1a5c2ea8a126c7cc4d143136d90
parentbc7e7a861269cf97abd62acd41c98ee4ebe781eb
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