]> git.baikalelectronics.ru Git - kernel.git/commit
m68k: Use the generic dma coherent remap allocator
authorChristoph Hellwig <hch@lst.de>
Tue, 25 Jun 2019 09:01:34 +0000 (11:01 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 1 Jul 2019 09:17:00 +0000 (11:17 +0200)
commiteb5c5007b17de258e0b8f53a7cdf3e042a041a24
tree4be03bb9fe2baeaffa36d75ed60c84d369b99f76
parent754eafc4ccaabffabec5b660f82f04a5413ba28b
m68k: Use the generic dma coherent remap allocator

This switches m68k to using common code for the DMA allocations,
including potential use of the CMA allocator if configured.
Also add a comment where the existing behavior seems to be lacking.

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 a 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: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/Kconfig
arch/m68k/kernel/dma.c