Hi
I am testing the stability of GMSL cameras on Jetson AGX Orin 64G, and the camera sensor used is ISX031.
-
Hardware Information:
- max96712 2*4lane(PortA/PortB) D-PHY
- 4*isx031(1920**1536)
-
Software Info: Jetpack 6.2 [L4T 36.4.3]
- mipi clock = 1100000000(Other parameters have also been configured)
-
demo process:
- Control the power-off and power-on of the GMSL camera POC, as well as the power-off and power-on of the des.
- Initialize the camera link by sending register configurations via ioctl, including sensors and serdes.
- Capture images via v4l2
-
Issue Description: I repeatedly restart the demo to verify camera stability. Occasionally, four cameras fail to capture images. Without performing any other operations, re-capturing images using the following commands will restore normal functionality.
- v4l2-ctl --set-fmt-video=width=1920,height=1536 --stream-mmap --stream-count=10000000000 -d /dev/video0
- v4l2-ctl --set-fmt-video=width=1920,height=1536 --stream-mmap --stream-count=10000000000 -d /dev/video1
- v4l2-ctl --set-fmt-video=width=1920,height=1536 --stream-mmap --stream-count=10000000000 -d /dev/video2
- v4l2-ctl --set-fmt-video=width=1920,height=1536 --stream-mmap --stream-count=10000000000 -d /dev/video3
-
Below are the logs and screenshots obtained from the tests.
The output_80..log is the log generated when an error occurred during the 80th launch of the demo. -
An error may occur once after running the demo hundreds of times, or sometimes just dozens of times. The occurrence probability is highly unstable.
-
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 2 > /sys/kernel/debug/camrtc/log-level echo 1 > /sys/kernel/debug/tracing/events/camera_common/enable echo > /sys/kernel/debug/tracing/tracecamera_demo-15123 [008] ....... 1733.954916: tegra_channel_open: vi-output, imx185 2-001b camera_demo-15123 [008] ....... 1733.955113: tegra_channel_close: vi-output, imx185 2-001b camera_demo-15123 [008] ....... 1734.227359: tegra_channel_open: vi-output, imx185 2-001c camera_demo-15123 [008] ....... 1734.227602: tegra_channel_close: vi-output, imx185 2-001c camera_demo-15123 [008] ....... 1734.496119: tegra_channel_open: vi-output, imx185 2-001d camera_demo-15123 [008] ....... 1734.496219: tegra_channel_close: vi-output, imx185 2-001d camera_demo-15123 [008] ....... 1734.769085: tegra_channel_open: vi-output, imx185 2-001e camera_demo-15123 [008] ....... 1734.769301: tegra_channel_close: vi-output, imx185 2-001e camera_demo-15123 [008] ....... 1734.770686: tegra_channel_open: vi-output, imx185 2-001b camera_demo-15123 [008] ....... 1734.782347: tegra_channel_open: vi-output, imx185 2-001c camera_demo-15123 [008] ....... 1734.792634: tegra_channel_open: vi-output, imx185 2-001d camera_demo-15123 [008] ....... 1734.803037: tegra_channel_open: vi-output, imx185 2-001e camera_demo-15166 [010] ....... 1734.843008: tegra_channel_set_power: imx185 2-001c : 0x1 camera_demo-15165 [011] ....... 1734.843009: tegra_channel_set_power: imx185 2-001b : 0x1 camera_demo-15168 [008] ....... 1734.843011: tegra_channel_set_power: imx185 2-001e : 0x1 camera_demo-15167 [009] ....... 1734.843014: tegra_channel_set_power: imx185 2-001d : 0x1 camera_demo-15166 [010] ....... 1734.843019: camera_common_s_power: status : 0x1 camera_demo-15165 [011] ....... 1734.843020: camera_common_s_power: status : 0x1 camera_demo-15168 [008] ....... 1734.843020: camera_common_s_power: status : 0x1 camera_demo-15167 [009] ....... 1734.843023: camera_common_s_power: status : 0x1 camera_demo-15166 [010] ....... 1734.843905: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x1 camera_demo-15166 [010] ....... 1734.843908: csi_s_power: enable : 0x1 camera_demo-15165 [011] ....... 1734.844369: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x1 camera_demo-15165 [011] ....... 1734.844371: csi_s_power: enable : 0x1 camera_demo-15168 [008] ....... 1734.844504: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x1 camera_demo-15168 [008] ....... 1734.844505: csi_s_power: enable : 0x1 camera_demo-15167 [009] ....... 1734.844634: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x1 camera_demo-15167 [009] ....... 1734.844635: csi_s_power: enable : 0x1 camera_demo-15168 [008] ....... 1734.846157: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1536 fmt 10 camera_demo-15166 [010] ....... 1734.876660: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1536 fmt 10 vi-output, imx1-15169 [007] ....... 1734.876883: vi_task_submit: class_id:48 ch:0 syncpt_id:37 syncpt_thresh:17466 pid:15169 tid:15169 vi-output, imx1-15169 [007] ....... 1734.876900: vi_task_submit: class_id:48 ch:0 syncpt_id:37 syncpt_thresh:17466 pid:15169 tid:15169 camera_demo-15168 [008] ....... 1734.877123: tegra_channel_set_stream: enable : 0x1 camera_demo-15168 [008] ....... 1734.880879: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x1 camera_demo-15168 [008] ....... 1734.880881: csi_s_stream: enable : 0x1 camera_demo-15167 [009] ....... 1734.897677: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1536 fmt 10 vi-output, imx1-15171 [001] ....... 1734.897816: vi_task_submit: class_id:48 ch:1 syncpt_id:40 syncpt_thresh:17460 pid:15171 tid:15171 vi-output, imx1-15171 [001] ....... 1734.897825: vi_task_submit: class_id:48 ch:1 syncpt_id:40 syncpt_thresh:17460 pid:15171 tid:15171 camera_demo-15166 [010] ....... 1734.897915: tegra_channel_set_stream: enable : 0x1 camera_demo-15166 [010] ....... 1734.902365: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x1 camera_demo-15166 [010] ....... 1734.902367: csi_s_stream: enable : 0x1 camera_demo-15165 [008] ....... 1734.918418: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1536 fmt 10 vi-output, imx1-15173 [006] ....... 1734.918543: vi_task_submit: class_id:48 ch:2 syncpt_id:43 syncpt_thresh:17468 pid:15173 tid:15173 vi-output, imx1-15173 [006] ....... 1734.918556: vi_task_submit: class_id:48 ch:2 syncpt_id:43 syncpt_thresh:17468 pid:15173 tid:15173 camera_demo-15167 [009] ....... 1734.918570: tegra_channel_set_stream: enable : 0x1 camera_demo-15167 [009] ....... 1734.921449: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x1 camera_demo-15167 [009] ....... 1734.921451: csi_s_stream: enable : 0x1 camera_demo-15168 [008] ....... 1734.921806: tegra_channel_set_stream: imx185 2-001e : 0x1 camera_demo-15165 [008] ....... 1734.939190: tegra_channel_set_stream: enable : 0x1 vi-output, imx1-15175 [004] ....... 1734.939253: vi_task_submit: class_id:48 ch:3 syncpt_id:46 syncpt_thresh:17420 pid:15175 tid:15175 vi-output, imx1-15175 [004] ....... 1734.939264: vi_task_submit: class_id:48 ch:3 syncpt_id:46 syncpt_thresh:17420 pid:15175 tid:15175 camera_demo-15165 [008] ....... 1734.940809: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x1 camera_demo-15165 [008] ....... 1734.940810: csi_s_stream: enable : 0x1 -
Jan 1 08:29:18 ubuntu kernel: [ 1734.846144] [VI_SETUP] Acquired operation lock for channel 3, vi_port 0 Jan 1 08:29:18 ubuntu kernel: [ 1734.846214] [IVC_REGISTER] Registering control callback: cb_func=00000000bc416144, priv_context=000000001d23a140 Jan 1 08:29:18 ubuntu kernel: [ 1734.855042] [IVC_REGISTER] Control callback registered successfully: trans_id=140, cb_func=00000000bc416144 Jan 1 08:29:18 ubuntu kernel: [ 1734.876595] [IVC_NOTIFY] Channel ID notification: chan_id=0, trans_id=140 Jan 1 08:29:18 ubuntu kernel: [ 1734.876602] [IVC_NOTIFY] Before validation: trans_id=140 cb_func=00000000bc416144, chan_id=0 cb_func=0000000000000000 Jan 1 08:29:18 ubuntu kernel: [ 1734.876607] [IVC_NOTIFY] Callback mapping: trans_id=140 -> chan_id=0, cb_func=00000000bc416144 Jan 1 08:29:18 ubuntu kernel: [ 1734.876611] [IVC_NOTIFY] After mapping: trans_id=140 cb_func=0000000000000000, chan_id=0 cb_func=00000000bc416144 Jan 1 08:29:18 ubuntu kernel: [ 1734.876620] [VI_SETUP] Setup completed successfully, releasing operation lock for channel 3, vi_port 0 Jan 1 08:29:18 ubuntu kernel: [ 1734.876646] [VI_SETUP] Acquired operation lock for channel 1, vi_port 0 Jan 1 08:29:18 ubuntu kernel: [ 1734.876714] [IVC_REGISTER] Registering control callback: cb_func=00000000bc416144, priv_context=000000004e08bf6a Jan 1 08:29:18 ubuntu kernel: [ 1734.876726] [IVC_REGISTER] Control callback registered successfully: trans_id=141, cb_func=00000000bc416144 Jan 1 08:29:18 ubuntu kernel: [ 1734.897605] [IVC_NOTIFY] Channel ID notification: chan_id=1, trans_id=141 Jan 1 08:29:18 ubuntu kernel: [ 1734.897615] [IVC_NOTIFY] Before validation: trans_id=141 cb_func=00000000bc416144, chan_id=1 cb_func=0000000000000000 Jan 1 08:29:18 ubuntu kernel: [ 1734.897625] [IVC_NOTIFY] Callback mapping: trans_id=141 -> chan_id=1, cb_func=00000000bc416144 Jan 1 08:29:18 ubuntu kernel: [ 1734.897632] [IVC_NOTIFY] After mapping: trans_id=141 cb_func=0000000000000000, chan_id=1 cb_func=00000000bc416144 Jan 1 08:29:18 ubuntu kernel: [ 1734.897646] [VI_SETUP] Setup completed successfully, releasing operation lock for channel 1, vi_port 0 Jan 1 08:29:18 ubuntu kernel: [ 1734.897667] [VI_SETUP] Acquired operation lock for channel 2, vi_port 0 Jan 1 08:29:18 ubuntu kernel: [ 1734.897713] [IVC_REGISTER] Registering control callback: cb_func=00000000bc416144, priv_context=00000000c11bd83f Jan 1 08:29:18 ubuntu kernel: [ 1734.897722] [IVC_REGISTER] Control callback registered successfully: trans_id=142, cb_func=00000000bc416144 Jan 1 08:29:18 ubuntu kernel: [ 1734.918372] [IVC_NOTIFY] Channel ID notification: chan_id=2, trans_id=142 Jan 1 08:29:18 ubuntu kernel: [ 1734.918378] [IVC_NOTIFY] Before validation: trans_id=142 cb_func=00000000bc416144, chan_id=2 cb_func=0000000000000000 Jan 1 08:29:18 ubuntu kernel: [ 1734.918383] [IVC_NOTIFY] Callback mapping: trans_id=142 -> chan_id=2, cb_func=00000000bc416144 Jan 1 08:29:18 ubuntu kernel: [ 1734.918387] [IVC_NOTIFY] After mapping: trans_id=142 cb_func=0000000000000000, chan_id=2 cb_func=00000000bc416144 Jan 1 08:29:18 ubuntu kernel: [ 1734.918394] [VI_SETUP] Setup completed successfully, releasing operation lock for channel 2, vi_port 0 Jan 1 08:29:18 ubuntu kernel: [ 1734.918413] [VI_SETUP] Acquired operation lock for channel 0, vi_port 0 Jan 1 08:29:18 ubuntu kernel: [ 1734.918440] [IVC_REGISTER] Registering control callback: cb_func=00000000bc416144, priv_context=00000000a69a46a5 Jan 1 08:29:18 ubuntu kernel: [ 1734.918444] [IVC_REGISTER] Control callback registered successfully: trans_id=143, cb_func=00000000bc416144 Jan 1 08:29:18 ubuntu kernel: [ 1734.939044] [IVC_NOTIFY] Channel ID notification: chan_id=3, trans_id=143 Jan 1 08:29:18 ubuntu kernel: [ 1734.939051] [IVC_NOTIFY] Before validation: trans_id=143 cb_func=00000000bc416144, chan_id=3 cb_func=0000000000000000 Jan 1 08:29:18 ubuntu kernel: [ 1734.939056] [IVC_NOTIFY] Callback mapping: trans_id=143 -> chan_id=3, cb_func=00000000bc416144 Jan 1 08:29:18 ubuntu kernel: [ 1734.939059] [IVC_NOTIFY] After mapping: trans_id=143 cb_func=0000000000000000, chan_id=3 cb_func=00000000bc416144 Jan 1 08:29:18 ubuntu kernel: [ 1734.939066] [VI_SETUP] Setup completed successfully, releasing operation lock for channel 0, vi_port 0 Jan 1 08:29:21 ubuntu kernel: [ 1737.414352] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms Jan 1 08:29:21 ubuntu kernel: [ 1737.414373] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel Jan 1 08:29:21 ubuntu kernel: [ 1737.414377] [VI_RELEASE] Acquired operation lock for channel 1, reset_flags 0x1 Jan 1 08:29:21 ubuntu kernel: [ 1737.414388] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms Jan 1 08:29:21 ubuntu kernel: [ 1737.414404] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel Jan 1 08:29:21 ubuntu kernel: [ 1737.435237] [IVC_UNREGISTER] Unregistering control callback: id=1 Jan 1 08:29:21 ubuntu kernel: [ 1737.435241] [IVC_UNREGISTER] Before unregister: id=1, cb_func=00000000bc416144 Jan 1 08:29:21 ubuntu kernel: [ 1737.435244] [IVC_UNREGISTER] Control callback unregistered: id=1 Jan 1 08:29:21 ubuntu kernel: [ 1737.435256] [VI_RELEASE] Release completed, releasing operation lock for channel 65535 Jan 1 08:29:21 ubuntu kernel: [ 1737.435443] [VI_SETUP] Acquired operation lock for channel 1, vi_port 0 Jan 1 08:29:21 ubuntu kernel: [ 1737.435483] [IVC_REGISTER] Registering control callback: cb_func=00000000bc416144, priv_context=000000009cf7fae6 Jan 1 08:29:21 ubuntu kernel: [ 1737.435487] [IVC_REGISTER] Control callback registered successfully: trans_id=144, cb_func=00000000bc416144 Jan 1 08:29:21 ubuntu kernel: [ 1737.458035] [IVC_NOTIFY] Channel ID notification: chan_id=1, trans_id=144 Jan 1 08:29:21 ubuntu kernel: [ 1737.458041] [IVC_NOTIFY] Before validation: trans_id=144 cb_func=00000000bc416144, chan_id=1 cb_func=0000000000000000 Jan 1 08:29:21 ubuntu kernel: [ 1737.458046] [IVC_NOTIFY] Callback mapping: trans_id=144 -> chan_id=1, cb_func=00000000bc416144 Jan 1 08:29:21 ubuntu kernel: [ 1737.458050] [IVC_NOTIFY] After mapping: trans_id=144 cb_func=0000000000000000, chan_id=1 cb_func=00000000bc416144 Jan 1 08:29:21 ubuntu kernel: [ 1737.458057] [VI_SETUP] Setup completed successfully, releasing operation lock for channel 1, vi_port 0 Jan 1 08:29:21 ubuntu kernel: [ 1737.458065] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel Jan 1 08:29:21 ubuntu kernel: [ 1737.458070] [VI_RELEASE] Acquired operation lock for channel 0, reset_flags 0x1 -
camera_log.zip (1.8 MB)



