Re: [PATCH v5 05/07] iommu/ipmmu-vmsa: Add new IOMMU_DOMAIN_DMA ops

2016-10-19 Thread Magnus Damm
Hi Joerg, On Thu, Sep 22, 2016 at 11:45 PM, Joerg Roedel wrote: > On Tue, Sep 20, 2016 at 10:44:46PM +0900, Magnus Damm wrote: >> +#ifdef CONFIG_IOMMU_DMA >> + >> +static struct iommu_domain *ipmmu_domain_alloc_dma(unsigned type) >> +{ >> + struct iommu_domain *io_domain; >> + >> + if (ty

Re: [PATCH v5 05/07] iommu/ipmmu-vmsa: Add new IOMMU_DOMAIN_DMA ops

2016-09-22 Thread Joerg Roedel
On Tue, Sep 20, 2016 at 10:44:46PM +0900, Magnus Damm wrote: > +#ifdef CONFIG_IOMMU_DMA > + > +static struct iommu_domain *ipmmu_domain_alloc_dma(unsigned type) > +{ > + struct iommu_domain *io_domain; > + > + if (type != IOMMU_DOMAIN_DMA) > + return NULL; > + > + io_domain

[PATCH v5 05/07] iommu/ipmmu-vmsa: Add new IOMMU_DOMAIN_DMA ops

2016-09-20 Thread Magnus Damm
From: Magnus Damm Introduce an alternative set of iommu_ops suitable for 64-bit ARM as well as 32-bit ARM when CONFIG_IOMMU_DMA=y. Also adjust the Kconfig to depend on ARM or IOMMU_DMA. Signed-off-by: Magnus Damm --- Changes since V4: - Added Kconfig hunk to depend on ARM or IOMMU_DMA Chan