Custom camera driver crashes after single frame

Hello! I am developing IMX 283 driver and now I’m stuck on a problem, which makes the camera stop responding after first launch and first frame.

Here’s some weird things that I have noticed:

When I do V4L2 compliance test after fresh boot BEFORE I try to start up the camera via Argus the results are like this:

v4l2-compliance SHA   : not available

Driver Info:
	Driver name   : tegra-video
	Card type     : vi-output, imx283 32-001a
	Bus info      : platform:15700000.vi:2
	Driver version: 4.9.201
	Capabilities  : 0x84200001
		Video Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps   : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format

Compliance test for device /dev/video0 (not using libv4l2):

Required ioctls:
	test VIDIOC_QUERYCAP: OK

Allow for multiple opens:
	test second video open: OK
	test VIDIOC_QUERYCAP: OK
	test VIDIOC_G/S_PRIORITY: OK
	test for unlimited opens: OK

Debug ioctls:
	test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
	test VIDIOC_LOG_STATUS: OK

Input ioctls:
	test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported)
	test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
	test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported)
	test VIDIOC_ENUMAUDIO: OK (Not Supported)
	test VIDIOC_G/S/ENUMINPUT: OK
	test VIDIOC_G/S_AUDIO: OK (Not Supported)
	Inputs: 1 Audio Inputs: 0 Tuners: 0

Output ioctls:
	test VIDIOC_G/S_MODULATOR: OK (Not Supported)
	test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
	test VIDIOC_ENUMAUDOUT: OK (Not Supported)
	test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
	test VIDIOC_G/S_AUDOUT: OK (Not Supported)
	Outputs: 0 Audio Outputs: 0 Modulators: 0

Input/Output configuration ioctls:
	test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported)
	test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported)
	test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported)
	test VIDIOC_G/S_EDID: OK (Not Supported)

Test input 0:

	Control ioctls:
		test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
		test VIDIOC_QUERYCTRL: OK
		test VIDIOC_G/S_CTRL: OK
		test VIDIOC_G/S/TRY_EXT_CTRLS: OK
		test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
		test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
		Standard Controls: 1 Private Controls: 17

	Format ioctls:
		test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK
		fail: v4l2-test-formats.cpp(1184): ret && node->has_frmintervals
		test VIDIOC_G/S_PARM: FAIL
		test VIDIOC_G_FBUF: OK (Not Supported)
		test VIDIOC_G_FMT: OK
		test VIDIOC_TRY_FMT: OK
		test VIDIOC_S_FMT: OK
		test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
		test Cropping: OK (Not Supported)
		test Composing: OK (Not Supported)
		test Scaling: OK (Not Supported)

	Codec ioctls:
		test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
		test VIDIOC_G_ENC_INDEX: OK (Not Supported)
		test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)

	Buffer ioctls:
		test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK
		test VIDIOC_EXPBUF: OK

Test input 0:


Total: 43, Succeeded: 42, Failed: 1, Warnings: 0

Then I launch Argus camera - I get stuck first frame and then Argus camera freezes, I force stop it and then when I try to launch it again, nothing happens, no function in the driver gets called (no IMX283 driver dmesg log appears, which it did on the first launch) - basically the whole driver gets stuck or something? Camera becomes completely unresponsive until reboot.

Here’s the compliance test AFTER first launch
v4l2-compliance SHA : not available

Driver Info:
	Driver name   : tegra-video
	Card type     : vi-output, imx283 32-001a
	Bus info      : platform:15700000.vi:2
	Driver version: 4.9.201
	Capabilities  : 0x84200001
		Video Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps   : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format

Compliance test for device /dev/video0 (not using libv4l2):

Required ioctls:
	test VIDIOC_QUERYCAP: OK

Allow for multiple opens:
	test second video open: OK
	test VIDIOC_QUERYCAP: OK
	test VIDIOC_G/S_PRIORITY: OK
	test for unlimited opens: OK

Debug ioctls:
	test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
	test VIDIOC_LOG_STATUS: OK

Input ioctls:
	test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported)
	test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
	test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported)
	test VIDIOC_ENUMAUDIO: OK (Not Supported)
	test VIDIOC_G/S/ENUMINPUT: OK
	test VIDIOC_G/S_AUDIO: OK (Not Supported)
	Inputs: 1 Audio Inputs: 0 Tuners: 0

Output ioctls:
	test VIDIOC_G/S_MODULATOR: OK (Not Supported)
	test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
	test VIDIOC_ENUMAUDOUT: OK (Not Supported)
	test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
	test VIDIOC_G/S_AUDOUT: OK (Not Supported)
	Outputs: 0 Audio Outputs: 0 Modulators: 0

Input/Output configuration ioctls:
	test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported)
	test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported)
	test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported)
	test VIDIOC_G/S_EDID: OK (Not Supported)

Test input 0:

	Control ioctls:
		test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
		test VIDIOC_QUERYCTRL: OK
		test VIDIOC_G/S_CTRL: OK
		test VIDIOC_G/S/TRY_EXT_CTRLS: OK
		test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
		test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
		Standard Controls: 1 Private Controls: 17

	Format ioctls:
		test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK
		fail: v4l2-test-formats.cpp(1184): ret && node->has_frmintervals
		test VIDIOC_G/S_PARM: FAIL
		test VIDIOC_G_FBUF: OK (Not Supported)
		test VIDIOC_G_FMT: OK
		test VIDIOC_TRY_FMT: OK
		fail: v4l2-test-formats.cpp(425): expected EINVAL, but got 16 when getting format for buftype 1
		fail: v4l2-test-formats.cpp(1018): Video Capture is valid, but no S_FMT was implemented
		test VIDIOC_S_FMT: FAIL
		test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
		test Cropping: OK (Not Supported)
		test Composing: OK (Not Supported)
		fail: v4l2-test-formats.cpp(1550): doioctl(node, VIDIOC_S_FMT, &fmt)
		fail: v4l2-test-formats.cpp(1647): doioctl(node, VIDIOC_S_FMT, &fmt)
		test Scaling: FAIL

	Codec ioctls:
		test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
		test VIDIOC_G_ENC_INDEX: OK (Not Supported)
		test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)

	Buffer ioctls:
		fail: v4l2-test-buffers.cpp(446): ret && ret != EINVAL
		test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
		fail: v4l2-test-buffers.cpp(573): VIDIOC_EXPBUF is supported, but the V4L2_MEMORY_MMAP support is missing or malfunctioning.
		fail: v4l2-test-buffers.cpp(574): VIDIOC_EXPBUF is supported, but the V4L2_MEMORY_MMAP support is missing, probably due to earlier failing format tests.
		test VIDIOC_EXPBUF: OK (Not Supported)

