lkml.org 
[lkml]   [2017]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/2] iommu/dma: Add support for DMA_ATTR_FORCE_CONTIGUOUS
Date
	Hi all,

Tis patch series adds helpers for DMA_ATTR_FORCE_CONTIGUOUS to the
generic IOMMU DMA code, and support for allocating physically contiguous
DMA buffers on arm64 systems with an IOMMU. This can be useful when two
or more devices with different memory requirements are involved in
buffer sharing.

Changes compared to v1:
- Provide standalone iommu_dma_{alloc,free}_contiguous() functions, as
requested by Robin Murphy,
- Handle dispatching in the arch (arm64) code, as requested by Robin
Murphy,
- Simplify operations by getting rid of the page array/scatterlist
dance, as the buffer is contiguous,
- Move CPU cache magement into the caller, which is much simpler with
a single contiguous buffer.

Thanks for your comments!

Geert Uytterhoeven (2):
iommu/dma: Add support for DMA_ATTR_FORCE_CONTIGUOUS
arm64: Add support for DMA_ATTR_FORCE_CONTIGUOUS to IOMMU

arch/arm64/mm/dma-mapping.c | 51 +++++++++++++++++++++++---------
drivers/iommu/dma-iommu.c | 72 +++++++++++++++++++++++++++++++++++++++++++++
include/linux/dma-iommu.h | 4 +++
3 files changed, 113 insertions(+), 14 deletions(-)

--
1.9.1

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

\
 
 \ /
  Last update: 2017-01-27 16:40    [W:0.073 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site