Skip to content

Commit dbed452

Browse files
rientjesChristoph Hellwig
authored and
Christoph Hellwig
committed
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) <[email protected]> Signed-off-by: David Rientjes <[email protected]> Tested-by: Alex Xu (Hello71) <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 3ee06a6 commit dbed452

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

kernel/dma/Kconfig

+5-5
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)