CSI0/CSI2 camera on NX TX2

Hi,
i have an issue when trying to use camera on CSI2 (tegra_sinterface = “serial_c”;), On NX TX2, with CSI0 (tegra_sinterface = “serial_a”;) it works.
bellow debug traces:

CSI0 → OK

root@jetson-tx2-nx:~# v4l2-ctl -d /dev/video1 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1
[  664.802372] ov5647 10-0036: Set Mode 0
<[  665.788588] ov5647 10-0036: StopStreaming

        v4l2-ctl-444   [004] ....   544.568519: tegra_channel_open: vi-output, ov5647 9-0036
        v4l2-ctl-444   [000] ....   544.569847: tegra_channel_set_power: ov5647 9-0036 : 0x1
        v4l2-ctl-444   [000] ....   544.569856: camera_common_s_power: status : 0x1
        v4l2-ctl-444   [000] ....   544.573997: tegra_channel_set_power: 150c0000.nvcsi--2 : 0x1
        v4l2-ctl-444   [000] ....   544.574000: csi_s_power: enable : 0x1
        v4l2-ctl-444   [004] ....   544.586243: tegra_channel_capture_setup: vnc_id 0 W 2592 H 1944 fmt 20
 vi-output, ov56-445   [005] ....   544.586357: tegra_channel_set_stream: enable : 0x1
 vi-output, ov56-445   [000] ....   544.587497: tegra_channel_set_stream: 150c0000.nvcsi--2 : 0x1
 vi-output, ov56-445   [000] ....   544.587499: csi_s_stream: enable : 0x1
 vi-output, ov56-445   [000] ....   544.587527: tegra_channel_set_stream: ov5647 9-0036 : 0x1
     kworker/4:1-56    [004] ....   544.609349: rtos_queue_peek_from_isr_failed: tstamp:17249388663 queue:0x0b4b4940
     kworker/4:1-56    [004] ....   544.609351: rtcpu_start: tstamp:17249389910
     kworker/4:1-56    [004] ....   544.609353: rtos_queue_send_from_isr_failed: tstamp:17249396816 queue:0x0b4a7698
     kworker/4:1-56    [004] ....   544.609354: rtos_queue_send_from_isr_failed: tstamp:17249396922 queue:0x0b4ab1a8
     kworker/4:1-56    [004] ....   544.609354: rtos_queue_send_from_isr_failed: tstamp:17249397030 queue:0x0b4acdd8
     kworker/4:1-56    [004] ....   544.609355: rtos_queue_send_from_isr_failed: tstamp:17249397139 queue:0x0b4af718
     kworker/4:1-56    [004] ....   544.609356: rtos_queue_send_from_isr_failed: tstamp:17249397265 queue:0x0b4b04d8
     kworker/4:1-56    [004] ....   544.609357: rtos_queue_send_from_isr_failed: tstamp:17249397368 queue:0x0b4b1298
     kworker/4:1-56    [004] ....   544.609358: rtos_queue_send_from_isr_failed: tstamp:17249397472 queue:0x0b4b2058
     kworker/4:1-56    [004] ....   544.609359: rtos_queue_send_failed: tstamp:17249397917 queue:0x0b4a7698
     kworker/4:1-56    [004] ....   544.609360: rtos_queue_send_from_isr_failed: tstamp:17249399521 queue:0x0b4a7698
     kworker/4:1-56    [004] ....   544.609361: rtos_queue_send_from_isr_failed: tstamp:17249399627 queue:0x0b4ab1a8
     kworker/4:1-56    [004] ....   544.609362: rtos_queue_send_from_isr_failed: tstamp:17249399732 queue:0x0b4acdd8
     kworker/4:1-56    [004] ....   544.609362: rtos_queue_send_from_isr_failed: tstamp:17249399841 queue:0x0b4af718
     kworker/4:1-56    [004] ....   544.609363: rtos_queue_send_from_isr_failed: tstamp:17249399946 queue:0x0b4b04d8
     kworker/4:1-56    [004] ....   544.609364: rtos_queue_send_from_isr_failed: tstamp:17249400051 queue:0x0b4b1298
     kworker/4:1-56    [004] ....   544.609365: rtos_queue_send_from_isr_failed: tstamp:17249400156 queue:0x0b4b2058
     kworker/4:1-56    [004] ....   544.609365: rtos_queue_send_failed: tstamp:17249401095 queue:0x0b4a7698
 vi-output, ov56-445   [004] ....   544.678573: tegra_channel_capture_frame: sof:544.660181408
     kworker/4:1-56    [004] ....   544.711347: rtcpu_vinotify_event: tstamp:17252285618 tag:CHANSEL_PXL_SOF channel:0x00 frame:2 vi_tstamp:17252285091 data:0x00000001
     kworker/4:1-56    [004] ....   544.711348: rtcpu_vinotify_event: tstamp:17252285790 tag:ATOMP_FS channel:0x00 frame:2 vi_tstamp:17252285102 data:0x00000000
     kworker/4:1-56    [004] ....   544.711349: rtcpu_vinotify_event: tstamp:17252288133 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:2 vi_tstamp:17252287755 data:0x08000000
 vi-output, ov56-445   [004] ....   544.742529: tegra_channel_capture_frame: sof:544.724149216
     kworker/4:1-56    [004] ....   544.762351: rtcpu_vinotify_event: tstamp:17254260316 tag:CHANSEL_PXL_EOF channel:0x00 frame:2 vi_tstamp:17254259614 data:0x07970002
     kworker/4:1-56    [004] ....   544.762353: rtcpu_vinotify_event: tstamp:17254260435 tag:ATOMP_FE channel:0x00 frame:2 vi_tstamp:17254259669 data:0x00000000
     kworker/4:1-56    [004] ....   544.762354: rtcpu_vinotify_event: tstamp:17254284603 tag:CHANSEL_PXL_SOF channel:0x00 frame:3 vi_tstamp:17254284085 data:0x00000001
     kworker/4:1-56    [004] ....   544.762354: rtcpu_vinotify_event: tstamp:17254284770 tag:ATOMP_FS channel:0x00 frame:3 vi_tstamp:17254284096 data:0x00000000
     kworker/4:1-56    [004] ....   544.762355: rtcpu_vinotify_event: tstamp:17254286750 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:3 vi_tstamp:17254286374 data:0x08000000
     kworker/4:1-56    [004] ....   544.762357: rtos_queue_peek_from_isr_failed: tstamp:17254388978 queue:0x0b4b4940
 vi-output, ov56-445   [004] ....   544.806504: tegra_channel_capture_frame: sof:544.788117024
     kworker/4:1-56    [004] ....   544.813345: rtcpu_vinotify_event: tstamp:17256259309 tag:CHANSEL_PXL_EOF channel:0x00 frame:3 vi_tstamp:17256258608 data:0x07970002
     kworker/4:1-56    [004] ....   544.813347: rtcpu_vinotify_event: tstamp:17256259433 tag:ATOMP_FE channel:0x00 frame:3 vi_tstamp:17256258662 data:0x00000000
     kworker/4:1-56    [004] ....   544.813347: rtcpu_vinotify_event: tstamp:17256283596 tag:CHANSEL_PXL_SOF channel:0x00 frame:4 vi_tstamp:17256283079 data:0x00000001
     kworker/4:1-56    [004] ....   544.813348: rtcpu_vinotify_event: tstamp:17256283760 tag:ATOMP_FS channel:0x00 frame:4 vi_tstamp:17256283090 data:0x00000000
     kworker/4:1-56    [004] ....   544.813349: rtcpu_vinotify_event: tstamp:17256285970 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:4 vi_tstamp:17256285594 data:0x08000000
 vi-output, ov56-445   [004] ....   544.870466: tegra_channel_capture_frame: sof:544.852084864
     kworker/4:1-56    [004] ....   544.915345: rtcpu_vinotify_event: tstamp:17258258301 tag:CHANSEL_PXL_EOF channel:0x00 frame:4 vi_tstamp:17258257602 data:0x07970002
     kworker/4:1-56    [004] ....   544.915348: rtcpu_vinotify_event: tstamp:17258258416 tag:ATOMP_FE channel:0x00 frame:4 vi_tstamp:17258257656 data:0x00000000
     kworker/4:1-56    [004] ....   544.915348: rtcpu_vinotify_event: tstamp:17258282590 tag:CHANSEL_PXL_SOF channel:0x00 frame:5 vi_tstamp:17258282074 data:0x00000001
     kworker/4:1-56    [004] ....   544.915349: rtcpu_vinotify_event: tstamp:17258282756 tag:ATOMP_FS channel:0x00 frame:5 vi_tstamp:17258282085 data:0x00000000
     kworker/4:1-56    [004] ....   544.915350: rtcpu_vinotify_event: tstamp:17258285256 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:5 vi_tstamp:17258284880 data:0x08000000
     kworker/4:1-56    [004] ....   544.915351: rtos_queue_peek_from_isr_failed: tstamp:17259388966 queue:0x0b4b4940
     kworker/4:1-56    [004] ....   544.966344: rtcpu_vinotify_event: tstamp:17260257301 tag:CHANSEL_PXL_EOF channel:0x00 frame:5 vi_tstamp:17260256597 data:0x07970002
     kworker/4:1-56    [004] ....   544.966345: rtcpu_vinotify_event: tstamp:17260257423 tag:ATOMP_FE channel:0x00 frame:5 vi_tstamp:17260256651 data:0x00000000
     kworker/4:1-56    [004] ....   544.966346: rtcpu_vinotify_event: tstamp:17260281586 tag:CHANSEL_PXL_SOF channel:0x00 frame:6 vi_tstamp:17260281068 data:0x00000001
     kworker/4:1-56    [004] ....   544.966347: rtcpu_vinotify_event: tstamp:17260281749 tag:ATOMP_FS channel:0x00 frame:6 vi_tstamp:17260281079 data:0x00000000
        v4l2-ctl-444   [004] ....   544.997633: tegra_channel_capture_done: eof:0.0

