All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: tegra: Enable audio IOMMU support on Tegra194
@ 2021-07-09 12:08 ` Thierry Reding
  0 siblings, 0 replies; 8+ messages in thread
From: Thierry Reding @ 2021-07-09 12:08 UTC (permalink / raw)
  To: Thierry Reding; +Cc: Jon Hunter, linux-tegra, linux-arm-kernel

From: Thierry Reding <treding@nvidia.com>

Add iommus and interconnects properties to the sound device tree node on
Tegra194. This ensures that the correct SID is used for translation of
physical to I/O virtual addresses and that the path to system memory is
properly described, which in turn can impact the range of memory that
the device can address.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
 arch/arm64/boot/dts/nvidia/tegra194.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi
index a6e61d899a27..076d5efc4c3d 100644
--- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi
@@ -2477,6 +2477,11 @@ sound {
 		 * for 8x and 11.025x sample rate streams.
 		 */
 		assigned-clock-rates = <258000000>;
+
+		interconnects = <&mc TEGRA194_MEMORY_CLIENT_APEDMAR &emc>,
+				<&mc TEGRA194_MEMORY_CLIENT_APEDMAW &emc>;
+		interconnect-names = "dma-mem", "write";
+		iommus = <&smmu TEGRA194_SID_APE>;
 	};
 
 	tcu: tcu {
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH] arm64: tegra: Enable audio IOMMU support on Tegra194
@ 2021-07-09 12:08 ` Thierry Reding
  0 siblings, 0 replies; 8+ messages in thread
From: Thierry Reding @ 2021-07-09 12:08 UTC (permalink / raw)
  To: Thierry Reding; +Cc: Jon Hunter, linux-tegra, linux-arm-kernel

From: Thierry Reding <treding@nvidia.com>

Add iommus and interconnects properties to the sound device tree node on
Tegra194. This ensures that the correct SID is used for translation of
physical to I/O virtual addresses and that the path to system memory is
properly described, which in turn can impact the range of memory that
the device can address.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
 arch/arm64/boot/dts/nvidia/tegra194.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi
index a6e61d899a27..076d5efc4c3d 100644
--- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi
@@ -2477,6 +2477,11 @@ sound {
 		 * for 8x and 11.025x sample rate streams.
 		 */
 		assigned-clock-rates = <258000000>;
+
+		interconnects = <&mc TEGRA194_MEMORY_CLIENT_APEDMAR &emc>,
+				<&mc TEGRA194_MEMORY_CLIENT_APEDMAW &emc>;
+		interconnect-names = "dma-mem", "write";
+		iommus = <&smmu TEGRA194_SID_APE>;
 	};
 
 	tcu: tcu {
-- 
2.32.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] arm64: tegra: Enable audio IOMMU support on Tegra194
  2021-07-09 12:08 ` Thierry Reding
@ 2021-07-09 12:08   ` Jon Hunter
  -1 siblings, 0 replies; 8+ messages in thread
From: Jon Hunter @ 2021-07-09 12:08 UTC (permalink / raw)
  To: Thierry Reding; +Cc: linux-tegra, linux-arm-kernel


