Vc-id walys 0 in Jetpack 6.0 GA

Hi Jetson Team
很抱歉,我觉得用我擅长的中文来描述这个问题比较清楚。我们有个GMSL的方案,是2个des MAX96724带8个ser MAX96717摄像头,这个方案在Jetpack5.1.3上非常成熟稳定。最近我正常往jetpack 6 GA上移植。但是只有video0和video4能工作,能工作的主要原因是他们的vc id默认为0。其他的摄像头需要1,2,3才能工作,但是我打开了tegra-camera的debug,发现vc id总是0. 下面是打开video3的日志。

[   89.741121] t194-nvcsi 13e00000.host1x:nvcsi@15a00000: csi5_power_on
[   89.741820] tegra-camrtc-capture-vi tegra-capture-vi: vi_capture_init++
[   89.741905] tegra-camrtc-capture-vi tegra-capture-vi: step 0  csi_stream_id = 0, virtual_channel_id = 3
[   89.741913] tegra194-vi5 13e00000.host1x:vi0@15c00000: chan flags 4163
[   89.741916] tegra194-vi5 13e00000.host1x:vi0@15c00000: chan mask ffffffffffffffff
[   89.741917] tegra194-vi5 13e00000.host1x:vi0@15c00000: queue depth 4
[   89.741919] tegra194-vi5 13e00000.host1x:vi0@15c00000: request size 384
[   89.741920] tegra194-vi5 13e00000.host1x:vi0@15c00000: csi_stream_id 0
[   89.741922] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi unit id 0
[   89.741923] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi2 chan mask ffffffffffffffff
[   89.749061] tegra194-vi5 13e00000.host1x:vi0@15c00000: 0 GoS tables configured.
[   89.749066] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_ivc_send_control: sending chan_id 91 msg_id 30
[   89.752177] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_ivc_send_control: response chan_id 91 msg_id 17
[   89.752280] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_request: sending chan_id 0 msg_id 1 buf:0
[   89.752296] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_request: sending chan_id 0 msg_id 1 buf:1
[   89.752304] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_request: sending chan_id 0 msg_id 1 buf:2
[   89.752307] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_request: sending chan_id 0 msg_id 1 buf:3
[   89.752315] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_status: waiting for status, timeout:2500 ms
[   89.753217] t194-nvcsi 13e00000.host1x:nvcsi@15a00000: csi5_start_streaming: csi_pt=0, st_id=0, vc_id=0, pg_mode=0x0
[   89.753224] t194-nvcsi 13e00000.host1x:nvcsi@15a00000: phy mode unavailable in props, use default
[   89.753226] t194-nvcsi 13e00000.host1x:nvcsi@15a00000: csi5_stream_set_config: stream_id=0, csi_port=0
[   89.753229] t194-nvcsi 13e00000.host1x:nvcsi@15a00000: cil_settletime is pulled from device of_node
[   89.753235] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_ivc_send_control: sending chan_id 0 msg_id 64
[   89.757590] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_ivc_send_control: response chan_id 0 msg_id 65
[   89.757600] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_ivc_send_control: sending chan_id 0 msg_id 54
[   89.762474] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_ivc_send_control: response chan_id 0 msg_id 55
[   89.763606] max96724 6-0027: update 0 0x40b 0x02 = 0x02
[   89.764702] max96724 6-0027: update 0 0x8a0 0x80 = 0x80
[   92.384735] tegra194-vi5 13e00000.host1x:vi0@15c00000: capture status timed out
[   92.384747] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[   92.384761] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[   92.384765] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_ivc_send_control: sending chan_id 0 msg_id 20
[   92.385489] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_ivc_send_control: response chan_id 0 msg_id 21
[   92.385545] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_shutdown--
[   92.385580] tegra-camrtc-capture-vi tegra-capture-vi: vi_capture_init++
[   92.385650] tegra-camrtc-capture-vi tegra-capture-vi: step 0  csi_stream_id = 0, virtual_channel_id = 3
[   92.385656] tegra194-vi5 13e00000.host1x:vi0@15c00000: chan flags 4163
[   92.385658] tegra194-vi5 13e00000.host1x:vi0@15c00000: chan mask ffffffffffffffff
[   92.385661] tegra194-vi5 13e00000.host1x:vi0@15c00000: queue depth 4
[   92.385662] tegra194-vi5 13e00000.host1x:vi0@15c00000: request size 384
[   92.385664] tegra194-vi5 13e00000.host1x:vi0@15c00000: csi_stream_id 0
[   92.385665] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi unit id 0
[   92.385666] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi2 chan mask ffffffffffffffff
[   92.385695] tegra194-vi5 13e00000.host1x:vi0@15c00000: 0 GoS tables configured.
[   92.385697] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_ivc_send_control: sending chan_id 92 msg_id 30
[   92.386035] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_ivc_send_control: response chan_id 92 msg_id 17
[   92.386040] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[   92.612678] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_request: sending chan_id 0 msg_id 1 buf:0
[   92.612875] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_status: waiting for status, timeout:2500 ms
[   92.803399] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_request: sending chan_id 0 msg_id 1 buf:1
[   92.972260] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_request: sending chan_id 0 msg_id 1 buf:2
[   95.108569] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_request: sending chan_id 0 msg_id 1 buf:3
[   95.116226] tegra194-vi5 13e00000.host1x:vi0@15c00000: capture status timed out
[   95.116239] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[   95.116253] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[   95.116261] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_ivc_send_control: sending chan_id 0 msg_id 20
[   95.117149] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_ivc_send_control: response chan_id 0 msg_id 21
[   95.117237] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_shutdown--
[   95.117276] tegra-camrtc-capture-vi tegra-capture-vi: vi_capture_init++
[   95.117467] tegra-camrtc-capture-vi tegra-capture-vi: step 0  csi_stream_id = 0, virtual_c
[extracted.dts.txt|attachment](upload://a5QYFO4LHsVte4HE7bhu0Rlykwf.txt) (378.7 KB)
hannel_id = 3
[   95.117472] tegra194-vi5 13e00000.host1x:vi0@15c00000: chan flags 4163
[   95.117474] tegra194-vi5 13e00000.host1x:vi0@15c00000: chan mask ffffffffffffffff
[   95.117476] tegra194-vi5 13e00000.host1x:vi0@15c00000: queue depth 4
[   95.117477] tegra194-vi5 13e00000.host1x:vi0@15c00000: request size 384
[   95.117478] tegra194-vi5 13e00000.host1x:vi0@15c00000: csi_stream_id 0
[   95.117479] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi unit id 0
[   95.117480] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi2 chan mask ffffffffffffffff
[   95.117501] tegra194-vi5 13e00000.host1x:vi0@15c00000: 0 GoS tables configured.
[   95.117503] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_ivc_send_control: sending chan_id 93 msg_id 30
[   95.117561] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_ivc_send_control: response chan_id 93 msg_id 17
[   95.117565] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[   95.118803] max96724 6-0027: update 0 0x8a0 0x80 = 0x00
[   95.119878] max96724 6-0027: update 0 0x40b 0x02 = 0x00
[   95.119889] t194-nvcsi 13e00000.host1x:nvcsi@15a00000: csi5_stop_streaming: csi_pt=0, st_id=0, vc_id=0, pg_mode=0x0
[   95.119901] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_control_send_message: NVCSI stream is already closed for this VI channel
[   95.129725] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_ivc_send_control: sending chan_id 0 msg_id 20
[   95.139378] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_ivc_send_control: response chan_id 0 msg_id 21
[   95.139441] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_shutdown--
[   95.139452] t194-nvcsi 13e00000.host1x:nvcsi@15a00000: csi5_power_off

附件中是我dump出来的设备树,这个设备树核心部分跟Jetpack 5.1.3是一样的。还有完整的启动日志。
klog.txt (470.5 KB)
extracted.dts.txt (378.7 KB)

不好意思,已经解决了

BTW,能不能提供debug版本的camera-rtcpu-t234-rce.img固件 ? 这个debug版本的固件对调试camera相关的设备非常有用。

Enable the trace log should be OK?

modprobe rtcpu_debug

echo 1 > /sys/kernel/debug/tracing/tracing_on
echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb
echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable
echo 1 > /sys/kernel/debug/tracing/events/freertos/enable
echo 3 > /sys/kernel/debug/camrtc/log-level
echo 1 > /sys/kernel/debug/tracing/events/camera_common/enable
echo > /sys/kernel/debug/tracing/trace
cat /sys/kernel/debug/tracing/trace

It’s amazing. This works. Thank you. @ShaneCCC

请问是怎么解决的

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.