Skip to contentSkip to conversation

arm64: tegra: Enable IOMMU for host1x on Tegra132

PATCH Applied Rayyan Ansari 2 participants 5 messages Aug 10, 2023 – Aug 16, 2023

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

PATCH 1/1 arm64: tegra: Enable IOMMU for host1x on Tegra132

Add the iommu property to the host1x node to register it with its swgroup.

---
 arch/arm64/boot/dts/nvidia/tegra132.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/nvidia/tegra132.dtsi +2 -0
index 8b78be8f4f9d..7e24a212c7e4 100644
@@ -93,6 +93,8 @@ host1x@50000000 {
 		resets = <&tegra_car 28>;
 		reset-names = "host1x";
 
+		iommus = <&mc TEGRA_SWGROUP_HC>;
+
 		#address-cells = <2>;
 		#size-cells = <2>;
 
Signature · 1 line
2.41.0
#1 lore raw
Quoted 7 lines · Rayyan Ansari

Add the iommu property to the host1x node to register it with its swgroup.

---
 arch/arm64/boot/dts/nvidia/tegra132.dtsi | 2 ++
 1 file changed, 2 insertions(+)

Do you happen to have a Tegra132 device that you can test upstream Linux on? Just asking out of curiosity because these devices are becoming very rare these days and it'd be good to know if people are still using these and that recent Linux kernels are still running on them.

Thierry

#2 lore raw
Quoted 9 lines · Thierry Reding
Quoted 7 lines · Rayyan Ansari

Add the iommu property to the host1x node to register it with its swgroup.

---
  arch/arm64/boot/dts/nvidia/tegra132.dtsi | 2 ++
  1 file changed, 2 insertions(+)
Quoted 4 lines

Do you happen to have a Tegra132 device that you can test upstream Linux on? Just asking out of curiosity because these devices are becoming very rare these days and it'd be good to know if people are still using these and that recent Linux kernels are still running on them.

I do - I have the Nexus 9. At some point I was trying to mainline it, but I stopped as I couldn't manage to get USB working - I only got simplefb working. If it would be useful I could see if my old patches work now and submit them.

Quoted 2 lines

Thierry

Signature · 2 lines
Rayyan Ansari
https://ansari.sh
#3 lore raw
Quoted 10 lines · Rayyan Ansari
Quoted 9 lines · Thierry Reding
Quoted 7 lines · Rayyan Ansari

Add the iommu property to the host1x node to register it with its swgroup.

---
  arch/arm64/boot/dts/nvidia/tegra132.dtsi | 2 ++

  1 file changed, 2 insertions(+)
Quoted 6 lines
Quoted 4 lines

Do you happen to have a Tegra132 device that you can test upstream Linux on? Just asking out of curiosity because these devices are becoming very rare these days and it'd be good to know if people are still using these and that recent Linux kernels are still running on them.

I do - I have the Nexus 9. At some point I was trying to mainline it, but I stopped as I couldn't manage to get USB working - I only got simplefb working. If it would be useful I could see if my old patches work now and submit them.

I looked through my old notes and I was able to get USB host mode (ie USB OTG) working but not USB device mode.

Quoted 4 lines
Quoted 3 lines

Thierry

Signature · 2 lines
Rayyan Ansari
https://ansari.sh