diff mbox series

arm64: tegra: Enable audio IOMMU support on Tegra194

Message ID 20210709120812.2529034-1-thierry.reding@gmail.com (mailing list archive)
State New, archived
Headers show
Series arm64: tegra: Enable audio IOMMU support on Tegra194 | expand

Commit Message

Thierry Reding July 9, 2021, 12:08 p.m. UTC
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(+)

Comments

Jon Hunter July 9, 2021, 12:08 p.m. UTC | #1
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
diff mbox series

Patch

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 {