Skip to content

Commit 82fef0a

Browse files
rientjesChristoph Hellwig
authored and
Christoph Hellwig
committed
x86/mm: unencrypted non-blocking DMA allocations use coherent pools
When CONFIG_AMD_MEM_ENCRYPT is enabled and a device requires unencrypted DMA, all non-blocking allocations must originate from the atomic DMA coherent pools. Select CONFIG_DMA_COHERENT_POOL for CONFIG_AMD_MEM_ENCRYPT. Signed-off-by: David Rientjes <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 2edc5bb commit 82fef0a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/Kconfig

+1
Original file line numberDiff line numberDiff line change
@@ -1520,6 +1520,7 @@ config X86_CPA_STATISTICS
15201520
config AMD_MEM_ENCRYPT
15211521
bool "AMD Secure Memory Encryption (SME) support"
15221522
depends on X86_64 && CPU_SUP_AMD
1523+
select DMA_COHERENT_POOL
15231524
select DYNAMIC_PHYSICAL_MASK
15241525
select ARCH_USE_MEMREMAP_PROT
15251526
select ARCH_HAS_FORCE_DMA_UNENCRYPTED

0 commit comments

Comments
 (0)