[PATCH v2 1/1] iommu-api: Add map_range/unmap_range functions

2014-07-16 Thread Olav Haugan
Mapping and unmapping are more often than not in the critical path. map_range and unmap_range allows SMMU driver implementations to optimize the process of mapping and unmapping buffers into the SMMU page tables. Instead of mapping one physical address, do TLB operation (expensive), mapping, do TLB

[PATCH v2 0/1] Add iommu map_range/unmap_range calls

2014-07-16 Thread Olav Haugan
Patch for adding map_range/unmap range to the generic IOMMU API. v1 -> v2: * Added support for "option" argument to unmap call. This can be used by IOMMU driver implentations to allow clients to signal to the driver not to do TLB invalidate for example. * Added fallback in case iommu_{map,unma

Re: [PATCH v4] devicetree: Add generic IOMMU device tree bindings

2014-07-16 Thread Rob Clark
On Tue, Jul 15, 2014 at 9:25 PM, Olav Haugan wrote: > On 7/13/2014 4:43 AM, Rob Clark wrote: >> On Sun, Jul 13, 2014 at 5:43 AM, Will Deacon wrote: >>> On Sat, Jul 12, 2014 at 01:57:31PM +0100, Rob Clark wrote: On Sat, Jul 12, 2014 at 8:22 AM, Arnd Bergmann wrote: > On Saturday 12 July

Re: [Patch Part3 V4 21/21] pci, ACPI, iommu: Enhance pci_root to support DMAR device hotplug

2014-07-16 Thread Bjorn Helgaas
On Fri, Jul 11, 2014 at 12:19 AM, Jiang Liu wrote: > Finally enhance pci_root driver to support DMAR device hotplug when > hot-plugging PCI host bridges. > > Signed-off-by: Jiang Liu Acked-by: Bjorn Helgaas I assume you'll merge this along with the rest of the series via some non-PCI tree. >

Re: [PATCH v4] devicetree: Add generic IOMMU device tree bindings

2014-07-16 Thread Will Deacon
On Wed, Jul 16, 2014 at 02:25:20AM +0100, Olav Haugan wrote: > On 7/13/2014 4:43 AM, Rob Clark wrote: > > On Sun, Jul 13, 2014 at 5:43 AM, Will Deacon wrote: > >> My plan for the ARM SMMU driver is: > >> > >> (1) Change ->probe() to walk the device-tree looking for all masters with > >> ph