On 09/07/2021 13:08, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
> 
> Add iommus and interconnects properties to the sound device tree node on
> Tegra194. This ensures that the correct SID is used for translation of
> physical to I/O virtual addresses and that the path to system memory is
> properly described, which in turn can impact the range of memory that
> the device can address.
> 
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
>  arch/arm64/boot/dts/nvidia/tegra194.dtsi | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi
> index a6e61d899a27..076d5efc4c3d 100644
> --- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi
> +++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi
> @@ -2477,6 +2477,11 @@ sound {
>  		 * for 8x and 11.025x sample rate streams.
>  		 */
>  		assigned-clock-rates = <258000000>;
> +
> +		interconnects = <&mc TEGRA194_MEMORY_CLIENT_APEDMAR &emc>,
> +				<&mc TEGRA194_MEMORY_CLIENT_APEDMAW &emc>;
> +		interconnect-names = "dma-mem", "write";
> +		iommus = <&smmu TEGRA194_SID_APE>;
>  	};
>  
>  	tcu: tcu {
> 


Reviewed-by: Jon Hunter <jonathanh@nvidia.com>

Thanks!
Jon

-- 
nvpublic

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] arm64: tegra: Enable audio IOMMU support on Tegra194
@ 2021-07-09 12:08   ` Jon Hunter
  0 siblings, 0 replies; 8+ messages in thread
From: Jon Hunter @ 2021-07-09 12:08 UTC (permalink / raw)
  To: Thierry Reding; +Cc: linux-tegra, linux-arm-kernel


On 09/07/2021 13:08, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
> 
> Add iommus and interconnects properties to the sound device tree node on
> Tegra194. This ensures that the correct SID is used for translation of
> physical to I/O virtual addresses and that the path to system memory is
> properly described, which in turn can impact the range of memory that
> the device can address.
> 
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
>  arch/arm64/boot/dts/nvidia/tegra194.dtsi | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi
> index a6e61d899a27..076d5efc4c3d 100644
> --- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi
> +++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi
> @@ -2477,6 +2477,11 @@ sound {
>  		 * for 8x and 11.025x sample rate streams.
>  		 */
>  		assigned-clock-rates = <258000000>;
> +
> +		interconnects = <&mc TEGRA194_MEMORY_CLIENT_APEDMAR &emc>,
> +				<&mc TEGRA194_MEMORY_CLIENT_APEDMAW &emc>;
> +		interconnect-names = "dma-mem", "write";
> +		iommus = <&smmu TEGRA194_SID_APE>;
>  	};
>  
>  	tcu: tcu {
> 


Reviewed-by: Jon Hunter <jonathanh@nvidia.com>

Thanks!
Jon

-- 
nvpublic

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH] arm64: tegra: Enable audio IOMMU support on Tegra194
@ 2021-07-09 12:11 ` Thierry Reding
  0 siblings, 0 replies; 8+ messages in thread
From: Thierry Reding @ 2021-07-09 12:11 UTC (permalink / raw)
  To: Thierry Reding; +Cc: Jon Hunter, linux-tegra, linux-arm-kernel

From: Thierry Reding <treding@nvidia.com>

Add iommus and interconnects properties to the sound device tree node on
Tegra194. This ensures that the correct SID is used for translation of
physical to I/O virtual addresses and that the path to system memory is
properly described, which in turn can impact the range of memory that
the device can address.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
 arch/arm64/boot/dts/nvidia/tegra194.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi
index a6e61d899a27..076d5efc4c3d 100644
--- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi
@@ -2477,6 +2477,11 @@ sound {
 		 * for 8x and 11.025x sample rate streams.
 		 */
 		assigned-clock-rates = <258000000>;
+
+		interconnects = <&mc TEGRA194_MEMORY_CLIENT_APEDMAR &emc>,
+				<&mc TEGRA194_MEMORY_CLIENT_APEDMAW &emc>;
+		interconnect-names = "dma-mem", "write";
+		iommus = <&smmu TEGRA194_SID_APE>;
 	};
 
 	tcu: tcu {
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH] arm64: tegra: Enable audio IOMMU support on Tegra194
@ 2021-07-09 12:11 ` Thierry Reding
  0 siblings, 0 replies; 8+ messages in thread
From: Thierry Reding @ 2021-07-09 12:11 UTC (permalink / raw)
  To: Thierry Reding; +Cc: Jon Hunter, linux-tegra, linux-arm-kernel

From: Thierry Reding <treding@nvidia.com>

Add iommus and interconnects properties to the sound device tree node on
Tegra194. This ensures that the correct SID is used for translation of
physical to I/O virtual addresses and that the path to system memory is
properly described, which in turn can impact the range of memory that
the device can address.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
 arch/arm64/boot/dts/nvidia/tegra194.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi
index a6e61d899a27..076d5efc4c3d 100644
--- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi
@@ -2477,6 +2477,11 @@ sound {
 		 * for 8x and 11.025x sample rate streams.
 		 */
 		assigned-clock-rates = <258000000>;
+
+		interconnects = <&mc TEGRA194_MEMORY_CLIENT_APEDMAR &emc>,
+				<&mc TEGRA194_MEMORY_CLIENT_APEDMAW &emc>;
+		interconnect-names = "dma-mem", "write";
+		iommus = <&smmu TEGRA194_SID_APE>;
 	};
 
 	tcu: tcu {
-- 
2.32.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] arm64: tegra: Enable audio IOMMU support on Tegra194
  2021-07-09 12:11 ` Thierry Reding
