How to disable IOMMU on Xavier NX?

Please provide the following info:
Hardware Platform: DRIVE AGX Xavier™ NX
Software Version: Unknown
Host Machine Version: native Ubuntu 18.04
SDK Manager Version: Unknown

Hello, we have over 4 x AHD cameras via pCIE bus on jeston platform, we added a patch as below to success to get camera data on TX2.

diff --git a/hardware/nvidia/soc/t18x/kernel-dts/tegra186-soc/tegra186-soc-base.dtsi b/hardware/nvidia/soc/t18x/kernel-dts/tegra186-soc/tegra186-soc-base.dtsi
index 9f0d21b1…a01ddaa2 100644
— a/hardware/nvidia/soc/t18x/kernel-dts/tegra186-soc/tegra186-soc-base.dtsi
+++ b/hardware/nvidia/soc/t18x/kernel-dts/tegra186-soc/tegra186-soc-base.dtsi
@@ -1846,13 +1846,6 @@
interrupt-map-mask = <0 0 0 0>;
interrupt-map = <0 0 0 0 &intc 0 72 0x04>;// check this

  •   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

	bus-range = <0x00 0xff>;
	#address-cells = <3>;
	#size-cells = <2>;

Now we tried on Xavier NX, fail to get camera data, below is dmesg log:

