Uncorr_err: request timed out after 2500 ms(ORIN NX)

Jetson Module: ORIN NX

We used MIPI access GSML camera, the same set of hardware, in the use of L4T 35.4.1 version, the function is normal.

However, due to the actual requirements of the project, it is necessary to upgrade the system version to L4T 36.3.

During this process, we found that one of the GSML cameras could not preview the video properly, accompanied by the following error message.

[  219.176864] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  219.176890] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  219.177385] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel

The following images are screenshots of the two interface tests. The camera in question opens with a green screen interface.


However, the normal camera can preview the video normally.

The commands to preview the video stream are consistent.

gst-launch-1.0 -v v4l2src device=“/dev/video3” ! video/x-raw,framerate=30/1,width=1920,height=1080 ! xvimagesink

gst-launch-1.0 -v v4l2src device=“/dev/video2” ! video/x-raw,framerate=30/1,width=1920,height=1080 ! xvimagesink

Attached is the dmesg information before and after the system test camera.
dmesg.txt (61.4 KB)
dmesg_test_old.txt (68.4 KB)

To make this easier to distinguish, after testing the camera that previewed the video stream correctly, I plugged and unplugged the keyboard and mouse devices on the device so that I could distinguish the dmesg information generated by testing the problematic camera.

The information about --plink-- in dmesg is simply printed as a breakpoint that we added during the debugging of this version of the driver.

Here is the dts file I used, adapted for the new version.
tegra234-camera-max9296-plink-overlay.zip (3.4 KB)

I hope someone can help to solve this problem, which has been bothering us for half a month

For more logging information

