Re: [PATCH v6 1/1] iommu-api: Add map_sg function

2014-11-04 Thread Joerg Roedel
On Sat, Oct 25, 2014 at 09:55:16AM -0700, Olav Haugan wrote: > drivers/iommu/amd_iommu.c | 1 + > drivers/iommu/arm-smmu.c | 1 + > drivers/iommu/exynos-iommu.c | 1 + > drivers/iommu/intel-iommu.c| 1 + > drivers/iommu/iommu.c | 25 + > driver

[PATCH v6 1/1] iommu-api: Add map_sg function

2014-10-25 Thread Olav Haugan
Mapping and unmapping are more often than not in the critical path. map_sg allows IOMMU driver implementations to optimize the process of mapping buffers into the IOMMU page tables. Instead of mapping a buffer one page at a time and requiring potentially expensive TLB operations for each page, thi