0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.140-tegra (xhz@xhz-omen) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05) ) #1 SMP PREEMPT Mon Jun 15 10:25:14 CST 2020
[ 0.000000] Boot CPU: AArch64 Processor [4e0f0040]
[ 0.000000] OF: fdt:memory scan node memory, reg size 48,
[ 0.000000] OF: fdt: - 80000000 , 2c000000
[ 0.000000] OF: fdt: - ac200000 , 44600000
[ 0.000000] OF: fdt: - 100000000 , 180000000
[ 0.000000] earlycon: tegra_comb_uart0 at MMIO32 0x000000000c168000 (options ‘’)
[ 0.000000] bootconsole [tegra_comb_uart0] enabled
[ 0.000000] Found tegra_fbmem: 00800000@a069c000
[ 0.000000] Found lut_mem: 00002008@a0696000
[ 0.000000] OF: fdt:Reserved memory: failed to reserve memory for node ‘fb1_carveout’: base 0x0000000000000000, size 0 MiB
[ 0.000000] OF: fdt:Reserved memory: failed to reserve memory for node ‘fb1_carveout’: base 0x0000000000000000, size 0 MiB
[ 0.000000] OF: fdt:Reserved memory: failed to reserve memory for node ‘fb2_carveout’: base 0x0000000000000000, size 0 MiB
[ 0.000000] OF: fdt:Reserved memory: failed to reserve memory for node ‘fb2_carveout’: base 0x0000000000000000, size 0 MiB
[ 0.000000] OF: fdt:Reserved memory: failed to reserve memory for node ‘fb3_carveout’: base 0x0000000000000000, size 0 MiB
[ 0.000000] OF: fdt:Reserved memory: failed to reserve memory for node ‘fb3_carveout’: base 0x0000000000000000, size 0 MiB
[ 0.000000] OF: reserved mem: initialized node ramoops_carveout, compatible id nvidia,ramoops
[ 0.000000] OF: reserved mem: initialized node vpr-carveout, compatible id nvidia,vpr-carveout
[ 0.000000] OF: reserved mem: initialized node grid-of-semaphores, compatible id nvidia,gosmem
[ 0.000000] cma: Reserved 64 MiB at 0x00000000c2000000
[ 0.000000] On node 0 totalpages: 2030589
[ 0.000000] DMA zone: 7152 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 457725 pages, LIFO batch:31
[ 0.000000] Normal zone: 24576 pages used for memmap
[ 0.000000] Normal zone: 1572864 pages, LIFO batch:31
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] percpu: Embedded 25 pages/cpu @ffffffc1ffd05000 s61656 r8192 d32552 u102400
[ 0.000000] pcpu-alloc: s61656 r8192 d32552 u102400 alloc=25*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5
[ 0.000000] Speculative Store Bypass Disable mitigation not required
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 1998861
[ 0.000000] Kernel command line: root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyTCU0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 video=tegrafb no_console_suspend=1 earlycon=tegra_comb_uart,mmio32,0x0c168000 gpt tegra_fbmem=0x800000@0xa069c000 lut_mem=0x2008@0xa0696000 usbcore.old_scheme_first=1 tegraid=19.1.2.0.0 maxcpus=6 boot.slot_suffix= boot.ratchetvalues=0.4.2 vpr_resize sdhci_tegra.en_boot_part_access=1 quiet
[ 0.000000] log_buf_len individual max cpu contribution: 32768 bytes
[ 0.000000] log_buf_len total cpu_extra contributions: 163840 bytes
[ 0.000000] log_buf_len min size: 32768 bytes
[ 0.000000] log_buf_len: 262144 bytes
[ 0.000000] early log buf free: 29216(89%)
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
[ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.000000] Memory: 7182192K/8122356K available (15294K kernel code, 2934K rwdata, 6676K rodata, 8576K init, 609K bss, 186500K reserved, 753664K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000 ( 250 GB)
[ 0.000000] .text : 0xffffff8008080000 - 0xffffff8008f70000 ( 15296 KB)
[ 0.000000] .rodata : 0xffffff8008f70000 - 0xffffff8009600000 ( 6720 KB)
[ 0.000000] .init : 0xffffff8009600000 - 0xffffff8009e60000 ( 8576 KB)
[ 0.000000] .data : 0xffffff8009e60000 - 0xffffff800a13d808 ( 2935 KB)
[ 0.000000] .bss : 0xffffff800a13d808 - 0xffffff800a1d5f3c ( 610 KB)
[ 0.000000] fixed : 0xffffffbefe7fd000 - 0xffffffbefec00000 ( 4108 KB)
[ 0.000000] PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000 ( 16 MB)
[ 0.000000] vmemmap : 0xffffffbf00000000 - 0xffffffc000000000 ( 4 GB maximum)
[ 0.000000] 0xffffffbf00000000 - 0xffffffbf08000000 ( 128 MB actual)
[ 0.000000] memory : 0xffffffc000000000 - 0xffffffc200000000 ( 8192 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 64.
[ 0.000000] RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=6.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=6
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 31.25MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xe6a171046, max_idle_ns: 881590405314 ns
[ 0.000004] sched_clock: 56 bits at 31MHz, resolution 32ns, wraps every 4398046511088ns
[ 0.000715] Console: colour dummy device 80x25
[ 0.000726] console [tty0] enabled
[ 0.000734] bootconsole [tegra_comb_uart0] disabled
[ 0.000747] kmemleak: Kernel memory leak detector disabled
[ 0.000764] Calibrating delay loop (skipped), value calculated using timer frequency… 62.50 BogoMIPS (lpj=125000)
[ 0.000779] pid_max: default: 32768 minimum: 301
[ 0.001858] Security Framework initialized
[ 0.002434] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.002444] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.004072] ftrace: allocating 47094 entries in 184 pages
[ 0.398487] sched-energy: Sched-energy-costs installed from DT
[ 0.398508] ASID allocator initialised with 65536 entries
[ 0.433486] tegra-id: chipid=21917.
[ 0.433497] tegra-id: opt_subrevision=1.
[ 0.433523] Tegra Revision: A02 SKU: 0xde CPU Process: 0 SoC Process: 0
[ 0.433556] DTS File Name: /home/xhz/nvidia/source/Linux_for_Tegra/source/public/kernel/kernel-4.9/arch/arm64/boot/dts/…/…/…/…/…/…/hardware/nvidia/platform/t19x/jakku/kernel-dts/tegra194-p3668-all-p3509-0000.dts
[ 0.433566] DTB Build time: Jun 16 2020 16:26:52
[ 0.481549] CPU1: Booted secondary processor [4e0f0040]
[ 0.513740] CPU2: Booted secondary processor [4e0f0040]
[ 0.545852] CPU3: Booted secondary processor [4e0f0040]
[ 0.578119] CPU4: Booted secondary processor [4e0f0040]
[ 0.610208] CPU5: Booted secondary processor [4e0f0040]
[ 0.610430] Brought up 6 CPUs
[ 0.610440] SMP: Total of 6 processors activated.
[ 0.610449] CPU features: detected feature: Privileged Access Never
[ 0.610455] CPU features: detected feature: LSE atomic instructions
[ 0.610461] CPU features: detected feature: User Access Override
[ 0.610467] CPU features: detected feature: 32-bit EL0 Support
[ 0.611883] CPU: All CPU(s) started at EL2
[ 0.611952] alternatives: patching kernel code
[ 0.618341] devtmpfs: initialized
[ 0.657755] Initilizing CustomIPI irq domain
[ 0.658048] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.658062] futex hash table entries: 2048 (order: 5, 131072 bytes)
[ 0.670126] pinctrl core: initialized pinctrl subsystem
[ 0.670341] OS set in device tree is not L4T.
[ 0.670669] regulator-dummy: no parameters
[ 0.670888] Initializing plugin-manager
[ 0.670941] Plugin module not found
[ 0.670980] Plugin-manager status disabled
[ 0.672311] NET: Registered protocol family 16
[ 0.673667] pstore: using zlib compression
[ 0.673692] console [pstore-1] enabled
[ 0.673700] pstore: Registered ramoops as persistent store backend
[ 0.673709] ramoops: attached 0x200000@0xf0600000, ecc: 0/0
[ 0.696894] cpuidle: using governor menu
[ 0.698178] bpmp: waiting for handshake
[ 0.698190] bpmp: handshake completed
[ 0.698211] bpmp: synchronizing channels
[ 0.698222] bpmp: channels synchronized
[ 0.698231] bpmp: mail init ok
[ 0.701021] t19x-arm-smmu 12000000.iommu: found 3 SMMUs and ISO SMMU id is 2
[ 0.701207] t19x-arm-smmu 12000000.iommu: probing hardware configuration…
[ 0.701213] t19x-arm-smmu 12000000.iommu: SMMUv2 with:
[ 0.701220] t19x-arm-smmu 12000000.iommu: stage 1 translation
[ 0.701225] t19x-arm-smmu 12000000.iommu: stage 2 translation
[ 0.701253] t19x-arm-smmu 12000000.iommu: nested translation
[ 0.701262] t19x-arm-smmu 12000000.iommu: stream matching with 128 register groups, mask 0x7f80
[ 0.701269] t19x-arm-smmu 12000000.iommu: SMMU address space size (0x800000) differs from mapped region size (0x1000000)!
[ 0.701276] t19x-arm-smmu 12000000.iommu: 64 context banks (0 stage-2 only)
[ 0.701282] t19x-arm-smmu 12000000.iommu: Stage-1: 39-bit VA -> 48-bit IPA
[ 0.701288] t19x-arm-smmu 12000000.iommu: Stage-2: 39-bit IPA -> 48-bit PA
[ 0.704390] vdso: 2 pages (1 code @ ffffff8008f77000, 1 data @ ffffff8009e64000)
[ 0.704420] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.707060] atomic_pool_init():622: DMA: preallocated 1024 KiB pool for atomic allocations
[ 0.708312] Registering BPMP clocks…
[ 0.708418] tegra_bpmp_clk_init: clock init ok (400 clks)
[ 0.709086] Serial: AMBA PL011 UART driver
[ 0.709208] tegra_powergate_init: DONE
[ 0.709298] DTS File Name: /home/xhz/nvidia/source/Linux_for_Tegra/source/public/kernel/kernel-4.9/arch/arm64/boot/dts/…/…/…/…/…/…/hardware/nvidia/platform/t19x/jakku/kernel-dts/tegra194-p3668-all-p3509-0000.dts
[ 0.709314] DTB Build time: Jun 16 2020 16:26:52
[ 0.712117] Tegra reboot handler registered.
[ 0.721017] iommu: Adding device 2490000.ether_qos to group 0
[ 0.721515] iommu: Adding device 3100000.serial to group 1
[ 0.721974] iommu: Adding device 3110000.serial to group 2
[ 0.722331] iommu: Adding device 3140000.serial to group 3
[ 0.722911] tegra-pmc c360000.pmc: scratch reg offset dts data not present
[ 0.723293] tegra-pmc: get_secure_pmc_setting: done secure_pmc=0
[ 0.723319] tegra-pmc: ### PMC reset source: TEGRA_POWER_ON_RESET
[ 0.723326] tegra-pmc: ### PMC reset level: TEGRA_RESET_LEVEL_L0
[ 0.723334] tegra-pmc: ### PMC reset status reg: 0x0
[ 0.723407] tegra-pmc: PMC Prod config success
[ 0.723606] padctrl padctrl.0: Pad control driver tegra-pmc-padctrl registered
[ 0.723619] tegra-pmc c360000.pmc: IO padctrl driver initialized
[ 0.723912] iommu: Adding device 3460000.sdhci to group 4
[ 0.724402] iommu: Adding device 3210000.spi to group 5
[ 0.724826] iommu: Adding device 3230000.spi to group 6
[ 0.725224] iommu: Adding device 3270000.spi to group 7
[ 0.726296] iommu: Adding device 3160000.i2c to group 8
[ 0.726653] iommu: Adding device c240000.i2c to group 9
[ 0.727007] iommu: Adding device 3180000.i2c to group 10
[ 0.727376] iommu: Adding device 3190000.i2c to group 11
[ 0.727850] iommu: Adding device 31b0000.i2c to group 12
[ 0.728260] iommu: Adding device 31c0000.i2c to group 13
[ 0.728771] iommu: Adding device c250000.i2c to group 14
[ 0.729254] iommu: Adding device 31e0000.i2c to group 15
[ 0.729806] iommu: Adding device sound to group 16
[ 0.730339] iommu: Adding device 3510000.hda to group 17
[ 0.730891] iommu: Adding device bc00000.rtcpu to group 18
[ 0.732817] iommu: Adding device 13e10000.host1x to group 19
[ 0.733252] iommu: Adding device 13e10000.host1x:ctx0 to group 20
[ 0.733600] iommu: Adding device 13e10000.host1x:ctx1 to group 21
[ 0.733999] iommu: Adding device 13e10000.host1x:ctx2 to group 22
[ 0.734367] iommu: Adding device 13e10000.host1x:ctx3 to group 23
[ 0.734695] iommu: Adding device 13e10000.host1x:ctx4 to group 24
[ 0.735068] iommu: Adding device 13e10000.host1x:ctx5 to group 25
[ 0.735408] iommu: Adding device 13e10000.host1x:ctx6 to group 26
[ 0.735843] iommu: Adding device 13e10000.host1x:ctx7 to group 27
[ 0.736312] iommu: Adding device 15340000.vic to group 28
[ 0.736708] iommu: Adding device 15380000.nvjpg to group 29
[ 0.736985] iommu: Adding device 15500000.tsec to group 30
[ 0.737272] iommu: Adding device 15100000.tsecb to group 31
[ 0.737522] iommu: Adding device 15480000.nvdec to group 32
[ 0.737820] iommu: Adding device 15140000.nvdec1 to group 33
[ 0.738071] iommu: Adding device 154c0000.nvenc to group 34
[ 0.738309] iommu: Adding device 15a80000.nvenc1 to group 35
[ 0.738700] iommu: Adding device 15880000.nvdla0 to group 36
[ 0.739301] iommu: Adding device 158c0000.nvdla1 to group 37
[ 0.739850] iommu: Adding device 15200000.nvdisplay to group 38
[ 0.740041] platform 15200000.nvdisplay: IOVA linear map 0x00000000a069c000(800000)
[ 0.740052] platform 15200000.nvdisplay: IOVA linear map 0x00000000a0696000(3000)
[ 0.744045] platform 15200000.nvdisplay: IOVA linear map 0x00000000c6000000(2a000000)
[ 0.744114] t19x-arm-smmu: Adding 15200000.nvdisplay to ISO SMMU client
[ 0.744824] iommu: Adding device 15210000.nvdisplay to group 39
[ 0.744894] t19x-arm-smmu: Adding 15210000.nvdisplay to ISO SMMU client
[ 0.746584] iommu: Adding device 15c10000.vi to group 40
[ 0.746743] t19x-arm-smmu: Adding 15c10000.vi to ISO SMMU client
[ 0.747167] iommu: Adding device 14800000.isp to group 41
[ 0.748009] iommu: Adding device 16000000.pva0 to group 42
[ 0.748552] iommu: Adding device 16800000.pva1 to group 43
[ 0.748940] iommu: Adding device 15810000.se to group 44
[ 0.749359] iommu: Adding device 15820000.se to group 45
[ 0.749645] iommu: Adding device 15830000.se to group 46
[ 0.749915] iommu: Adding device 15840000.se to group 47
[ 0.750148] iommu: Adding device c1a0000.aon to group 48
[ 0.751550] iommu: Adding device d000000.bpmp to group 49
[ 0.751896] bpmp: ping status is 0
[ 0.752020] bpmp d000000.bpmp: firmware tag is 57f8a77779f848bf2ecf21dabee5645f
[ 0.755357] bpmp d000000.bpmp: probe ok
[ 0.756903] tegra-reset 0.bpmp_reset: registered 190 resets.
[ 0.757371] iommu: Adding device smmu_test to group 50
[ 0.758371] mc: mapped MMIO address: 0xffffff800a590000 -> 0x2c10000
[ 0.758394] mc: mapped MMIO address: 0xffffff800a5b0000 -> 0x2c20000
[ 0.758412] mc: mapped MMIO address: 0xffffff800a5d0000 -> 0x2c30000
[ 0.758431] mc: mapped MMIO address: 0xffffff800a7b0000 -> 0x2c40000
[ 0.758449] mc: mapped MMIO address: 0xffffff800a7d0000 -> 0x2c50000
[ 0.758473] mc: mapped MMIO address: 0xffffff800b010000 -> 0x2b80000
[ 0.758491] mc: mapped MMIO address: 0xffffff800b030000 -> 0x2b90000
[ 0.758508] mc: mapped MMIO address: 0xffffff800b050000 -> 0x2ba0000
[ 0.758525] mc: mapped MMIO address: 0xffffff800b070000 -> 0x2bb0000
[ 0.758542] mc: mapped MMIO address: 0xffffff800b090000 -> 0x1700000
[ 0.758559] mc: mapped MMIO address: 0xffffff800b0b0000 -> 0x1710000
[ 0.758575] mc: mapped MMIO address: 0xffffff800b0d0000 -> 0x1720000
[ 0.758592] mc: mapped MMIO address: 0xffffff800b0f0000 -> 0x1730000
[ 0.758608] mc: mapped MMIO address: 0xffffff800b110000 -> 0x1740000
[ 0.758640] mc: mapped MMIO address: 0xffffff800b130000 -> 0x1750000
[ 0.758657] mc: mapped MMIO address: 0xffffff800b150000 -> 0x1760000
[ 0.758677] mc: mapped MMIO address: 0xffffff800b170000 -> 0x1770000
[ 0.758744] mc-err: mcerr ops are set to t19x
[ 0.765152] iommu: Adding device 2600000.dma to group 51
[ 0.770361] GPIO line 339 (wifi-enable) hogged as output/high
[ 0.770400] GPIO line 412 (camera-control-output-low) hogged as output/low
[ 0.770459] GPIO line 413 (camera-control-output-low) hogged as output/low
[ 0.770754] gpiochip_setup_dev: registered GPIOs 288 to 511 on device: gpiochip0 (tegra-gpio)
[ 0.777684] GPIO line 253 (pex-refclk-sel-low) hogged as output/low
[ 0.777967] gpiochip_setup_dev: registered GPIOs 248 to 287 on device: gpiochip1 (tegra-gpio-aon)
[ 0.779979] tegra186-aowake c370000.pmc: WAKE_AOWAKE_CTRL_0 = 3
[ 0.779990] tegra186-aowake c370000.pmc: WAKE_AOWAKE_CNTRL_24(PMU_INT) = 256
[ 0.780626] iommu: Adding device 3550000.xudc to group 52
[ 0.781242] iommu: Adding device 3610000.xhci to group 53
[ 0.783244] arm64_ras arm64_ras: probed
[ 0.783631] ras_fhi_enable: FHI 468 enabled on CPU0
[ 0.783674] ras_fhi_enable: FHI 469 enabled on CPU1
[ 0.783750] ras_fhi_enable: FHI 470 enabled on CPU2
[ 0.783818] ras_fhi_enable: FHI 471 enabled on CPU3
[ 0.783875] ras_fhi_enable: FHI 472 enabled on CPU4
[ 0.783925] ras_fhi_enable: FHI 473 enabled on CPU5
[ 0.784106] carmel_ras_enable: RAS enabled on cpu0
[ 0.784272] carmel_ras_enable: RAS enabled on cpu1
[ 0.784497] carmel_ras_enable: RAS enabled on cpu2
[ 0.784680] carmel_ras_enable: RAS enabled on cpu3
[ 0.784872] carmel_ras_enable: RAS enabled on cpu4
[ 0.785049] carmel_ras_enable: RAS enabled on cpu5
[ 0.785145] carmel_ras carmel_ras: probed
[ 0.786258] tegra-cbb 2300000.cbb-noc: noc_secure_irq = 477, noc_nonsecure_irq = 476>
[ 0.786769] tegra-cbb c600000.aon-noc: noc_secure_irq = 479, noc_nonsecure_irq = 478>
[ 0.787676] tegra-cbb d600000.bpmp-noc: noc_secure_irq = 481, noc_nonsecure_irq = 480>
[ 0.788601] tegra-cbb be00000.rce-noc: noc_secure_irq = 483, noc_nonsecure_irq = 482>
[ 0.789419] tegra-cbb b600000.sce-noc: noc_secure_irq = 485, noc_nonsecure_irq = 484>
[ 0.789765] tegra-cbb 14040000.cv-noc: defer probe as CV-NOC not probed yet
[ 0.790889] vdd-ac-bat: 5000 mV
[ 0.791414] vdd-sdmmc1-sw: 3300 mV
[ 0.791737] vdd-1v8-sd: 1800 mV
[ 0.792060] vdd-usb2-5v: 5000 mV
[ 0.792428] vdd-3v3-cvb: 3300 mV
[ 0.792700] vdd-1v8-cvb: 1800 mV
[ 0.793003] vdd-epb-1v0: supplied by vdd-3v3-cvb
[ 0.793043] vdd-epb-1v0: 1000 mV
[ 0.793391] avdd-cam-2v8: 2800 mV
[ 0.793731] vdd-fan: 5000 mV
[ 0.794014] vdd-hdmi-5v0: 5000 mV
[ 0.794320] vdd_sys_en: 1200 mV
[ 0.832819] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.837884] eventlib_kernel: keventlib is initialized, test id: 0
[ 0.838189] SCSI subsystem initialized
[ 0.838423] libata version 3.00 loaded.
[ 0.838634] usbcore: registered new interface driver usbfs
[ 0.838674] usbcore: registered new interface driver hub
[ 0.838751] usbcore: registered new device driver usb
[ 0.849026] tegra-i2c 31e0000.i2c: could not find pctldev for node /host1x/dpaux@155F0000/pinmux@0, deferring probe
[ 0.851778] max77620 4-003c: PMIC Version OTP:0x51 and ES:0x1
[ 0.860270] vdd-1v0: at 1000 mV
[ 0.866001] vdd-1v8-hs: at 1800 mV
[ 0.870003] vdd-1v8-ls: at 1800 mV
[ 0.874029] vdd-1v8-ao: at 1800 mV
[ 0.882054] vddio-ddr-1v1: at 1100 mV
[ 0.885822] vdd-rtc: at 800 mV
[ 0.887040] spmic-ldo1: at 2375 mV
[ 0.897877] vdd-ao-3v3: at 3300 mV
[ 0.905908] vddio-emmc-3v3: at 3300 mV
[ 0.907235] spmic-ldo4: at 1587 mV
[ 0.917973] vdd-usb-3v3: at 3300 mV
[ 0.925992] vddio-sdmmc1-3v3: at 3300 mV
[ 0.930002] vdd-csi-1v2: at 1200 mV
[ 0.931515] spmic-ldo8: at 1800 mV
[ 0.936366] GPIO line 246 (gpio_default) hogged as output/high
[ 0.937735] GPIO line 247 (gpio_default) hogged as output/high
[ 0.938097] gpiochip_setup_dev: registered GPIOs 240 to 247 on device: gpiochip2 (max77620-gpio)
[ 0.938424] max77620 4-003c: max77620 probe successful
[ 0.939072] media: Linux media interface: v0.10
[ 0.939157] Linux video capture interface: v2.00
[ 0.940776] pps_core: LinuxPPS API ver. 1 registered
[ 0.940783] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 0.940874] PTP clock support registered
[ 0.941290] tegra_wdt_t18x 30c0000.watchdog: Expiry count is deprecated
[ 0.941606] tegra_wdt_t18x 30c0000.watchdog: Tegra WDT init timeout = 120 sec
[ 0.941643] tegra_wdt_t18x 30c0000.watchdog: Registered successfully
[ 0.944227] trusty trusty: trusty version: Built: 18:08:23 Apr 8 2020
[ 0.944288] trusty trusty: selected api version: 3 (requested 3)
[ 0.945312] Advanced Linux Sound Architecture Driver Initialized.
[ 0.945742] Bluetooth: Core ver 2.22
[ 0.945782] NET: Registered protocol family 31
[ 0.945787] Bluetooth: HCI device and connection manager initialized
[ 0.945797] Bluetooth: HCI socket layer initialized
[ 0.945804] Bluetooth: L2CAP socket layer initialized
[ 0.945826] Bluetooth: SCO socket layer initialized
[ 0.948281] camchar: rtcpu character device driver loaded
[ 0.948766] gpio tegra-gpio wake61 for gpio=201(Z:1)
[ 0.948874] extcon-gpio-states external-connection:extcon@1: Cable state:0, cable id:0
[ 0.950424] clocksource: Switched to clocksource arch_sys_counter
[ 0.991485] VFS: Disk quotas dquot_6.6.0
[ 0.991591] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.991906] nvmap_heap_init: nvmap_heap_init: created heap block cache
[ 0.993345] tegra-carveouts tegra-carveouts: assigned reserved memory node grid-of-semaphores
[ 0.993394] dma_declare_coherent_resizable_cma_memory:324: resizable heap=vpr, base=0x00000000c6000000, size=0x2a000000
[ 0.993666] cma: enabled page replacement for spfn=c6000, epfn=f0000
[ 0.993677] dma_declare_coherent_resizable_cma_memory:373: resizable cma heap=vpr create successful
[ 0.993715] nvmap: nvmap_select_cache_ops() nvmap cache ops set to scf
[ 0.993724] nvmap_page_pool_init: Total RAM pages: 1983964
[ 0.993731] nvmap_page_pool_init: nvmap page pool size: 247995 pages (968 MB)
[ 0.994020] nvmap_background_zero_thread: PP zeroing thread starting.
[ 0.994316] misc nvmap: created heap vpr base 0x00000000c6000000 size (688128KiB)
[ 0.995943] tegra-gpcdma 2600000.dma: GPC DMA driver register 31 channels
[ 1.007638] thermal thermal_zone0: Registering thermal zone thermal_zone0 for type CPU-therm
[ 1.007803] thermal thermal_zone1: Registering thermal zone thermal_zone1 for type GPU-therm
[ 1.007960] thermal thermal_zone2: Registering thermal zone thermal_zone2 for type AUX-therm
[ 1.008132] thermal thermal_zone3: Registering thermal zone thermal_zone3 for type AO-therm
[ 1.008291] thermal thermal_zone4: Registering thermal zone thermal_zone4 for type PMIC-Die
[ 1.009455] la/ptsa driver initialized.
[ 1.009811] NET: Registered protocol family 2
[ 1.010706] TCP established hash table entries: 65536 (order: 7, 524288 bytes)
[ 1.011032] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[ 1.011611] TCP: Hash tables configured (established 65536 bind 65536)
[ 1.011652] UDP hash table entries: 4096 (order: 5, 131072 bytes)
[ 1.011768] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes)
[ 1.012230] NET: Registered protocol family 1
[ 1.012893] RPC: Registered named UNIX socket transport module.
[ 1.012900] RPC: Registered udp transport module.
[ 1.012904] RPC: Registered tcp transport module.
[ 1.012909] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.012920] PCI: CLS 0 bytes, default 64
[ 1.013106] Trying to unpack rootfs image as initramfs…
[ 1.198688] Freeing initrd memory: 5432K
[ 1.213528] random: fast init done
[ 1.218203] host1x 13e10000.host1x: initialized
[ 1.220601] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[ 1.224912] audit: initializing netlink subsys (disabled)
[ 1.224959] audit: type=2000 audit(0.844:1): initialized
[ 1.225632] workingset: timestamp_bits=46 max_order=21 bucket_order=0
[ 1.234013] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 1.235372] ntfs: driver 2.1.32 [Flags: R/W].
[ 1.236067] 9p: Installing v9fs 9p2000 file system support
[ 1.241177] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 240)
[ 1.241321] io scheduler noop registered
[ 1.241537] io scheduler cfq registered (default)
[ 1.245003] gic 2a41000.agic-controller: GIC IRQ controller registered
[ 1.249173] iommu: Adding device 2993000.adsp to group 54
[ 1.315771] iommu: Adding device aconnect@2a41000:adsp_audio to group 55
[ 1.316829] tegra-aconnect aconnect@2a41000: Tegra ACONNECT bus registered
[ 1.328135] tegra-pwm 3280000.pwm: PWM clk can sleep in ops
[ 1.328530] tegra-pwm c340000.pwm: PWM clk can sleep in ops
[ 1.329098] tegra-pwm 32c0000.pwm: PWM clk can sleep in ops
[ 1.329493] tegra-pwm 32d0000.pwm: PWM clk can sleep in ops
[ 1.329877] tegra-pwm 32f0000.pwm: PWM clk can sleep in ops
[ 1.332703] tegra_camera_platform tegra-camera-platform: tegra_camera_probe:camera_platform_driver probe
[ 1.332932] misc tegra_camera_ctrl: tegra_camera_isomgr_register isp_iso_bw=1500000, vi_iso_bw=1500000, max_bw=1500000
[ 1.335406] tsec 15500000.tsec: initialized
[ 1.337202] tsec 15100000.tsecb: initialized
[ 1.340764] nvdec 15480000.nvdec: initialized
[ 1.343285] nvdec 15140000.nvdec1: initialized
[ 1.348747] falcon 15340000.vic: initialized
[ 1.350536] falcon 15380000.nvjpg: initialized
[ 1.352511] falcon 154c0000.nvenc: initialized
[ 1.354297] falcon 15a80000.nvenc1: initialized
[ 1.357482] iommu_context_dev 13e10000.host1x:ctx0: initialized (streamid=56)
[ 1.360176] iommu_context_dev 13e10000.host1x:ctx1: initialized (streamid=57)
[ 1.362851] iommu_context_dev 13e10000.host1x:ctx2: initialized (streamid=58)
[ 1.364735] iommu_context_dev 13e10000.host1x:ctx3: initialized (streamid=59)
[ 1.366172] iommu_context_dev 13e10000.host1x:ctx4: initialized (streamid=60)
[ 1.367605] iommu_context_dev 13e10000.host1x:ctx5: initialized (streamid=61)
[ 1.368998] iommu_context_dev 13e10000.host1x:ctx6: initialized (streamid=62)
[ 1.370464] iommu_context_dev 13e10000.host1x:ctx7: initialized (streamid=63)
[ 1.374072] t194-nvcsi 15a00000.nvcsi: initialized
[ 1.379029] scare-pigeon 13e10000.host1x:vi-thi@15f00000: initialized
[ 1.379487] scare-pigeon 14b00000.isp-thi: initialized
[ 1.385321] pva 16000000.pva0: initialized
[ 1.391150] pva 16800000.pva1: initialized
[ 1.396034] nvdla 15880000.nvdla0: initialized
[ 1.400873] nvdla 158c0000.nvdla1: initialized
[ 1.402335] tegradccommon 15200000.dc_common: host1x channel mapped
[ 1.402349] tegradccommon 15200000.dc_common: dc_common syncpt # 1 allocated
[ 1.402380] tegradccommon 15200000.dc_common: dma mapping done
[ 1.403348] tegradc 15200000.nvdisplay: disp0 connected to head0->/host1x/sor1
[ 1.403380] generic_infoframe_type: 0x87
[ 1.403439] tegradc 15200000.nvdisplay: DT parsed successfully
[ 1.403468] tegradc 15200000.nvdisplay: Display dc.ffffff800bd10000 registered with id=0
[ 1.407132] tegra_nvdisp_bandwidth_register_max_config: max config iso bw = 7088400 KB/s
[ 1.407139] tegra_nvdisp_bandwidth_register_max_config: max config EMC floor = 800000000 Hz
[ 1.407145] tegra_nvdisp_bandwidth_register_max_config: max config hubclk = 179200000 Hz
[ 1.407375] tegradc 15200000.nvdisplay: vblank syncpt # 8 for dc 0
[ 1.407386] tegradc 15200000.nvdisplay: vpulse3 syncpt # 9 for dc 0
[ 1.408092] tegradc 15200000.nvdisplay: Bootloader disp_param detected. Detected mode: 1920x1080 (on 0x0mm) pclk=148350937
[ 1.410252] tegradc 15200000.nvdisplay: hdmi: invalid prod list prod_list_hdmi_board
[ 1.410262] tegradc 15200000.nvdisplay: hdmi: tegra_hdmi_tmds_range_read(bd) failed
[ 1.413232] tegradc 15200000.nvdisplay: probed
[ 1.448637] Console: switching to colour frame buffer device 240x67
[ 1.448774] tegradc 15200000.nvdisplay: fb registered
[ 1.449100] gpio tegra-gpio wake63 for gpio=97(M:1)
[ 1.449743] tegra_nvdisp_handle_pd_enable: Unpowergated Head0 pd
[ 1.449829] tegra_nvdisp_handle_pd_enable: Unpowergated Head1 pd
[ 1.452206] Parent Clock set for DC plld2
[ 1.518766] tegradc 15200000.nvdisplay: hdmi: tmds rate:148351K prod-setting:prod_c_hdmi_111m_223m
[ 1.519507] tegradc 15200000.nvdisplay: hdmi: get RGB quant from REG programmed by BL.
[ 1.519522] tegradc 15200000.nvdisplay: hdmi: BL set VIC 0
[ 1.519529] tegradc 15200000.nvdisplay: hdmi: get YCC quant from REG programmed by BL.
[ 1.545160] extcon-disp-state external-connection:disp-state: cable 47 state 1
[ 1.545167] Extcon AUX1(HDMI) enable
[ 1.545788] tegradc 15210000.nvdisplay: disp1 connected to head1->/host1x/sor
[ 1.545823] tegradc 15210000.nvdisplay: parse_dp_settings: No dp-lt-settings node
[ 1.545906] tegradc 15210000.nvdisplay: DT parsed successfully
[ 1.545971] tegradc 15210000.nvdisplay: Display dc.ffffff800be10000 registered with id=1
[ 1.546219] tegradc 15210000.nvdisplay: vblank syncpt # 11 for dc 1
[ 1.546229] tegradc 15210000.nvdisplay: vpulse3 syncpt # 12 for dc 1
[ 1.554946] tegradc 15210000.nvdisplay: probed
[ 1.555373] tegradc 15210000.nvdisplay: fb registered
[ 1.558690] hpd: state 7 (Takeover from bootloader), hpd 0, pending_hpd_evt 1
[ 1.558699] hpd: switching from state 7 (Takeover from bootloader) to state 0 (Reset)
[ 1.558711] hpd: state 0 (Reset), hpd 0, pending_hpd_evt 0
[ 1.558727] tegradc 15210000.nvdisplay: blank - powerdown
[ 1.558743] extcon-disp-state external-connection:disp-state: cable 44 state 0 already set.
[ 1.558748] Extcon DP: HPD disabled
[ 1.558752] hpd: hpd_switch 0
[ 1.558758] hpd: switching from state 0 (Reset) to state 1 (Check Plug)
[ 1.558768] hpd: state 1 (Check Plug), hpd 0, pending_hpd_evt 0
[ 1.558777] hpd: switching from state 1 (Check Plug) to state 3 (Disabled)
[ 1.559046] tegra_cec 3960000.tegra_cec: dt=1 start=0x03960000 end=0x03960FFF irq=77
[ 1.559057] tegra_cec 3960000.tegra_cec: Unpowergate DISP: 0.
[ 1.559281] tegra_cec 3960000.tegra_cec: Enable clock result: 0.
[ 1.559388] tegra_cec 3960000.tegra_cec: tegra_cec_init started
[ 1.559546] tegra_cec 3960000.tegra_cec: cec_add_sysfs ret=0
[ 1.559554] tegra_cec 3960000.tegra_cec: probed
[ 1.569367] tegra-adma 2930000.adma: Tegra210 ADMA driver registered 32 channels
[ 1.570174] tegra-fuse-burn 3820000.efuse:efuse-burn: shutdown limit check disabled
[ 1.570183] tegra-fuse-burn 3820000.efuse:efuse-burn: Fuse burn driver initialized
[ 1.570582] kfuse 3830000.kfuse: initialized
[ 1.576463] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 1.579411] 3100000.serial: ttyTHS0 at MMIO 0x3100000 (irq = 47, base_baud = 0) is a TEGRA_UART
[ 1.580815] 3110000.serial: ttyTHS1 at MMIO 0x3110000 (irq = 48, base_baud = 0) is a TEGRA_UART
[ 1.581538] 3140000.serial: ttyTHS4 at MMIO 0x3140000 (irq = 49, base_baud = 0) is a TEGRA_UART
[ 1.582682] console [ttyTCU0] enabled
[ 1.582956] [drm] Initialized
[ 1.594795] brd: module loaded
[ 1.600507] loop: module loaded
[ 1.600632] tegra_profiler: version: 1.141, samples/io: 48/28
[ 1.600798] tegra_profiler: auth: init
[ 1.601447] THERMAL EST: found 3 subdevs
[ 1.601454] THERMAL EST num_resources: 0
[ 1.601461] [THERMAL EST subdev 0]
[ 1.601468] [THERMAL EST subdev 1]
[ 1.601475] [THERMAL EST subdev 2]
[ 1.601492] THERMAL EST: Found 2 profiles, default profile is quiet
[ 1.601768] thermal thermal_zone5: Registering thermal zone thermal_zone5 for type thermal-fan-est
[ 1.601773] THERMAL EST: thz register success.
[ 1.601946] THERMAL EST: end of probe, return err: 0
[ 1.602686] sd: No Scsi addr parsed to reserve index
[ 1.602717] hisi_sas: driver version v1.6
[ 1.612513] qspi_mtd spi6.0: s25fs256s SSG 8 0 1000 2000000
[ 1.612524] qspi_mtd spi6.0: s25fs256s (32768 Kbytes)
[ 1.612534] qspi_mtd spi6.0: mtd .name = spi6.0, .size = 0x2000000 (32MiB) .erasesize = 0x00010000 (64KiB) .numeraseregions = 0
[ 1.612748] 1 ofpart partitions found on MTD device spi6.0
[ 1.612754] Creating 1 MTD partitions on “spi6.0”:
[ 1.612764] 0x000000000000-0x000002000000 : “Whole_flash0”
[ 1.615276] libphy: Fixed MDIO Bus: probed
[ 1.615936] tun: Universal TUN/TAP device driver, 1.6
[ 1.615942] tun: © 1999-2004 Max Krasnyansky maxk@qualcomm.com
[ 1.616573] e1000e: Intel® PRO/1000 Network Driver - 3.2.6-k
[ 1.616579] e1000e: Copyright© 1999 - 2015 Intel Corporation.
[ 1.616629] igb: Intel® Gigabit Ethernet Network Driver - version 5.4.0-k
[ 1.616633] igb: Copyright © 2007-2014 Intel Corporation.
[ 1.616674] igbvf: Intel® Gigabit Virtual Function Network Driver - version 2.4.0-k
[ 1.616679] igbvf: Copyright © 2009 - 2012 Intel Corporation.
[ 1.616713] Intel® 10GbE PCI Express Linux Network Driver - version 4.6.4
[ 1.616718] Copyright© 1999 - 2017 Intel Corporation.
[ 1.677813] tegradc 15200000.nvdisplay: blank - powerdown
[ 1.719143] extcon-disp-state external-connection:disp-state: cable 47 state 0
[ 1.719147] Extcon AUX1(HDMI) disable
[ 1.745572] tegra_nvdisp_handle_pd_disable: Powergated Head1 pd
[ 1.746700] tegra_nvdisp_handle_pd_disable: Powergated Head0 pd
[ 1.766649] tegradc 15200000.nvdisplay: unblank
[ 1.768593] tegra_nvdisp_handle_pd_enable: Unpowergated Head0 pd
[ 1.768879] tegra_nvdisp_handle_pd_enable: Unpowergated Head1 pd
[ 1.777466] Parent Clock set for DC plld2
[ 1.782188] tegradc 15200000.nvdisplay: hdmi: tmds rate:148500K prod-setting:prod_c_hdmi_111m_223m
[ 1.783652] tegradc 15200000.nvdisplay: hdmi: get RGB quant from EDID.
[ 1.783662] tegradc 15200000.nvdisplay: hdmi: get YCC quant from EDID.
[ 1.818405] extcon-disp-state external-connection:disp-state: cable 47 state 1
[ 1.818411] Extcon AUX1(HDMI) enable
[ 1.862098] eqos 2490000.ether_qos: Setting local MAC: 48 b0 2d 7 58 8e
[ 1.862236] libphy: dwc_phy: probed
[ 1.864536] PPP generic driver version 2.4.2
[ 1.864929] PPP BSD Compression module registered
[ 1.864934] PPP Deflate Compression module registered
[ 1.864952] PPP MPPE Compression module registered
[ 1.864956] NET: Registered protocol family 24
[ 1.864998] usbcore: registered new interface driver r8152
[ 1.865029] usbcore: registered new interface driver asix
[ 1.865060] usbcore: registered new interface driver ax88179_178a
[ 1.865087] usbcore: registered new interface driver cdc_ether
[ 1.865112] usbcore: registered new interface driver net1080
[ 1.865137] usbcore: registered new interface driver cdc_subset
[ 1.865162] usbcore: registered new interface driver zaurus
[ 1.865198] usbcore: registered new interface driver cdc_ncm
[ 1.865658] VFIO - User Level meta-driver version: 0.3
[ 1.866843] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 1.866860] ehci-pci: EHCI PCI platform driver
[ 1.866889] ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
[ 1.866897] ohci-pci: OHCI PCI platform driver
[ 1.866923] ohci-platform: OHCI generic platform driver
[ 1.871579] tegra-xusb 3610000.xhci: USB2 port 0 has OTG_CAP
[ 1.873593] tegra-xusb 3610000.xhci: extcon 0: ffffffc1f569c800 id
[ 1.874238] usbcore: registered new interface driver uas
[ 1.874275] usbcore: registered new interface driver usb-storage
[ 1.874343] usbcore: registered new interface driver usbserial
[ 1.876037] tegra-xusb 3610000.xhci: Firmware timestamp: 2019-07-24 05:47:34 UTC, Version: 60.06 release
[ 1.876072] tegra-xusb 3610000.xhci: xHCI Host Controller
[ 1.876088] tegra-xusb 3610000.xhci: new USB bus registered, assigned bus number 1
[ 1.876858] tegra-xusb 3610000.xhci: hcc params 0x0184ff25 hci version 0x110 quirks 0x00050810
[ 1.876898] tegra-xusb 3610000.xhci: irq 463, io mem 0x03610000
[ 1.877158] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.877167] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.877174] usb usb1: Product: xHCI Host Controller
[ 1.877181] usb usb1: Manufacturer: Linux 4.9.140-tegra xhci-hcd
[ 1.877187] usb usb1: SerialNumber: 3610000.xhci
[ 1.877619] hub 1-0:1.0: USB hub found
[ 1.877670] hub 1-0:1.0: 4 ports detected
[ 1.878091] tegra-xusb 3610000.xhci: xHCI Host Controller
[ 1.878101] tegra-xusb 3610000.xhci: new USB bus registered, assigned bus number 2
[ 1.878109] tegra-xusb 3610000.xhci: Host supports USB 3.1 Enhanced SuperSpeed
[ 1.878538] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[ 1.878546] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.878552] usb usb2: Product: xHCI Host Controller
[ 1.878558] usb usb2: Manufacturer: Linux 4.9.140-tegra xhci-hcd
[ 1.878564] usb usb2: SerialNumber: 3610000.xhci
[ 1.878983] hub 2-0:1.0: USB hub found
[ 1.879023] hub 2-0:1.0: 4 ports detected
[ 1.879411] tegra-xudc-new 3550000.xudc: PMQOS CPU boost enabled
[ 1.879486] tegra-xudc-new 3550000.xudc: device count: 1
[ 1.880434] tegra-xudc-new 3550000.xudc: vbus state: 0
[ 1.880443] tegra-xudc-new 3550000.xudc: Initialize boost_cpufreq work
[ 1.880469] tegra-xudc-new 3550000.xudc: entering ELPG
[ 1.880751] tegra-xudc-new 3550000.xudc: entering ELPG done
[ 1.881316] mousedev: PS/2 mouse device common for all mice
[ 1.881422] usbcore: registered new interface driver xpad
[ 2.004920] max77686-rtc max77620-rtc: rtc core: registered max77620-rtc as rtc0
[ 2.006572] Wake73 for irq=42
[ 2.007808] rtc rtc1: alarm rtc device
[ 2.007823] tegra_rtc c2a0000.rtc: rtc core: registered c2a0000.rtc as rtc1
[ 2.007859] tegra_rtc c2a0000.rtc: Tegra internal Real Time Clock
[ 2.007987] i2c /dev entries driver
[ 2.009978] i2c i2c-2: Added multiplexed i2c bus 9
[ 2.010606] i2c i2c-2: Added multiplexed i2c bus 10
[ 2.010612] i2c-mux-gpio cam_i2cmux: 2 port mux on 3180000.i2c adapter
[ 2.011136] imx219 9-0010: tegracam sensor driver:imx219_v2.0.6
[ 2.202461] usb 1-2: new high-speed USB device number 2 using tegra-xusb
[ 2.231675] usb 1-2: New USB device found, idVendor=0bda, idProduct=5411
[ 2.231685] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.231692] usb 1-2: Product: 4-Port USB 2.1 Hub
[ 2.231697] usb 1-2: Manufacturer: Generic
[ 2.232633] hub 1-2:1.0: USB hub found
[ 2.233642] hub 1-2:1.0: 4 ports detected
[ 2.522453] usb 1-2.3: new full-speed USB device number 3 using tegra-xusb
[ 2.545643] usb 1-2.3: New USB device found, idVendor=046d, idProduct=c534
[ 2.545651] usb 1-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.545677] usb 1-2.3: Product: USB Receiver
[ 2.545685] usb 1-2.3: Manufacturer: Logitech
[ 2.586496] tegra_cec 3960000.tegra_cec: physical address: 10:00.
[ 3.841396] extcon-disp-state external-connection:disp-state: cable 51 state 1
[ 3.841402] Extcon HDMI: HPD enabled
[ 3.841423] tegradc 15200000.nvdisplay: hdmi: plugged
[ 4.698515] tegra_cec 3960000.tegra_cec: timeout in tegra_cec_native_write_l:172.
[ 4.698775] tegra_cec 3960000.tegra_cec: Sent res: -62.
[ 4.698781] tegra_cec 3960000.tegra_cec: tegra_cec_init Done.
[ 6.039057] Wake76 for irq=199
[ 6.039064] Wake77 for irq=199
[ 6.039068] Wake78 for irq=199
[ 6.039072] Wake79 for irq=199
[ 6.039076] Wake80 for irq=199
[ 6.039080] Wake81 for irq=199
[ 6.039084] Wake82 for irq=199
[ 6.039130] tegra-xusb 3610000.xhci: Upgrade port 0 to USB3.0
[ 6.039137] tegra-xusb 3610000.xhci: Upgrade port 1 to USB3.0
[ 6.366805] usb 2-3: new SuperSpeed USB device number 2 using tegra-xusb
[ 6.395418] usb 2-3: New USB device found, idVendor=0bda, idProduct=0411
[ 6.395429] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 6.395436] usb 2-3: Product: 4-Port USB 3.1 Hub
[ 6.395442] usb 2-3: Manufacturer: Generic
[ 6.400971] hub 2-3:1.0: USB hub found
[ 6.402079] hub 2-3:1.0: 4 ports detected
[ 6.566472] usb 2-3: usb_suspend_both: status 0
[ 6.566724] usb usb2: usb_suspend_both: status 0
[ 12.122467] tegra-i2c 3180000.i2c: pio timed out addr: 0x10 tlen:28 rlen:4
[ 12.122707] tegra-i2c 3180000.i2c: — register dump for debugging ----
[ 12.122906] tegra-i2c 3180000.i2c: I2C_CNFG - 0x22c00
[ 12.123048] tegra-i2c 3180000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x10001
[ 12.123251] tegra-i2c 3180000.i2c: I2C_FIFO_CONTROL - 0x0
[ 12.123399] tegra-i2c 3180000.i2c: I2C_FIFO_STATUS - 0x800080
[ 12.123555] tegra-i2c 3180000.i2c: I2C_MST_FIFO_CONTROL - 0x70000
[ 12.123737] tegra-i2c 3180000.i2c: I2C_MST_FIFO_STATUS - 0x7c0000
[ 12.123920] tegra-i2c 3180000.i2c: I2C_MST_PACKET_TRANSFER_CNT - 0x0
[ 12.124091] tegra-i2c 3180000.i2c: I2C_INT_MASK - 0x7d
[ 12.124237] tegra-i2c 3180000.i2c: I2C_INT_STATUS - 0x2
[ 12.124399] tegra-i2c 3180000.i2c: i2c transfer timed out addr: 0x10
[ 12.124626] imx219 9-0010: imx219_board_setup: error during i2c read probe (-110)
[ 12.124872] imx219 9-0010: board setup failed
[ 12.125115] imx219: probe of 9-0010 failed with error -110
[ 12.125590] imx219 10-0010: tegracam sensor driver:imx219_v2.0.6
[ 22.362469] tegra-i2c 3180000.i2c: pio timed out addr: 0x10 tlen:28 rlen:4
[ 22.362688] tegra-i2c 3180000.i2c: — register dump for debugging ----
[ 22.362863] tegra-i2c 3180000.i2c: I2C_CNFG - 0x22c00
[ 22.363004] tegra-i2c 3180000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x10001
[ 22.363180] tegra-i2c 3180000.i2c: I2C_FIFO_CONTROL - 0x0
[ 22.363327] tegra-i2c 3180000.i2c: I2C_FIFO_STATUS - 0x800080
[ 22.363479] tegra-i2c 3180000.i2c: I2C_MST_FIFO_CONTROL - 0x70000
[ 22.363655] tegra-i2c 3180000.i2c: I2C_MST_FIFO_STATUS - 0x7c0000
[ 22.363824] tegra-i2c 3180000.i2c: I2C_MST_PACKET_TRANSFER_CNT - 0x0
[ 22.363996] tegra-i2c 3180000.i2c: I2C_INT_MASK - 0x7d
[ 22.364135] tegra-i2c 3180000.i2c: I2C_INT_STATUS - 0x2
[ 22.364300] tegra-i2c 3180000.i2c: i2c transfer timed out addr: 0x10
[ 22.364549] imx219 10-0010: imx219_board_setup: error during i2c read probe (-110)
[ 22.364804] imx219 10-0010: board setup failed
[ 22.365090] imx219: probe of 10-0010 failed with error -110
[ 22.366786] max77620-power max20024-power: Event recorder REG_NVERC : 0x54
[ 22.373952] tegra-thermal-throttle bthrot_cdev: clk:cpu max:1907200000, min:115200000 steps:24
[ 22.378217] tegra-thermal-throttle bthrot_cdev: clk:gpu max:1109250000, min:114750000 steps:10
[ 22.378263] tegra-thermal-throttle bthrot_cdev: cdev:skin-balanced clk:0:cpu off:0 slope-adj:200
[ 22.378270] tegra-thermal-throttle bthrot_cdev: cdev:skin-balanced clk:1:gpu off:0 slope-adj:400
[ 22.378366] tegra-thermal-throttle bthrot_cdev: cdev:skin-balanced max_state:48 cutoff:0
[ 22.378480] tegra-thermal-throttle bthrot_cdev: cdev:gpu-balanced clk:0:cpu off:0 slope-adj:400
[ 22.378487] tegra-thermal-throttle bthrot_cdev: cdev:gpu-balanced clk:1:gpu off:0 slope-adj:400
[ 22.378728] tegra-thermal-throttle bthrot_cdev: cdev:gpu-balanced max_state:40 cutoff:1
[ 22.378809] tegra-thermal-throttle bthrot_cdev: cdev:cpu-balanced clk:0:cpu off:0 slope-adj:200
[ 22.378816] tegra-thermal-throttle bthrot_cdev: cdev:cpu-balanced clk:1:gpu off:365500000 slope-adj:300
[ 22.379087] tegra-thermal-throttle bthrot_cdev: cdev:cpu-balanced max_state:48 cutoff:0
[ 22.379160] tegra-thermal-throttle bthrot_cdev: cdev:emergency-balanced clk:0:cpu off:38400000 slope-adj:10
[ 22.379167] tegra-thermal-throttle bthrot_cdev: cdev:emergency-balanced clk:1:gpu off:25500000 slope-adj:10
[ 22.379497] tegra-thermal-throttle bthrot_cdev: cdev:emergency-balanced max_state:2 cutoff:0
[ 22.379543] tegra-thermal-throttle bthrot_cdev: cdev:aux-balanced clk:0:cpu off:0 slope-adj:400
[ 22.379549] tegra-thermal-throttle bthrot_cdev: cdev:aux-balanced clk:1:gpu off:0 slope-adj:400
[ 22.379790] tegra-thermal-throttle bthrot_cdev: cdev:aux-balanced max_state:40 cutoff:1
[ 22.380390] FAN dev name: pwm-fan
[ 22.380439] FAN:gpio request success.
[ 22.380451] FAN: can’t find tach_gpio
[ 22.380461] pwm_fan_driver pwm-fan: Found 2 profiles, default profile is quiet
[ 22.380522] pwm_fan_driver pwm-fan: cap state:4, cap pwm:255
[ 22.380689] pwm_fan_driver pwm-fan: got pwm for fan. polarity is normal
[ 22.380696] pwm_fan_driver pwm-fan: tach period: 1000
[ 22.381253] pwm_fan_driver pwm-fan: index 0: pwm=0, rpm=0, rru=40, rrd=40, state:2
[ 22.381260] pwm_fan_driver pwm-fan: index 1: pwm=130, rpm=1000, rru=2, rrd=2, state:2
[ 22.381266] pwm_fan_driver pwm-fan: index 2: pwm=160, rpm=2000, rru=1, rrd=1, state:2
[ 22.381272] pwm_fan_driver pwm-fan: index 3: pwm=200, rpm=3000, rru=1, rrd=1, state:2
[ 22.381277] pwm_fan_driver pwm-fan: index 4: pwm=255, rpm=4000, rru=1, rrd=1, state:3
[ 22.381283] pwm_fan_driver pwm-fan: index 5: pwm=255, rpm=5000, rru=1, rrd=1, state:3
[ 22.381288] pwm_fan_driver pwm-fan: index 6: pwm=255, rpm=6000, rru=1, rrd=1, state:3
[ 22.381293] pwm_fan_driver pwm-fan: index 7: pwm=255, rpm=7000, rru=1, rrd=1, state:4
[ 22.381299] pwm_fan_driver pwm-fan: index 8: pwm=255, rpm=10000, rru=1, rrd=1, state:4
[ 22.381305] pwm_fan_driver pwm-fan: index 9: pwm=255, rpm=11000, rru=1, rrd=1, state:4
[ 22.382289] device-mapper: uevent: version 1.0.3
[ 22.382827] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: dm-devel@redhat.com
[ 22.386786] tegra194_cpufreq_probe: platform driver Initialization: pass
[ 22.387978] cpuidle: Initializing cpuidle driver
[ 22.388825] sdhci: Secure Digital Host Controller Interface driver
[ 22.388830] sdhci: Copyright© Pierre Ossman
[ 22.388834] sdhci-pltfm: SDHCI platform and OF driver helper
[ 22.390367] sdhci-tegra 3460000.sdhci: Client registration for eMC Successful
[ 22.392456] CMDQ: cmdq_platfm_init successful
[ 22.396692] tegra-se-elp 3ad0000.se_elp: tegra_se_elp_probe: complete
[ 22.397684] tegra-se-nvhost 15810000.se: initialized
[ 22.398743] tegra-se-nvhost 15810000.se: tegra_se_probe: complete
[ 22.399400] tegra-se-nvhost 15820000.se: initialized
[ 22.400626] tegra-se-nvhost 15820000.se: tegra_se_probe: complete
[ 22.401207] tegra-se-nvhost 15830000.se: initialized
[ 22.401811] tegra-se-nvhost 15830000.se: tegra_se_probe: complete
[ 22.402487] tegra-se-nvhost 15840000.se: initialized
[ 22.403408] tegra-se-nvhost 15840000.se: tegra_se_probe: complete
[ 22.403622] hidraw: raw HID events driver © Jiri Kosina
[ 22.406620] input: Logitech USB Receiver as /devices/3610000.xhci/usb1/1-2/1-2.3/1-2.3:1.0/0003:046D:C534.0001/input/input0
[ 22.434481] mmc0: SDHCI controller on 3460000.sdhci [3460000.sdhci] using ADMA 64-bit with 64 bit addr
[ 22.467059] hid-generic 0003:046D:C534.0001: input,hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-3610000.xhci-2.3/input0
[ 22.469861] input: Logitech USB Receiver as /devices/3610000.xhci/usb1/1-2/1-2.3/1-2.3:1.1/0003:046D:C534.0002/input/input1
[ 22.476347] mmc0: mmc_decode_ext_csd: CMDQ supported: depth: 31, cmdq_support: 1
[ 22.489221] mmc0: periodic cache flush enabled
[ 22.489235] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[ 22.489747] mmcblk0: mmc0:0001 DG4016 14.7 GiB
[ 22.489998] mmcblk0boot0: mmc0:0001 DG4016 partition 1 4.00 MiB
[ 22.490201] mmcblk0boot1: mmc0:0001 DG4016 partition 2 4.00 MiB
[ 22.490404] mmcblk0rpmb: mmc0:0001 DG4016 partition 3 4.00 MiB
[ 22.493659] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11
[ 22.526834] hid-generic 0003:046D:C534.0002: input,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-3610000.xhci-2.3/input1
[ 22.526900] usbcore: registered new interface driver usbhid
[ 22.526903] usbhid: USB HID core driver
[ 22.531460] tegra186-cam-rtcpu bc00000.rtcpu: deferring, 14800000.isp is not probed
[ 22.532634] tegra_aon c1a0000.aon: tegra aon driver probe OK
[ 22.533094] tegra186-aondbg aondbg: aondbg driver probe() OK
[ 22.533628] denver_knobs_init:MTS_VERSION:48073932
[ 22.533827] tegra19x_actmon d230000.actmon: in actmon_register()…
[ 22.534637] tegra19x_actmon d230000.actmon: initialization Completed for the device mc_all
[ 22.535182] t19x_cache tegra-cache: probed
[ 22.537278] misc nvmap: cvsram :dma coherent mem declare 0x0000000050000000,4194304
[ 22.537289] misc nvmap: created heap cvsram base 0x0000000050000000 size (4096KiB)
[ 22.537952] carmel-pmu-drv carmel-pmu: Registered Carmel PMU
[ 22.539949] nvpmodel: initialized successfully
[ 22.541056] trusty-virtio trusty:virtio: initializing
[ 22.541250] trusty_ipc virtio0: vring0: va(pa) ffffffc1e1484000(0) qsz 32 notifyid 1
[ 22.541261] trusty_ipc virtio0: vring1: va(pa) ffffffc1e1486000(0) qsz 32 notifyid 2
[ 22.541393] trusty-virtio trusty:virtio: initializing done
[ 22.541636] trusty_ipc virtio0: is online
[ 22.542033] tegra-hda 3510000.hda: Override SDO lines to 4
[ 22.542553] usbcore: registered new interface driver snd-usb-audio
[ 22.562374] input: tegra-hda-galen-t194 HDMI/DP,pcm=3 as /devices/3510000.hda/sound/card0/input2
[ 22.562638] input: tegra-hda-galen-t194 HDMI/DP,pcm=7 as /devices/3510000.hda/sound/card0/input3
[ 22.562845] input: tegra-hda-galen-t194 HDMI/DP,pcm=8 as /devices/3510000.hda/sound/card0/input4
[ 22.563017] input: tegra-hda-galen-t194 HDMI/DP,pcm=9 as /devices/3510000.hda/sound/card0/input5
[ 22.631436] OPE platform probe
[ 22.631570] OPE platform probe successful
[ 22.705863] tegra-asoc: sound: ADMAIF1 <-> ADMAIF1 mapping ok
[ 22.705973] tegra-asoc: sound: ADMAIF2 <-> ADMAIF2 mapping ok
[ 22.706073] tegra-asoc: sound: ADMAIF3 <-> ADMAIF3 mapping ok
[ 22.706173] tegra-asoc: sound: ADMAIF4 <-> ADMAIF4 mapping ok
[ 22.706272] tegra-asoc: sound: ADMAIF5 <-> ADMAIF5 mapping ok
[ 22.706381] tegra-asoc: sound: ADMAIF6 <-> ADMAIF6 mapping ok
[ 22.706535] tegra-asoc: sound: ADMAIF7 <-> ADMAIF7 mapping ok
[ 22.706675] tegra-asoc: sound: ADMAIF8 <-> ADMAIF8 mapping ok
[ 22.706824] tegra-asoc: sound: ADMAIF9 <-> ADMAIF9 mapping ok
[ 22.706936] tegra-asoc: sound: ADMAIF10 <-> ADMAIF10 mapping ok
[ 22.707043] tegra-asoc: sound: ADMAIF11 <-> ADMAIF11 mapping ok
[ 22.707151] tegra-asoc: sound: ADMAIF12 <-> ADMAIF12 mapping ok
[ 22.707257] tegra-asoc: sound: ADMAIF13 <-> ADMAIF13 mapping ok
[ 22.707354] tegra-asoc: sound: ADMAIF14 <-> ADMAIF14 mapping ok
[ 22.707448] tegra-asoc: sound: ADMAIF15 <-> ADMAIF15 mapping ok
[ 22.707538] tegra-asoc: sound: ADMAIF16 <-> ADMAIF16 mapping ok
[ 22.707614] tegra-asoc: sound: ADMAIF17 <-> ADMAIF17 mapping ok
[ 22.707696] tegra-asoc: sound: ADMAIF18 <-> ADMAIF18 mapping ok
[ 22.707778] tegra-asoc: sound: ADMAIF19 <-> ADMAIF19 mapping ok
[ 22.707858] tegra-asoc: sound: ADMAIF20 <-> ADMAIF20 mapping ok
[ 22.734365] u32 classifier
[ 22.734372] Actions configured
[ 22.734477] Initializing XFRM netlink socket
[ 22.735098] NET: Registered protocol family 10
[ 22.735840] NET: Registered protocol family 17
[ 22.735854] NET: Registered protocol family 15
[ 22.735909] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 22.735988] Bluetooth: RFCOMM socket layer initialized
[ 22.736004] Bluetooth: RFCOMM ver 1.11
[ 22.736012] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 22.736018] Bluetooth: HIDP socket layer initialized
[ 22.736035] 9pnet: Installing 9P2000 support
[ 22.736071] Key type dns_resolver registered
[ 22.736341] Registered cp15_barrier emulation handler
[ 22.736369] Registered setend emulation handler
[ 22.738088] registered taskstats version 1
[ 22.738540] tegra-pcie-dw 14160000.pcie: Setting init speed to max speed
[ 22.739670] OF: PCI: host bridge /pcie@14160000 ranges:
[ 22.739688] OF: PCI: IO 0x36100000…0x361fffff -> 0x36100000
[ 22.739696] OF: PCI: MEM 0x1740000000…0x17ffffffff -> 0x40000000
[ 22.739702] OF: PCI: MEM 0x1400000000…0x173fffffff -> 0x1400000000
[ 22.875102] FAN rising trip_level:3 cur_temp:68900 trip_temps[4]:76000
[ 23.254777] tegra-pcie-dw 14160000.pcie: link is down
[ 23.254949] tegra-pcie-dw 14160000.pcie: PCI host bridge to bus 0004:00
[ 23.254958] pci_bus 0004:00: root bus resource [bus 00-ff]
[ 23.254966] pci_bus 0004:00: root bus resource [io 0x0000-0xfffff] (bus address [0x36100000-0x361fffff])
[ 23.254972] pci_bus 0004:00: root bus resource [mem 0x1740000000-0x17ffffffff] (bus address [0x40000000-0xffffffff])
[ 23.254976] pci_bus 0004:00: root bus resource [mem 0x1400000000-0x173fffffff pref]
[ 23.255005] pci 0004:00:00.0: [10de:1ad1] type 01 class 0x060400
[ 23.255179] pci 0004:00:00.0: PME# supported from D0 D3hot D3cold
[ 23.255534] pci 0004:00:00.0: PCI bridge to [bus 01-ff]
[ 23.255575] pci 0004:00:00.0: Max Payload Size set to 256/ 256 (was 256), Max Read Rq 512
[ 23.255852] pcieport 0004:00:00.0: Signaling PME through PCIe PME interrupt
[ 23.255859] pcie_pme 0004:00:00.0:pcie001: service driver pcie_pme loaded
[ 23.255951] aer 0004:00:00.0:pcie002: service driver aer loaded
[ 23.256110] pcie_pme 0004:00:00.0:pcie001: unloading service driver pcie_pme
[ 23.256168] aer 0004:00:00.0:pcie002: unloading service driver aer
[ 23.256251] pci_bus 0004:01: busn_res: [bus 01-ff] is released
[ 23.256351] pci_bus 0004:00: busn_res: [bus 00-ff] is released
[ 23.257904] tegra-pcie-dw 14160000.pcie: PCIe link is not up…!
[ 23.258930] tegra-pcie-dw 141a0000.pcie: Setting init speed to max speed
[ 23.259939] OF: PCI: host bridge /pcie@141a0000 ranges:
[ 23.259957] OF: PCI: IO 0x3a100000…0x3a1fffff -> 0x3a100000
[ 23.259965] OF: PCI: MEM 0x1f40000000…0x1fffffffff -> 0x40000000
[ 23.259971] OF: PCI: MEM 0x1c00000000…0x1f3fffffff -> 0x1c00000000
[ 23.370465] tegra-pcie-dw 141a0000.pcie: link is up
[ 23.370740] tegra-pcie-dw 141a0000.pcie: PCI host bridge to bus 0005:00
[ 23.370747] pci_bus 0005:00: root bus resource [bus 00-ff]
[ 23.370756] pci_bus 0005:00: root bus resource [io 0x100000-0x1fffff] (bus address [0x3a100000-0x3a1fffff])
[ 23.370761] pci_bus 0005:00: root bus resource [mem 0x1f40000000-0x1fffffffff] (bus address [0x40000000-0xffffffff])
[ 23.370766] pci_bus 0005:00: root bus resource [mem 0x1c00000000-0x1f3fffffff pref]
[ 23.370789] pci 0005:00:00.0: [10de:1ad0] type 01 class 0x060400
[ 23.370928] pci 0005:00:00.0: PME# supported from D0 D3hot D3cold
[ 23.371323] pci 0005:01:00.0: [8888:8508] type 00 class 0x040000
[ 23.371415] pci 0005:01:00.0: reg 0x10: [mem 0x00000000-0x00007fff]
[ 23.383198] pci 0005:00:00.0: BAR 14: assigned [mem 0x1f40000000-0x1f400fffff]
[ 23.383207] pci 0005:01:00.0: BAR 0: assigned [mem 0x1f40000000-0x1f40007fff]
[ 23.383230] pci 0005:00:00.0: PCI bridge to [bus 01-ff]
[ 23.383238] pci 0005:00:00.0: bridge window [mem 0x1f40000000-0x1f400fffff]
[ 23.383276] pci 0005:00:00.0: Max Payload Size set to 256/ 256 (was 256), Max Read Rq 512
[ 23.383323] pci 0005:01:00.0: Max Payload Size set to 256/ 256 (was 128), Max Read Rq 512
[ 23.383618] pcieport 0005:00:00.0: Signaling PME through PCIe PME interrupt
[ 23.383624] pci 0005:01:00.0: Signaling PME through PCIe PME interrupt
[ 23.383629] pcie_pme 0005:00:00.0:pcie001: service driver pcie_pme loaded
[ 23.383787] aer 0005:00:00.0:pcie002: service driver aer loaded
[ 23.392965] tegra-cbb 14040000.cv-noc: noc_secure_irq = 89, noc_nonsecure_irq = 88>
[ 23.397408] tegra194-isp5 14800000.isp: initialized
[ 23.404115] tegra194-vi5 15c10000.vi: using default number of vi channels, 36
[ 23.406793] tegra194-vi5 15c10000.vi: initialized
[ 23.410978] tegra194-vi5 15c10000.vi: subdev 15a00000.nvcsi–2 bound
[ 23.411072] tegra194-vi5 15c10000.vi: subdev 15a00000.nvcsi–1 bound
[ 23.411761] tegra186-cam-rtcpu bc00000.rtcpu: Trace buffer configured at IOVA=0xbff00000
[ 23.493441] tegra-ivc ivc-bc00000.rtcpu: region 0: iova=0xbfee0000-0xbfefffff size=131072
[ 23.493728] tegra-ivc ivc-bc00000.rtcpu:echo@0: echo: ver=0 grp=1 RX[16x64]=0x1000-0x1480 TX[16x64]=0x1480-0x1900
[ 23.493893] tegra-ivc ivc-bc00000.rtcpu:dbg@1: dbg: ver=0 grp=1 RX[1x384]=0x1900-0x1b00 TX[1x384]=0x1b00-0x1d00
[ 23.494085] tegra-ivc ivc-bc00000.rtcpu:dbg@2: dbg: ver=0 grp=1 RX[1x8192]=0x1d00-0x3d80 TX[1x8192]=0x3d80-0x5e00
[ 23.494412] tegra-ivc ivc-bc00000.rtcpu:ivccontrol@3: ivccontrol: ver=0 grp=1 RX[64x320]=0x5e00-0xae80 TX[64x320]=0xae80-0xff00
[ 23.494549] tegra-ivc ivc-bc00000.rtcpu:ivccapture@4: ivccapture: ver=0 grp=1 RX[512x64]=0xff00-0x17f80 TX[512x64]=0x17f80-0x20000
[ 23.494736] tegra186-cam-rtcpu bc00000.rtcpu: using cam RTCPU IRQ (65)
[ 23.494741] tegra186-cam-rtcpu bc00000.rtcpu: tegra_camrtc_mon_create is successful
[ 23.496038] tegra186-cam-rtcpu bc00000.rtcpu: firmware version cpu=rce cmd=5 sha1=cf2bef3ad10e437272857b76308abef8ffb80bda
[ 23.496452] gpio tegra-gpio wake67 for gpio=48(G:0)
[ 23.496521] gpio tegra-gpio-aon wake29 for gpio=36(EE:4)
[ 23.496638] input: gpio-keys as /devices/gpio-keys/input/input6
[ 23.527391] tegra_rtc c2a0000.rtc: setting system clock to 2020-06-16 09:06:27 UTC (1592298387)
[ 23.527808] mmcblk mmc0:0001: Card claimed for testing.
[ 23.563469] bpmp: mounted debugfs mirror
[ 23.569442] vdd-sdmmc1-sw: disabling
[ 23.569449] vdd-1v8-sd: disabling
[ 23.569453] vdd-1v8-cvb: disabling
[ 23.569456] vdd-epb-1v0: disabling
[ 23.569460] avdd-cam-2v8: disabling
[ 23.569463] vdd_sys_en: disabling
[ 23.569470] ALSA device list:
[ 23.569473] #0: tegra-hda-galen-t194 at 0x3518000 irq 64
[ 23.569478] #1: jetson-xaviernx-ape
[ 23.571604] Freeing unused kernel memory: 8576K
[ 23.604232] Root device found: mmcblk0p1
[ 23.605335] Found dev node: /dev/mmcblk0p1
[ 23.714802] EXT4-fs (mmcblk0p1): 10 orphan inodes deleted
[ 23.714812] EXT4-fs (mmcblk0p1): recovery complete
[ 23.719161] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
[ 23.720214] Rootfs mounted over mmcblk0p1
[ 23.740878] Switching from initrd to actual rootfs
[ 23.864167] ip_tables: © 2000-2006 Netfilter Core Team
[ 23.867902] cgroup: cgroup2: unknown option “nsdelegate”
[ 23.879448] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[ 23.880058] systemd[1]: Detected architecture arm64.
[ 23.887397] systemd[1]: Set hostname to .
[ 23.981299] systemd[1]: File /lib/systemd/system/systemd-journald.service:36 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[ 23.981313] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[ 24.119474] random: systemd: uninitialized urandom read (16 bytes read)
[ 24.122285] systemd[1]: Created slice User and Session Slice.
[ 24.122471] random: systemd: uninitialized urandom read (16 bytes read)
[ 24.122623] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 24.122674] random: systemd: uninitialized urandom read (16 bytes read)
[ 24.122701] systemd[1]: Reached target User and Group Name Lookups.
[ 24.122754] systemd[1]: Reached target Swap.
[ 24.123339] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 24.213762] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
[ 24.273356] nvgpu: 17000000.gv11b nvgpu_nvhost_syncpt_init:291 [INFO] syncpt_unit_base 60000000 syncpt_unit_size 400000 size 1000