# tracer: nop
#
# entries-in-buffer/entries-written: 106/106   #P:4
#
#                                _-------=> irqs-off
#                               / _------=> need-resched
#                              | / _-----=> need-resched-lazy
#                              || / _----=> hardirq/softirq
#                              ||| / _---=> preempt-depth
#                              |||| / _--=> preempt-lazy-depth
#                              ||||| / _-=> migrate-disable
#                              |||||| /     delay
#           TASK-PID     CPU#  |||||||  TIMESTAMP  FUNCTION
#              | |         |   |||||||      |         |
 vi-output, came-4740    [000] .......  1948.679282: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 10
 vi-output, came-4739    [002] .......  1948.693403: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
 vi-output, came-4739    [002] .......  1948.711958: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
     kworker/1:3-561     [001] .......  1948.718129: rtcpu_vinotify_event: tstamp:61700303389 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1974408414240 data:0x799e300010000000
     kworker/1:3-561     [001] .......  1948.718131: rtcpu_vinotify_event: tstamp:61700303525 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1974408456320 data:0x0000000031000001
     kworker/1:3-561     [001] .......  1948.718132: rtcpu_vinotify_event: tstamp:61700303679 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1974408477984 data:0x0000000007020001
     kworker/1:3-561     [001] .......  1948.718132: rtcpu_vinotify_event: tstamp:61700846557 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1974426958880 data:0x799e2d0010000000
 vi-output, came-4739    [002] .......  1948.730308: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
     kworker/1:3-561     [001] .......  1948.778136: rtcpu_vinotify_event: tstamp:61701388746 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1974427151104 data:0x0000000031000002
 vi-output, came-4740    [000] .......  1951.239293: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 10
 vi-output, came-4739    [002] .......  1951.253464: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
 vi-output, came-4739    [002] .......  1951.271927: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
 vi-output, came-4739    [002] .......  1951.289885: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
     kworker/1:3-561     [001] .......  1951.322088: rtcpu_vinotify_event: tstamp:61780599892 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1976968490656 data:0x799e300010000000
     kworker/1:3-561     [001] .......  1951.322091: rtcpu_vinotify_event: tstamp:61780600053 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1976968532704 data:0x0000000031000001
     kworker/1:3-561     [001] .......  1951.322092: rtcpu_vinotify_event: tstamp:61780600189 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1976968554368 data:0x0000000007020001
     kworker/1:3-561     [001] .......  1951.322093: rtcpu_vinotify_event: tstamp:61780845789 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1976986928736 data:0x799e2d0010000000
     kworker/1:3-561     [001] .......  1951.322094: rtcpu_vinotify_event: tstamp:61780845925 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1976986971488 data:0x0000000031000002
 vi-output, came-4740    [000] .......  1953.799320: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 10
 vi-output, came-4739    [002] .......  1953.813624: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
 vi-output, came-4739    [003] .......  1953.832309: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
 vi-output, came-4739    [002] .......  1953.851604: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
     kworker/1:3-561     [001] .......  1953.866058: rtcpu_vinotify_event: tstamp:61860298831 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1979528658944 data:0x799e300010000000
     kworker/1:3-561     [001] .......  1953.866061: rtcpu_vinotify_event: tstamp:61860298967 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1979528701024 data:0x0000000031000001
     kworker/1:3-561     [001] .......  1953.866062: rtcpu_vinotify_event: tstamp:61860299125 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1979528722688 data:0x0000000007020001
     kworker/1:3-561     [001] .......  1953.866063: rtcpu_vinotify_event: tstamp:61861383430 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1979547323264 data:0x799e2d0010000000
     kworker/1:3-561     [001] .......  1953.866064: rtcpu_vinotify_event: tstamp:61861383587 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1979547366016 data:0x0000000031000002
 vi-output, came-4740    [000] .......  1956.359290: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 10
 vi-output, came-4739    [003] .......  1956.373277: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
 vi-output, came-4739    [003] .......  1956.391751: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
 vi-output, came-4739    [003] .......  1956.410066: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
     kworker/1:3-561     [001] .......  1956.410134: rtcpu_vinotify_event: tstamp:61940594662 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1982088288032 data:0x799e300010000000
     kworker/1:3-561     [001] .......  1956.410136: rtcpu_vinotify_event: tstamp:61940594818 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1982088330112 data:0x0000000031000001
     kworker/1:3-561     [001] .......  1956.410137: rtcpu_vinotify_event: tstamp:61940594953 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1982088351744 data:0x0000000007020001
     kworker/1:3-561     [001] .......  1956.410138: rtcpu_vinotify_event: tstamp:61941137481 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1982106761376 data:0x799e2d0010000000
     kworker/1:3-561     [001] .......  1956.410138: rtcpu_vinotify_event: tstamp:61941137617 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1982106804128 data:0x0000000031000002
 vi-output, came-4740    [000] .......  1958.919275: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 10
 vi-output, came-4739    [002] .......  1958.933249: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
     kworker/1:3-561     [001] .......  1958.946005: rtcpu_vinotify_event: tstamp:62020348110 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1984648252672 data:0x799e300010000000
     kworker/1:3-561     [001] .......  1958.946008: rtcpu_vinotify_event: tstamp:62020348250 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1984648294752 data:0x0000000031000001
     kworker/1:3-561     [001] .......  1958.946009: rtcpu_vinotify_event: tstamp:62020348406 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1984648316416 data:0x0000000007020001
 vi-output, came-4739    [002] .......  1958.951781: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
 vi-output, came-4739    [002] .......  1958.969438: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
     kworker/1:3-561     [001] .......  1959.001997: rtcpu_vinotify_event: tstamp:62020890462 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1984666796544 data:0x799e2d0010000000
     kworker/1:3-561     [001] .......  1959.001998: rtcpu_vinotify_event: tstamp:62020890619 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1984666839264 data:0x0000000031000002
 vi-output, came-4740    [000] .......  1961.478273: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 10
 vi-output, came-4739    [002] .......  1961.493216: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
 vi-output, came-4739    [002] .......  1961.511714: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
 vi-output, came-4739    [002] .......  1961.530115: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
     kworker/1:3-561     [001] .......  1961.533976: rtcpu_vinotify_event: tstamp:62100260036 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1987208227136 data:0x799e300010000000
     kworker/1:3-561     [001] .......  1961.533978: rtcpu_vinotify_event: tstamp:62100752267 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1987208423456 data:0x0000000031000001
     kworker/1:3-561     [001] .......  1961.533979: rtcpu_vinotify_event: tstamp:62100752402 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1987208445152 data:0x0000000007020001
     kworker/1:3-561     [001] .......  1961.533980: rtcpu_vinotify_event: tstamp:62101295069 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1987226710144 data:0x799e2d0010000000
     kworker/1:3-561     [001] .......  1961.533980: rtcpu_vinotify_event: tstamp:62101295208 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1987226752864 data:0x0000000031000002
 vi-output, came-4740    [000] .......  1964.038261: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 10
 vi-output, came-4739    [002] .......  1964.053139: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
     kworker/1:3-561     [001] .......  1964.062075: rtcpu_vinotify_event: tstamp:62180505527 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1989768159808 data:0x799e300010000000
     kworker/1:3-561     [001] .......  1964.062077: rtcpu_vinotify_event: tstamp:62180505663 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1989768201856 data:0x0000000031000001
     kworker/1:3-561     [001] .......  1964.062078: rtcpu_vinotify_event: tstamp:62180505828 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1989768223520 data:0x0000000007020001
 vi-output, came-4739    [002] .......  1964.071654: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
 vi-output, came-4739    [002] .......  1964.089673: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
     kworker/1:3-561     [001] .......  1964.121924: rtcpu_vinotify_event: tstamp:62181047853 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1989786668416 data:0x799e2d0010000000
     kworker/1:3-561     [001] .......  1964.121926: rtcpu_vinotify_event: tstamp:62181048010 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1989786711168 data:0x0000000031000002
 vi-output, came-4740    [000] .......  1966.598273: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 10
 vi-output, came-4739    [002] .......  1966.613139: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
 vi-output, came-4739    [002] .......  1966.631647: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
     kworker/1:3-561     [001] .......  1966.645897: rtcpu_vinotify_event: tstamp:62260258975 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1992328156480 data:0x799e300010000000
     kworker/1:3-561     [001] .......  1966.645900: rtcpu_vinotify_event: tstamp:62260801880 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1992328347872 data:0x0000000031000001
     kworker/1:3-561     [001] .......  1966.645901: rtcpu_vinotify_event: tstamp:62260802017 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1992328369536 data:0x0000000007020001
 vi-output, came-4739    [002] .......  1966.649938: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
     kworker/1:3-561     [001] .......  1966.701893: rtcpu_vinotify_event: tstamp:62261344329 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1992346669696 data:0x799e2d0010000000
     kworker/1:3-561     [001] .......  1966.701896: rtcpu_vinotify_event: tstamp:62261344469 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1992346712416 data:0x0000000031000002
 vi-output, came-4740    [003] .......  1969.158279: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 10
 vi-output, came-4739    [002] .......  1969.173546: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
     kworker/1:3-561     [001] .......  1969.181867: rtcpu_vinotify_event: tstamp:62340272044 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1994888569536 data:0x799e300010000000
     kworker/1:3-561     [001] .......  1969.181870: rtcpu_vinotify_event: tstamp:62340272182 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1994888611616 data:0x0000000031000001
 vi-output, came-4739    [000] .......  1969.191926: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
 vi-output, came-4739    [000] .......  1969.209277: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
     kworker/1:3-561     [001] .......  1969.241973: rtcpu_vinotify_event: tstamp:62340772042 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1994888721536 data:0x0000000007020001
     kworker/1:3-561     [001] .......  1969.241976: rtcpu_vinotify_event: tstamp:62341314745 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1994906916960 data:0x799e2d0010000000
     kworker/1:3-561     [001] .......  1969.241977: rtcpu_vinotify_event: tstamp:62341314901 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1994906959680 data:0x0000000031000002
 vi-output, came-4740    [000] .......  1971.718313: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 10
 vi-output, came-4739    [000] .......  1971.733045: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
 vi-output, came-4739    [000] .......  1971.751069: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
 vi-output, came-4739    [000] .......  1971.768840: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
     kworker/1:3-561     [001] .......  1971.769832: rtcpu_vinotify_event: tstamp:62420525321 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1997448123968 data:0x799e300010000000
     kworker/1:3-561     [001] .......  1971.769834: rtcpu_vinotify_event: tstamp:62420525477 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1997448166016 data:0x0000000031000001
     kworker/1:3-561     [001] .......  1971.769834: rtcpu_vinotify_event: tstamp:62420525615 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:1997448187712 data:0x0000000007020001
     kworker/1:3-561     [001] .......  1971.769835: rtcpu_vinotify_event: tstamp:62421068469 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1997466061664 data:0x799e2d0010000000
     kworker/1:3-561     [001] .......  1971.769835: rtcpu_vinotify_event: tstamp:62421068605 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1997466104416 data:0x0000000031000002
 vi-output, came-4739    [001] .......  1973.501998: vi_task_submit: class_id:48 ch:0 syncpt_id:31 syncpt_thresh:4008 pid:4739 tid:4739
 vi-output, came-4740    [002] .......  1974.246383: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 10
  gst-launch-1.0-4735    [001] .......  1974.246547: tegra_channel_set_stream: enable : 0x0
  gst-launch-1.0-4735    [001] .......  1974.246550: tegra_channel_set_stream: camera_sensor 10-001b : 0x0
  gst-launch-1.0-4735    [001] .......  1974.246561: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x0
  gst-launch-1.0-4735    [001] .......  1974.246563: csi_s_stream: enable : 0x0
  gst-launch-1.0-4735    [001] .......  1974.249185: tegra_channel_set_power: camera_sensor 10-001b : 0x0
  gst-launch-1.0-4735    [001] .......  1974.249192: camera_common_s_power: status : 0x0
  gst-launch-1.0-4735    [001] .......  1974.249200: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x0
  gst-launch-1.0-4735    [001] .......  1974.249202: csi_s_power: enable : 0x0
  gst-launch-1.0-4735    [003] .......  1974.260438: tegra_channel_close: vi-output, camera_sensor 10-001
     kworker/1:3-561     [001] .......  1974.265848: rtcpu_nvcsi_intr: tstamp:62498829629 class:GLOBAL type:STREAM_VC phy:0 cil:0 st:0 vc:1 status:0x00000004
     kworker/1:3-561     [001] .......  1974.265850: rtcpu_nvcsi_intr: tstamp:62498829629 class:CORRECTABLE_ERR type:STREAM_VC phy:0 cil:0 st:0 vc:1 status:0x00000004
     kworker/1:3-561     [001] .......  1974.265850: rtcpu_nvcsi_intr: tstamp:62498865584 class:GLOBAL type:STREAM_VC phy:0 cil:0 st:0 vc:1 status:0x00000004
     kworker/1:3-561     [001] .......  1974.265851: rtcpu_nvcsi_intr: tstamp:62498865584 class:CORRECTABLE_ERR type:STREAM_VC phy:0 cil:0 st:0 vc:1 status:0x00000004
     kworker/1:1-4361    [001] .......  1979.262002: rtcpu_string: tstamp:62655525776 id:0x04010000 str:"VM0 deactivating."