Test input 0:


Total: 43, Succeeded: 39, Failed: 4, Warnings: 0

My dmesg dump:

[    1.223761] i2c /dev entries driver
[    1.225132] pca954x 2-0070: vcc-pullup regulator not found
[    1.225269] pca954x 2-0070: pca954x_probe: forcing device bus number, start 30.
[    1.225272] pca954x 2-0070: device detect skipped.
[    1.225453] i2c i2c-2: Added multiplexed i2c bus 30
[    1.225666] i2c i2c-2: Added multiplexed i2c bus 31
[    1.225910] i2c i2c-2: Added multiplexed i2c bus 32
[    1.226122] extcon-disp-state external-connection:disp-state: cable 47 state 0
[    1.226124] Extcon AUX1(HDMI) disable
[    1.226172] i2c i2c-2: Added multiplexed i2c bus 33
[    1.226324] i2c i2c-2: Added multiplexed i2c bus 34
[    1.226528] i2c i2c-2: Added multiplexed i2c bus 35
[    1.226751] i2c i2c-2: Added multiplexed i2c bus 36
[    1.226949] i2c i2c-2: Added multiplexed i2c bus 37
[    1.226953] pca954x 2-0070: registered 8 multiplexed busses for I2C switch pca9548
[    1.227443] imx283 32-001a: probing v4l2 sensor at addr 0x1a
[    1.227484] imx283 32-001a: imx283_parse_dt: parsing devicetree
[    1.227562] imx283 32-001a: imx283_power_get: power get
[    1.228180] imx283 32-001a: tegracam sensor driver:imx283_v2.0.6
[    1.228184] imx283 32-001a: imx283_power_on: power on
[    1.234763] imx283 32-001a: I2C Register probe - HMAX (0x3036) = 3
[    1.235097] imx283 32-001a: I2C Register probe - HMAX (0x3037) = 132
[    1.235123] imx283 32-001a: imx283_set_gain: setting gain control to: 0
[    1.235127] imx283 32-001a: imx283_set_gain: val: 0 (/10) [times], gain: 1024
[    1.235132] imx283 32-001a: imx283_set_exposure: Ecposure VAL= 0
[    1.235136] imx283 32-001a: imx283_set_exposure: SHR larger than MAX, SHR=3999, MAX=3996
[    1.235139] imx283 32-001a: imx283_set_exposure: setting 0 ns to 3996 on SHR
[    1.235143] imx283 32-001a: imx283_set_exposure: calculated shr 3996 as LSB 0x9c and MSB 0x0f
[    1.236328] imx283 32-001a: imx283_set_frame_rate: setting framerate to 0 fps
[    1.236331] imx283 32-001a: imx283_set_frame_rate: requested framerate lower than min (1.5) fps
[    1.237840] imx283 32-001a: imx283_set_group_hold: setting group hold control to: 0
[    1.238156] imx283 32-001a: imx283_set_exposure: Ecposure VAL= 53
[    1.238159] imx283 32-001a: imx283_set_exposure: setting 53 ns to 3995 on SHR
[    1.238163] imx283 32-001a: imx283_set_exposure: calculated shr 3995 as LSB 0x9b and MSB 0x0f
[    1.239344] imx283 32-001a: imx283_set_frame_rate: setting framerate to 1500000 fps
[    1.240810] imx283 32-001a: detected imx283 sensor
[    1.241444] max77620-power max77620-power: Event recorder REG_NVERC : 0x0
[    1.246405] parse_throttle_dt_data: Num cap clks = 4
[    1.246410] parse_throttle_dt_data: clk=mcpu type=1
[    1.246412] parse_throttle_dt_data: clk=bcpu type=2
[    1.246419] parse_throttle_dt_data: clk=gpu type=4
[    1.246421] parse_throttle_dt_data: clk=emc type=3
[    1.247544] tegra_throttle_probe: probe successful. #cdevs=4
[    1.248111] FAN dev name: pwm-fan
[    1.248164] FAN:gpio request success.
[    1.248172] FAN: can't find tach_gpio
[    1.248199] pwm_fan_driver pwm-fan: cap state:7, cap pwm:255
[    1.248383] pwm_fan_driver pwm-fan: got pwm for fan. polarity is inversed
[    1.248387] pwm_fan_driver pwm-fan: tach period: 1000
[    1.258136] tegra_nvdisp_handle_pd_disable: Powergated Head2 pd
[    1.258352] pwm_fan_driver pwm-fan: index 0: pwm=0, rpm=0, rru=40, rrd=40, state:2
[    1.258355] pwm_fan_driver pwm-fan: index 1: pwm=80, rpm=1000, rru=2, rrd=2, state:2
[    1.258363] pwm_fan_driver pwm-fan: index 2: pwm=120, rpm=2000, rru=1, rrd=1, state:2
[    1.258371] pwm_fan_driver pwm-fan: index 3: pwm=160, rpm=3000, rru=1, rrd=1, state:2
[    1.258375] pwm_fan_driver pwm-fan: index 4: pwm=255, rpm=4000, rru=1, rrd=1, state:3
[    1.258381] pwm_fan_driver pwm-fan: index 5: pwm=255, rpm=5000, rru=1, rrd=1, state:3
[    1.258384] pwm_fan_driver pwm-fan: index 6: pwm=255, rpm=6000, rru=1, rrd=1, state:3
[    1.258389] pwm_fan_driver pwm-fan: index 7: pwm=255, rpm=7000, rru=1, rrd=1, state:4
[    1.258396] pwm_fan_driver pwm-fan: index 8: pwm=255, rpm=10000, rru=1, rrd=1, state:4
[    1.258405] pwm_fan_driver pwm-fan: index 9: pwm=255, rpm=11000, rru=1, rrd=1, state:4
[    1.258680] tegra_nvdisp_handle_pd_disable: Powergated Head1 pd
[    1.262227] tegra_nvdisp_handle_pd_disable: Powergated Head0 pd
[    1.263273] tegra-oc-event d280000.soctherm-oc-event: OC driver initialized
[    1.270134] device-mapper: uevent: version 1.0.3
[    1.272020] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: dm-devel@redhat.com
[    1.274202] CPU EMC frequency mapping table: from device tree
[    1.292875] cpufreq: platform driver Initialization: pass
[    1.293001] tegradc 15210000.nvdisplay: unblank
[    1.293527] cpuidle: Initializing cpuidle driver init for Denver cluster
[    1.293612] tegra_nvdisp_handle_pd_enable: Unpowergated Head0 pd
[    1.293654] cpuidle: Initializing cpuidle driver init for A57 cluster
[    1.293716] tegra_nvdisp_handle_pd_enable: Unpowergated Head1 pd
[    1.293790] tegra_nvdisp_handle_pd_enable: Unpowergated Head2 pd
[    1.294565] sdhci: Secure Digital Host Controller Interface driver
[    1.294566] sdhci: Copyright(c) Pierre Ossman
[    1.294567] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.295120] Parent Clock set for DC plld2
[    1.297657] sdhci-tegra 3460000.sdhci: Client registration for eMC Successful
[    1.298976] tegradc 15210000.nvdisplay: hdmi: tmds rate:148500K prod-setting:prod_c_hdmi_111m_223m
[    1.299293] ata1: SATA link down (SStatus 0 SControl 300)
[    1.299563] CMDQ: cmdq_platfm_init successful
[    1.300300] tegradc 15210000.nvdisplay: hdmi: get YCC quant from EDID.
[    1.300794] CQE: CMD_TIMING bit set for R1B DCMD
[    1.303242] sdhci-tegra 3440000.sdhci: Client registration for eMC Successful
[    1.308700] sdhci-tegra 3400000.sdhci: Got CD GPIO
[    1.308747] sdhci-tegra 3400000.sdhci: Got WP GPIO
[    1.310357] sdhci-tegra 3400000.sdhci: Client registration for eMC Successful
[    1.312037] sdhci-tegra 3400000.sdhci: wakeup init done, cdirq 258
[    1.316397] tegra-se-elp 3ad0000.se_elp: tegra_se_elp_probe: complete
[    1.317291] tegra-se-nvhost 15810000.se: initialized
[    1.318358] tegra-se-nvhost 15810000.se: tegra_se_probe: complete
[    1.318953] tegra-se-nvhost 15820000.se: initialized
[    1.319886] tegra-se-nvhost 15820000.se: tegra_se_probe: complete
[    1.320448] tegra-se-nvhost 15830000.se: initialized
[    1.321282] tegra-se-nvhost 15830000.se: tegra_se_probe: complete
[    1.321823] tegra-se-nvhost 15840000.se: initialized
[    1.322718] tegra-se-nvhost 15840000.se: tegra_se_probe: complete
[    1.322950] hidraw: raw HID events driver (C) Jiri Kosina
[    1.323878] usbcore: registered new interface driver usbhid
[    1.323879] usbhid: USB HID core driver
[    1.324570] tegra-pcie 10003000.pcie-controller: link 0 down, retrying
[    1.329077] tegra186-cam-rtcpu b000000.rtcpu: Trace buffer configured at IOVA=0xbff00000
[    1.331157] tegra-ivc ivc-b000000.rtcpu: region 0: iova=0xbfef0000-0xbfefdb7f size=56192
[    1.331373] tegra-ivc ivc-b000000.rtcpu:echo@0: echo: ver=0 grp=1 RX[16x64]=0x1000-0x1480 TX[16x64]=0x1480-0x1900
[    1.331489] tegra-ivc ivc-b000000.rtcpu:i2c@480: i2c: ver=0 grp=1 RX[8x128]=0x1900-0x1d80 TX[8x128]=0x1d80-0x2200
[    1.331680] tegra-ivc ivc-b000000.rtcpu:vinotify@12c0: vinotify: ver=0 grp=1 RX[64x128]=0x2200-0x4280 TX[64x128]=0x4280-0x6300
[    1.335438] tegra-ivc ivc-b000000.rtcpu:mods@32c0: mods: ver=0 grp=1 RX[1x64]=0x6300-0x63c0 TX[1x64]=0x63c0-0x6480
[    1.335513] tegra-ivc ivc-b000000.rtcpu:ivccontrol@52c0: ivccontrol: ver=0 grp=1 RX[16x320]=0x6480-0x7900 TX[16x320]=0x7900-0x8d80
[    1.335575] tegra-ivc ivc-b000000.rtcpu:ivccapture@72c0: ivccapture: ver=0 grp=1 RX[16x64]=0x8d80-0x9200 TX[16x64]=0x9200-0x9680
[    1.335631] tegra-ivc ivc-b000000.rtcpu:dbg@7c00: dbg: ver=0 grp=1 RX[1x384]=0x9680-0x9880 TX[1x384]=0x9880-0x9a80
[    1.335742] tegra-ivc ivc-b000000.rtcpu:dbg@7e00: dbg: ver=0 grp=1 RX[1x8192]=0x9a80-0xbb00 TX[1x8192]=0xbb00-0xdb80
[    1.335767] extcon-disp-state external-connection:disp-state: cable 47 state 1
[    1.335769] Extcon AUX1(HDMI) enable
[    1.336066] tegra186-cam-rtcpu b000000.rtcpu: using cam RTCPU IRQ (52)
[    1.336068] tegra186-cam-rtcpu b000000.rtcpu: tegra_camrtc_mon_create is successful
[    1.336618] tegra186-cam-rtcpu b000000.rtcpu: firmware version cpu=sce cmd=5 sha1=3ecb1dca25fa98771f988f238c025334776c9a96
[    1.338196] tegra_aon c1a0000.aon: tegra aon driver probe OK
[    1.338612] tegra186-aondbg aondbg: aondbg driver probe() OK
[    1.338765] register_ari_mca_banks: Registered MCA ROC:IOB
[    1.338830] register_ari_mca_banks: Registered MCA ROC:CCE
[    1.339124] tegra18-bridge 2390000.axi2apb: axi_cbb clk rate = 115 MHZ, timeout = 97000 useconds
[    1.339127] tegra18-bridge 2390000.axi2apb: enabled timeout = 11155000
[    1.339129] tegra18-bridge 2390000.axi2apb: bridge probed OK
[    1.339175] tegra18-bridge 23a0000.axi2apb: axi_cbb clk rate = 115 MHZ, timeout = 97000 useconds
[    1.339177] tegra18-bridge 23a0000.axi2apb: enabled timeout = 11155000
[    1.339178] tegra18-bridge 23a0000.axi2apb: bridge probed OK
[    1.339222] tegra18-bridge 23b0000.axi2apb: axi_cbb clk rate = 115 MHZ, timeout = 97000 useconds
[    1.339224] tegra18-bridge 23b0000.axi2apb: enabled timeout = 11155000
[    1.339226] tegra18-bridge 23b0000.axi2apb: bridge probed OK
[    1.339273] tegra18-bridge 23c0000.axi2apb: axi_cbb clk rate = 115 MHZ, timeout = 97000 useconds
[    1.339274] tegra18-bridge 23c0000.axi2apb: enabled timeout = 11155000
[    1.339276] tegra18-bridge 23c0000.axi2apb: bridge probed OK
[    1.339320] tegra18-bridge 23d0000.axi2apb: axi_cbb clk rate = 115 MHZ, timeout = 97000 useconds
[    1.339322] tegra18-bridge 23d0000.axi2apb: enabled timeout = 11155000
[    1.339323] tegra18-bridge 23d0000.axi2apb: bridge probed OK
[    1.339365] tegra18-bridge 2100000.axip2p: axi_cbb clk rate = 115 MHZ, timeout = 97000 useconds
[    1.339369] tegra18-bridge 2100000.axip2p: enabled timeout = 11155000
[    1.339370] tegra18-bridge 2100000.axip2p: bridge probed OK
[    1.339420] tegra18-bridge 2110000.axip2p: axi_cbb clk rate = 115 MHZ, timeout = 97000 useconds
[    1.339424] tegra18-bridge 2110000.axip2p: enabled timeout = 11155000
[    1.339426] tegra18-bridge 2110000.axip2p: bridge probed OK
[    1.339468] tegra18-bridge 2120000.axip2p: axi_cbb clk rate = 115 MHZ, timeout = 97000 useconds
[    1.339472] tegra18-bridge 2120000.axip2p: enabled timeout = 11155000
[    1.339474] tegra18-bridge 2120000.axip2p: bridge probed OK
[    1.339515] tegra18-bridge 2130000.axip2p: axi_cbb clk rate = 115 MHZ, timeout = 97000 useconds
[    1.339520] tegra18-bridge 2130000.axip2p: enabled timeout = 11155000
[    1.339521] tegra18-bridge 2130000.axip2p: bridge probed OK
[    1.339562] tegra18-bridge 2140000.axip2p: axi_cbb clk rate = 115 MHZ, timeout = 97000 useconds
[    1.339565] tegra18-bridge 2140000.axip2p: enabled timeout = 11155000
[    1.339566] tegra18-bridge 2140000.axip2p: bridge probed OK
[    1.339608] tegra18-bridge 2150000.axip2p: axi_cbb clk rate = 115 MHZ, timeout = 97000 useconds
[    1.339613] tegra18-bridge 2150000.axip2p: enabled timeout = 11155000
[    1.339614] tegra18-bridge 2150000.axip2p: bridge probed OK
[    1.339655] tegra18-bridge 2160000.axip2p: axi_cbb clk rate = 115 MHZ, timeout = 97000 useconds
[    1.339660] tegra18-bridge 2160000.axip2p: enabled timeout = 11155000
[    1.339662] tegra18-bridge 2160000.axip2p: bridge probed OK
[    1.339705] tegra18-bridge 2170000.axip2p: axi_cbb clk rate = 115 MHZ, timeout = 97000 useconds
[    1.339710] tegra18-bridge 2170000.axip2p: enabled timeout = 11155000
[    1.339712] tegra18-bridge 2170000.axip2p: bridge probed OK
[    1.339755] tegra18-bridge 2180000.axip2p: axi_cbb clk rate = 115 MHZ, timeout = 97000 useconds
[    1.339759] tegra18-bridge 2180000.axip2p: enabled timeout = 11155000
[    1.339761] tegra18-bridge 2180000.axip2p: bridge probed OK
[    1.339802] tegra18-bridge 2190000.axip2p: axi_cbb clk rate = 115 MHZ, timeout = 97000 useconds
[    1.339806] tegra18-bridge 2190000.axip2p: enabled timeout = 11155000
[    1.339808] tegra18-bridge 2190000.axip2p: bridge probed OK
[    1.339867] **** A57 ECC: Enabled
[    1.339869] tegra18_a57_serr_init: on CPU 5 a A57 Core
[    1.339929] tegra18x_actmon d230000.actmon: in actmon_register()...
[    1.340369] tegra18x_actmon d230000.actmon: initialization Completed for the device mc_all
[    1.340575] mmc0: SDHCI controller on 3460000.sdhci [3460000.sdhci] using ADMA 64-bit with 64 bit addr
[    1.341081] hw perfevents: enabled with denver15_uncore_pmu PMU driver, 3 counters available
[    1.341210] denver_knobs_init:MTS_VERSION:47926945
[    1.345963] nvpmodel: initialized successfully
[    1.346894] trusty-virtio trusty:virtio: initializing
[    1.346995] trusty_ipc virtio0: vring0: va(pa)  ffffffc1e65ba000(0) qsz 32 notifyid 1
[    1.347001] trusty_ipc virtio0: vring1: va(pa)  ffffffc1e65c8000(0) qsz 32 notifyid 2
[    1.347057] trusty-virtio trusty:virtio: initializing done
[    1.347179] trusty_ipc virtio0: is online
[    1.348215] usbcore: registered new interface driver snd-usb-audio
[    1.348558] mmc1: SDHCI controller on 3440000.sdhci [3440000.sdhci] using ADMA 64-bit with 64 bit addr
[    1.350979] tegradc 15210000.nvdisplay: sync windows ret = 246
[    1.360603] gpio tegra-gpio wake71 for gpio=125(P:5)
[    1.360656] mmc2: SDHCI controller on 3400000.sdhci [3400000.sdhci] using ADMA 64-bit with 64 bit addr
[    1.377929] OPE platform probe
[    1.377996] OPE platform probe successful
[    1.380558] usb 1-2: new high-speed USB device number 2 using tegra-xusb
[    1.383837] input: tegra-hda HDMI/DP,pcm=3 as /devices/3510000.hda/sound/card0/input0
[    1.383881] extcon-disp-state external-connection:disp-state: cable 51 state 1
[    1.383884] Extcon HDMI: HPD enabled
[    1.383952] input: tegra-hda HDMI/DP,pcm=7 as /devices/3510000.hda/sound/card0/input1
[    1.384057] tegradc 15210000.nvdisplay: hdmi: plugged
[    1.386494] mmc0: mmc_decode_ext_csd: CMDQ supported: depth: 31, cmdq_support: 1
[    1.400643] mmc0: periodic cache flush enabled
[    1.400652] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[    1.401051] mmcblk0: mmc0:0001 DG4032 29.1 GiB 
[    1.401900] usb 1-2: New USB device found, idVendor=05e3, idProduct=0608
[    1.401904] usb 1-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.401907] usb 1-2: Product: USB2.0 Hub
[    1.402674] hub 1-2:1.0: USB hub found
[    1.402931] hub 1-2:1.0: 4 ports detected
[    1.405198] mmcblk0boot0: mmc0:0001 DG4032 partition 1 4.00 MiB
[    1.409334] mmcblk0boot1: mmc0:0001 DG4032 partition 2 4.00 MiB
[    1.413461] mmcblk0rpmb: mmc0:0001 DG4032 partition 3 4.00 MiB
[    1.417885]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 p23 p24 p25 p26 p27 p28 p29 p30 p31 p32 p33
[    1.425298] tegra-asoc: sound: ADMAIF1 <-> ADMAIF1 mapping ok
[    1.425373] tegra-asoc: sound: ADMAIF2 <-> ADMAIF2 mapping ok
[    1.425442] tegra-asoc: sound: ADMAIF3 <-> ADMAIF3 mapping ok
[    1.425510] tegra-asoc: sound: ADMAIF4 <-> ADMAIF4 mapping ok
[    1.425590] tegra-asoc: sound: ADMAIF5 <-> ADMAIF5 mapping ok
[    1.425660] tegra-asoc: sound: ADMAIF6 <-> ADMAIF6 mapping ok
[    1.425729] tegra-asoc: sound: ADMAIF7 <-> ADMAIF7 mapping ok
[    1.425795] tegra-asoc: sound: ADMAIF8 <-> ADMAIF8 mapping ok
[    1.425861] tegra-asoc: sound: ADMAIF9 <-> ADMAIF9 mapping ok
[    1.425934] tegra-asoc: sound: ADMAIF10 <-> ADMAIF10 mapping ok
[    1.425999] tegra-asoc: sound: ADMAIF11 <-> ADMAIF11 mapping ok
[    1.426068] tegra-asoc: sound: ADMAIF12 <-> ADMAIF12 mapping ok
[    1.426138] tegra-asoc: sound: ADMAIF13 <-> ADMAIF13 mapping ok
[    1.426202] tegra-asoc: sound: ADMAIF14 <-> ADMAIF14 mapping ok
[    1.426274] tegra-asoc: sound: ADMAIF15 <-> ADMAIF15 mapping ok
[    1.426341] tegra-asoc: sound: ADMAIF16 <-> ADMAIF16 mapping ok
[    1.426406] tegra-asoc: sound: ADMAIF17 <-> ADMAIF17 mapping ok
[    1.426473] tegra-asoc: sound: ADMAIF18 <-> ADMAIF18 mapping ok
[    1.426535] tegra-asoc: sound: ADMAIF19 <-> ADMAIF19 mapping ok
[    1.426612] tegra-asoc: sound: ADMAIF20 <-> ADMAIF20 mapping ok
[    1.445920] u32 classifier
[    1.445923]     Actions configured
[    1.445980] Initializing XFRM netlink socket
[    1.446515] NET: Registered protocol family 10
[    1.447126] NET: Registered protocol family 17
[    1.447136] NET: Registered protocol family 15
[    1.447193] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.447233] Bluetooth: RFCOMM socket layer initialized
[    1.447252] Bluetooth: RFCOMM ver 1.11
[    1.447256] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    1.447260] Bluetooth: HIDP socket layer initialized
[    1.447273] 9pnet: Installing 9P2000 support
[    1.447305] Key type dns_resolver registered
[    1.447598] Registered cp15_barrier emulation handler
[    1.447627] Registered setend emulation handler
[    1.448466] registered taskstats version 1
[    1.451376] isp 15600000.isp: initialized
[    1.455161] nvcsi 150c0000.nvcsi: initialized
[    1.456224] tegra-vi4 15700000.vi: using default number of vi channels,15
[    1.458760] Wake83 for irq=51
[    1.458838] gpio tegra-gpio-aon wake29 for gpio=56(FF:0)
[    1.458919] gpio tegra-gpio-aon wake67 for gpio=57(FF:1)
[    1.458993] gpio tegra-gpio-aon wake68 for gpio=58(FF:2)
[    1.459121] input: gpio-keys as /devices/gpio-keys/input/input2
[    1.460567] tegra-vi4 15700000.vi: initialized
[    1.461602] tegra-vi4 15700000.vi: subdev 150c0000.nvcsi--1 bound
[    1.461615] tegra-vi4 15700000.vi: subdev imx283 32-001a bound
[    1.489746] tegra_rtc c2a0000.rtc: setting system clock to 2021-05-14 13:38:41 UTC (1620999521)
[    1.490563] mmcblk mmc0:0001: Card claimed for testing.
[    1.518830] bpmp: mounted debugfs mirror
[    1.519720] bwmgr: missing cdev-type property
[    1.525267] ALSA device list:
[    1.525270]   #0: tegra-hda at 0x3518000 irq 384
[    1.525272]   #1: tegra-snd-t186ref-mobile-rt565x
[    1.527574] Freeing unused kernel memory: 8576K
[    1.548496] Root device found: mmcblk0p1
[    1.549630] Found dev node: /dev/mmcblk0p1
[    1.568897] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
[    1.570601] Rootfs mounted over mmcblk0p1
[    1.587325] Switching from initrd to actual rootfs
[    1.596222] mmc1: Applying tuning correction
[    1.596235] mmc1: Tap value after applying correction 66
[    1.596242] mmc1: hw tuning done ...
[    1.600191] mmc1: new ultra high speed SDR104 SDIO card at address 0001
[    1.687790] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.692556] usb 1-2.1: new low-speed USB device number 3 using tegra-xusb
[    1.696580] cgroup: cgroup2: unknown option "nsdelegate"
[    1.708551] 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)
[    1.709261] systemd[1]: Detected architecture arm64.
[    1.718438] usb 1-2.1: New USB device found, idVendor=046d, idProduct=c31c
[    1.718442] usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.718445] usb 1-2.1: Product: USB Keyboard
[    1.718448] usb 1-2.1: Manufacturer: Logitech
[    1.724057] input: Logitech USB Keyboard as /devices/3530000.xhci/usb1/1-2/1-2.1/1-2.1:1.0/0003:046D:C31C.0001/input/input3
[    1.729018] systemd[1]: Set hostname to <tx2-devkit>.
[    1.732130] tegra-pcie 10003000.pcie-controller: link 0 down, retrying
[    1.781129] hid-generic 0003:046D:C31C.0001: input,hidraw0: USB HID v1.10 Keyboard [Logitech USB Keyboard] on usb-3530000.xhci-2.1/input0
[    1.788648] input: Logitech USB Keyboard as /devices/3530000.xhci/usb1/1-2/1-2.1/1-2.1:1.1/0003:046D:C31C.0002/input/input4
[    1.808491] 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.
[    1.808499] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[    1.848733] hid-generic 0003:046D:C31C.0002: input,hidraw1: USB HID v1.10 Device [Logitech USB Keyboard] on usb-3530000.xhci-2.1/input1
[    1.913952] random: systemd: uninitialized urandom read (16 bytes read)
[    1.915316] systemd[1]: Created slice User and Session Slice.
[    1.915426] random: systemd: uninitialized urandom read (16 bytes read)
[    1.915518] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    1.915558] random: systemd: uninitialized urandom read (16 bytes read)
[    1.915575] systemd[1]: Reached target User and Group Name Lookups.
[    1.916235] systemd[1]: Created slice System Slice.
[    1.916410] systemd[1]: Listening on RPCbind Server Activation Socket.
[    1.932569] usb 1-2.2: new low-speed USB device number 4 using tegra-xusb
[    1.936593] tegra_cec 3960000.tegra_cec: physical address: 10:00.
[    1.956890] usb 1-2.2: New USB device found, idVendor=046d, idProduct=c077
[    1.956894] usb 1-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.956897] usb 1-2.2: Product: USB Optical Mouse
[    1.956899] usb 1-2.2: Manufacturer: Logitech
[    1.959858] input: Logitech USB Optical Mouse as /devices/3530000.xhci/usb1/1-2/1-2.2/1-2.2:1.0/0003:046D:C077.0003/input/input5
[    1.961079] hid-generic 0003:046D:C077.0003: input,hidraw2: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-3530000.xhci-2.2/input0
[    1.967113] gpio tegra-gpio-aon wake30 for gpio=60(FF:4)
[    1.968965] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
[    2.001116] tegra_cec 3960000.tegra_cec: Sent <Text View On> res: -113.
[    2.001121] tegra_cec 3960000.tegra_cec: tegra_cec_init Done.
[    2.058605] bcpu-throttle-alert cooling device registered.
[    2.058763] mcpu-throttle-alert cooling device registered.
[    2.058933] gpu-throttle-alert cooling device registered.
[    2.140556] tegra-pcie 10003000.pcie-controller: link 0 down, retrying
[    2.142576] tegra-pcie 10003000.pcie-controller: link 0 down, ignoring
[    2.177040] systemd-journald[2275]: Received request to flush runtime journal from PID 1
[    2.240559] random: crng init done
[    2.243986] random: 7 urandom warning(s) missed due to ratelimiting
[    2.558618] tegra-pcie 10003000.pcie-controller: link 2 down, retrying
[    2.748436] using random self ethernet address
[    2.767209] using random host ethernet address
[    2.962596] tegra-pcie 10003000.pcie-controller: link 2 down, retrying
[    3.360562] tegra-pcie 10003000.pcie-controller: link 2 down, retrying
[    3.362615] tegra-pcie 10003000.pcie-controller: link 2 down, ignoring
[    3.383632] imx283 32-001a: imx283_power_on: power on
[    3.391067] imx283 32-001a: imx283_open:
[    3.393403] imx283 32-001a: imx283_power_off: power off
[    3.395402] Mass Storage Function, version: 2009/09/11
[    3.395418] LUN: removable file: (no medium)
[    3.408768] using random self ethernet address
[    3.417726] using random host ethernet address
[    3.496459] rndis0: HOST MAC 1e:3a:d6:60:80:1c
[    3.497500] rndis0: MAC 1e:3a:d6:60:80:1d
[    3.499583] usb0: HOST MAC 1e:3a:d6:60:80:1e
[    3.499614] usb0: MAC 1e:3a:d6:60:80:1f
[    3.499644] tegra-xudc-new 3550000.xudc: ep 0 (type: 0, dir: out) enabled
[    3.506315] l4tbr0: port 1(rndis0) entered blocking state
[    3.506326] l4tbr0: port 1(rndis0) entered disabled state
[    3.507428] device rndis0 entered promiscuous mode
[    3.527092] IPv6: ADDRCONF(NETDEV_UP): rndis0: link is not ready
[    3.534370] l4tbr0: port 2(usb0) entered blocking state
[    3.534374] l4tbr0: port 2(usb0) entered disabled state
[    3.534924] device usb0 entered promiscuous mode
[    3.549584] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[    3.567112] tegra-pcie 10003000.pcie-controller: PCIE: no end points detected
[    3.567396] tegra-pcie 10003000.pcie-controller: PCIE: Disable power rails
[    3.656667] android_work: did not send uevent (0 0           (null))
[    3.690076] android_work: sent uevent USB_STATE=CONNECTED
[    3.773855] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    3.786869] CPU1: shutdown
[    3.789645] psci: CPU1 killed.
[    3.815913] dhd_module_init in
[    3.816010] found wifi platform device bcmdhd_wlan
[    3.817501] wifi_platform_get_country_code_map: could not get country_code_map
[    3.817506] wifi_plat_dev_drv_probe:platform country code map is not available
[    3.817518] Power-up adapter 'DHD generic adapter'
[    3.817525] wifi_platform_set_power = 1
[    3.835990] CPU2: shutdown
[    3.840345] psci: CPU2 killed.
[    3.853370] gpio tegra-gpio wake18 for gpio=101(M:5)
[    3.860168] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    3.940834] android_work: sent uevent USB_STATE=DISCONNECTED
[    3.974184] android_work: sent uevent USB_STATE=CONNECTED
[    4.001735] zram: Added device: zram0
[    4.002498] zram: Added device: zram1
[    4.006136] zram: Added device: zram2
[    4.013569] zram: Added device: zram3
[    4.024902] wifi_platform_bus_enumerate device present 1
[    4.028649] android_work: sent uevent USB_STATE=DISCONNECTED
[    4.038671] zram0: detected capacity change from 0 to 1029083136
[    4.048440] wifi_platform_bus_enumerate device present 0
[    4.049699] F1 signature read @0x18000000=0x17214354
[    4.055336] F1 signature OK, socitype:0x1 chip:0x4354 rev:0x1 pkg:0x2
[    4.055981] DHD: dongle ram size is set to 786432(orig 786432) at 0x180000
[    4.057837] wifi_platform_get_mac_addr
[    4.060372] ids dhd_log_netlink_init
[    4.064395] wl_create_event_handler(): thread:wl_event_handler:1619 started
[    4.064530]  wl_event_handler : 
[    4.064567] tsk Enter, tsk = 0xffffffc1cc9c1a90
[    4.065174] dhd_attach(): thread:dhd_watchdog_thread:161b started
[    4.068792] dhd_attach(): thread:dhd_dpc:161c started
[    4.070059] dhd_attach(): thread:dhd_rxf:1620 started
[    4.070069] dhd_deferred_work_init: work queue initialized 
[    4.070335] 
           Dongle Host Driver, version 1.201.82 (r)
           Compiled from 
