Re: [PATCH 1/1] iommu/amd: Use delayed mmu release notifier

2014-10-25 Thread Oded Gabbay
Hi, Could anyone please review this patch ? Thanks, Oded On 18/10/14 00:43, Oded Gabbay wrote: > This patch makes use of the new delayed mmu release notifier feature in > mm code. This is necessary because on the one hand amd_iommu_unbind_pasid > must be called explicitly during the tear-

[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

[PATCH v6 0/1] Add iommu map_sg API

2014-10-25 Thread Olav Haugan
Patch for adding map_sg to the generic IOMMU API. v5 -> v6: * Removed unmap_sg * Removed flag argument * Changed return type to size_t returning the amount mapped v4 -> v5: * Simplified logic in map_sg on error * Moved fallback to separate function for both map an unmap and pointed all drivers