Skip to content

Commit dbed452

Browse files
rientjesChristoph Hellwig
authored andcommitted
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: 82fef0a ("x86/mm: unencrypted non-blocking DMA allocations use coherent pools") Reported-by: Alex Xu (Hello71) <alex_y_xu@yahoo.ca> Signed-off-by: David Rientjes <rientjes@google.com> Tested-by: Alex Xu (Hello71) <alex_y_xu@yahoo.ca> Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent 3ee06a6 commit dbed452

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎kernel/dma/Kconfig‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,18 @@ config SWIOTLB
7373
config DMA_NONCOHERENT_MMAP
7474
bool
7575

76+
config DMA_COHERENT_POOL
77+
bool
78+
7679
config DMA_REMAP
80+
bool
7781
depends on MMU
7882
select GENERIC_ALLOCATOR
7983
select DMA_NONCOHERENT_MMAP
80-
bool
81-
82-
config DMA_COHERENT_POOL
83-
bool
84-
select DMA_REMAP
8584

8685
config DMA_DIRECT_REMAP
8786
bool
87+
select DMA_REMAP
8888
select DMA_COHERENT_POOL
8989

9090
config DMA_CMA

0 commit comments

Comments
 (0)