[    4.071484] android_work: sent uevent USB_STATE=CONNECTED
[    4.073698] Register interface [wlan0]  MAC: 00:04:4b:f8:49:fe

[    4.073705] dhd_prot_ioctl : bus is down. we have nothing to do
[    4.079738] Adding 1004960k swap on /dev/zram0.  Priority:5 extents:1 across:1004960k SS
[    4.081480] sdhci-tegra 3440000.sdhci: Tuning done, restoring the best tap value : 66
[    4.082573] wifi_platform_set_power = 0
[    4.086790] zram1: detected capacity change from 0 to 1029083136
[    4.097465] Adding 1004960k swap on /dev/zram1.  Priority:5 extents:1 across:1004960k SS
[    4.105519] zram2: detected capacity change from 0 to 1029083136
[    4.124922] Adding 1004960k swap on /dev/zram2.  Priority:5 extents:1 across:1004960k SS
[    4.128186] zram3: detected capacity change from 0 to 1029083136
[    4.149443] Adding 1004960k swap on /dev/zram3.  Priority:5 extents:1 across:1004960k SS
[    4.253969] android_work: sent uevent USB_STATE=DISCONNECTED
[    4.287149] android_work: sent uevent USB_STATE=CONNECTED
[    4.342144] android_work: sent uevent USB_STATE=DISCONNECTED
[    4.385748] android_work: sent uevent USB_STATE=CONNECTED
[    4.561428] configfs-gadget gadget: high-speed config #1: c
[    4.561460] tegra-xudc-new 3550000.xudc: ep 5 (type: 3, dir: in) enabled
[    4.561476] tegra-xudc-new 3550000.xudc: ep 3 (type: 2, dir: in) enabled
[    4.561491] tegra-xudc-new 3550000.xudc: ep 2 (type: 2, dir: out) enabled
[    4.561572] tegra-xudc-new 3550000.xudc: ep 9 (type: 3, dir: in) enabled
[    4.561588] tegra-xudc-new 3550000.xudc: ep 7 (type: 2, dir: in) enabled
[    4.561603] tegra-xudc-new 3550000.xudc: ep 4 (type: 2, dir: out) enabled
[    4.561636] tegra-xudc-new 3550000.xudc: ep 15 (type: 3, dir: in) enabled
[    4.561655] tegra-xudc-new 3550000.xudc: ep 11 (type: 2, dir: in) enabled
[    4.561682] tegra-xudc-new 3550000.xudc: ep 6 (type: 2, dir: out) enabled
[    4.561774] IPv6: ADDRCONF(NETDEV_CHANGE): rndis0: link becomes ready
[    4.561960] android_work: sent uevent USB_STATE=CONFIGURED
[    4.622019] tegra-xudc-new 3550000.xudc: ep 13 (type: 2, dir: in) enabled
[    4.622038] tegra-xudc-new 3550000.xudc: ep 8 (type: 2, dir: out) enabled
[    4.622184] IPv6: ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready
[    4.624378] tegra-xudc-new 3550000.xudc: ep 13 disabled
[    4.624480] tegra-xudc-new 3550000.xudc: ep 8 disabled
[    4.650704] tegra-xudc-new 3550000.xudc: ep 13 (type: 2, dir: in) enabled
[    4.650722] tegra-xudc-new 3550000.xudc: ep 8 (type: 2, dir: out) enabled
[    5.059406] tegradc 15210000.nvdisplay: unblank
[    5.939918] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[    5.940030] 
           
           Dongle Host Driver, version 1.201.82 (r)
           Compiled from 
