]> git.baikalelectronics.ru Git - kernel.git/commit
dma-direct: add support for dma_coherent_default_memory
authorChristoph Hellwig <hch@lst.de>
Wed, 23 Jun 2021 12:21:16 +0000 (14:21 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 18 Aug 2021 14:24:09 +0000 (16:24 +0200)
commit615d1aa65d5f156588274be371ce262e78c58707
tree81396c9f70e4d8b35b9be650a427c86ff1dc3433
parentd9564da54f4ed36f14b734a820b0fbb09f416bf9
dma-direct: add support for dma_coherent_default_memory

Add an option to allocate uncached memory for dma_alloc_coherent from
the global dma_coherent_default_memory.  This will allow to move
arm-nommu (and eventually other platforms) to use generic code for
allocating uncached memory from a pre-populated pool.

Note that this is a different pool from the one that platforms that
can remap at runtime use for GFP_ATOMIC allocations for now, although
there might be opportunities to eventually end up with a common codebase
for the two use cases.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Dillon Min <dillon.minfei@gmail.com>
kernel/dma/Kconfig
kernel/dma/direct.c