mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
dma-remap: separate DMA atomic pools from direct remap code
DMA atomic pools will be needed beyond only CONFIG_DMA_DIRECT_REMAP so separate them out into their own file. This also adds a new Kconfig option that can be subsequently used for options, such as CONFIG_AMD_MEM_ENCRYPT, that will utilize the coherent pools but do not have a dependency on direct remapping. For this patch alone, there is no functional change introduced. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David Rientjes <rientjes@google.com> [hch: fixup copyrights and remove unused includes] Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
committed by
Christoph Hellwig
parent
05f099a7d0
commit
e860c299ac
@@ -79,10 +79,14 @@ config DMA_REMAP
|
||||
select DMA_NONCOHERENT_MMAP
|
||||
bool
|
||||
|
||||
config DMA_DIRECT_REMAP
|
||||
config DMA_COHERENT_POOL
|
||||
bool
|
||||
select DMA_REMAP
|
||||
|
||||
config DMA_DIRECT_REMAP
|
||||
bool
|
||||
select DMA_COHERENT_POOL
|
||||
|
||||
config DMA_CMA
|
||||
bool "DMA Contiguous Memory Allocator"
|
||||
depends on HAVE_DMA_CONTIGUOUS && CMA
|
||||
|
||||
Reference in New Issue
Block a user