[    5.940038] wl_android_wifi_on in
[    5.940043] wifi_platform_set_power = 1
[    6.354102] sdhci-tegra 3440000.sdhci: Tuning done, restoring the best tap value : 66
[    6.354716] F1 signature read @0x18000000=0x17214354
[    6.361264] F1 signature OK, socitype:0x1 chip:0x4354 rev:0x1 pkg:0x2
[    6.361908] DHD: dongle ram size is set to 786432(orig 786432) at 0x180000
[    6.516227] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
[    6.581010] dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
[    6.581271] gpio tegra-gpio-aon wake69 for gpio=59(FF:3)
[    6.581331] gpio tegra-gpio-aon wake69 for gpio=59(FF:3)
[    6.581333] Enabling wake69
[    6.582092] wifi_platform_get_mac_addr
[    6.587572] Firmware up: op_mode=0x0005, MAC=00:04:4b:f8:49:fe
[    6.605021] clm path from default:/lib/firmware/brcm/bcmdhd.clm_blob
[    6.605050] Skipping the clm download. len:0 memblk:          (null)
[    6.608442] dhd_preinit_ioctls pspretend_threshold for HostAPD failed  -23
[    6.615554] Firmware version = wl0: Jul 21 2020 16:35:45 version 7.35.349.94 (r726700 CY) FWID 01-aa356e32
[    6.619254] dhd_interworking_enable: failed to set WNM info, ret=-23
[    6.776319] CFGP2P-ERROR) wl_cfgp2p_add_p2p_disc_if : 
[    6.777047] P2P interface registered
[    6.795225] WLC_E_IF: NO_IF set, event Ignored
[    6.811515] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[    8.407299] fuse init (API version 7.26)
[    8.435681] l4tbr0: port 2(usb0) entered blocking state
[    8.435686] l4tbr0: port 2(usb0) entered forwarding state
[    8.435750] l4tbr0: port 1(rndis0) entered blocking state
[    8.435753] l4tbr0: port 1(rndis0) entered forwarding state
[    8.446451] IPv6: ADDRCONF(NETDEV_UP): l4tbr0: link is not ready
[    8.446543] IPv6: ADDRCONF(NETDEV_CHANGE): l4tbr0: link becomes ready
[    8.518237] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    8.518247] Bluetooth: BNEP socket layer initialized
[    8.787418] [05-14 13:38:48.798] wl_cfg80211_connect: Connectting with b0:95:75:49:90:66 channel (5) ssid "Giraffe360", len (10)

