Re: [RFC PATCH 4/4] iommu: make IOVA domain page size explicit

2014-11-26 Thread leizhen
On 2014/11/26 21:31, Robin Murphy wrote: > Hi, > > On 26/11/14 07:17, leizhen wrote: > [...] >>> diff --git a/drivers/iommu/iova.c b/drivers/iommu/iova.c >>> index a3dbba8..9e50625 100644 >>> --- a/drivers/iommu/iova.c >>> +++ b/drivers/iommu/iova.c >>> @@ -55,12 +55,16 @@ void free_iova_mem(struc

Re: [RFC PATCH v4 0/8] Introduce automatic DMA configuration for IOMMU masters

2014-11-26 Thread Will Deacon
Hi all, On Tue, Nov 25, 2014 at 07:35:21AM +, Marek Szyprowski wrote: > On 2014-11-19 12:41, Will Deacon wrote: > > On Wed, Nov 19, 2014 at 11:21:26AM +, Marek Szyprowski wrote: > >> On 2014-11-14 19:56, Will Deacon wrote: > >>> Hello everybody, > >>> > >>> Here is the fourth iteration of

Re: [RFC PATCH 4/4] iommu: make IOVA domain page size explicit

2014-11-26 Thread Robin Murphy
Hi, On 26/11/14 07:17, leizhen wrote: [...] diff --git a/drivers/iommu/iova.c b/drivers/iommu/iova.c index a3dbba8..9e50625 100644 --- a/drivers/iommu/iova.c +++ b/drivers/iommu/iova.c @@ -55,12 +55,16 @@ void free_iova_mem(struct iova *iova) } void -init_iova_domain(struct iova_domain *iov

Re: [RFC PATCH 1/4] iommu: build iova.c for any IOMMU

2014-11-26 Thread Robin Murphy
Hi, On 26/11/14 06:58, leizhen wrote: On 2014/11/26 1:27, Robin Murphy wrote: In preparation for sharing the IOVA allocator, build it for all IOMMU API users. Signed-off-by: Robin Murphy --- drivers/iommu/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driv

Re: [RFC PATCH v4 6/8] dma-mapping: set dma segment properties in of_dma_configure

2014-11-26 Thread Will Deacon
On Tue, Nov 25, 2014 at 01:05:36PM +, Robin Murphy wrote: > On 14/11/14 18:56, Will Deacon wrote: > > of_dma_configure determines the size of the DMA range for a device by > > either parsing the dma-ranges property or inspecting the coherent DMA > > mask. This same information can be used to in