[ 24.648763] systemd-journald[2295]: Received request to flush runtime journal from PID 1
[ 25.809839] using random self ethernet address
[ 25.810087] using random host ethernet address
[ 25.833281] random: crng init done
[ 25.833460] random: 7 urandom warning(s) missed due to ratelimiting
[ 26.630563] Mass Storage Function, version: 2009/09/11
[ 26.630578] LUN: removable file: (no medium)
[ 26.650910] using random self ethernet address
[ 26.651151] using random host ethernet address
[ 26.710189] rndis0: HOST MAC 82:e7:d6:79:f9:94
[ 26.710377] rndis0: MAC 82:e7:d6:79:f9:95
[ 26.713412] usb0: HOST MAC 82:e7:d6:79:f9:96
[ 26.713459] usb0: MAC 82:e7:d6:79:f9:97
[ 26.713483] tegra-xudc-new 3550000.xudc: exiting ELPG
[ 26.714494] tegra-xudc-new 3550000.xudc: exiting ELPG done
[ 26.714521] tegra-xudc-new 3550000.xudc: ep 0 (type: 0, dir: out) enabled
[ 26.716776] tegra-xudc-new 3550000.xudc: entering ELPG
[ 26.717099] tegra-xudc-new 3550000.xudc: entering ELPG done
[ 26.718647] tegra-xudc-new 3550000.xudc: exiting ELPG
[ 26.719549] tegra-xudc-new 3550000.xudc: exiting ELPG done
[ 26.719589] tegra-xudc-new 3550000.xudc: entering ELPG
[ 26.719878] tegra-xudc-new 3550000.xudc: entering ELPG done
[ 26.727301] l4tbr0: port 1(rndis0) entered blocking state
[ 26.727312] l4tbr0: port 1(rndis0) entered disabled state
[ 26.727548] device rndis0 entered promiscuous mode
[ 26.753590] IPv6: ADDRCONF(NETDEV_UP): rndis0: link is not ready
[ 26.763953] l4tbr0: port 2(usb0) entered blocking state
[ 26.763966] l4tbr0: port 2(usb0) entered disabled state
[ 26.764768] device usb0 entered promiscuous mode
[ 26.775916] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[ 26.941080] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 27.123081] ras_fhi_disable: FHI 470 disabled
[ 27.124285] CPU2: shutdown
[ 27.124435] psci: CPU2 killed.
[ 27.203078] ras_fhi_disable: FHI 471 disabled
[ 27.204204] CPU3: shutdown
[ 27.204348] psci: CPU3 killed.
[ 27.251048] ras_fhi_disable: FHI 472 disabled
[ 27.252799] CPU4: shutdown
[ 27.252943] psci: CPU4 killed.
[ 27.259226] gpio tegra-gpio wake20 for gpio=52(G:4)
[ 27.263328] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 27.287073] ras_fhi_disable: FHI 473 disabled
[ 27.287985] CPU5: shutdown
[ 27.288124] psci: CPU5 killed.
[ 27.289961] nvgpu: 17000000.gv11b tpc_pg_mask_store:843 [INFO] no value change, same mask already set
[ 27.605527] zram: Added device: zram0
[ 27.606087] zram: Added device: zram1
[ 27.687303] zram0: detected capacity change from 0 to 2035167232
[ 27.732459] Adding 1987464k swap on /dev/zram0. Priority:5 extents:1 across:1987464k SS
[ 27.749203] zram1: detected capacity change from 0 to 2035167232
[ 27.797707] Adding 1987464k swap on /dev/zram1. Priority:5 extents:1 across:1987464k SS
[ 28.853334] eqos 2490000.ether_qos eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 28.853978] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 29.267627] tegradc 15200000.nvdisplay: blank - powerdown
[ 29.333956] extcon-disp-state external-connection:disp-state: cable 47 state 0
[ 29.333960] Extcon AUX1(HDMI) disable
[ 29.359590] tegra_nvdisp_handle_pd_disable: Powergated Head1 pd
[ 29.360218] tegra_nvdisp_handle_pd_disable: Powergated Head0 pd
[ 29.366644] tegradc 15200000.nvdisplay: unblank
[ 29.367439] tegra_nvdisp_handle_pd_enable: Unpowergated Head0 pd
[ 29.367552] tegra_nvdisp_handle_pd_enable: Unpowergated Head1 pd
[ 29.369558] Parent Clock set for DC plld2
[ 29.374488] tegradc 15200000.nvdisplay: hdmi: tmds rate:148500K prod-setting:prod_c_hdmi_111m_223m
[ 29.375951] tegradc 15200000.nvdisplay: hdmi: get RGB quant from EDID.
[ 29.375960] tegradc 15200000.nvdisplay: hdmi: get YCC quant from EDID.
[ 29.417631] extcon-disp-state external-connection:disp-state: cable 47 state 1
[ 29.417635] Extcon AUX1(HDMI) enable
[ 29.423593] tegradc 15200000.nvdisplay: unblank
[ 29.423615] tegradc 15210000.nvdisplay: blank - powerdown
[ 31.834771] FAN rising trip_level:3 cur_temp:71000 trip_temps[4]:76000
[ 34.026043] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 34.026060] Bluetooth: BNEP socket layer initialized
[ 34.047965] fuse init (API version 7.26)
[ 36.036377] tegradc 15200000.nvdisplay: unblank
[ 36.036391] tegradc 15210000.nvdisplay: blank - powerdown