open_camera_failed.txt (11.6 KB)
open_camera_success.txt (1.2 MB)
Full /sys/kernel/debug/tracing/trace log information.

may I know how many cameras in your system, which is the problematic? for instance, which CSI port is video3 used.

There should be four in the normal whole street, but actually only two GSML interfaces are elicited, and the test is performed with only one camera.

In the beginning, video0 and video1, but neither of them could preview the graphics, at least one of them was able to preview the images after modification based on this post.

Both video2 and video3 are connected under this connector.

image
Before opening the camera, it is necessary to initialize the camera through a fixed procedure in order to determine the access to videoX

hello chen.xi,

I’m still don’t understand, which of the camera node is the problematic.
or… when I dig into DTS file, which node should I look into?

This means that my current video2 can preview video stream normally, but video3 can not.

They are actually connected to the same FPC connector. The signal definition of this connector is the screenshot I sent above.

Also, if there is any official documentation for nodes tegra-capture-vi and nvcsi@15a00000 in the Jetson system


In short, as of version 35.4.1, part of the screenshot should be :

port@0   <----->  max9296_a_vi_in0
port@1   <----->  max9296_a_vi_in1
port@2   <----->  max9296_b_vi_in0
port@3   <----->  max9296_b_vi_in1

However, with this configuration, it is not possible to preview the image of any video device in L4T36.3.

