How to disable SMMU in Jetpack 4.2

Jetpack 4.2 file tegra186-soc-base.dtsi is much different than earlier Jetpack versions. I have tried numerous modifications, but have been unable to disable the SMMU for my PCIE. Can anyone help?

Hi,

Delete following properties under pcie-controller@10003000 node.

            iommus = <&smmu TEGRA_SID_AFI>;
            iommu_sodev_map;

#if LINUX_VERSION >= 414
iommu-map = <0x0 &smmu TEGRA_SID_AFI 0x1000>;
iommu-map-mask = <0x0>;
#endif

Manikanta

May I know how to generate the dtb and flash into Tx2?

Instructions to generate DTB,
https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide%2Fkernel_custom.html%23

Instructions to flash kernel and DTB;
Use “-k kernel” and “-k kernel-dtb” to flash kernel image and DTB respectively.

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide%2Fflashing.html%23wwpID0E0LB0HA

Manikanta