And we insmod our kernel module, got below message:

[ 123.974623] FAN rising trip_level:4 cur_temp:76000 trip_temps[5]:140000
[ 136.518965] dvrs_hw: loading out-of-tree module taints kernel.
[ 136.520607] Cry Driver init /n
[ 136.524603] dvr_hw_ahd probe
[ 136.524633] dvr_hw_ahd Device =8508 VID =8888
[ 136.524671] dvrs_hw_ahd 0005:01:00.0: enabling device (0000 -> 0002)
[ 136.524784] msi_msix_capable in
[ 136.524823] pci_enable_msi()
[ 136.525082] pdev->irq = 554
[ 136.525112] Using IRQ#554 with 0xffffffc1e2832000
[ 136.525119] ************[HW]-[VIDV]=[120]-[1] ************
[ 136.525487] [MV]Mem Video::m_dwVideoBuffer[0] = 800000
[ 136.525493] [MV]Mem Video::m_dwVideoHighBuffer[0] = 2
[ 136.525497] [MV]Mem Video::m_dwVideoBuffer[1] = a00000
[ 136.525502] [MV]Mem Video::m_dwVideoHighBuffer[1] = 2
[ 136.530114] [MV]Mem Video::m_dwVideoBuffer[2] = 400000
[ 136.530133] [MV]Mem Video::m_dwVideoHighBuffer[2] = 2
[ 136.530144] [MV]Mem Video::m_dwVideoBuffer[3] = 600000
[ 136.530150] [MV]Mem Video::m_dwVideoHighBuffer[3] = 2
[ 136.530589] [MV]Mem Video::m_dwVideoBuffer[4] = 0
[ 136.530595] [MV]Mem Video::m_dwVideoHighBuffer[4] = 2
[ 136.530600] [MV]Mem Video::m_dwVideoBuffer[5] = 200000
[ 136.530604] [MV]Mem Video::m_dwVideoHighBuffer[5] = 2
[ 136.530981] [MV]Mem Video::m_dwVideoBuffer[6] = ffc00000
[ 136.530985] [MV]Mem Video::m_dwVideoHighBuffer[6] = 1
[ 136.530990] [MV]Mem Video::m_dwVideoBuffer[7] = ffe00000
[ 136.530993] [MV]Mem Video::m_dwVideoHighBuffer[7] = 1
[ 136.539543] [MV] pdx->m_pbyVideoBuffer[0]=80800000
[ 136.539559] [MV]1-pdx->m_dwVideoBuffer[0]-800000
[ 136.539574] [MV]1-PCI_Addr[0] :PhyAddr_A_Low 0=0 PhyAddr_A_High 2=2
[ 136.539591] [MV]1-Avalone [X64]BUF[0]:BUF1=20800000 BUF2=E100 BUF3=20A00000 BUF4=E100
[ 136.539595] [MV] pdx->m_pbyVideoBuffer[2]=80400000
[ 136.539599] [MV]1-pdx->m_dwVideoBuffer[2]-400000
[ 136.539609] [MV]1-PCI_Addr[2] :PhyAddr_A_Low 0=0 PhyAddr_A_High 2=2
[ 136.539626] [MV]1-Avalone [X64]BUF[2]:BUF1=40400000 BUF2=E100 BUF3=40600000 BUF4=E100
[ 136.539630] [MV] pdx->m_pbyVideoBuffer[4]=80000000
[ 136.539633] [MV]1-pdx->m_dwVideoBuffer[4]-0
[ 136.539643] [MV]1-PCI_Addr[4] :PhyAddr_A_Low 0=0 PhyAddr_A_High 2=2
[ 136.539660] [MV]1-Avalone [X64]BUF[4]:BUF1=60000000 BUF2=E100 BUF3=60200000 BUF4=E100
[ 136.539663] [MV] pdx->m_pbyVideoBuffer[6]=7FC00000
[ 136.539667] [MV]1-pdx->m_dwVideoBuffer[6]-FFC00000
[ 136.539677] [MV]1-PCI_Addr[6] :PhyAddr_A_Low E0000000=E0000000 PhyAddr_A_High 1=1
[ 136.539694] [MV]1-Avalone [X64]BUF[6]:BUF1=9FC00000 BUF2=E100 BUF3=9FE00000 BUF4=E100
[ 136.539698] dvr_hw_ahd probe exit