[    8.854440] [05-14 13:38:48.865] wl_notify_connect_status: wl_bss_connect_done succeeded with b0:95:75:49:90:66
[    8.855315] [05-14 13:38:48.866] dhd_dump_eapol_4way_message: ifidx: 0 ETHER_TYPE_802_1X [RX] : M1 of 4way
[    8.872355]  wl_bss_connect_done : 
[    8.872358] Report connect result - connection succeeded
[    8.873327] [05-14 13:38:48.884] dhd_dump_eapol_4way_message: ifidx: 0 ETHER_TYPE_802_1X [TX] : M2 of 4way
[    8.893626] [05-14 13:38:48.904] wl_notify_connect_status: wl_bss_connect_done succeeded with b0:95:75:49:90:66
[    8.895232] [05-14 13:38:48.906] dhd_dump_eapol_4way_message: ifidx: 0 ETHER_TYPE_802_1X [RX] : M3 of 4way
[    8.895445] [05-14 13:38:48.906] dhd_dump_eapol_4way_message: ifidx: 0 ETHER_TYPE_802_1X [TX] : M4 of 4way
[    8.911592] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[    8.969189] dhd_ndo_add_ip: ndo ip addr add failed, ret = -23
[    8.969200] dhd_inet6_work_handler: Adding host ip for NDO failed -23
[    9.033064] ifidx:0 DHCP - REQUEST [TX]
[    9.046826] ifidx:0 DHCP - ACK [RX]
[   11.342585] tegradc 15210000.nvdisplay: unblank
[   31.824698] spmic-ldo0: disabling
[   31.824900] spmic-ldo1: disabling
[   31.825055] en-vdd-sd: disabling
[   31.825059] vdd-usb0-5v: disabling
[   31.825061] vdd-usb1-5v: disabling
[   31.825064] en-vdd-disp-3v3: disabling
[   31.825067] en-mdm-pwr-3v7: disabling
[   31.825069] en-vdd-disp-1v8: disabling
[   31.825071] en-vdd-cam-1v2: disabling
[   31.825073] vdd-fan: disabling
[   31.825075] vdd-3v3: disabling
[   31.825078] en-vdd-vcm-2v8: disabling
[   31.825080] vdd-sys-bl: disabling
[   31.948774] imx283 32-001a: imx283_power_on: power on
[   31.950304] imx283 32-001a: imx283_power_off: power off
[   31.953094] imx283 32-001a: imx283_power_on: power on
[   31.953254] imx283 32-001a: imx283_power_off: power off
[   31.974939] imx283 32-001a: imx283_power_on: power on
[   31.975058] imx283 32-001a: imx283_power_off: power off
[   31.975616] imx283 32-001a: imx283_power_on: power on
[   31.975770] imx283 32-001a: imx283_power_off: power off
[   31.976316] imx283 32-001a: imx283_power_on: power on
[   31.976455] imx283 32-001a: imx283_power_off: power off
[   32.225080] imx283 32-001a: imx283_power_on: power on
[   32.225297] imx283 32-001a: imx283_set_group_hold: setting group hold control to: 1
[   32.225635] imx283 32-001a: imx283_set_frame_rate: setting framerate to 20000000 fps
[   32.227166] imx283 32-001a: imx283_set_group_hold: setting group hold control to: 0
[   32.231331] imx283 32-001a: imx283_set_group_hold: setting group hold control to: 1
[   32.231680] imx283 32-001a: imx283_set_exposure: Ecposure VAL= 33330
[   32.231684] imx283 32-001a: imx283_set_exposure: setting 33330 ns to 1333 on SHR
[   32.231688] imx283 32-001a: imx283_set_exposure: calculated shr 1333 as LSB 0x35 and MSB 0x05
[   32.233107] imx283 32-001a: imx283_set_group_hold: setting group hold control to: 0
[   32.236301] imx283 32-001a: imx283_set_mode: writing mode 0 table
[   32.258571] imx283 32-001a: imx283_set_gain: setting gain control to: 0
[   32.258577] imx283 32-001a: imx283_set_gain: val: 0 (/10) [times], gain: 1024
[   32.258580] imx283 32-001a: imx283_set_exposure: Ecposure VAL= 33330
[   32.258584] imx283 32-001a: imx283_set_exposure: setting 33330 ns to 1333 on SHR
[   32.258587] imx283 32-001a: imx283_set_exposure: calculated shr 1333 as LSB 0x35 and MSB 0x05
[   32.259804] imx283 32-001a: imx283_set_frame_rate: setting framerate to 20000000 fps
[   32.288180] imx283 32-001a: imx283_start_streaming: called, ret:0

