dma-mapping: merge the generic remapping helpers into dma-direct
authorChristoph Hellwig <hch@lst.de>
Tue, 29 Oct 2019 10:06:32 +0000 (11:06 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 11 Nov 2019 09:52:18 +0000 (10:52 +0100)
commit3acac065508f6cc60ac9d3e4b7c6cc37fd91d531
tree444ba27dc5f09a279399bfb29118d53695a801b9
parent34dc0ea6bc960f1f57b2148f01a3f4da23f87013
dma-mapping: merge the generic remapping helpers into dma-direct

Integrate the generic dma remapping implementation into the main flow.
This prepares for architectures like xtensa that use an uncached
segment for pages in the kernel mapping, but can also remap highmem
from CMA.  To simplify that implementation we now always deduct the
page from the physical address via the DMA address instead of the
virtual address.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
kernel/dma/direct.c
kernel/dma/remap.c