OSDN Git Service

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)
commitb18814e767a445534ab9ccba02e82a31208f85d6
tree7311d387b5e13abe09b3c9247d007c4efffc881e
parentc9d76d0655c06b8c1f944e46c4fd9e9cf4b331c0
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