Re: [PATCH 1/1] ARM: tegra: bus_notifier registers IOMMU devices(was: How to specify IOMMU'able devices in DT)

2012-11-29 Thread Mark Zhang
On 11/28/2012 09:48 PM, Hiroshi Doyu wrote: > Hiroshi Doyu wrote @ Mon, 24 Sep 2012 14:50:14 +0300 > (EEST): > ... > On Mon, 2012-09-24 at 12:04 +0300, Hiroshi Doyu wrote: >> diff --git a/drivers/base/platform.c b/drivers/base/platform.c >> index a1a7225..9eae3be 100644 >> ---

Re: [PATCH 1/1] ARM: tegra: bus_notifier registers IOMMU devices(was: How to specify IOMMU'able devices in DT)

2012-11-29 Thread Thierry Reding
On Wed, Nov 28, 2012 at 02:48:32PM +0100, Hiroshi Doyu wrote: [...] > From: Hiroshi Doyu > Date: Wed, 28 Nov 2012 14:47:04 +0200 > Subject: [PATCH 1/1] ARM: tegra: bus_notifier registers IOMMU devices > > platform_bus notifier registers IOMMU devices if dma-window is > specified. > > Its format

Re: [PATCH 1/1] ARM: tegra: bus_notifier registers IOMMU devices(was: How to specify IOMMU'able devices in DT)

2012-11-29 Thread Thierry Reding
On Wed, Nov 28, 2012 at 02:48:32PM +0100, Hiroshi Doyu wrote: [...] From: Hiroshi Doyu hd...@nvidia.com Date: Wed, 28 Nov 2012 14:47:04 +0200 Subject: [PATCH 1/1] ARM: tegra: bus_notifier registers IOMMU devices platform_bus notifier registers IOMMU devices if dma-window is specified.

Re: [PATCH 1/1] ARM: tegra: bus_notifier registers IOMMU devices(was: How to specify IOMMU'able devices in DT)

2012-11-29 Thread Mark Zhang
On 11/28/2012 09:48 PM, Hiroshi Doyu wrote: Hiroshi Doyu hd...@nvidia.com wrote @ Mon, 24 Sep 2012 14:50:14 +0300 (EEST): ... On Mon, 2012-09-24 at 12:04 +0300, Hiroshi Doyu wrote: diff --git a/drivers/base/platform.c b/drivers/base/platform.c index a1a7225..9eae3be 100644 ---

Re: [PATCH 1/1] ARM: tegra: bus_notifier registers IOMMU devices(was: How to specify IOMMU'able devices in DT)

2012-11-28 Thread Hiroshi Doyu
On Wed, 28 Nov 2012 19:07:46 +0100 Stephen Warren wrote: .. > >>> Please read more about bus notifiers. IMHO a good example is provided in > >>> the following thread: > >>> http://www.mail-archive.com/linux-samsung-soc@vger.kernel.org/msg12238.html > >> > >> This bus notifier seems enough

Re: [PATCH 1/1] ARM: tegra: bus_notifier registers IOMMU devices(was: How to specify IOMMU'able devices in DT)

2012-11-28 Thread Stephen Warren
On 11/28/2012 06:48 AM, Hiroshi Doyu wrote: > Hiroshi Doyu wrote @ Mon, 24 Sep 2012 14:50:14 +0300 > (EEST): > ... > On Mon, 2012-09-24 at 12:04 +0300, Hiroshi Doyu wrote: >> diff --git a/drivers/base/platform.c b/drivers/base/platform.c >> index a1a7225..9eae3be 100644 >> ---

[PATCH 1/1] ARM: tegra: bus_notifier registers IOMMU devices(was: How to specify IOMMU'able devices in DT)

2012-11-28 Thread Hiroshi Doyu
Hiroshi Doyu wrote @ Mon, 24 Sep 2012 14:50:14 +0300 (EEST): ... > > > > On Mon, 2012-09-24 at 12:04 +0300, Hiroshi Doyu wrote: > > > > > diff --git a/drivers/base/platform.c b/drivers/base/platform.c > > > > > index a1a7225..9eae3be 100644 > > > > > --- a/drivers/base/platform.c > > > > > +++

[PATCH 1/1] ARM: tegra: bus_notifier registers IOMMU devices(was: How to specify IOMMU'able devices in DT)

2012-11-28 Thread Hiroshi Doyu
Hiroshi Doyu hd...@nvidia.com wrote @ Mon, 24 Sep 2012 14:50:14 +0300 (EEST): ... On Mon, 2012-09-24 at 12:04 +0300, Hiroshi Doyu wrote: diff --git a/drivers/base/platform.c b/drivers/base/platform.c index a1a7225..9eae3be 100644 --- a/drivers/base/platform.c +++

Re: [PATCH 1/1] ARM: tegra: bus_notifier registers IOMMU devices(was: How to specify IOMMU'able devices in DT)

2012-11-28 Thread Stephen Warren
On 11/28/2012 06:48 AM, Hiroshi Doyu wrote: Hiroshi Doyu hd...@nvidia.com wrote @ Mon, 24 Sep 2012 14:50:14 +0300 (EEST): ... On Mon, 2012-09-24 at 12:04 +0300, Hiroshi Doyu wrote: diff --git a/drivers/base/platform.c b/drivers/base/platform.c index a1a7225..9eae3be 100644 ---

Re: [PATCH 1/1] ARM: tegra: bus_notifier registers IOMMU devices(was: How to specify IOMMU'able devices in DT)

2012-11-28 Thread Hiroshi Doyu
On Wed, 28 Nov 2012 19:07:46 +0100 Stephen Warren swar...@wwwdotorg.org wrote: .. Please read more about bus notifiers. IMHO a good example is provided in the following thread: http://www.mail-archive.com/linux-samsung-soc@vger.kernel.org/msg12238.html This bus notifier seems enough

Re: How to specify IOMMU'able devices in DT

2012-09-24 Thread Hiroshi Doyu
Hi Marek, Marek Szyprowski wrote @ Mon, 24 Sep 2012 13:14:51 +0200: > Hello, > > On Monday, September 24, 2012 11:45 AM Hiroshi Doyu wrote: > > > On Mon, 24 Sep 2012 11:28:01 +0200 > > James Bottomley wrote: > > > > > On Mon, 2012-09-24 at 12:04 +0300, Hiroshi Doyu wrote: > > > > diff

RE: How to specify IOMMU'able devices in DT (was: [RFC 0/5] ARM: dma-mapping: New dma_map_ops to control IOVA more precisely)

2012-09-24 Thread Marek Szyprowski
Hello, On Monday, September 24, 2012 11:45 AM Hiroshi Doyu wrote: > On Mon, 24 Sep 2012 11:28:01 +0200 > James Bottomley wrote: > > > On Mon, 2012-09-24 at 12:04 +0300, Hiroshi Doyu wrote: > > > diff --git a/drivers/base/platform.c b/drivers/base/platform.c > > > index a1a7225..9eae3be 100644

Re: How to specify IOMMU'able devices in DT (was: [RFC 0/5] ARM: dma-mapping: New dma_map_ops to control IOVA more precisely)

2012-09-24 Thread Hiroshi Doyu
Hi James, On Mon, 24 Sep 2012 11:28:01 +0200 James Bottomley wrote: > On Mon, 2012-09-24 at 12:04 +0300, Hiroshi Doyu wrote: > > diff --git a/drivers/base/platform.c b/drivers/base/platform.c > > index a1a7225..9eae3be 100644 > > --- a/drivers/base/platform.c > > +++ b/drivers/base/platform.c >

Re: How to specify IOMMU'able devices in DT (was: [RFC 0/5] ARM: dma-mapping: New dma_map_ops to control IOVA more precisely)

2012-09-24 Thread James Bottomley
On Mon, 2012-09-24 at 12:04 +0300, Hiroshi Doyu wrote: > diff --git a/drivers/base/platform.c b/drivers/base/platform.c > index a1a7225..9eae3be 100644 > --- a/drivers/base/platform.c > +++ b/drivers/base/platform.c > @@ -21,6 +21,8 @@ > #include > #include > > +#include > + > #include

How to specify IOMMU'able devices in DT (was: [RFC 0/5] ARM: dma-mapping: New dma_map_ops to control IOVA more precisely)

2012-09-24 Thread Hiroshi Doyu
rt multiple address spaces as well. To hide controller > Specific behavior, the drivers should take care of one to one mapping and > remove inaccessible iova spaces in their address space's based platform > device info. The above is also related to another issue, how to specif

How to specify IOMMU'able devices in DT (was: [RFC 0/5] ARM: dma-mapping: New dma_map_ops to control IOVA more precisely)

2012-09-24 Thread Hiroshi Doyu
care of one to one mapping and remove inaccessible iova spaces in their address space's based platform device info. The above is also related to another issue, how to specify IOMMU'able devices in DT. As mentioned above, some IOVA mapping may be unique to some devices, and the number

Re: How to specify IOMMU'able devices in DT (was: [RFC 0/5] ARM: dma-mapping: New dma_map_ops to control IOVA more precisely)

2012-09-24 Thread James Bottomley
On Mon, 2012-09-24 at 12:04 +0300, Hiroshi Doyu wrote: diff --git a/drivers/base/platform.c b/drivers/base/platform.c index a1a7225..9eae3be 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -21,6 +21,8 @@ #include linux/slab.h #include linux/pm_runtime.h +#include

Re: How to specify IOMMU'able devices in DT (was: [RFC 0/5] ARM: dma-mapping: New dma_map_ops to control IOVA more precisely)

2012-09-24 Thread Hiroshi Doyu
Hi James, On Mon, 24 Sep 2012 11:28:01 +0200 James Bottomley james.bottom...@hansenpartnership.com wrote: On Mon, 2012-09-24 at 12:04 +0300, Hiroshi Doyu wrote: diff --git a/drivers/base/platform.c b/drivers/base/platform.c index a1a7225..9eae3be 100644 --- a/drivers/base/platform.c +++

RE: How to specify IOMMU'able devices in DT (was: [RFC 0/5] ARM: dma-mapping: New dma_map_ops to control IOVA more precisely)

2012-09-24 Thread Marek Szyprowski
Hello, On Monday, September 24, 2012 11:45 AM Hiroshi Doyu wrote: On Mon, 24 Sep 2012 11:28:01 +0200 James Bottomley james.bottom...@hansenpartnership.com wrote: On Mon, 2012-09-24 at 12:04 +0300, Hiroshi Doyu wrote: diff --git a/drivers/base/platform.c b/drivers/base/platform.c

Re: How to specify IOMMU'able devices in DT

2012-09-24 Thread Hiroshi Doyu
Hi Marek, Marek Szyprowski m.szyprow...@samsung.com wrote @ Mon, 24 Sep 2012 13:14:51 +0200: Hello, On Monday, September 24, 2012 11:45 AM Hiroshi Doyu wrote: On Mon, 24 Sep 2012 11:28:01 +0200 James Bottomley james.bottom...@hansenpartnership.com wrote: On Mon, 2012-09-24 at