Re: [PATCH 1/3] iommu/fsl: Factor out PCI specific code.

2013-10-14 Thread Bjorn Helgaas
On Sun, Oct 13, 2013 at 02:02:32AM +0530, Varun Sethi wrote: > Factor out PCI specific code in the PAMU driver. > > Signed-off-by: Varun Sethi > --- > drivers/iommu/fsl_pamu_domain.c | 81 > +++ > 1 file changed, 40 insertions(+), 41 deletions(-) > > diff

Re: [PATCH 2/2] ARM: SMMU: return NULL on error in arm_smmu_iova_to_phys

2013-10-14 Thread Will Deacon
On Mon, Oct 14, 2013 at 04:17:51PM +0100, Antonios Motakis wrote: > On Mon, Oct 14, 2013 at 2:48 PM, Will Deacon wrote: > > On Fri, Oct 11, 2013 at 02:24:47PM +0100, Antonios Motakis wrote: > >> The return value of arm_smmu_iova_to_phys is directly passed to the > >> user of the IOMMU API via iomm

Re: [PATCH 1/2] ARM: SMMU: add devices attached to the SMMU to an IOMMU group

2013-10-14 Thread Will Deacon
On Mon, Oct 14, 2013 at 04:13:15PM +0100, Antonios Motakis wrote: > On Mon, Oct 14, 2013 at 2:48 PM, Will Deacon wrote: > > > diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c > > > index 0f45a48..8b71332 100644 > > > --- a/drivers/iommu/arm-smmu.c > > > +++ b/drivers/iommu/arm-smmu

Re: [PATCH 2/2] ARM: SMMU: return NULL on error in arm_smmu_iova_to_phys

2013-10-14 Thread Antonios Motakis
On Mon, Oct 14, 2013 at 2:48 PM, Will Deacon wrote: > On Fri, Oct 11, 2013 at 02:24:47PM +0100, Antonios Motakis wrote: >> The return value of arm_smmu_iova_to_phys is directly passed to the >> user of the IOMMU API via iommu_iova_to_phys; however the ARM SMMU >> driver returns -EINVAL on error, w

Re: [PATCH 1/2] ARM: SMMU: add devices attached to the SMMU to an IOMMU group

2013-10-14 Thread Antonios Motakis
On Mon, Oct 14, 2013 at 2:48 PM, Will Deacon wrote: > > Hi Antonios, > > On Fri, Oct 11, 2013 at 02:24:46PM +0100, Antonios Motakis wrote: > > IOMMU groups are expected by certain users of the IOMMU API, > > e.g. VFIO. Add new devices found by the SMMU driver to an IOMMU > > group to satisfy those

Re: [PATCH 2/7] iommu: add api to get iommu_domain of a device

2013-10-14 Thread Alex Williamson
On Mon, 2013-10-14 at 12:58 +, Sethi Varun-B16395 wrote: > > > -Original Message- > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > Sent: Friday, October 11, 2013 2:12 AM > > To: Sethi Varun-B16395 > > Cc: Bhushan Bharat-R65777; ag...@suse.de; Wood Scott-B07421; linux-

RE: [PATCH 2/7] iommu: add api to get iommu_domain of a device

2013-10-14 Thread Sethi Varun-B16395
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Friday, October 11, 2013 2:12 AM > To: Sethi Varun-B16395 > Cc: Bhushan Bharat-R65777; ag...@suse.de; Wood Scott-B07421; linux- > p...@vger.kernel.org; ga...@kernel.crashing.org; linux- > ker...@vger.

Re: [PATCH 2/2] ARM: SMMU: return NULL on error in arm_smmu_iova_to_phys

2013-10-14 Thread Will Deacon
On Fri, Oct 11, 2013 at 02:24:47PM +0100, Antonios Motakis wrote: > The return value of arm_smmu_iova_to_phys is directly passed to the > user of the IOMMU API via iommu_iova_to_phys; however the ARM SMMU > driver returns -EINVAL on error, which is not consistent with the > rest of the drivers impl

Re: [PATCH 1/2] ARM: SMMU: add devices attached to the SMMU to an IOMMU group

2013-10-14 Thread Will Deacon
Hi Antonios, On Fri, Oct 11, 2013 at 02:24:46PM +0100, Antonios Motakis wrote: > IOMMU groups are expected by certain users of the IOMMU API, > e.g. VFIO. Add new devices found by the SMMU driver to an IOMMU > group to satisfy those users. Cheers for looking at this: VFIO has been on my TODO list

Re: [PATCH v10 20/20] iommu/exynos: add devices attached to the System MMU to an IOMMU group

2013-10-14 Thread Cho KyongHo
On Thu, 10 Oct 2013 14:54:29 -0600, Alex Williamson wrote: > On Mon, 2013-10-07 at 10:58 +0900, Cho KyongHo wrote: > > Patch written by Antonios Motakis : > > > > IOMMU groups are expected by certain users of the IOMMU API, > > e.g. VFIO. Since each device is behind its own System MMU, we > > can

IO_PAGE_FAULTS when enabling IOMMU in coreboot for ASUS F2A85-M

2013-10-14 Thread Paul Menzel
Dear Linux folks, Rudolf Marek pushed a patch for review to enable the IOMMU in coreboot for the ASUS F2A85-M [1]. With this patch applied, Linux, I think 3.10-rc1, shows IO_PAGE_FAULT messages. $ dmesg […] [0.00] ACPI: IVRS bf144e10 00070 (v02 AMD AMDI