And we insmod our kernel module, got below message:

[ 123.974623] FAN rising trip_level:4 cur_temp:76000 trip_temps[5]:140000
[ 136.518965] dvrs_hw: loading out-of-tree module taints kernel.
[ 136.520607] Cry Driver init /n
[ 136.524603] dvr_hw_ahd probe
[ 136.524633] dvr_hw_ahd Device =8508 VID =8888
[ 136.524671] dvrs_hw_ahd 0005:01:00.0: enabling device (0000 -> 0002)
[ 136.524784] msi_msix_capable in
[ 136.524823] pci_enable_msi()
[ 136.525082] pdev->irq = 554
[ 136.525112] Using IRQ#554 with 0xffffffc1e2832000
[ 136.525119] ************[HW]-[VIDV]=[120]-[1] ************
[ 136.525487] [MV]Mem Video::m_dwVideoBuffer[0] = 800000
[ 136.525493] [MV]Mem Video::m_dwVideoHighBuffer[0] = 2
[ 136.525497] [MV]Mem Video::m_dwVideoBuffer[1] = a00000
[ 136.525502] [MV]Mem Video::m_dwVideoHighBuffer[1] = 2
[ 136.530114] [MV]Mem Video::m_dwVideoBuffer[2] = 400000
[ 136.530133] [MV]Mem Video::m_dwVideoHighBuffer[2] = 2
[ 136.530144] [MV]Mem Video::m_dwVideoBuffer[3] = 600000
[ 136.530150] [MV]Mem Video::m_dwVideoHighBuffer[3] = 2
[ 136.530589] [MV]Mem Video::m_dwVideoBuffer[4] = 0
[ 136.530595] [MV]Mem Video::m_dwVideoHighBuffer[4] = 2
[ 136.530600] [MV]Mem Video::m_dwVideoBuffer[5] = 200000
[ 136.530604] [MV]Mem Video::m_dwVideoHighBuffer[5] = 2
[ 136.530981] [MV]Mem Video::m_dwVideoBuffer[6] = ffc00000
[ 136.530985] [MV]Mem Video::m_dwVideoHighBuffer[6] = 1
[ 136.530990] [MV]Mem Video::m_dwVideoBuffer[7] = ffe00000
[ 136.530993] [MV]Mem Video::m_dwVideoHighBuffer[7] = 1
[ 136.539543] [MV] pdx->m_pbyVideoBuffer[0]=80800000
[ 136.539559] [MV]1-pdx->m_dwVideoBuffer[0]-800000
[ 136.539574] [MV]1-PCI_Addr[0] :PhyAddr_A_Low 0=0 PhyAddr_A_High 2=2
[ 136.539591] [MV]1-Avalone [X64]BUF[0]:BUF1=20800000 BUF2=E100 BUF3=20A00000 BUF4=E100
[ 136.539595] [MV] pdx->m_pbyVideoBuffer[2]=80400000
[ 136.539599] [MV]1-pdx->m_dwVideoBuffer[2]-400000
[ 136.539609] [MV]1-PCI_Addr[2] :PhyAddr_A_Low 0=0 PhyAddr_A_High 2=2
[ 136.539626] [MV]1-Avalone [X64]BUF[2]:BUF1=40400000 BUF2=E100 BUF3=40600000 BUF4=E100
[ 136.539630] [MV] pdx->m_pbyVideoBuffer[4]=80000000
[ 136.539633] [MV]1-pdx->m_dwVideoBuffer[4]-0
[ 136.539643] [MV]1-PCI_Addr[4] :PhyAddr_A_Low 0=0 PhyAddr_A_High 2=2
[ 136.539660] [MV]1-Avalone [X64]BUF[4]:BUF1=60000000 BUF2=E100 BUF3=60200000 BUF4=E100
[ 136.539663] [MV] pdx->m_pbyVideoBuffer[6]=7FC00000
[ 136.539667] [MV]1-pdx->m_dwVideoBuffer[6]-FFC00000
[ 136.539677] [MV]1-PCI_Addr[6] :PhyAddr_A_Low E0000000=E0000000 PhyAddr_A_High 1=1
[ 136.539694] [MV]1-Avalone [X64]BUF[6]:BUF1=9FC00000 BUF2=E100 BUF3=9FE00000 BUF4=E100
[ 136.539698] dvr_hw_ahd probe exit

