]> 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)
commit788781fa721372e1cb90c5bcdc7e049d73d643ab
tree4e71ae9c3bc684cf86ceea9c9626291b0e19d9e1
parent2d1d64cf76bc886bb02073b3460444a353b7e2f2
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