(+86) 15013630202 sales@pcie.com

How to disable SMMU for pcie5?

Mar 04, 2024

I read the similar topics and went through the following steps:




  1. Download Linux_for_Tegra, kernel source and sample rootfs from this link https://developer.nvidia.com/embedded/linux-tegra-r3271




  2. I extracted rootfs to Linux_for_tegra/rootfs




  3. Removed this strings from tegra194-soc-pcie.dtsi

    iommus = <&smmu TEGRA_SID_PCIE5>;

    dma-coherent;




  4. In arm-smmu-t19x.c

    reg = readl_relaxed(ARM_SMMU_GR0_NS(smmu) +

    ARM_SMMU_GR0_sCR0);


    /* Enable fault reporting /

    -reg |= (sCR0_GFRE | sCR0_GFIE | sCR0_GCFGFRE | sCR0_GCFGFIE |

    sCR0_USFCFG);

    +reg |= (sCR0_GFRE | sCR0_GFIE | sCR0_GCFGFRE | sCR0_GCFGFIE);

    +

    +/
    Disable Unidentified stream fault reporting */

    +reg &= ~(sCR0_USFCFG);




  5. ./nvbuild.sh -o $HOME/Desktop/kernel_out/ and copy *.dtb *.dtbo and Image to Linux_for_Tegra dir




  6. sudo ./apply_binaries.sh




  7. sudo ./flash.sh jetson-xavier-nx-devkit-emmc mmcblk0p1

    The script succseed and after rebooting jetson didnt start the system.

    So what am i doing wrong? I tryed to change /bootloader/t186ref/BCT/tegra194-memcfg-sw-override.cfg in Linux_for_Tegra as in the pcie smmu issue - #6 by vidyas but nothing changed.