Hi @xhz,
move the topic to the right Category.

Your change for TX2 would disable SMMU for PCIe? What was the reason to disable SMMU for PCIe in TX2? To get your driver working on NX, you may have to do similar thing (i.e. disabling SMMU for PCIe in NX as well) but before that wondering why did you have to do that?

Hi @vidyas, thanks for your reply!
Because we need get over 4 AHD camera data on jeston platform, so connect these cameras to PCIE adapter, and the PCIE adapter connect to jeston PCIE jack, so we have corresponding kernel driver for the PCIE adapter, the issue is the buffer data not change was allocated via ‘remap_pfn_range()’ for every camera, seems like not get camera data or get not real camera data, so we think maybe problem on SMMU side, latter we send email to your team(without forum post), at last, your team give us a patch.
so I added this patch and tested that success to get right camera data via PCIe bus on TX2.
But now we changed to NX, so I apply this patch to same file ‘hardware/nvidia/soc/t18x/kernel-dts/tegra186-soc/tegra186-soc-base.dtsi’, and find right chip id is 0x19 for NX, so I remove IOMMU code in file ‘hardware/nvidia/soc/t19x/kernel-dts/tegra194-soc/tegra194-soc-pcie.dtsi’, diff result show as below:

diff hardware/nvidia/soc/t19x/kernel-dts/tegra194-soc/tegra194-soc-pcie.dtsi.old hardware/nvidia/soc/t19x/kernel-dts/tegra194-soc/tegra194-soc-pcie.dtsi
362,367d361
< 		iommus = <&smmu TEGRA_SID_PCIE0>;
< 		dma-coherent;
< #if LINUX_VERSION >= 414
< 		iommu-map = <0x0 &smmu TEGRA_SID_PCIE0 0x1000>;
< 		iommu-map-mask = <0x0>;
< #endif
420,425d413
< 		iommus = <&smmu TEGRA_SID_PCIE4>;
< 		dma-coherent;
< #if LINUX_VERSION >= 414
< 		iommu-map = <0x0 &smmu TEGRA_SID_PCIE4 0x1000>;
< 		iommu-map-mask = <0x0>;
< #endif
485,490d472
< 		iommus = <&smmu TEGRA_SID_PCIE5>;
< 		dma-coherent;
< #if LINUX_VERSION >= 414
< 		iommu-map = <0x0 &smmu TEGRA_SID_PCIE5 0x1000>;
< 		iommu-map-mask = <0x0>;
< #endif
521,526d502
< 		iommus = <&smmu TEGRA_SID_PCIE0>;
< 		dma-coherent;
< #if LINUX_VERSION >= 414
< 		iommu-map = <0x0 &smmu TEGRA_SID_PCIE0 0x1000>;
< 		iommu-map-mask = <0x0>;
< #endif
589,594d564
< 		iommus = <&smmu TEGRA_SID_PCIE1>;
< 		dma-coherent;
< #if LINUX_VERSION >= 414
< 		iommu-map = <0x0 &smmu TEGRA_SID_PCIE1 0x1000>;
< 		iommu-map-mask = <0x0>;
< #endif
659,664d628
< 		iommus = <&smmu TEGRA_SID_PCIE2>;
< 		dma-coherent;
< #if LINUX_VERSION >= 414
< 		iommu-map = <0x0 &smmu TEGRA_SID_PCIE2 0x1000>;
< 		iommu-map-mask = <0x0>;
< #endif
728,733d691
< 		iommus = <&smmu TEGRA_SID_PCIE3>;
< 		dma-coherent;
< #if LINUX_VERSION >= 414
< 		iommu-map = <0x0 &smmu TEGRA_SID_PCIE3 0x1000>;
< 		iommu-map-mask = <0x0>;
< #endif
797,802d754
< 		iommus = <&smmu TEGRA_SID_PCIE4>;
< 		dma-coherent;
< #if LINUX_VERSION >= 414
< 		iommu-map = <0x0 &smmu TEGRA_SID_PCIE4 0x1000>;
< 		iommu-map-mask = <0x0>;
< #endif
870,875d821
< 		iommus = <&smmu TEGRA_SID_PCIE5>;
< 		dma-coherent;
< #if LINUX_VERSION >= 414
< 		iommu-map = <0x0 &smmu TEGRA_SID_PCIE5 0x1000>;
< 		iommu-map-mask = <0x0>;
< #endif

