Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-05-15 Thread Cho KyongHo
On Thu, 15 May 2014 22:37:31 +0200, Thierry Reding wrote: > On Mon, Apr 28, 2014 at 02:05:30PM +0200, Arnd Bergmann wrote: > [...] > > let me clarify by example: > > > > iommu@1 { > > compatible = "some,simple-iommu"; > > reg = <1>; > > #iommu-cells = <0>; /

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-05-15 Thread Thierry Reding
On Mon, Apr 28, 2014 at 02:05:30PM +0200, Arnd Bergmann wrote: [...] > let me clarify by example: > > iommu@1 { > compatible = "some,simple-iommu"; > reg = <1>; > #iommu-cells = <0>; /* supports only one master */ > }; > > iommu@2 { >

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-05-02 Thread Dave Martin
On Thu, May 01, 2014 at 06:41:37PM +0100, Stephen Warren wrote: > On 04/29/2014 03:00 PM, Arnd Bergmann wrote: > ... > > Yes. It's very complicated unfortunately, because we have to be > > able to deal with arbitrary combinations of a lot of oddball cases > > that can show up in random SoCs: > ...

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-05-01 Thread Stephen Warren
On 04/29/2014 03:00 PM, Arnd Bergmann wrote: ... > Yes. It's very complicated unfortunately, because we have to be > able to deal with arbitrary combinations of a lot of oddball cases > that can show up in random SoCs: ... > - a device may have DMA access to a bus that is invisible to the CPU The

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-05-01 Thread Grant Grundler
On Thu, May 1, 2014 at 6:29 AM, Arnd Bergmann wrote: ... >> GICv3 can descriminate between different MSI senders based on ID >> signals on the bus. > > Any idea what this is good for? Do we have to use it? It probably doesn't > fit very well into the way Linux handles MSIs today. I can see this b

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-05-01 Thread Marc Zyngier
On 01/05/14 16:53, Arnd Bergmann wrote: > On Thursday 01 May 2014 16:11:48 Marc Zyngier wrote: >> On 01/05/14 15:36, Dave Martin wrote: >>> On Thu, May 01, 2014 at 02:29:50PM +0100, Arnd Bergmann wrote: On Thursday 01 May 2014 12:15:35 Dave Martin wrote: > On Tue, Apr 29, 2014 at 10:46:18P

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-05-01 Thread Arnd Bergmann
On Thursday 01 May 2014 16:11:48 Marc Zyngier wrote: > On 01/05/14 15:36, Dave Martin wrote: > > On Thu, May 01, 2014 at 02:29:50PM +0100, Arnd Bergmann wrote: > >> On Thursday 01 May 2014 12:15:35 Dave Martin wrote: > >>> On Tue, Apr 29, 2014 at 10:46:18PM +0200, Arnd Bergmann wrote: > I don'

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-05-01 Thread Arnd Bergmann
On Thursday 01 May 2014 15:36:54 Dave Martin wrote: > On Thu, May 01, 2014 at 02:29:50PM +0100, Arnd Bergmann wrote: > > On Thursday 01 May 2014 12:15:35 Dave Martin wrote: > > > > > I'm not sure whether there is actually a SoC today that is MSI-capable > > > > > and contains an IOMMU, but all the

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-05-01 Thread Marc Zyngier
On 01/05/14 15:36, Dave Martin wrote: > On Thu, May 01, 2014 at 02:29:50PM +0100, Arnd Bergmann wrote: >> On Thursday 01 May 2014 12:15:35 Dave Martin wrote: >>> On Tue, Apr 29, 2014 at 10:46:18PM +0200, Arnd Bergmann wrote: On Tuesday 29 April 2014 19:16:02 Dave Martin wrote: >>> >>> [...] >>

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-05-01 Thread Dave Martin
On Thu, May 01, 2014 at 11:02:14PM +0900, Cho KyongHo wrote: > On Tue, 29 Apr 2014 23:00:29 +0200, Arnd Bergmann wrote: > > On Tuesday 29 April 2014 13:07:54 Grant Grundler wrote: > > > On Tue, Apr 29, 2014 at 11:16 AM, Dave Martin wrote: > > > ... > > > > An IOMMU is really a specialised bridge >

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-05-01 Thread Dave Martin
On Thu, May 01, 2014 at 02:29:50PM +0100, Arnd Bergmann wrote: > On Thursday 01 May 2014 12:15:35 Dave Martin wrote: > > On Tue, Apr 29, 2014 at 10:46:18PM +0200, Arnd Bergmann wrote: > > > On Tuesday 29 April 2014 19:16:02 Dave Martin wrote: > > > > [...] > > > > > > For example, suppose devices

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-05-01 Thread Arnd Bergmann
On Thursday 01 May 2014 23:02:14 Cho KyongHo wrote: > > > > - device can only do DMA to a limited address range > > - DMA is noncoherent and needs manual cache management > > - DMA address is at an offset from physical address > > - some devices have an IOMMU > > - some IOMMUs are shared between d

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-05-01 Thread Cho KyongHo
On Tue, 29 Apr 2014 23:00:29 +0200, Arnd Bergmann wrote: > On Tuesday 29 April 2014 13:07:54 Grant Grundler wrote: > > On Tue, Apr 29, 2014 at 11:16 AM, Dave Martin wrote: > > ... > > > An IOMMU is really a specialised bridge > > > > Is a GART a bridge? > > > > IOMMUs can provide three basic fun

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-05-01 Thread Arnd Bergmann
On Thursday 01 May 2014 12:15:35 Dave Martin wrote: > On Tue, Apr 29, 2014 at 10:46:18PM +0200, Arnd Bergmann wrote: > > On Tuesday 29 April 2014 19:16:02 Dave Martin wrote: > > [...] > > > > For example, suppose devices can post MSIs to an interrupt controller > > > via a mailbox accessed throug

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-05-01 Thread Dave Martin
On Tue, Apr 29, 2014 at 10:46:18PM +0200, Arnd Bergmann wrote: > On Tuesday 29 April 2014 19:16:02 Dave Martin wrote: [...] > > For example, suppose devices can post MSIs to an interrupt controller > > via a mailbox accessed through the IOMMU. Suppose also that the IOMMU > > generates MSIs itsel

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-04-30 Thread Dave Martin
On Tue, Apr 29, 2014 at 11:00:29PM +0200, Arnd Bergmann wrote: > On Tuesday 29 April 2014 13:07:54 Grant Grundler wrote: > > On Tue, Apr 29, 2014 at 11:16 AM, Dave Martin wrote: > > ... > > > An IOMMU is really a specialised bridge > > > > Is a GART a bridge? Depends what you mean by "bridge".

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-04-30 Thread Dave Martin
On Mon, Apr 28, 2014 at 09:55:00PM +0200, Arnd Bergmann wrote: > On Monday 28 April 2014 20:30:56 Will Deacon wrote: > > Hi Arnd, > > > > [and thanks Thierry for CCing me -- I have been tangled up with this before > > :)] > > > > On Mon, Apr 28, 2014 at 01:05:30PM +0100, Arnd Bergmann wrote: > >

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-04-29 Thread Arnd Bergmann
On Tuesday 29 April 2014 13:07:54 Grant Grundler wrote: > On Tue, Apr 29, 2014 at 11:16 AM, Dave Martin wrote: > ... > > An IOMMU is really a specialised bridge > > Is a GART a bridge? > > IOMMUs can provide three basic functions: > 1) remap address space to reach phys mem ranges that the device

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-04-29 Thread Arnd Bergmann
On Tuesday 29 April 2014 19:16:02 Dave Martin wrote: > On Mon, Apr 28, 2014 at 09:55:00PM +0200, Arnd Bergmann wrote: > > On Monday 28 April 2014 20:30:56 Will Deacon wrote: > > > > > > device@4 { > > > > compatible = "some,ethernet"; > > > > iommus = <&/iomm

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-04-29 Thread Grant Grundler
On Tue, Apr 29, 2014 at 11:16 AM, Dave Martin wrote: ... > An IOMMU is really a specialised bridge Is a GART a bridge? IOMMUs can provide three basic functions: 1) remap address space to reach phys mem ranges that the device is otherwise not capable of accessing (classic 32-bit DMA to reach 64-b

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-04-28 Thread Hiroshi Doyu
Thierry Reding writes: > * PGP Signed by an unknown key > > On Sun, Apr 27, 2014 at 08:23:06PM +0200, Arnd Bergmann wrote: >> On Sunday 27 April 2014 13:07:43 Shaik Ameer Basha wrote: >> > +- mmu-masters: A phandle to device nodes representing the master for which >> > + the System

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-04-28 Thread Arnd Bergmann
On Monday 28 April 2014 20:30:56 Will Deacon wrote: > Hi Arnd, > > [and thanks Thierry for CCing me -- I have been tangled up with this before > :)] > > On Mon, Apr 28, 2014 at 01:05:30PM +0100, Arnd Bergmann wrote: > > On Monday 28 April 2014 13:18:03 Thierry Reding wrote: > > > There still has

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-04-28 Thread Will Deacon
Hi Arnd, [and thanks Thierry for CCing me -- I have been tangled up with this before :)] On Mon, Apr 28, 2014 at 01:05:30PM +0100, Arnd Bergmann wrote: > On Monday 28 April 2014 13:18:03 Thierry Reding wrote: > > There still has to be one cell to specify which master. Unless perhaps > > if they c

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-04-28 Thread Stephen Warren
On 04/28/2014 05:18 AM, Thierry Reding wrote: > On Mon, Apr 28, 2014 at 12:56:03PM +0200, Arnd Bergmann wrote: ... >> A lot of drivers probably only support one >> master, so they can just set #iommu-cells=<0>, others might require >> IDs that do not fit into one cell. > > You mean "#iommu-cells =

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-04-28 Thread Thierry Reding
On Mon, Apr 28, 2014 at 02:05:30PM +0200, Arnd Bergmann wrote: > On Monday 28 April 2014 13:18:03 Thierry Reding wrote: > > On Mon, Apr 28, 2014 at 12:56:03PM +0200, Arnd Bergmann wrote: > > > On Monday 28 April 2014 12:39:20 Thierry Reding wrote: > > > > And possibly with a iommu-names property to

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-04-28 Thread Arnd Bergmann
On Monday 28 April 2014 13:18:03 Thierry Reding wrote: > On Mon, Apr 28, 2014 at 12:56:03PM +0200, Arnd Bergmann wrote: > > On Monday 28 April 2014 12:39:20 Thierry Reding wrote: > > > And possibly with a iommu-names property to go along with that. The idea > > > being that a device can be a master

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-04-28 Thread Thierry Reding
On Mon, Apr 28, 2014 at 12:56:03PM +0200, Arnd Bergmann wrote: > On Monday 28 April 2014 12:39:20 Thierry Reding wrote: > > On Sun, Apr 27, 2014 at 08:23:06PM +0200, Arnd Bergmann wrote: > > > On Sunday 27 April 2014 13:07:43 Shaik Ameer Basha wrote: > > > > +- mmu-masters: A phandle to device node

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-04-28 Thread Arnd Bergmann
On Monday 28 April 2014 12:39:20 Thierry Reding wrote: > On Sun, Apr 27, 2014 at 08:23:06PM +0200, Arnd Bergmann wrote: > > On Sunday 27 April 2014 13:07:43 Shaik Ameer Basha wrote: > > > +- mmu-masters: A phandle to device nodes representing the master for > > > which > > > + the Sy

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-04-28 Thread Thierry Reding
On Sun, Apr 27, 2014 at 08:23:06PM +0200, Arnd Bergmann wrote: > On Sunday 27 April 2014 13:07:43 Shaik Ameer Basha wrote: > > +- mmu-masters: A phandle to device nodes representing the master for which > > + the System MMU can provide a translation. Any additional > > values > > +

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-04-27 Thread Arnd Bergmann
On Sunday 27 April 2014 13:07:43 Shaik Ameer Basha wrote: > +- mmu-masters: A phandle to device nodes representing the master for which > + the System MMU can provide a translation. Any additional > values > + after the phandle will be ignored because a System MMU never

[PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-04-27 Thread Shaik Ameer Basha
From: Cho KyongHo This patch adds a description of the device tree binding for the Samsung Exynos System MMU. Signed-off-by: Cho KyongHo --- .../devicetree/bindings/iommu/samsung,sysmmu.txt | 79 1 file changed, 79 insertions(+) create mode 100644 Documentation/device