Re: [RFC PATCH v3 5/7] dma-mapping: detect and configure IOMMU in of_dma_configure

2014-10-27 Thread jroe...@suse.de
On Mon, Oct 27, 2014 at 04:02:16PM +, Will Deacon wrote: > On Mon, Oct 27, 2014 at 11:30:33AM +, Laurent Pinchart wrote: > > I'm not sure to follow you here. Aren't we already exposing masters that > > master through multiple IOMMUs as single instances of struct device ? > > Hmm, yes, now

Re: [RFC PATCH v3 5/7] dma-mapping: detect and configure IOMMU in of_dma_configure

2014-10-27 Thread Will Deacon
On Mon, Oct 27, 2014 at 11:30:33AM +, Laurent Pinchart wrote: > Hi Will, Hey Laurent, > On Monday 27 October 2014 10:51:59 Will Deacon wrote: > > On Tue, Oct 14, 2014 at 01:53:59PM +0100, Laurent Pinchart wrote: > > > On Monday 22 September 2014 18:50:27 Will Deacon wrote: > > > > On Mon, Sep

Re: [RFC PATCH v3 5/7] dma-mapping: detect and configure IOMMU in of_dma_configure

2014-10-27 Thread Laurent Pinchart
Hi Will, On Monday 27 October 2014 10:51:59 Will Deacon wrote: > On Tue, Oct 14, 2014 at 01:53:59PM +0100, Laurent Pinchart wrote: > > On Monday 22 September 2014 18:50:27 Will Deacon wrote: > > > On Mon, Sep 22, 2014 at 10:29:10AM +0100, Thierry Reding wrote: > > > > Agreed. I wonder how useful i

Re: [RFC PATCH v3 5/7] dma-mapping: detect and configure IOMMU in of_dma_configure

2014-10-27 Thread Marek Szyprowski
Hello, On 2014-10-27 11:51, Will Deacon wrote: On Tue, Oct 14, 2014 at 01:53:59PM +0100, Laurent Pinchart wrote: On Monday 22 September 2014 18:50:27 Will Deacon wrote: On Mon, Sep 22, 2014 at 10:29:10AM +0100, Thierry Reding wrote: Agreed. I wonder how useful it is to know the set of IOMMU i

Re: [RFC PATCH v3 5/7] dma-mapping: detect and configure IOMMU in of_dma_configure

2014-10-27 Thread Will Deacon
On Tue, Oct 14, 2014 at 01:53:59PM +0100, Laurent Pinchart wrote: > Hi Will, Hi Laurent, > On Monday 22 September 2014 18:50:27 Will Deacon wrote: > > On Mon, Sep 22, 2014 at 10:29:10AM +0100, Thierry Reding wrote: > > > Agreed. I wonder how useful it is to know the set of IOMMU instances > > > t

Re: [RFC PATCH v3 5/7] dma-mapping: detect and configure IOMMU in of_dma_configure

2014-10-14 Thread Laurent Pinchart
Hi Will, On Monday 22 September 2014 18:50:27 Will Deacon wrote: > On Mon, Sep 22, 2014 at 10:29:10AM +0100, Thierry Reding wrote: > > On Thu, Sep 18, 2014 at 02:17:33PM +0300, Laurent Pinchart wrote: > >> On Friday 12 September 2014 17:34:53 Will Deacon wrote: > >>> This patch extends of_dma_conf

Re: [RFC PATCH v3 5/7] dma-mapping: detect and configure IOMMU in of_dma_configure

2014-09-22 Thread Will Deacon
On Mon, Sep 22, 2014 at 10:29:10AM +0100, Thierry Reding wrote: > On Thu, Sep 18, 2014 at 02:17:33PM +0300, Laurent Pinchart wrote: > > On Friday 12 September 2014 17:34:53 Will Deacon wrote: > > > This patch extends of_dma_configure so that it sets up the IOMMU for a > > > device, as well as the c

Re: [RFC PATCH v3 5/7] dma-mapping: detect and configure IOMMU in of_dma_configure

2014-09-22 Thread Will Deacon
On Thu, Sep 18, 2014 at 12:17:33PM +0100, Laurent Pinchart wrote: > Hi Will, Hello again, > On Friday 12 September 2014 17:34:53 Will Deacon wrote: > > @@ -195,7 +197,19 @@ static void of_dma_configure(struct platform_device > > *pdev) dev_dbg(dev, "device is%sdma coherent\n", > > coh

Re: [RFC PATCH v3 5/7] dma-mapping: detect and configure IOMMU in of_dma_configure

2014-09-22 Thread Thierry Reding
On Thu, Sep 18, 2014 at 02:17:33PM +0300, Laurent Pinchart wrote: > Hi Will, > > Thank you for the patch. > > On Friday 12 September 2014 17:34:53 Will Deacon wrote: > > This patch extends of_dma_configure so that it sets up the IOMMU for a > > device, as well as the coherent/non-coherent DMA map

Re: [RFC PATCH v3 5/7] dma-mapping: detect and configure IOMMU in of_dma_configure

2014-09-18 Thread Laurent Pinchart
Hi Will, Thank you for the patch. On Friday 12 September 2014 17:34:53 Will Deacon wrote: > This patch extends of_dma_configure so that it sets up the IOMMU for a > device, as well as the coherent/non-coherent DMA mapping ops. > > Signed-off-by: Will Deacon > --- > arch/arm/include/asm/dma-map

[RFC PATCH v3 5/7] dma-mapping: detect and configure IOMMU in of_dma_configure

2014-09-12 Thread Will Deacon
This patch extends of_dma_configure so that it sets up the IOMMU for a device, as well as the coherent/non-coherent DMA mapping ops. Signed-off-by: Will Deacon --- arch/arm/include/asm/dma-mapping.h | 4 +++- drivers/of/platform.c | 24 +--- include/linux/dma-ma