@ 2021-07-09 12:11   ` Jon Hunter
  -1 siblings, 0 replies; 8+ messages in thread
From: Jon Hunter @ 2021-07-09 12:11 UTC (permalink / raw)
  To: Thierry Reding; +Cc: linux-tegra, linux-arm-kernel


On 09/07/2021 13:11, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
> 
> Add iommus and interconnects properties to the sound device tree node on
> Tegra194. This ensures that the correct SID is used for translation of
> physical to I/O virtual addresses and that the path to system memory is
> properly described, which in turn can impact the range of memory that
> the device can address.
> 
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
>  arch/arm64/boot/dts/nvidia/tegra194.dtsi | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi
> index a6e61d899a27..076d5efc4c3d 100644
> --- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi
> +++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi
> @@ -2477,6 +2477,11 @@ sound {
>  		 * for 8x and 11.025x sample rate streams.
>  		 */
>  		assigned-clock-rates = <258000000>;
> +
> +		interconnects = <&mc TEGRA194_MEMORY_CLIENT_APEDMAR &emc>,
> +				<&mc TEGRA194_MEMORY_CLIENT_APEDMAW &emc>;
> +		interconnect-names = "dma-mem", "write";
> +		iommus = <&smmu TEGRA194_SID_APE>;
>  	};
>  
>  	tcu: tcu {
> 


Reviewed-by: Jon Hunter <jonathanh@nvidia.com>

Thanks!
Jon

-- 
nvpublic

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] arm64: tegra: Enable audio IOMMU support on Tegra194
@ 2021-07-09 12:11   ` Jon Hunter
  0 siblings, 0 replies; 8+ messages in thread
From: Jon Hunter @ 2021-07-09 12:11 UTC (permalink / raw)
  To: Thierry Reding; +Cc: linux-tegra, linux-arm-kernel


On 09/07/2021 13:11, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
> 
> Add iommus and interconnects properties to the sound device tree node on
> Tegra194. This ensures that the correct SID is used for translation of
> physical to I/O virtual addresses and that the path to system memory is
> properly described, which in turn can impact the range of memory that
> the device can address.
> 
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
>  arch/arm64/boot/dts/nvidia/tegra194.dtsi | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi
> index a6e61d899a27..076d5efc4c3d 100644
> --- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi
> +++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi
> @@ -2477,6 +2477,11 @@ sound {
>  		 * for 8x and 11.025x sample rate streams.
>  		 */
>  		assigned-clock-rates = <258000000>;
> +
> +		interconnects = <&mc TEGRA194_MEMORY_CLIENT_APEDMAR &emc>,
> +				<&mc TEGRA194_MEMORY_CLIENT_APEDMAW &emc>;
> +		interconnect-names = "dma-mem", "write";
> +		iommus = <&smmu TEGRA194_SID_APE>;
>  	};
>  
>  	tcu: tcu {
> 


Reviewed-by: Jon Hunter <jonathanh@nvidia.com>

Thanks!
Jon

-- 
nvpublic

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-07-09 12:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-09 12:08 [PATCH] arm64: tegra: Enable audio IOMMU support on Tegra194 Thierry Reding
2021-07-09 12:08 ` Thierry Reding
2021-07-09 12:08 ` Jon Hunter
2021-07-09 12:08   ` Jon Hunter
2021-07-09 12:11 Thierry Reding
2021-07-09 12:11 ` Thierry Reding
2021-07-09 12:11 ` Jon Hunter
2021-07-09 12:11   ` Jon Hunter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.