From cb86d0510c5bf12aa3b8acebc560ffc9f319f1f6 Mon Sep 17 00:00:00 2001 From: Viswanath L Date: Fri, 23 Aug 2024 06:53:33 +0000 Subject: [PATCH] dt: t23x: Add reserved IOVA region for all audio IOVA memory reservation for ADSP gets overridden due to ADMAIF node also registering with the same SID and no memory reservation. ADSP is restricted by ACAST to IOVA range 0x40000000 to 0x60000000, so accesses outside this range cause failure. Resolving this issue by specifying the same reserved region for ADMAIF as well. Bug 4420795 Change-Id: If1b3fabebbad6c0bccf2f6927854a1b4ff68409b Signed-off-by: Viswanath L Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3199039 Reviewed-by: Dara Ramesh GVS: buildbot_gerritrpt Reviewed-by: svcacv Reviewed-by: Asha T --- nv-soc/tegra234-soc-overlay.dtsi | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/nv-soc/tegra234-soc-overlay.dtsi b/nv-soc/tegra234-soc-overlay.dtsi index 3d3dfa0..59a182d 100644 --- a/nv-soc/tegra234-soc-overlay.dtsi +++ b/nv-soc/tegra234-soc-overlay.dtsi @@ -363,9 +363,11 @@ }; reserved-memory { - adsp_resv: reservation-adsp { + ape_resv: reservation-ape { iommu-addresses = <&adsp 0x0 0x00000000 0x0 0x40000000>, - <&adsp 0x0 0x60000000 0xffffffff 0xffffffff>; + <&adsp 0x0 0x60000000 0xffffffff 0x9fffffff>, + <&tegra_admaif 0x0 0x00000000 0x0 0x40000000>, + <&tegra_admaif 0x0 0x60000000 0xffffffff 0x9fffffff>; }; }; @@ -448,6 +450,10 @@ }; }; + admaif@290f000 { + memory-region = <&ape_resv>; + }; + adsp: adsp@2993000 { compatible = "nvidia,tegra18x-adsp"; interrupt-parent = <&agic>; @@ -478,7 +484,7 @@ resets = <&bpmp TEGRA234_RESET_ADSP_ALL>; reset-names = "adspall"; iommus = <&smmu_niso0 TEGRA234_SID_APE>; - memory-region = <&adsp_resv>; + memory-region = <&ape_resv>; status = "disabled"; }; };