Commit dbed452a authored by David Rientjes's avatar David Rientjes Committed by Christoph Hellwig

dma-pool: decouple DMA_REMAP from DMA_COHERENT_POOL

DMA_REMAP is an unnecessary requirement for AMD SEV, which requires
DMA_COHERENT_POOL, so avoid selecting it when it is otherwise unnecessary.

The only other requirement for DMA coherent pools is DMA_DIRECT_REMAP, so
ensure that properly selects the config option when needed.

Fixes: 82fef0ad ("x86/mm: unencrypted non-blocking DMA allocations use coherent pools")
Reported-by: default avatarAlex Xu (Hello71) <alex_y_xu@yahoo.ca>
Signed-off-by: default avatarDavid Rientjes <rientjes@google.com>
Tested-by: default avatarAlex Xu (Hello71) <alex_y_xu@yahoo.ca>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 3ee06a6d
...@@ -73,18 +73,18 @@ config SWIOTLB ...@@ -73,18 +73,18 @@ config SWIOTLB
config DMA_NONCOHERENT_MMAP config DMA_NONCOHERENT_MMAP
bool bool
config DMA_COHERENT_POOL
bool
config DMA_REMAP config DMA_REMAP
bool
depends on MMU depends on MMU
select GENERIC_ALLOCATOR select GENERIC_ALLOCATOR
select DMA_NONCOHERENT_MMAP select DMA_NONCOHERENT_MMAP
bool
config DMA_COHERENT_POOL
bool
select DMA_REMAP
config DMA_DIRECT_REMAP config DMA_DIRECT_REMAP
bool bool
select DMA_REMAP
select DMA_COHERENT_POOL select DMA_COHERENT_POOL
config DMA_CMA config DMA_CMA
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment