]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb66b380109346930b2aa04c9dbd5c192a8ec61e9
tree4e71ae9c3bc684cf86ceea9c9626291b0e19d9e1
parent7363ce94fbc4289c4e42820f17815a334988014a
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