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

2014-06-24 Thread Olav Haugan
On 6/24/2014 11:11 AM, Will Deacon wrote: > On Tue, Jun 24, 2014 at 06:57:44PM +0100, Olav Haugan wrote: >> On 6/24/2014 2:18 AM, Will Deacon wrote: >>> On Sat, Jun 21, 2014 at 12:16:25AM +0100, Olav Haugan wrote: We have multiple-master SMMUs and each master emits a variable number of St

[PATCH 2/3] iommu/fsl: Fix the device domain attach condition.

2014-06-24 Thread Varun Sethi
___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu

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

2014-06-24 Thread Arnd Bergmann
On Tuesday 24 June 2014 19:11:50 Will Deacon wrote: > On Tue, Jun 24, 2014 at 06:57:44PM +0100, Olav Haugan wrote: > > On 6/24/2014 2:18 AM, Will Deacon wrote: > > > On Sat, Jun 21, 2014 at 12:16:25AM +0100, Olav Haugan wrote: > > >> We have multiple-master SMMUs and each master emits a variable nu

[PATCH 3/3] iommu/fsl: Fix the error condition during iommu group

2014-06-24 Thread Varun Sethi
Earlier PTR_ERR was being returned even if group was set to null. Now, we explicitly set an ERR_PTR value in case the group pointer is NULL. Signed-off-by: Varun Sethi --- drivers/iommu/fsl_pamu_domain.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/iommu

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

2014-06-24 Thread Will Deacon
On Tue, Jun 24, 2014 at 06:57:44PM +0100, Olav Haugan wrote: > On 6/24/2014 2:18 AM, Will Deacon wrote: > > On Sat, Jun 21, 2014 at 12:16:25AM +0100, Olav Haugan wrote: > >> We have multiple-master SMMUs and each master emits a variable number of > >> StreamIDs. However, we have to apply a mask (th

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

2014-06-24 Thread Olav Haugan
On 6/24/2014 2:18 AM, Will Deacon wrote: > On Sat, Jun 21, 2014 at 12:16:25AM +0100, Olav Haugan wrote: >> On 5/30/2014 12:06 PM, Arnd Bergmann wrote: >>> On Friday 30 May 2014 08:16:05 Rob Herring wrote: Presumably the ID would be the streamID on ARM's SMMU. How would a master with 8 str

[PATCH 1/3] iommu/fsl: Fix PAMU window size check.

2014-06-24 Thread Varun Sethi
is_power_of_2 requires an unsigned long parameter which would lead to truncation of 64 bit values on 32 bit architectures. __ffs also expects an unsigned long parameter thus won't work for 64 bit values on 32 bit architectures. Signed-off-by: Varun Sethi --- drivers/iommu/fsl_pamu.c|

[PATCH 0/3] iommu/fsl: Fixes for the PAMU driver.

2014-06-24 Thread Varun Sethi
This patch set contains fixes for the PAMU driver. The patches are based on 3.16-rc1. Varun Sethi (3): Fix PAMU window size check. Fix the device domain attach condition. Fix the error condition during iommu group creation. drivers/iommu/fsl_pamu.c|8 drivers/iommu/f

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

2014-06-24 Thread Will Deacon
On Sat, Jun 21, 2014 at 12:16:25AM +0100, Olav Haugan wrote: > On 5/30/2014 12:06 PM, Arnd Bergmann wrote: > > On Friday 30 May 2014 08:16:05 Rob Herring wrote: > >> Presumably the ID would be the streamID on ARM's SMMU. How would a > >> master with 8 streamIDs be described? This is what Calxeda mi

[git pull] IOMMU Fixes for Linux v3.16-rc2

2014-06-24 Thread Joerg Roedel
Hi Linus, The following changes since commit 7171511eaec5bf23fb06078f59784a3a0626b38f: Linux 3.16-rc1 (2014-06-15 17:45:28 -1000) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fixes-v3.16-rc1 for you to fetch changes up to

RE: Vfio-on-arm: the device tree does not contain the DMA device

2014-06-24 Thread bharat.bhus...@freescale.com
> -Original Message- > From: Shannon Zhao [mailto:zhaoshengl...@huawei.com] > Sent: Tuesday, June 24, 2014 1:16 PM > To: Bhushan Bharat-R65777; Alvise Rigo; a.mota...@virtualopensystems.com; > iommu@lists.linux-foundation.org; kvm...@lists.cs.columbia.edu; > zhangchengx...@huawei.com > Su

RE: Vfio-on-arm: the device tree does not contain the DMA device

2014-06-24 Thread bharat.bhus...@freescale.com
> -Original Message- > From: Shannon Zhao [mailto:zhaoshengl...@huawei.com] > Sent: Tuesday, June 24, 2014 12:30 PM > To: Alvise Rigo; Bhushan Bharat-R65777; a.mota...@virtualopensystems.com; > iommu@lists.linux-foundation.org; kvm...@lists.cs.columbia.edu; > zhangchengx...@huawei.com > S