From: Thierry Reding Subject: Re: [PATCH 1/1] arm/dts: Tegra30: Add device tree support for SMMU Date: Fri, 13 Apr 2012 13:03:32 +0200 Message-ID: <20120413110331.GA11605@avionic-0098.mockup.avionic-design.de> References: <20120413.132205.1766846402066131036.hdoyu@nvidia.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0705959983777866394==" Return-path: In-Reply-To: <20120413.132205.1766846402066131036.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Hiroshi Doyu Cc: "linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org" , "iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org" List-Id: devicetree@vger.kernel.org --===============0705959983777866394== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Hiroshi Doyu wrote: > From: Hiroshi DOYU >=20 > Add device tree support for Tegra30 IOMMU(SMMU). >=20 > Signed-off-by: Hiroshi DOYU > --- > .../devicetree/bindings/arm/tegra/tegra30-smmu.txt | 19 ++++++++++++++= +++++ > arch/arm/boot/dts/tegra30.dtsi | 10 ++++++++++ > 2 files changed, 29 insertions(+), 0 deletions(-) >=20 > diff --git a/Documentation/devicetree/bindings/arm/tegra/tegra30-smmu.txt= b/Documentation/devicetree/bindings/arm/tegra/tegra30-smmu.txt > new file mode 100644 > index 0000000..4bd8cd0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/tegra/tegra30-smmu.txt > @@ -0,0 +1,19 @@ > +NVIDIA Tegra 30 IOMMU H/W, SMMU (System Memory Management Unit) > + > +Required properties: > +- compatible : "nvidia,tegra30-smmu" > +- reg : Should contain MC registers location and length > +- reg : Should contain AHB Arbitration registers and length > +- reg : Should contain virtual address space range > +- interrupts : Should contain MC General interrupt > + > +Example: > + smmu: smmu@7000f000 { > + compatible =3D "nvidia,tegra30-smmu"; > + reg =3D < 0x7000f000 0x400 /* controller registers */ > + 0x6000c000 0x150 /* AHB Arbitration registers */ > + 0x00001000 0x3ffff000 >;/* Virtual address space range > + * Exclude the 1st & last page > + */ > + interrupts =3D < 0 13 0x40 >; > + }; > diff --git a/arch/arm/boot/dts/tegra30.dtsi b/arch/arm/boot/dts/tegra30.d= tsi > index 62a7b39..c640a5b 100644 > --- a/arch/arm/boot/dts/tegra30.dtsi > +++ b/arch/arm/boot/dts/tegra30.dtsi > @@ -183,4 +183,14 @@ > reg =3D < 0x70000868 0xd0 /* Pad control registers */ > 0x70003000 0x3e0 >; /* Mux registers */ > }; > + > + smmu: smmu@7000f000 { > + compatible =3D "nvidia,tegra30-smmu"; > + reg =3D < 0x7000f000 0x400 /* controller registers */ > + 0x6000c000 0x150 /* AHB Arbitration registers */ > + 0x00001000 0x3ffff000 >;/* Virtual address space range > + * Exclude the 1st & last page > + */ > + interrupts =3D < 0 13 0x40 >; > + }; > }; Why is the virtual address space range limited to 1 GiB? What is the reason for the exclusion of the first and last pages? Thierry --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAk+ICAMACgkQZ+BJyKLjJp8DPQCffPrQEOiEv2dhJO/tai8uWBqt SVAAoIClrTEkDf8xdisJkiw2GIq1mTfk =cOpP -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N-- --===============0705959983777866394== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ iommu mailing list iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org https://lists.linuxfoundation.org/mailman/listinfo/iommu --===============0705959983777866394==--