As you can see, after the driver sends the start_streaming data table, everything gets stuck. Also I have noticed that the group hold function is not always executing.

Does anyone have any ideas what could be wrong here?

P. S. Also, I don’t know why does it power on and power off so often at start.

Check the trace log if can get more information.

https://elinux.org/Jetson_TX2_Camera_BringUp

I managed to solve the problem. In Libargus trace I had the threads stalling.

NvPHSSendThroughputHints: sensorId=1, m_usecase=4, m_type=15, m_value=0, m_timeout_ms=1000

Created fiber 0x7f48000dd0 for CC 102 globalID 102 session 1
Thread 2 is working on CC 102 session 1 globalID 102 step 0
CC 102 session 1 completed step 0 in fiber 0x7f48000dd0
CC 102 session 1 stalled step 1 in fiber 0x7f48000dd0
FiberScheduler: cc 102, session 1 fiber 0x7f48000dd0 not ready to execute stalled on 0x7f98444f40 stage...

Thread 2 getting next capture
Thread 3 is waiting
CC 101 session 1 completed step 0 in fiber 0x7f48000b20
Thread 2 is waiting
cc 101(1) session 1 runCount=0 runIspOut=0, latest ccId=0
CC 101 session 1 completed step 1 in fiber 0x7f48000b20
Thread 5 is working on CC 102 session 1 globalID 102 step 1
NV AE and AfApply algorithms are active.
cc 102(2) session 1 runCount=1 runIspOut=0, latest ccId=0
CC 102 session 1 completed step 1 in fiber 0x7f48000dd0
CC 102 session 1 stalled step 2 in fiber 0x7f48000dd0
FiberScheduler: cc 102, session 1 fiber 0x7f48000dd0 not ready to execute stalled on 0x7f988ad640 stage...

Thread 5 getting next capture
Thread 5 is waiting
CC 101 session 1 completed step 2 in fiber 0x7f48000b20
Thread 6 is working on CC 102 session 1 globalID 102 step 2
NV AE and AfApply algorithms are active.Thread 4 is waiting

CC 102 session 1 completed step 2 in fiber 0x7f48000dd0
CC 102 session 1 completed step 3 in fiber 0x7f48000dd0
CC 102 session 1 stalled step 4 in fiber 0x7f48000dd0
FiberScheduler: cc 102, session 1 fiber 0x7f48000dd0 not ready to execute stalled on 0x7f989c6660 stage...

Thread 6 getting next capture
Thread 7 is waiting
...

I managed to fix this by recalculating line length and pixel clock in the devicetree file.