[PATCH] iommu/fsl: Fix warning resulting from adding PCI device twice

2014-09-03 Thread Varun Sethi
iommu_group_get_for_dev determines the iommu group for the PCI device and adds the device to the group. In the PAMU driver we were again adding the device to the same group without checking if the device already had an iommu group. This resulted in the following warning. sysfs: cannot create du

[PATCH 2/2] iommu/omap: Fix iommu archdata name for DT-based devices

2014-09-03 Thread Suman Anna
A device is tied to an iommu through its archdata field. The archdata is allocated on the fly for DT-based devices automatically through the .add_device iommu ops. The current logic incorrectly assigned the name of the IOMMU user device, instead of the name of the IOMMU device as required by the at

[PATCH 1/2] iommu/omap: Check for valid archdata in attach_dev

2014-09-03 Thread Suman Anna
Any device requiring to be attached to an iommu_domain must have valid archdata containing the necessary iommu information, which is SoC-specific. Add a check in the omap_iommu_attach_dev to make sure that the device has non-NULL archdata before accessing different SoC-specific fields of the archda

[PATCH 0/2] OMAP IOMMU Fixes for DT-clients

2014-09-03 Thread Suman Anna
Hi, Following are couple of minor fixes to the OMAP IOMMU driver for DT-based client devices. The first patch adds an additional check to detect invalid usage of IOMMU API for devices with no IOMMUs, and the second patch fixes the failure to attach to an OMAP IOMMU for properly configured DT devic

Re: [GIT PULL] iommu/arm-smmu: fixes for 3.17

2014-09-03 Thread Joerg Roedel
On Wed, Sep 03, 2014 at 04:48:22PM +0100, Will Deacon wrote: > The following changes since commit 69e273c0b0a3c337a521d083374c918dc52c666f: > > Linux 3.17-rc3 (2014-08-31 18:23:04 -0700) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/will/linux.

Re: [PATCH v3 0/3] Support for nesting IOMMUs in VFIO

2014-09-03 Thread Will Deacon
On Wed, Sep 03, 2014 at 04:22:42PM +0100, Joerg Roedel wrote: > Hi Will, Hi Joerg, > On Tue, Sep 02, 2014 at 10:53:36AM +0100, Will Deacon wrote: > > This is version three of the patches I originally posted here: > > > > RFCv1: http://permalink.gmane.org/gmane.linux.kernel.iommu/5552 > > RFC

[GIT PULL] iommu/arm-smmu: fixes for 3.17

2014-09-03 Thread Will Deacon
Hi Joerg, Please can you pull the following arm-smmu fixes for 3.17? They address a variety of issues found by running the driver on more hardware and also by the vSMMU work I've been doing. The only change from the series I posted to the list [1] is that I've re-ordered the patches to put the st

Re: [PATCH v3 0/3] Support for nesting IOMMUs in VFIO

2014-09-03 Thread Joerg Roedel
Hi Will, On Tue, Sep 02, 2014 at 10:53:36AM +0100, Will Deacon wrote: > This is version three of the patches I originally posted here: > > RFCv1: http://permalink.gmane.org/gmane.linux.kernel.iommu/5552 > RFCv2: http://permalink.gmane.org/gmane.linux.kernel.iommu/5700 > > Changes since RFCv2

Re: [PATCH v1 1/1] iommu/amd: set iommu for early mapped ioapic/hpet

2014-09-03 Thread j...@8bytes.org
On Mon, Sep 01, 2014 at 02:17:44PM +0800, Su, Friendy wrote: > diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c > index 3783e0b..148ab61 100644 > --- a/drivers/iommu/amd_iommu_init.c > +++ b/drivers/iommu/amd_iommu_init.c > @@ -747,7 +747,7 @@ static int __init add_speci

Re: [RFC PATCH 4/7] iommu: provide helper function to configure an IOMMU for an of master

2014-09-03 Thread Will Deacon
On Tue, Sep 02, 2014 at 09:59:41PM +0100, jroe...@suse.de wrote: > On Tue, Sep 02, 2014 at 04:01:32PM +0200, Arnd Bergmann wrote: > > This is an artifact of the API being single-instance at the moment. > > We might not in fact need it, I was just trying to think of things > > that naturally fit in