]> git.baikalelectronics.ru Git - kernel.git/commit
dma-direct: fix DMA_ATTR_NO_KERNEL_MAPPING
authorChristoph Hellwig <hch@lst.de>
Tue, 6 Aug 2019 11:33:23 +0000 (14:33 +0300)
committerChristoph Hellwig <hch@lst.de>
Sat, 10 Aug 2019 17:52:45 +0000 (19:52 +0200)
commit6d2f153c6bb744c6339c4ea01d5fcf21f668a261
treeae57280bce6c3482f37a02b09fe5785a4006532b
parentf5ebd6dfd3d1a234567ce9a5829035353f4d911b
dma-direct: fix DMA_ATTR_NO_KERNEL_MAPPING

The new DMA_ATTR_NO_KERNEL_MAPPING needs to actually assign
a dma_addr to work.  Also skip it if the architecture needs
forced decryption handling, as that needs a kernel virtual
address.

Fixes: c85ba1958d18 (dma-direct: handle DMA_ATTR_NO_KERNEL_MAPPING in common code)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
kernel/dma/direct.c