video2 can then preview the video stream after changing it to something in a screenshot, or something in the dtsi I uploaded earlier.

The v4l2-ctl command also seems to be looking at the wrong information.

nvidia@tegra-ubuntu:~$ v4l2-ctl --list-devices
NVIDIA Tegra Video Input Device (platform:tegra-camrtc-ca):
        /dev/media0

vi-output, camera_sensor 9-001c (platform:tegra-capture-vi:0):
        /dev/video0
        /dev/video1
        /dev/video2

vi-output, camera_sensor 10-001 (platform:tegra-capture-vi:2):
        /dev/video3


hello chen.xi,

here’re incorrect settings, please update those as 2-lane and using corresponding port index.
num_lanes = 4;
tegra_sinterface = serial_a;

and…
this node did not match to your capture-vi settings, please revise it accordingly.

ports {
    max9296_b_out1: endpoint {
        vc-id = <1>;
        port-index = <3>;   <== it should be port-index = <2>
        bus-width = <2>;
        remote-endpoint = <&max9296_b_csi_in1>;

Is that the correspondence?

CSI0 <----> serial_a
CSI1 <----> serial_b
CSI2 <----> serial_c
CSI3 <----> serial_d

hello chen.xi,

according to your device tree definition, you’ve enabling virtual channel supports, it’s two cameras went through CSI-A (CSI0), and the other two cameras went through CSI-C (CSI2).

Please ask if this thread means:

Jetpack5.1.2
/dev/i2c-9  <---------->  i2c@0   <------------>   CAM0_I2C

but
Jetpack6.0
/dev/i2c-9  <-----------> i2c@1  <------------->  CAM1_I2C

Is that what it means?

hello chen.xi,

A port-index property in the device tree is using to specify the CSI brick.
you may see-also Topic 69753 for reference.

Thank you very much. There is still a question. I have confirmed with the hardware, we actually only receive signals from CSI0 and CSI2, CSI0 and CAM0_I2C in a MIPI connector, CSI2 and CAM1_I2C in a MIPI connector.

Follow my device tree configuration.

sensor connect to CSI-A
Sensor_out (port-index= 0) →CSI_in (port-index= 0) → CSI_out (port-index= 0) → VI_in (port-index= 0)
and tegra_sinterface = serial_a;

sensor connect to CSI-C
Sensor_out (port-index= 2) →CSI_in (port-index= 2) → CSI_out (port-index= 2) → VI_in (port-index= 2)
tegra_sinterface = serial_c;

Is that what it means?

yes, that’s what my previous comment #13 has point-out, please revise that accordingly.

The camera is ready to preview, but there’s still one problem,

Our camera initialization program initialized successfully video2 and video3 can be opened, but this problem does not exist in L4T 35.4.1 version. I tried to modify the order under i2c@0 node, but it did not work.

tegra234-camera-max9296-plink-overlay.zip (3.4 KB)

Can you help me see how I can adjust it to ensure that the application successfully initializes the video device, which is the same as the one successfully opened using GST-launce-1.0? Without changing our program,

hello chen.xi,

did you meant you’re able to stream video3 after modify the device tree port bindings?
what’s the failure now, please open another new thread for tracking new issues.