Re: [PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia,memory-clients" from DT

2013-11-03 Thread Hiroshi Doyu
Stephen Warren wrote @ Fri, 1 Nov 2013 18:05:09 +0100: > > What are the requirements for Tegra? If the IOMMU isn't initialised, does it > > act as a passthrough? > > I believe so, yes. In particular we have the following register bits: > > 1) Register bit AHB_ARBITRATION_XBAR_CTRL_SMMU_INIT_DON

Re: [PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia,memory-clients" from DT

2013-11-01 Thread Stephen Warren
On 11/01/2013 10:34 AM, Will Deacon wrote: > On Fri, Nov 01, 2013 at 04:08:52PM +, Stephen Warren wrote: >> On 10/31/2013 01:39 PM, Will Deacon wrote: >>> On Thu, Oct 31, 2013 at 07:25:25PM +, Stephen Warren wrote: On 10/31/2013 01:16 PM, Stephen Warren wrote: > Hmm. That's interes

Re: [PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia,memory-clients" from DT

2013-11-01 Thread Stephen Warren
On 11/01/2013 10:34 AM, Will Deacon wrote: > On Fri, Nov 01, 2013 at 04:08:52PM +, Stephen Warren wrote: >> On 10/31/2013 01:39 PM, Will Deacon wrote: >>> On Thu, Oct 31, 2013 at 07:25:25PM +, Stephen Warren wrote: On 10/31/2013 01:16 PM, Stephen Warren wrote: > Hmm. That's interes

Re: [PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia,memory-clients" from DT

2013-11-01 Thread Will Deacon
On Fri, Nov 01, 2013 at 04:08:52PM +, Stephen Warren wrote: > On 10/31/2013 01:39 PM, Will Deacon wrote: > > On Thu, Oct 31, 2013 at 07:25:25PM +, Stephen Warren wrote: > >> On 10/31/2013 01:16 PM, Stephen Warren wrote: > >>> Hmm. That's interesting. I see that the ARM SMMU has a list of th

Re: [PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia,memory-clients" from DT

2013-11-01 Thread Stephen Warren
On 10/31/2013 01:39 PM, Will Deacon wrote: > On Thu, Oct 31, 2013 at 07:25:25PM +, Stephen Warren wrote: >> On 10/31/2013 01:16 PM, Stephen Warren wrote: >>> Hmm. That's interesting. I see that the ARM SMMU has a list of the >>> clients it affects, whereas this Tegra series puts information int

Re: [PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia,memory-clients" from DT

2013-11-01 Thread Hiroshi Doyu
On Thu, 31 Oct 2013 20:39:41 +0100 Will Deacon wrote: > On Thu, Oct 31, 2013 at 07:25:25PM +, Stephen Warren wrote: > > On 10/31/2013 01:16 PM, Stephen Warren wrote: > > > Hmm. That's interesting. I see that the ARM SMMU has a list of the > > > clients it affects, whereas this Tegra series pu

Re: [PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia,memory-clients" from DT

2013-11-01 Thread Hiroshi Doyu
On Thu, 31 Oct 2013 20:16:18 +0100 Stephen Warren wrote: > Hmm. That's interesting. I see that the ARM SMMU has a list of the > clients it affects, whereas this Tegra series puts information into each > client device about the SMMU(s) that affect it. Is it better to flip the > Tegra binding aroun

Re: [PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia,memory-clients" from DT

2013-11-01 Thread Hiroshi Doyu
On Thu, 31 Oct 2013 18:40:29 +0100 Mark Rutland wrote: > For the ARM SMMU binding, each device has a #stream-id-cells property > describing how many IDs it has, and then the SMMU node has a phandle+args > linkage to each of the devices attached to it, describing their stream IDs. > While this doe

Re: [PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia,memory-clients" from DT

2013-10-31 Thread Will Deacon
On Thu, Oct 31, 2013 at 07:25:25PM +, Stephen Warren wrote: > On 10/31/2013 01:16 PM, Stephen Warren wrote: > > Hmm. That's interesting. I see that the ARM SMMU has a list of the > > clients it affects, whereas this Tegra series puts information into each > > client device about the SMMU(s) tha

Re: [PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia,memory-clients" from DT

2013-10-31 Thread Stephen Warren
On 10/31/2013 01:16 PM, Stephen Warren wrote: > On 10/31/2013 11:40 AM, Mark Rutland wrote: >> On Thu, Oct 31, 2013 at 08:18:08AM +, Hiroshi Doyu wrote: >>> Stephen Warren wrote @ Wed, 30 Oct 2013 23:44:04 >>> +0100: >>> > + host1x { > + compatible = "nvidia,tegra30-host1x", "

Re: [PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia,memory-clients" from DT

2013-10-31 Thread Will Deacon
On Thu, Oct 31, 2013 at 07:13:01PM +, Stephen Warren wrote: > On 10/31/2013 12:02 PM, Will Deacon wrote: > > On Thu, Oct 31, 2013 at 05:40:29PM +, Mark Rutland wrote: > >> For the ARM SMMU binding, each device has a #stream-id-cells property > >> describing how many IDs it has, and then the

Re: [PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia,memory-clients" from DT

2013-10-31 Thread Stephen Warren
On 10/31/2013 02:18 AM, Hiroshi Doyu wrote: > Stephen Warren wrote @ Wed, 30 Oct 2013 23:44:04 > +0100: > >>> + host1x { >>> + compatible = "nvidia,tegra30-host1x", "simple-bus"; >>> + nvidia,memory-clients = <&smmu TEGRA_SWGROUP_HC>; >>> + >>> + gr

Re: [PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia,memory-clients" from DT

2013-10-31 Thread Stephen Warren
On 10/31/2013 11:40 AM, Mark Rutland wrote: > On Thu, Oct 31, 2013 at 08:18:08AM +, Hiroshi Doyu wrote: >> Stephen Warren wrote @ Wed, 30 Oct 2013 23:44:04 >> +0100: >> + host1x { + compatible = "nvidia,tegra30-host1x", "simple-bus"; + nvidia,memory-clients =

Re: [PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia,memory-clients" from DT

2013-10-31 Thread Stephen Warren
On 10/31/2013 12:02 PM, Will Deacon wrote: > On Thu, Oct 31, 2013 at 05:40:29PM +, Mark Rutland wrote: >> For the ARM SMMU binding, each device has a #stream-id-cells property >> describing how many IDs it has, and then the SMMU node has a phandle+args >> linkage to each of the devices attached

Re: [PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia,memory-clients" from DT

2013-10-31 Thread Will Deacon
On Thu, Oct 31, 2013 at 05:40:29PM +, Mark Rutland wrote: > For the ARM SMMU binding, each device has a #stream-id-cells property > describing how many IDs it has, and then the SMMU node has a phandle+args > linkage to each of the devices attached to it, describing their stream IDs. > While thi

Re: [PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia,memory-clients" from DT

2013-10-31 Thread Mark Rutland
On Thu, Oct 31, 2013 at 08:18:08AM +, Hiroshi Doyu wrote: > Stephen Warren wrote @ Wed, 30 Oct 2013 23:44:04 > +0100: > > > > + host1x { > > > + compatible = "nvidia,tegra30-host1x", "simple-bus"; > > > + nvidia,memory-clients = <&smmu TEGRA_SWGROUP_HC>; > > > +

Re: [PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia,memory-clients" from DT

2013-10-31 Thread Hiroshi Doyu
Stephen Warren wrote @ Wed, 30 Oct 2013 23:44:04 +0100: > > + host1x { > > + compatible = "nvidia,tegra30-host1x", "simple-bus"; > > + nvidia,memory-clients = <&smmu TEGRA_SWGROUP_HC>; > > + > > + gr3d { > > + compatible = "nvidia,t

Re: [PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia,memory-clients" from DT

2013-10-30 Thread Stephen Warren
On 10/18/2013 04:26 AM, Hiroshi Doyu wrote: > This provides the info about which swgroups a device belongs to. This > info is passed from DT. This is necessary for the unified SMMU driver > diff --git a/Documentation/devicetree/bindings/iommu/nvidia,tegra30-smmu.txt > b/Documentation/devicetree/b

Re: [PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia, memory-clients" from DT

2013-10-25 Thread Grant Likely
On Fri, 18 Oct 2013 13:26:55 +0300, Hiroshi Doyu wrote: > This provides the info about which swgroups a device belongs to. This > info is passed from DT. This is necessary for the unified SMMU driver > among Tegra SoCs since each has different H/W accelerators. > > Signed-off-by: Hiroshi Doyu >

[PATCHv3 14/19] iommu/tegra: smmu: Get "nvidia, memory-clients" from DT

2013-10-18 Thread Hiroshi Doyu
This provides the info about which swgroups a device belongs to. This info is passed from DT. This is necessary for the unified SMMU driver among Tegra SoCs since each has different H/W accelerators. Signed-off-by: Hiroshi Doyu --- .../bindings/iommu/nvidia,tegra30-smmu.txt | 16