sh: use the generic dma coherent remap allocator
authorChristoph Hellwig <hch@lst.de>
Tue, 14 Jul 2020 12:18:56 +0000 (14:18 +0200)
committerRich Felker <dalias@libc.org>
Sat, 15 Aug 2020 02:05:18 +0000 (22:05 -0400)
commit6dfdf673ccb24dccc95b342235cac3e585c5af34
tree4e71ae9c3bc684cf86ceea9c9626291b0e19d9e1
parentcd57d07b1e4e08f95a27b59253b5c8a46abf4f29
sh: use the generic dma coherent remap allocator

This switches to using common code for the DMA allocations, including
potential use of the CMA allocator if configured.

Switching to the generic code enables DMA allocations from atomic
context, which is required by the DMA API documentation, and also
adds various other minor features drivers start relying upon.  It
also makes sure we have on tested code base for all architectures
that require uncached pte bits for coherent DMA allocations.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/Kconfig
arch/sh/kernel/dma-coherent.c