Re: [PATCH v2] iommu/ipmmu-vmsa: Add r8a7796 DT binding

2016-10-30 Thread Rob Herring
On Thu, Oct 27, 2016 at 07:45:10PM +0900, Magnus Damm wrote: > From: Magnus Damm > > Update the IPMMU DT binding documentation to include the r8a7796 compat > string for R-Car M3-W. > > Signed-off-by: Magnus Damm > Acked-by: Laurent

Re: [PATCH] iommu/vt-d: Fix IOMMU lookup for VF's

2016-10-30 Thread David Woodhouse
On Fri, 2016-10-21 at 15:32 -0700, Ashok Raj wrote: > IOMMU driver must pick the same IOMMU as that of a Physical Function (PF) for > any of its Virtual Functions (VF). It is not practical to list all the VF's > in the DMAR scope, as this list could be quite large. Linux also ignores any > VF's

[RFC PATCH] x86: Allow IOMMU drivers to Hook arch_setup_dma_ops()

2016-10-30 Thread David Woodhouse
The Intel IOMMU code registers a notifier and plays nasty tricks to fill device pointers in with its DMAR scope tables when devices are detected, then later compares the device pointers in those tables when it needs to find the IOMMU unit for a given device. If we let it use arch_setup_dma_ops()

Re: [PATCH] iommu/vt-d: Fix the size calculation of pasid table

2016-10-30 Thread David Woodhouse
On Wed, 2016-10-12 at 13:17 +0100, David Woodhouse wrote: > Yes, that looks correct. I think we may also need to limit it, because > full 20-bit PASID support means we'll attempt an order 11 allocation. > But that's certainly correct for now Actually, not quite correct. You fixed the allocation