x86/mm: unencrypted non-blocking DMA allocations use coherent pools
authorDavid Rientjes <rientjes@google.com>
Wed, 15 Apr 2020 00:05:01 +0000 (17:05 -0700)
committerChristoph Hellwig <hch@lst.de>
Sat, 25 Apr 2020 11:17:06 +0000 (13:17 +0200)
commit82fef0ad811fb5976cf36ccc3d2c3bc0195dfb72
treee556917bab652a1dcca680d1dc1e19d3250b2c1d
parent2edc5bb3c5cc42131438460a50b7b16905c81c2a
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 <rientjes@google.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
arch/x86/Kconfig