Skip to content

Commit

Permalink
dma-pool: decouple DMA_REMAP from DMA_COHERENT_POOL
Browse files Browse the repository at this point in the history
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: 82fef0a ("x86/mm: unencrypted non-blocking DMA allocations use coherent pools")
Reported-by: Alex Xu (Hello71) <[email protected]>
Signed-off-by: David Rientjes <[email protected]>
Tested-by: Alex Xu (Hello71) <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
  • Loading branch information
rientjes authored and Christoph Hellwig committed Jun 15, 2020
1 parent 3ee06a6 commit dbed452
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kernel/dma/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,18 @@ config SWIOTLB
config DMA_NONCOHERENT_MMAP
bool

config DMA_COHERENT_POOL
bool

config DMA_REMAP
bool
depends on MMU
select GENERIC_ALLOCATOR
select DMA_NONCOHERENT_MMAP
bool

config DMA_COHERENT_POOL
bool
select DMA_REMAP

config DMA_DIRECT_REMAP
bool
select DMA_REMAP
select DMA_COHERENT_POOL

config DMA_CMA
Expand Down

0 comments on commit dbed452

Please sign in to comment.