]> 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)
commit2e45b136fce86eea0746495ee41800f77362eb9c
treeae57280bce6c3482f37a02b09fe5785a4006532b
parent54f9d6a5060b29e0f2937d2cc0cac7b2f840f91e
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: 7c37af33fb45 (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