CSI2 → KO

     
       v4l2-ctl-447   [004] ....   590.334499: tegra_channel_open: vi-output, ov5647 10-0036
        v4l2-ctl-447   [000] ....   590.335819: tegra_channel_set_power: ov5647 10-0036 : 0x1
        v4l2-ctl-447   [000] ....   590.335828: camera_common_s_power: status : 0x1
        v4l2-ctl-447   [000] ....   590.339975: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x1
        v4l2-ctl-447   [000] ....   590.339977: csi_s_power: enable : 0x1
        v4l2-ctl-447   [004] ....   590.352141: tegra_channel_capture_setup: vnc_id 0 W 2592 H 1944 fmt 20
 vi-output, ov56-448   [005] ....   590.352239: tegra_channel_set_stream: enable : 0x1
 vi-output, ov56-448   [005] ....   590.353416: tegra_channel_set_stream: 150c0000.nvcsi--1 : 0x1
 vi-output, ov56-448   [005] ....   590.353418: csi_s_stream: enable : 0x1
 vi-output, ov56-448   [005] ....   590.353447: tegra_channel_set_stream: ov5647 10-0036 : 0x1
     kworker/4:1-56    [004] ....   590.356345: rtos_queue_peek_from_isr_failed: tstamp:18679572972 queue:0x0b4b4940
     kworker/4:1-56    [004] ....   590.356347: rtcpu_start: tstamp:18679574016
     kworker/4:1-56    [004] ....   590.356349: rtos_queue_send_from_isr_failed: tstamp:18679580787 queue:0x0b4a7698
     kworker/4:1-56    [004] ....   590.356350: rtos_queue_send_from_isr_failed: tstamp:18679580893 queue:0x0b4ab1a8
     kworker/4:1-56    [004] ....   590.356350: rtos_queue_send_from_isr_failed: tstamp:18679581002 queue:0x0b4acdd8
     kworker/4:1-56    [004] ....   590.356351: rtos_queue_send_from_isr_failed: tstamp:18679581114 queue:0x0b4af718
     kworker/4:1-56    [004] ....   590.356352: rtos_queue_send_from_isr_failed: tstamp:18679581217 queue:0x0b4b04d8
     kworker/4:1-56    [004] ....   590.356353: rtos_queue_send_from_isr_failed: tstamp:18679581321 queue:0x0b4b1298
     kworker/4:1-56    [004] ....   590.356354: rtos_queue_send_from_isr_failed: tstamp:18679581426 queue:0x0b4b2058
     kworker/4:1-56    [004] ....   590.356355: rtos_queue_send_failed: tstamp:18679581918 queue:0x0b4a7698
     kworker/4:1-56    [004] ....   590.356356: rtos_queue_send_from_isr_failed: tstamp:18679583864 queue:0x0b4a7698
     kworker/4:1-56    [004] ....   590.356357: rtos_queue_send_from_isr_failed: tstamp:18679583979 queue:0x0b4ab1a8
     kworker/4:1-56    [004] ....   590.356357: rtos_queue_send_from_isr_failed: tstamp:18679584084 queue:0x0b4acdd8
     kworker/4:1-56    [004] ....   590.356358: rtos_queue_send_from_isr_failed: tstamp:18679584193 queue:0x0b4af718
     kworker/4:1-56    [004] ....   590.356359: rtos_queue_send_from_isr_failed: tstamp:18679584298 queue:0x0b4b04d8
     kworker/4:1-56    [004] ....   590.356360: rtos_queue_send_from_isr_failed: tstamp:18679584402 queue:0x0b4b1298
     kworker/4:1-56    [004] ....   590.356361: rtos_queue_send_from_isr_failed: tstamp:18679584506 queue:0x0b4b2058
     kworker/4:1-56    [004] ....   590.356361: rtos_queue_send_failed: tstamp:18679585421 queue:0x0b4a7698
 vi-output, ov56-448   [000] ....   590.444807: tegra_channel_capture_frame: sof:590.426413984
     kworker/4:1-56    [004] ....   590.458346: rtcpu_vinotify_event: tstamp:18682480382 tag:CHANSEL_PXL_SOF channel:0x00 frame:2 vi_tstamp:18682479857 data:0x00000001
     kworker/4:1-56    [004] ....   590.458348: rtcpu_vinotify_event: tstamp:18682480548 tag:ATOMP_FS channel:0x00 frame:2 vi_tstamp:18682479869 data:0x00000000
     kworker/4:1-56    [004] ....   590.458348: rtcpu_vinotify_event: tstamp:18682482974 tag:CHANSEL_LOAD_FRAMED channel:0x04 frame:2 vi_tstamp:18682482593 data:0x08000000
 vi-output, ov56-448   [004] ....   590.508764: tegra_channel_capture_frame: sof:590.490380256
     kworker/4:1-56    [004] ....   590.509347: rtcpu_vinotify_event: tstamp:18684455036 tag:CHANSEL_PXL_EOF channel:0x00 frame:2 vi_tstamp:18684454332 data:0x07970002
     kworker/4:1-56    [004] ....   590.509348: rtcpu_vinotify_event: tstamp:18684455171 tag:ATOMP_FE channel:0x00 frame:2 vi_tstamp:18684454387 data:0x00000000
     kworker/4:1-56    [004] ....   590.509349: rtcpu_vinotify_event: tstamp:18684479318 tag:CHANSEL_PXL_SOF channel:0x00 frame:3 vi_tstamp:18684478803 data:0x00000001
     kworker/4:1-56    [004] ....   590.509350: rtcpu_vinotify_event: tstamp:18684479481 tag:ATOMP_FS channel:0x00 frame:3 vi_tstamp:18684478814 data:0x00000000
     kworker/4:1-56    [004] ....   590.509351: rtcpu_vinotify_event: tstamp:18684481588 tag:CHANSEL_LOAD_FRAMED channel:0x04 frame:3 vi_tstamp:18684481213 data:0x08000000
     kworker/4:1-56    [004] ....   590.560343: rtos_queue_peek_from_isr_failed: tstamp:18684573306 queue:0x0b4b4940
 vi-output, ov56-448   [004] ....   590.572732: tegra_channel_capture_frame: sof:590.554346528
     kworker/4:1-56    [004] ....   590.611344: rtcpu_vinotify_event: tstamp:18686453985 tag:CHANSEL_PXL_EOF channel:0x00 frame:3 vi_tstamp:18686453277 data:0x07970002
     kworker/4:1-56    [004] ....   590.611346: rtcpu_vinotify_event: tstamp:18686454103 tag:ATOMP_FE channel:0x00 frame:3 vi_tstamp:18686453332 data:0x00000000
     kworker/4:1-56    [004] ....   590.611347: rtcpu_vinotify_event: tstamp:18686478268 tag:CHANSEL_PXL_SOF channel:0x00 frame:4 vi_tstamp:18686477749 data:0x00000001
     kworker/4:1-56    [004] ....   590.611348: rtcpu_vinotify_event: tstamp:18686478432 tag:ATOMP_FS channel:0x00 frame:4 vi_tstamp:18686477759 data:0x00000000
     kworker/4:1-56    [004] ....   590.611348: rtcpu_vinotify_event: tstamp:18686480609 tag:CHANSEL_LOAD_FRAMED channel:0x04 frame:4 vi_tstamp:18686480233 data:0x08000000
 vi-output, ov56-448   [004] ....   590.636694: tegra_channel_capture_frame: sof:590.618312736
     kworker/4:1-56    [004] ....   590.662343: rtcpu_vinotify_event: tstamp:18688452921 tag:CHANSEL_PXL_EOF channel:0x00 frame:4 vi_tstamp:18688452222 data:0x07970002
     kworker/4:1-56    [004] ....   590.662345: rtcpu_vinotify_event: tstamp:18688453038 tag:ATOMP_FE channel:0x00 frame:4 vi_tstamp:18688452278 data:0x00000000
     kworker/4:1-56    [004] ....   590.662346: rtcpu_vinotify_event: tstamp:18688477212 tag:CHANSEL_PXL_SOF channel:0x00 frame:5 vi_tstamp:18688476693 data:0x00000001
     kworker/4:1-56    [004] ....   590.662347: rtcpu_vinotify_event: tstamp:18688477378 tag:ATOMP_FS channel:0x00 frame:5 vi_tstamp:18688476704 data:0x00000000
     kworker/4:1-56    [004] ....   590.662347: rtcpu_vinotify_event: tstamp:18688479860 tag:CHANSEL_LOAD_FRAMED channel:0x04 frame:5 vi_tstamp:18688479484 data:0x08000000
     kworker/4:1-56    [004] ....   590.713343: rtos_queue_peek_from_isr_failed: tstamp:18689573298 queue:0x0b4b4940
     kworker/4:1-56    [004] ....   590.713345: rtcpu_vinotify_event: tstamp:18690451869 tag:CHANSEL_PXL_EOF channel:0x00 frame:5 vi_tstamp:18690451169 data:0x07970002
     kworker/4:1-56    [004] ....   590.713346: rtcpu_vinotify_event: tstamp:18690451984 tag:ATOMP_FE channel:0x00 frame:5 vi_tstamp:18690451223 data:0x00000000
     kworker/4:1-56    [004] ....   590.713347: rtcpu_vinotify_event: tstamp:18690476158 tag:CHANSEL_PXL_SOF channel:0x00 frame:6 vi_tstamp:18690475638 data:0x00000001
     kworker/4:1-56    [004] ....   590.713347: rtcpu_vinotify_event: tstamp:18690476323 tag:ATOMP_FS channel:0x00 frame:6 vi_tstamp:18690475650 data:0x00000000
        v4l2-ctl-447   [004] ....   590.763851: tegra_channel_capture_done: eof:0.0

i’m using Mate DevKit.
Could explain the changes between CSI0 and CSI2 (2 Lanes).

Regards.

The KO log tell get the frame data successfully.

yes it woks now.

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