Hello,
I’m working with orin devkit with R35.4.1 and 4 cameras using the LI-XJAV-ADPT-4CAM:
- 2 x IMX492 each with 4 lanes as /dev/video0 and 1
- 2 x IMX415 each with 2 lanes as /dev/video2 and 3
first 3 cameras /dev/video0, 1 and 2 are working with both v4l2 and gstreamer.
last camera /dev/video3 times out waiting for frame:
[ 43.474924] imx415 33-001a: imx415_power_on: power on
[ 43.511509] bwmgr API not supported
[ 48.607130] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[ 48.607546] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 48.608849] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 48.609056] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=4, csi_port=5
[ 48.609337] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 48.609543] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 4 vc- 0
[ 48.610064] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 48.670045] bwmgr API not supported
[ 48.680896] imx415 33-001a: imx415_power_off: power off
I’ve seen this issue many times before and it was always a typo or error in the device tree, but can’t find it this time, and /dev/video2 is working just fine (same sensor).
Capturing the FW loc, I see no interrupt
root@sdj-orindk-01:/home/nvidia# v4l2-ctl --set-fmt-video=width=3864,height=2176,pixelformat=RG10 --set-ctrl sensor_mode=0,bypass_mode=0 --stream-mmap -d3
^C
root@sdj-orindk-01:/home/nvidia# cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 26/26 #P:8
#
# _-----=> irqs-off
# / _----=> need-resched
# | / _---=> hardirq/softirq
# || / _--=> preempt-depth
# ||| / delay
# TASK-PID CPU# |||| TIMESTAMP FUNCTION
# | | | |||| | |
kworker/6:3-506 [006] .... 1027.516683: rtcpu_string: tstamp:32727537958 id:0x04010000 str:"VM0 deactivating."
v4l2-ctl-2827 [002] .... 1029.394437: tegra_channel_open: vi-output, imx415 33-001a
v4l2-ctl-2827 [002] .... 1029.412141: tegra_channel_set_power: imx415 33-001a : 0x1
v4l2-ctl-2827 [002] .... 1029.412153: camera_common_s_power: status : 0x1
v4l2-ctl-2827 [002] .... 1029.435754: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-2827 [002] .... 1029.435758: csi_s_power: enable : 0x1
v4l2-ctl-2827 [002] .... 1029.436338: tegra_channel_capture_setup: vnc_id 0 W 3864 H 2176 fmt c4
v4l2-ctl-2827 [002] .... 1029.443787: tegra_channel_set_stream: enable : 0x1
v4l2-ctl-2827 [002] .... 1029.458134: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-2827 [002] .... 1029.458137: csi_s_stream: enable : 0x1
v4l2-ctl-2827 [002] .... 1029.462052: tegra_channel_set_stream: imx415 33-001a : 0x1
kworker/6:3-506 [006] .... 1029.476456: rtcpu_string: tstamp:32788471414 id:0x04010000 str:"VM0 activating."
kworker/6:3-506 [006] .... 1029.476461: rtcpu_vinotify_event: tstamp:32789143841 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1049235800704 data:0x359e300010000000
kworker/6:3-506 [006] .... 1029.476461: rtcpu_vinotify_event: tstamp:32789143979 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1049235807264 data:0x0000000031000001
kworker/6:3-506 [006] .... 1029.476462: rtcpu_vinotify_event: tstamp:32789144136 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1049235853888 data:0x359e2d0010000000
kworker/6:3-506 [006] .... 1029.476462: rtcpu_vinotify_event: tstamp:32789144269 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1049235860576 data:0x0000000031000002
v4l2-ctl-2827 [002] .... 1031.912607: tegra_channel_close: vi-output, imx415 33-001a
vi-output, imx4-2829 [000] .... 1034.744823: tegra_channel_capture_setup: vnc_id 0 W 3864 H 2176 fmt c4
v4l2-ctl-2827 [002] .... 1034.754490: tegra_channel_set_stream: enable : 0x0
v4l2-ctl-2827 [002] .... 1034.754532: tegra_channel_set_stream: imx415 33-001a : 0x0
v4l2-ctl-2827 [002] .... 1034.807349: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x0
v4l2-ctl-2827 [002] .... 1034.807353: csi_s_stream: enable : 0x0
v4l2-ctl-2827 [000] .... 1034.824535: tegra_channel_set_power: imx415 33-001a : 0x0
v4l2-ctl-2827 [000] .... 1034.824543: camera_common_s_power: status : 0x0
v4l2-ctl-2827 [000] .... 1034.824615: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x0
v4l2-ctl-2827 [000] .... 1034.824618: csi_s_power: enable : 0x0
the same log on the working IMX415 (/dev/video2) gives that PHY_INTR0 interrupt:
kworker/6:3-506 [006] .... 962.205044: rtcpu_vinotify_event: tstamp:30686413453 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:981949271552 data:0x359d580010000000
kworker/6:3-506 [006] .... 962.205045: rtcpu_vinotify_event: tstamp:30686413606 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:981949278112 data:0x0000000031000001
kworker/6:3-506 [006] .... 962.205045: rtcpu_vinotify_event: tstamp:30686413779 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:981949324352 data:0x359d550010000000
kworker/6:3-506 [006] .... 962.205045: rtcpu_vinotify_event: tstamp:30686413910 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:981949331040 data:0x0000000031000002
kworker/6:3-506 [006] .... 962.261195: rtcpu_nvcsi_intr: tstamp:30688012512 class:GLOBAL type:PHY_INTR0 phy:2 cil:0 st:0 vc:0 status:0x01c00000
...
for /dev/video3, I’ve tried using:
- “port-index = <5>;”
- tegra_sinterface = “serial_f”; or “serial_g”
and still have a timeout.
This is the device tree I am using:
tegra234-camera-imx492-dual.dtsi.txt (13.0 KB)
tegra234-p3737-0000-camera-imx492-dual.dtsi.txt (4.1 KB)
here’s the decompiled DTB from target:
dts.txt (463.4 KB)
Any hint as to where to look will be greatly appreciated.
Thanks,
Alain