Toady I have compared kernel message between NX and TX2:

NX:
cidi@cidi-desktop:~$ dmesg |grep pcie
[ 22.794471] tegra-pcie-dw 14160000.pcie: Setting init speed to max speed
[ 22.795441] OF: PCI: host bridge /pcie@14160000 ranges:
[ 23.310200] tegra-pcie-dw 14160000.pcie: link is down
[ 23.310434] tegra-pcie-dw 14160000.pcie: PCI host bridge to bus 0004:00
[ 23.311374] pcieport 0004:00:00.0: Signaling PME through PCIe PME interrupt
[ 23.311382] pcie_pme 0004:00:00.0:pcie001: service driver pcie_pme loaded
[ 23.311496] aer 0004:00:00.0:pcie002: service driver aer loaded
[ 23.311702] pcie_pme 0004:00:00.0:pcie001: unloading service driver pcie_pme
[ 23.311813] aer 0004:00:00.0:pcie002: unloading service driver aer
[ 23.313743] tegra-pcie-dw 14160000.pcie: PCIe link is not up…!
[ 23.314607] tegra-pcie-dw 141a0000.pcie: Setting init speed to max speed
[ 23.315583] OF: PCI: host bridge /pcie@141a0000 ranges:
[ 23.426115] tegra-pcie-dw 141a0000.pcie: link is up
[ 23.426419] tegra-pcie-dw 141a0000.pcie: PCI host bridge to bus 0005:00
[ 23.439413] pcieport 0005:00:00.0: Signaling PME through PCIe PME interrupt
[ 23.439427] pcie_pme 0005:00:00.0:pcie001: service driver pcie_pme loaded
[ 23.439578] aer 0005:00:00.0:pcie002: service driver aer loaded

TX2:
cidi@cidi-pt-tx2:~$ dmesg |grep pcie
[ 1.060292] tegra-pcie 10003000.pcie-controller: 4x1, 1x1 configuration
[ 1.061316] tegra-pcie 10003000.pcie-controller: PCIE: Enable power rails
[ 1.061658] tegra-pcie 10003000.pcie-controller: probing port 0, using 4 lanes
[ 1.064976] tegra-pcie 10003000.pcie-controller: probing port 2, using 1 lanes
[ 1.490296] tegra-pcie 10003000.pcie-controller: link 2 down, retrying
[ 1.894621] tegra-pcie 10003000.pcie-controller: link 2 down, retrying
[ 2.299383] tegra-pcie 10003000.pcie-controller: link 2 down, retrying
[ 2.301404] tegra-pcie 10003000.pcie-controller: link 2 down, ignoring
[ 2.407807] tegra-pcie 10003000.pcie-controller: PCI host bridge to bus 0000:00
[ 2.418945] pcieport 0000:00:01.0: Signaling PME through PCIe PME interrupt
[ 2.418952] pcie_pme 0000:00:01.0:pcie001: service driver pcie_pme loaded
[ 2.419022] aer 0000:00:01.0:pcie002: service driver aer loaded
[ 20.445834] [] tegra_pcie_msi_irq+0x64/0x140

