]> git.baikalelectronics.ru Git - kernel.git/commit
dma-direct: provide page based alloc/free helpers
authorChristoph Hellwig <hch@lst.de>
Sun, 4 Nov 2018 16:27:56 +0000 (17:27 +0100)
committerChristoph Hellwig <hch@lst.de>
Sat, 1 Dec 2018 16:55:02 +0000 (17:55 +0100)
commit67bad2372b1952f45ec0249729780ddd6a7e9f2c
tree7311d387b5e13abe09b3c9247d007c4efffc881e
parentd28262d47e2dd4e505705dc693b9bef14bca16da
dma-direct: provide page based alloc/free helpers

Some architectures support remapping highmem into DMA coherent
allocations.  To use the common code for them we need variants of
dma_direct_{alloc,free}_pages that do not use kernel virtual addresses.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
include/linux/dma-direct.h
kernel/dma/direct.c