File 0001-Drop-iommu-from-gpu-related-nodes.patch of Package raspberrypi-firmware-dt

From 43d21b0fa9b6684d47a92939ee7515b9259551b8 Mon Sep 17 00:00:00 2001
From: Andrea della Porta <andrea.porta@suse.com>
Date: Mon, 17 Nov 2025 13:32:47 +0200
Subject: [PATCH] Drop iommu from gpu related nodes from RPi5 DT

The HVS can use IOMMU or CMA for its operations. The driver for
the BCM2712 IOMMU is not upstreamed yet so drop the relative property
from the GPU nodes that use it.
As a fallback, the driver will use memory from CMA ensuring that it
will load correctly in time for the UI to come up, avoiding deferring
the driver initialization for too long due to missing IOMMU node.

Signed-off-by: Andrea della Porta <andrea.porta@suse.com>
---
 arch/arm/boot/dts/overlays/vc4-kms-v3d-pi5-overlay.dts | 2 --
 arch/arm64/boot/dts/broadcom/bcm2712.dtsi              | 1 -
 2 files changed, 3 deletions(-)

diff --git a/arch/arm/boot/dts/overlays/vc4-kms-v3d-pi5-overlay.dts b/arch/arm/boot/dts/overlays/vc4-kms-v3d-pi5-overlay.dts
index e9504a7..6410ca9 100644
--- a/arch/arm/boot/dts/overlays/vc4-kms-v3d-pi5-overlay.dts
+++ b/arch/arm/boot/dts/overlays/vc4-kms-v3d-pi5-overlay.dts
@@ -125,8 +125,6 @@
 		target = <&vc4>;
 		__overlay__  {
 			status = "okay";
-			/* IOMMU attaches here, where we allocate DMA buffers */
-			iommus = <&iommu4>;
 		};
 	};
 
diff --git a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
index 58d8790..3f91f0a 100644
--- a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
+++ b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
@@ -618,6 +618,5 @@
 		interrupt-parent = <&disp_intr>;
 		interrupts = <2>, <9>, <16>;
 		interrupt-names = "ch0-eof", "ch1-eof", "ch2-eof";
-		iommus = <&iommu4>;
 	};
 };
-- 
2.35.3

openSUSE Build Service is sponsored by