So seem like the pcie-controller not work on NX.

Does NX have a patch to disable SMMU now?

Not yet, hope that.

Since you said you are using remap_pfn_range() API, I assume what you are trying to do is, allocating the memory in the kernel space and then mmap’ing it to the user space through remap_pfn_range() right? If so, how are you getting the ‘pfn’ that is to be supplied as one of the arguments to the remap_pfn_range() API?
If you are using either __pa() or virt_to_phys() to get the physical address from the virtual address, it may not work. Please use vmalloc_to_pfn() API to get the pfn from virtual address and then, use this pfn for remap_pfn_range() API. I hope this should solve your issue.

Hi @vidyas, thanks for your reply, yes, I did tried it as your advice, but still not work, the result is hang when I get data from user space.

Let me show the detail of my code:

  1. First allocated 7 x camera memory in kernel space

for(i=0; im_nMaxChl; i++) {
for( k=0; k<MAX_VIDEO_QUEUE;k++) {
{
pdx->m_pVideoData[i][k] = kmalloc((pdx->m_MaxHWVideoBufferSize), GFP_KERNEL);
if(!pdx->m_pVideoData[i][k]) {
pdx->m_bBufferAllocate = TRUE;
DmaMemFreePool(pdx);
pdx->m_bBufferAllocate = FALSE;
status = -1;
return status;
}
else
{
pdx->m_pVideoData_area[i][k] = (char *)(((unsigned long)pdx->m_pVideoData[i][k] + PAGE_SIZE -1) & PAGE_MASK);
for (phyvirt_addr=(unsigned long)pdx->m_pVideoData_area[i][k]; phyvirt_addr < ((unsigned long)pdx->m_pVideoData_area[i][k] + (pdx- >m_MaxHWVideoBufferSize));
phyvirt_addr+=PAGE_SIZE)
{
// reserve all pages to make them remapable
SetPageReserved(virt_to_page(phyvirt_addr));
}
memset(pdx->m_pVideoData[i][k],0x0,pdx->m_MaxHWVideoBufferSize );
}
}
}

  1. Configure
    static int uio_mmap_video0(struct file *filp, struct vm_area_struct *vma, int index)
    {
    int ret = 0;
    int index=0;
    int offset=0;
    int ch;
    ch = index;
    offset = vma->vm_pgoff<<PAGE_SHIFT;
    index = offset/MAX_MM_VIDEO_SIZE;
    ret = remap_pfn_range(vma, vma->vm_start, vmalloc_to_pfn(sys_dvrs_hw_pdx->m_pVideoData[ch][index]) >>PAGE_SHIFT, vma->vm_end - vma->vm_start, vma->vm_page_prot);
    if(ret)
    return -EAGAIN;
    return ret;
    }
    static int uio_mmap_video1(struct file *filp, struct vm_area_struct *vma, int index)
    {

    }
    static int uio_mmap_video2(struct file *filp, struct vm_area_struct *vma, int index)
    {

    }

    static int uio_mmap_video6(struct file *filp, struct vm_area_struct *vma, int index)
    {

    }

  2. Allocated memory for every camera
    for(i=0; im_nMaxChl; i= i+2)
    {
    pdx->m_pbyVideoBuffer[i] = kmalloc((pdx->m_MaxHWVideoBufferSize*MAX_VIDEO_PKSIZE), GFP_KERNEL);

      if(pdx->m_pbyVideoBuffer[i]== NULL)
      {
        printk("m_pbyVideoBuffer[%d] mem Allocate Fail ************\n", i);
        pdx->m_bBufferAllocate = TRUE;
        DmaMemFreePool(pdx);
        pdx->m_bBufferAllocate = FALSE;
        status = -1;
        return status;
      }
      pdx->m_pbyVideoBuffer_area[i] = (char *)(((unsigned long)pdx->m_pbyVideoBuffer[i] + PAGE_SIZE -1) & PAGE_MASK);
      for (phyvirt_addr=(unsigned long)pdx->m_pbyVideoBuffer_area[i]; phyvirt_addr < ((unsigned long)pdx->m_pbyVideoBuffer_area[i] + (pdx-       >m_MaxHWVideoBufferSize*MAX_VIDEO_PKSIZE));
      phyvirt_addr+=PAGE_SIZE)
      {
        // reserve all pages to make them remapable
        SetPageReserved(virt_to_page(phyvirt_addr));
      }
      memset(pdx->m_pbyVideoBuffer[i] , 0x0,(pdx->m_MaxHWVideoBufferSize*MAX_VIDEO_PKSIZE) );
    
      phy_addr= (u64*)virt_to_phys(pdx->m_pbyVideoBuffer[i]);
    
      pdx->m_pbyVideo_phys[i] = phy_addr;
      pdx->m_dwVideoBuffer[i] =     ((u64)phy_addr)&0xFFFFFFFF;
      pdx->m_dwVideoHighBuffer[i] = ((u64)phy_addr>>32)&0xFFFFFFFF;;
    
      pdx->m_pbyVideoBuffer[i+1] =  pdx->m_pbyVideoBuffer[i]+ pdx->m_MaxHWVideoBufferSize;
    
      phy_addr= (u64*)virt_to_phys(pdx->m_pbyVideoBuffer[i+1]);
      pdx->m_pbyVideo_phys[i+1] = phy_addr;
      pdx->m_dwVideoBuffer[i+1] =   ((u64)phy_addr)&0xFFFFFFFF;
      pdx->m_dwVideoHighBuffer[i+1] = ((u64)phy_addr>>32)&0xFFFFFFFF;
    
  3. When ioctl to get camera data from user space

pci_dma_sync_single_for_cpu(pdx->pdev,pdx->m_pbyVideo_phys[nDecoder],pdx->m_MaxHWVideoBufferSize,2);

  1. Copy data

bBuf = pdx->m_pVideoData[nDecoder][nIndex];
pSrcBuf = pdx->m_pbyVideoBuffer[nDecoder];
memcpy(bBuf,pSrcBuf,copysize);

Please note that if you are dealing with sizes of more than one page, then, you may have to call vmall_to_pfn() and remap_pfn_range() in a loop for each page. Since MMU and IOMMU are enabled, both VA and IOVA are contiguous in their own way but the physical address may not be contiguous and hence the mapping needs to be done for each page.

Hi @vidyas, thanks for your advice, of course the buffer for camera data(1280x720) is more then one page, could you give me some sample code to process this case? thanks.

int ret = 0;
int index=0;
int offset=0;
int ch;
ch = index;
offset = vma->vm_pgoff<<PAGE_SHIFT;
index = offset/MAX_MM_VIDEO_SIZE;
ret = remap_pfn_range(vma, vma->vm_start, vmalloc_to_pfn(sys_dvrs_hw_pdx->m_pVideoData[ch][index]) >>PAGE_SHIFT, vma->vm_end - vma->vm_start, vma->vm_page_prot);

Hi, I have update for this issue, I found the message from kernel(dmesg) when did same operate, please check it, thanks.

I’m sorry but we don’t have any sample code. But, as I said, you just need to repeat the procedure for each page and then keep track of all of them and then create mapping.

Hi @vidyas, okay, I will try later it.
but I have a question want to check it, as I said at early post, the same driver and application code works well in jeston TX2 and Nano

Well, it is possible that on Jetson TX2 and Nano, SMMU for PCIe may have been disabled. If that is something you would be interested in trying, I can provide the steps. But, before that, I would like you to confirm that the SMMU for PCIe is indeed disabled for PCIe.

As I posted on Jun 17, I hava refer to old patch for TX2, remove all iommu config in file ‘hardware/nvidia/soc/t19x/kernel-dts/tegra194-soc/tegra194-soc-pcie.dtsi’ for NX, but I don’t know I did right way or not, can you please check it? thanks.

Please use below two changes to disable SMMU for PCIe.
(The first change shows how it is to be done for the C5 controller. If the controller in question is not C5, then, a similar change needs to be made for the respective controller.
The second change is a common change.)

--- a/kernel-dts/tegra194-soc/tegra194-soc-pcie.dtsi
+++ b/kernel-dts/tegra194-soc/tegra194-soc-pcie.dtsi
@@ -867,13 +867,6 @@
                pinctrl-0 = <&pex_rst_c5_out_state>;
                pinctrl-1 = <&clkreq_c5_bi_dir_state>;
 
-               iommus = <&smmu TEGRA_SID_PCIE5>;
-               dma-coherent;
-#if LINUX_VERSION >= 414
-               iommu-map = <0x0 &smmu TEGRA_SID_PCIE5 0x1000>;
-               iommu-map-mask = <0x0>;
-#endif
-
                #interrupt-cells = <1>;
                interrupt-map-mask = <0 0 0 0>;
                interrupt-map = <0 0 0 0 &intc 0 53 0x04>;

and

--- a/drivers/iommu/arm-smmu-t19x.c
+++ b/drivers/iommu/arm-smmu-t19x.c
@@ -2535,7 +2535,10 @@ static void arm_smmu_device_reset(struct arm_smmu_device *smmu)
        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);
 
        /* Disable TLB broadcasting. */
        reg |= (sCR0_VMIDPNE | sCR0_PTM);

Hi @vidyas, Thanks for your patch, It works on NX now, but I found below crash issue, and I change virt_to_phys() to vmalloc_to_pfn(),still crash.

[ 609.091216] irq 554 handler irqhandler+0x0/0x380 [dvrs_hw] enabled interrupts
[ 609.091238] ------------[ cut here ]------------
[ 609.091369] WARNING: CPU: 0 PID: 9635 at /home/xhz/nvidia/source/Linux_for_Tegra_nx_tx2/source/public/kernel_src/kernel/kernel-4.9/kernel/irq/handle.c:149 __handle_irq_event_percpu+0x238/0x288
[ 609.091643] Modules linked in: dvrs_hw(O) bnep fuse zram overlay spidev nvgpu bluedroid_pm ip_tables x_tables

[ 609.091712] CPU: 0 PID: 9635 Comm: lt_test Tainted: G O 4.9.140-tegra #3
[ 609.091719] Hardware name: NVIDIA Jetson Xavier NX Developer Kit (DT)
[ 609.091725] task: ffffffc19e128000 task.stack: ffffffc1a1fbc000
[ 609.091732] PC is at __handle_irq_event_percpu+0x238/0x288
[ 609.091737] LR is at __handle_irq_event_percpu+0x238/0x288
[ 609.091741] pc : [] lr : [] pstate: 40400045
[ 609.091745] sp : ffffffc1ffd07d40
[ 609.091749] x29: ffffffc1ffd07d40 x28: ffffffc19e128000
[ 609.091758] x27: ffffff800a0aa000 x26: ffffffc1f0c86400
[ 609.091767] x25: ffffffc1ffd07dcc x24: ffffff8009835018
[ 609.091776] x23: ffffff8009e76e48 x22: 000000000000022a
[ 609.091788] x21: 0000000000000000 x20: 0000000000000001
[ 609.091796] x19: ffffffc1ddf30480 x18: 0000000000000060
[ 609.091805] x17: 0000007fb7b0eb38 x16: 0000000000000000
[ 609.091814] x15: ffffffffffffffff x14: 747075727265746e
[ 609.091823] x13: 0000000000000000 x12: 0000000000000006
[ 609.091831] x11: 0000000000000002 x10: 00000000000003d0
[ 609.091844] x9 : 0000000000000001 x8 : ffffffc1ffcd82e3
[ 609.091858] x7 : 0000000000000000 x6 : 000000001313168b
[ 609.091867] x5 : 0000000000000000 x4 : ffffffc1ffd08be8
[ 609.091875] x3 : ffffffc1ffd08be8 x2 : 0000000000000007
[ 609.091885] x1 : ffffffc19e128000 x0 : 0000000000000041

[ 609.091897] —[ end trace 4deb775374cfcae6 ]—
[ 609.091981] Call trace:
[ 609.091988] [] __handle_irq_event_percpu+0x238/0x288
[ 609.091994] [] handle_irq_event_percpu+0x28/0x60
[ 609.092002] [] handle_irq_event+0x50/0x80
[ 609.092011] [] handle_simple_irq+0x8c/0xc0
[ 609.092017] [] generic_handle_irq+0x34/0x50
[ 609.092025] [] dw_handle_msi_irq+0xb4/0x108
[ 609.092032] [] tegra_pcie_msi_irq_handler+0x20/0x30
[ 609.092038] [] __handle_irq_event_percpu+0x68/0x288
[ 609.092044] [] handle_irq_event_percpu+0x28/0x60
[ 609.092049] [] handle_irq_event+0x50/0x80
[ 609.092055] [] handle_fasteoi_irq+0xc8/0x1b8
[ 609.092061] [] generic_handle_irq+0x34/0x50
[ 609.092066] [] __handle_domain_irq+0x68/0xc0
[ 609.092073] [] gic_handle_irq+0x5c/0xb0
[ 609.092082] [] el1_irq+0xe8/0x194
[ 609.092092] [] _raw_spin_unlock_irq+0x28/0x58
[ 609.092100] [] finish_task_switch+0x7c/0x1a8
[ 609.092106] [] schedule_tail+0x20/0x170
[ 609.092112] [] ret_from_fork+0x4/0x30
[ 615.356438] ########- [5][0] [0]

you may have to repeat the vmalloc_to_pfn() for all the pages. Is that being done here?