Skip to contentSkip to conversation

arm64: tegra: Enable audio IOMMU support on Tegra194

PATCH In review Thierry Reding 2 participants 2 messages Jul 9, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: tegra: Enable audio IOMMU support on Tegra194

From: Thierry Reding <[email protected]>

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.

---
 arch/arm64/boot/dts/nvidia/tegra194.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/nvidia/tegra194.dtsi +5 -0
index a6e61d899a27..076d5efc4c3d 100644
@@ -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 {
Signature · 1 line
2.32.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 20 lines · Thierry Reding

From: Thierry Reding <[email protected]>

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.

---
 arch/arm64/boot/dts/nvidia/tegra194.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/nvidia/tegra194.dtsi +0 -0
index a6e61d899a27..076d5efc4c3d 100644
@@ -2477,6 +2477,11 @@ sound {
 		 * for 8x and 11.025x sample rate streams.

arch/arm64/boot/dts/nvidia/tegra194.dtsi sound { · line 2487

Quoted 10 lines
arch/arm64/boot/dts/nvidia/tegra194.dtsi +5 -0
 		 */
 		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 {

Thanks!
Jon

Signature · 1 line
nvpublic