]> git.baikalelectronics.ru Git - kernel.git/commit
dma-pool: decouple DMA_REMAP from DMA_COHERENT_POOL
authorDavid Rientjes <rientjes@google.com>
Thu, 11 Jun 2020 07:25:57 +0000 (00:25 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 15 Jun 2020 06:35:30 +0000 (08:35 +0200)
commit6386d0a372d878450c27a80598a1ef61a60f3344
tree41c79e400f6c40dd8a4e97db5aa1b028514277c7
parent8e1f14fee23f7fd0d304b4879780b4b5e705a21e
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: d04992f7a3ba ("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>
kernel/dma/Kconfig