Re: [RFC/PATCH 2/7] iommu-api: Add map_range/unmap_range functions

2014-07-11 Thread Joerg Roedel
On Mon, Jun 30, 2014 at 09:51:51AM -0700, Olav Haugan wrote: > +int iommu_map_range(struct iommu_domain *domain, unsigned int iova, > + struct scatterlist *sg, unsigned int len, int prot) > +{ > + if (unlikely(domain->ops->map_range == NULL)) > + return -ENODEV; > +

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

2014-07-11 Thread Will Deacon
On Thu, Jul 10, 2014 at 11:32:16PM +0100, Olav Haugan wrote: > On 7/9/2014 3:54 AM, Will Deacon wrote: > > On Wed, Jul 09, 2014 at 02:07:38AM +0100, Olav Haugan wrote: > >> So how does an algorithm figure this out in both my examples? The > >> algorithm would have to know about both (all) bus maste

Re: [PATCH 0/8] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-07-11 Thread Jerry Hoemann
On Wed, Jul 02, 2014 at 03:32:59PM +0200, Joerg Roedel wrote: > Hi David, > > On Wed, Apr 30, 2014 at 11:49:33AM +0100, David Woodhouse wrote: > > There could be all kinds of existing mappings in the DMA page tables, > > and I'm not sure it's safe to preserve them. What prevents the crashdump > >

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

2014-07-11 Thread Rob Clark
On Fri, Jul 4, 2014 at 11:29 AM, Thierry Reding wrote: > From: Thierry Reding > > This commit introduces a generic device tree binding for IOMMU devices. > Only a very minimal subset is described here, but it is enough to cover > the requirements of both the Exynos System MMU and Tegra SMMU as >