]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9f1cdd5487c2ac254ac68b441e57b871e4f36387
tree444ba27dc5f09a279399bfb29118d53695a801b9
parenta49b075b53fb22e43c33a7ff06357008d40d2ae2
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