Skip to contentSkip to conversation

arm64: tegra: Enable SMMU translation for PCI on Tegra186

PATCH New Thierry Reding 1 participant 1 message May 6, 2019

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

PATCH 1/1 arm64: tegra: Enable SMMU translation for PCI on Tegra186

From: Thierry Reding <[email protected]>

Commit 954a03be033c ("iommu/arm-smmu: Break insecure users by disabling bypass by default") intentionally breaks all devices using the SMMU in bypass mode. This breaks, among other things, PCI support on Tegra186. Fix this by populating the iommus property and friends for the PCIe controller.

Fixes 954a03be033c ("iommu/arm-smmu: Break insecure users by disabling bypass by default")
---
 arch/arm64/boot/dts/nvidia/tegra186.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/nvidia/tegra186.dtsi +4 -0
index 3fb60f6f3a93..426ac0bdf6a6 100644
@@ -673,6 +673,10 @@
 			 <&bpmp TEGRA186_RESET_PCIEXCLK>;
 		reset-names = "afi", "pex", "pcie_x";
 
+		iommus = <&smmu TEGRA186_SID_AFI>;
+		iommu-map = <0x0 &smmu TEGRA186_SID_AFI 0x1000>;
+		iommu-map-mask = <0x0>;
+
 		status = "disabled";
 
 		pci@1,0 {
Signature · 1 line
2.21.0