[PATCH 12/22] arm64: dts: qcom: agatti: Reserve low IOVA range for Venus

From: Vikash Garodia

Date: Fri Aug 07 2026 - 04:29:46 EST


Venus VPU reserves IOVA addresses below 0x25800000 (600MB), primarily for
secure non-pixel buffers. DMA into that range, from any other stream id
would triggers unhandled SMMU page faults that cause spontaneous device
reboots. This is readily reproduced with one or more browser tabs
driving multiple concurrent video decode streams.

Add a reserved-memory IOVA reservation node covering [0, 0x25800000]
and reference it from the venus node so the IOMMU layer keeps DMA
allocations above that boundary.

Fixes: 7a37bf31e3a7 ("arm64: dts: qcom: qcm2290: Add Venus video node")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Vikash Garodia <vikash.garodia@xxxxxxxxxxxxxxxx>
---
arch/arm64/boot/dts/qcom/agatti.dtsi | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/agatti.dtsi b/arch/arm64/boot/dts/qcom/agatti.dtsi
index 590bd2432d85ba80891ed42df8afa317c869daa2..6ae66ef882363a2b5b529a23429dc1f2820b2086 100644
--- a/arch/arm64/boot/dts/qcom/agatti.dtsi
+++ b/arch/arm64/boot/dts/qcom/agatti.dtsi
@@ -381,6 +381,17 @@ rmtfs_mem: memory@89b01000 {
qcom,client-id = <1>;
qcom,vmid = <QCOM_SCM_VMID_MSS_MSA QCOM_SCM_VMID_NAV>;
};
+
+ /*
+ * The Venus VPU reserves IOVA below 0x25800000 (600MB),
+ * primarily for non-pixel buffers using different Stream IDs.
+ * DMA into that range triggers unhandled SMMU faults and
+ * spontaneous reboots, so reserve it to keep IOMMU
+ * allocations above this boundary.
+ */
+ venus_iova: venus-iova {
+ iommu-addresses = <&venus 0x0 0x0 0x0 0x25800000>;
+ };
};

smp2p-adsp {
@@ -2486,7 +2497,7 @@ venus: video-codec@5a00000 {
"vcodec0_core",
"vcodec0_bus";

- memory-region = <&pil_video_mem>;
+ memory-region = <&pil_video_mem>, <&venus_iova>;
iommus = <&apps_smmu 0x860 0x0>,
<&apps_smmu 0x880 0x0>;


--
2.34.1