Testing custom camera with Jetson Tx2

I develop custom camera porting in Jetson Tx2 board.
I registed video device driver. “/dev/video0”

I run the v4l2-compliance command

two fail message as shown below.

	Format ioctls:
		test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK
		fail: v4l2-test-formats.cpp(1184): ret && node->has_frmintervals
		test VIDIOC_G/S_PARM: FAIL
		test VIDIOC_G_FBUF: OK (Not Supported)
		fail: v4l2-test-formats.cpp(434): pixelformat 30314752 (RG10) for buftype 1 not reported by ENUM_FMT
		test VIDIOC_G_FMT: FAIL
		test VIDIOC_TRY_FMT: OK (Not Supported)
		test VIDIOC_S_FMT: OK (Not Supported)
		test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
		test Cropping: OK (Not Supported)
		test Composing: OK (Not Supported)
		test Scaling: OK

	Codec ioctls:
		test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
		test VIDIOC_G_ENC_INDEX: OK (Not Supported)
		test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)

	Buffer ioctls:
		test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK
		fail: v4l2-test-buffers.cpp(574): VIDIOC_EXPBUF is supported, but the V4L2_MEMORY_MMAP support is missing, probably due to earlier failing format tests.
		test VIDIOC_EXPBUF: OK (Not Supported)

I have two questions.

1. Where can i review to fix Video Buffer on v4l2-compliance message. **
** 2. How to use "Trace VI"

so I want to debugging using Trace VI.

I flashed camera-rtcpu-rce.img as link forum.

https://forums.developer.nvidia.com/t/testing-imx204-camera-with-jetson-xavier/75517/36

An error occurred during the flash process.

please, give me some advise.

What’s the BSP version your are using?
The trace bin file looks like for r32.1 only.
You may need to compare your driver with reference driver for the compliance test.

Hi ShaneCCC,

I using bsp l4t.32.3.1 version .

I modified device tree properies and then I remain 1 fail message as shown below

 jpchae@jpchae-desktop:~/Downloads$ v4l2-compliance -d /dev/video0 
v4l2-compliance SHA   : not available

Driver Info:
	Driver name   : tegra-video
	Card type     : vi-output, s5k5e8 2-0018
	Bus info      : platform:15700000.vi:2
	Driver version: 4.9.140
	Capabilities  : 0x84200001
		Video Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps   : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format

Compliance test for device /dev/video0 (not using libv4l2):

Required ioctls:
	test VIDIOC_QUERYCAP: OK

Allow for multiple opens:
	test second video open: OK
	test VIDIOC_QUERYCAP: OK
	test VIDIOC_G/S_PRIORITY: OK
	test for unlimited opens: OK

Debug ioctls:
	test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
	test VIDIOC_LOG_STATUS: OK

Input ioctls:
	test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported)
	test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
	test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported)
	test VIDIOC_ENUMAUDIO: OK (Not Supported)
	test VIDIOC_G/S/ENUMINPUT: OK
	test VIDIOC_G/S_AUDIO: OK (Not Supported)
	Inputs: 1 Audio Inputs: 0 Tuners: 0

Output ioctls:
	test VIDIOC_G/S_MODULATOR: OK (Not Supported)
	test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
	test VIDIOC_ENUMAUDOUT: OK (Not Supported)
	test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
	test VIDIOC_G/S_AUDOUT: OK (Not Supported)
	Outputs: 0 Audio Outputs: 0 Modulators: 0

Input/Output configuration ioctls:
	test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported)
	test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported)
	test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported)
	test VIDIOC_G/S_EDID: OK (Not Supported)

Test input 0:

	Control ioctls:
		test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
		test VIDIOC_QUERYCTRL: OK
		test VIDIOC_G/S_CTRL: OK
		test VIDIOC_G/S/TRY_EXT_CTRLS: OK
		test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
		test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
		Standard Controls: 1 Private Controls: 15

	Format ioctls:
		test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK
		**fail: v4l2-test-formats.cpp(1184): ret && node->has_frmintervals**
		test VIDIOC_G/S_PARM: FAIL
		test VIDIOC_G_FBUF: OK (Not Supported)
		test VIDIOC_G_FMT: OK
		test VIDIOC_TRY_FMT: OK
		test VIDIOC_S_FMT: OK
		test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
		test Cropping: OK (Not Supported)
		test Composing: OK (Not Supported)
		test Scaling: OK (Not Supported)

	Codec ioctls:
		test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
		test VIDIOC_G_ENC_INDEX: OK (Not Supported)
		test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)

	Buffer ioctls:
		test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK
		test VIDIOC_EXPBUF: OK

Test input 0:


Total: 43, Succeeded: 42, Failed: 1, Warnings: 0

I’m running nvgstcamera application ( nvx_sample_nvgstcamera_capture)
error message as shown below.

 jpchae@jpchae-desktop:~/VisionWorks-1.6-Samples/bin/aarch64/linux/release$ ./nvx_sample_nvgstcamera_capture 
VisionWorks library info:
	 VisionWorks version : 1.6.0
	 OpenVX Standard version : 1.1.0

GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected...
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 2608 x 1960 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 0.100000, max 1.600000; Exposure Range min 34000, max 279384000;

GST_ARGUS: 1340 x 980 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 0.100000, max 1.600000; Exposure Range min 34000, max 279384000;

Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:243 Stream failed to connect.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:177 (propagating)
(Argus) Error InvalidState:  (propagating from src/eglstream/FrameConsumerImpl.cpp, function streamEventThread(), line 135)
(Argus) Error InvalidState:  (propagating from src/eglstream/FrameConsumerImpl.cpp, function streamEventThreadStatic(), line 177)
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:654 Frame Rate specified is greater than supported
Segmentation fault (core dumped)

I’m not sure how to fix the error.

Below fail should be the failure from tools .

fail: v4l2-test-formats.cpp(1184): ret && node->has_frmintervals

Please check if v4l2-ctl can capture first than runt nvgstcapture-1.0 to make sure the argus can working well.
Have a check below wiki for error handle. And v4l2-ctl capture command line.

https://elinux.org/Jetson_TX2_Camera_BringUp

v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1

Hi ShaneCCC,

I’m testing v4l2-ctl as your advise.

v4l2-ctl -d /dev/video0 --set-fmt-video=width=2608,height=1960 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1

serial log messages as shown below

[  156.416783] s5k5e8 2-0018: s5k5e8_set_mode: mode 0
[  156.643056] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  156.649604] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  156.659989] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC0 = 0x00000004
[  156.668925] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) INTR_STATUS 0x00000004
[  156.676922] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERR_INTR_STATUS 0x00000004
[  156.907007] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11

Which part should I find and fix?

and I’m didn’t setup enable logs about " Steps to enable more debug messages"

tracing message seup is okay

root@jpchae-desktop:/home/jpchae/Downloads# cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 1560/1560   #P:4
#
#                              _-----=> irqs-off
#                             / _----=> need-resched
#                            | / _---=> hardirq/softirq
#                            || / _--=> preempt-depth
#                            ||| /     delay
#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
          v4l_id-8635  [003] ....   803.894850: tegra_channel_open: vi-output, s5k5e8 2-0018
          v4l_id-8635  [003] ....   803.895857: tegra_channel_set_power: s5k5e8 2-0018 : 0x1
          v4l_id-8635  [003] ....   803.895865: camera_common_s_power: status : 0x1
          v4l_id-8635  [004] ....   803.900231: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x1
          v4l_id-8635  [004] ....   803.900236: csi_s_power: enable : 0x1
          v4l_id-8635  [005] ....   803.901773: tegra_channel_close: vi-output, s5k5e8 2-0018
          v4l_id-8635  [005] ....   803.901779: tegra_channel_set_power: s5k5e8 2-0018 : 0x0
          v4l_id-8635  [005] ....   803.901785: camera_common_s_power: status : 0x0
          v4l_id-8635  [005] ....   803.903896: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x0
          v4l_id-8635  [005] ....   803.903899: csi_s_power: enable : 0x0
        v4l2-ctl-8688  [004] ....   917.213806: tegra_channel_open: vi-output, s5k5e8 2-0018
        v4l2-ctl-8688  [004] ....   917.219153: tegra_channel_set_power: s5k5e8 2-0018 : 0x1
        v4l2-ctl-8688  [004] ....   917.219172: camera_common_s_power: status : 0x1
        v4l2-ctl-8688  [000] ....   917.223739: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x1
        v4l2-ctl-8688  [000] ....   917.223751: csi_s_power: enable : 0x1
        v4l2-ctl-8688  [003] ....   917.247467: tegra_channel_capture_setup: vnc_id 0 W 2608 H 1960 fmt 20
 vi-output, s5k5-8689  [005] ....   917.247562: tegra_channel_set_stream: enable : 0x1
 vi-output, s5k5-8689  [000] ....   917.248948: tegra_channel_set_stream: 150c0000.nvcsi--1 : 0x1
 vi-output, s5k5-8689  [000] ....   917.248950: csi_s_stream: enable : 0x1
 vi-output, s5k5-8689  [000] ....   917.248976: tegra_channel_set_stream: s5k5e8 2-0018 : 0x1
     kworker/0:0-4     [000] ....   917.253826: rtos_queue_peek_from_isr_failed: tstamp:28947837257 queue:0x0b4b4500
     kworker/0:0-4     [000] ....   917.253828: rtcpu_start: tstamp:28947838782
     kworker/0:0-4     [000] ....   917.253830: rtos_queue_send_from_isr_failed: tstamp:28947847723 queue:0x0b4a7258
     kworker/0:0-4     [000] ....   917.253831: rtos_queue_send_from_isr_failed: tstamp:28947847832 queue:0x0b4aad68
     kworker/0:0-4     [000] ....   917.253831: rtos_queue_send_from_isr_failed: tstamp:28947847939 queue:0x0b4ac998
     kworker/0:0-4     [000] ....   917.253832: rtos_queue_send_from_isr_failed: tstamp:28947848047 queue:0x0b4ae518
     kworker/0:0-4     [000] ....   917.253833: rtos_queue_send_from_isr_failed: tstamp:28947848151 queue:0x0b4af2d8
     kworker/0:0-4     [000] ....   917.253833: rtos_queue_send_from_isr_failed: tstamp:28947848253 queue:0x0b4b0098
     kworker/0:0-4     [000] ....   917.253834: rtos_queue_send_from_isr_failed: tstamp:28947848363 queue:0x0b4b0e58
     kworker/0:0-4     [000] ....   917.253835: rtos_queue_send_from_isr_failed: tstamp:28947848470 queue:0x0b4b1c18
     kworker/0:0-4     [000] ....   917.253836: rtos_queue_send_failed: tstamp:28947848932 queue:0x0b4a7258
     kworker/0:0-4     [000] ....   917.253837: rtos_queue_send_from_isr_failed: tstamp:28947850665 queue:0x0b4a7258
     kworker/0:0-4     [000] ....   917.253837: rtos_queue_send_from_isr_failed: tstamp:28947850773 queue:0x0b4aad68
     kworker/0:0-4     [000] ....   917.253838: rtos_queue_send_from_isr_failed: tstamp:28947850879 queue:0x0b4ac998
     kworker/0:0-4     [000] ....   917.253838: rtos_queue_send_from_isr_failed: tstamp:28947850985 queue:0x0b4ae518
     kworker/0:0-4     [000] ....   917.253839: rtos_queue_send_from_isr_failed: tstamp:28947851091 queue:0x0b4af2d8
     kworker/0:0-4     [000] ....   917.253840: rtos_queue_send_from_isr_failed: tstamp:28947851198 queue:0x0b4b0098
     kworker/0:0-4     [000] ....   917.253840: rtos_queue_send_from_isr_failed: tstamp:28947851312 queue:0x0b4b0e58
     kworker/0:0-4     [000] ....   917.253841: rtos_queue_send_from_isr_failed: tstamp:28947851426 queue:0x0b4b1c18
     kworker/0:0-4     [000] ....   917.253841: rtos_queue_send_failed: tstamp:28947852386 queue:0x0b4a7258
 vi-output, s5k5-8689  [000] ....   917.271790: tegra_channel_capture_frame: sof:917.158118043
     kworker/0:0-4     [000] ....   917.309645: rtcpu_vinotify_event: tstamp:28948611029 tag:CHANSEL_PXL_SOF channel:0x00 frame:1 vi_tstamp:28948610509 data:0x00000001
     kworker/0:0-4     [000] ....   917.309649: rtcpu_vinotify_event: tstamp:28948611201 tag:ATOMP_FS channel:0x00 frame:1 vi_tstamp:28948610515 data:0x00000000
     kworker/0:0-4     [000] ....   917.309650: rtcpu_vinotify_event: tstamp:28948614456 tag:CHANSEL_LOAD_FRAMED channel:0x04 frame:1 vi_tstamp:28948614088 data:0x08000000
     kworker/0:0-4     [000] ....   917.309650: rtcpu_vinotify_event: tstamp:28949640216 tag:CSIMUX_FRAME channel:0x00 frame:1 vi_tstamp:28949639495 data:0x00400062
     kworker/0:0-4     [000] ....   917.309651: rtcpu_vinotify_event: tstamp:28949640426 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:1 vi_tstamp:28949639495 data:0x00000001
     kworker/0:0-4     [000] ....   917.309652: rtcpu_vinotify_event: tstamp:28949640568 tag:ATOMP_FE channel:0x00 frame:1 vi_tstamp:28949639498 data:0x00000000
     kworker/0:0-4     [000] ....   917.421746: rtos_queue_peek_from_isr_failed: tstamp:28952837717 queue:0x0b4b4500
 vi-output, s5k5-8689  [005] ....   917.516531: tegra_channel_capture_setup: vnc_id 0 W 2608 H 1960 fmt 20
 vi-output, s5k5-8689  [005] ....   917.516579: tegra_channel_capture_frame: sof:917.158118043
     kworker/0:0-4     [000] ....   917.533657: rtos_queue_send_from_isr_failed: tstamp:28955440884 queue:0x0b4a7258
     kworker/0:0-4     [000] ....   917.533661: rtos_queue_send_from_isr_failed: tstamp:28955441174 queue:0x0b4aad68
     kworker/0:0-4     [000] ....   917.533663: rtos_queue_send_from_isr_failed: tstamp:28955441442 queue:0x0b4ac998
     kworker/0:0-4     [000] ....   917.533664: rtos_queue_send_from_isr_failed: tstamp:28955441712 queue:0x0b4ae518
     kworker/0:0-4     [000] ....   917.533666: rtos_queue_send_from_isr_failed: tstamp:28955441980 queue:0x0b4af2d8
     kworker/0:0-4     [000] ....   917.533668: rtos_queue_send_from_isr_failed: tstamp:28955442250 queue:0x0b4b0098
     kworker/0:0-4     [000] ....   917.533670: rtos_queue_send_from_isr_failed: tstamp:28955442518 queue:0x0b4b0e58
     kworker/0:0-4     [000] ....   917.533671: rtos_queue_send_from_isr_failed: tstamp:28955442794 queue:0x0b4b1c18
     kworker/0:0-4     [000] ....   917.533675: rtos_queue_send_failed: tstamp:28955444323 queue:0x0b4a7258
     kworker/0:0-4     [000] ....   917.533677: rtos_queue_send_from_isr_failed: tstamp:28955451136 queue:0x0b4a7258
     kworker/0:0-4     [000] ....   917.533679: rtos_queue_send_from_isr_failed: tstamp:28955451408 queue:0x0b4aad68
     kworker/0:0-4     [000] ....   917.533681: rtos_queue_send_from_isr_failed: tstamp:28955451677 queue:0x0b4ac998
     kworker/0:0-4     [000] ....   917.533682: rtos_queue_send_from_isr_failed: tstamp:28955451946 queue:0x0b4ae518
     kworker/0:0-4     [000] ....   917.533684: rtos_queue_send_from_isr_failed: tstamp:28955452215 queue:0x0b4af2d8
     kworker/0:0-4     [000] ....   917.533686: rtos_queue_send_from_isr_failed: tstamp:28955452482 queue:0x0b4b0098
     kworker/0:0-4     [000] ....   917.533688: rtos_queue_send_from_isr_failed: tstamp:28955452749 queue:0x0b4b0e58
     kworker/0:0-4     [000] ....   917.533690: rtos_queue_send_from_isr_failed: tstamp:28955453016 queue:0x0b4b1c18
     kworker/0:0-4     [000] ....   917.533692: rtos_queue_send_failed: tstamp:28955454148 queue:0x0b4a7258
     kworker/0:0-4     [000] ....   917.533694: rtos_queue_send_from_isr_failed: tstamp:28956250958 queue:0x0b4a7258
     kworker/0:0-4     [000] ....   917.533695: rtos_queue_send_from_isr_failed: tstamp:28956251145 queue:0x0b4aad68
     kworker/0:0-4     [000] ....   917.533697: rtos_queue_send_from_isr_failed: tstamp:28956251325 queue:0x0b4ac998
     kworker/0:0-4     [000] ....   917.533699: rtos_queue_send_from_isr_failed: tstamp:28956251503 queue:0x0b4ae518
     kworker/0:0-4     [000] ....   917.533701: rtos_queue_send_from_isr_failed: tstamp:28956251684 queue:0x0b4af2d8
     kworker/0:0-4     [000] ....   917.533703: rtos_queue_send_from_isr_failed: tstamp:28956251889 queue:0x0b4b0098
     kworker/0:0-4     [000] ....   917.533705: rtos_queue_send_from_isr_failed: tstamp:28956252095 queue:0x0b4b0e58
     kworker/0:0-4     [000] ....   917.533706: rtos_queue_send_from_isr_failed: tstamp:28956252274 queue:0x0b4b1c18
     kworker/0:0-4     [000] ....   917.533708: rtos_queue_send_failed: tstamp:28956253061 queue:0x0b4a7258
     kworker/0:0-4     [000] ....   917.533710: rtos_queue_send_from_isr_failed: tstamp:28956256436 queue:0x0b4a7258
     kworker/0:0-4     [000] ....   917.533712: rtos_queue_send_from_isr_failed: tstamp:28956256610 queue:0x0b4aad68
     kworker/0:0-4     [000] ....   917.533714: rtos_queue_send_from_isr_failed: tstamp:28956256820 queue:0x0b4ac998
     kworker/0:0-4     [000] ....   917.533716: rtos_queue_send_from_isr_failed: tstamp:28956256997 queue:0x0b4ae518
     kworker/0:0-4     [000] ....   917.533718: rtos_queue_send_from_isr_failed: tstamp:28956257169 queue:0x0b4af2d8
     kworker/0:0-4     [000] ....   917.533719: rtos_queue_send_from_isr_failed: tstamp:28956257343 queue:0x0b4b0098
     kworker/0:0-4     [000] ....   917.533721: rtos_queue_send_from_isr_failed: tstamp:28956257515 queue:0x0b4b0e58
     kworker/0:0-4     [000] ....   917.533723: rtos_queue_send_from_isr_failed: tstamp:28956257690 queue:0x0b4b1c18
     kworker/0:0-4     [000] ....   917.533725: rtos_queue_send_failed: tstamp:28956259826 queue:0x0b4a7258
     kworker/0:0-4     [000] ....   917.533729: rtcpu_vinotify_event: tstamp:28956261343 tag:CSIMUX_STREAM channel:0xff frame:0 vi_tstamp:28956259245 data:0x00000100
 vi-output, s5k5-8689  [000] ....   917.538448: tegra_channel_capture_frame: sof:917.424767357
     kworker/0:0-4     [000] ....   917.589714: rtcpu_vinotify_event: tstamp:28956943878 tag:CHANSEL_PXL_SOF channel:0x00 frame:9 vi_tstamp:28956943320 data:0x00000001
     kworker/0:0-4     [000] ....   917.589719: rtcpu_vinotify_event: tstamp:28956944140 tag:ATOMP_FS channel:0x00 frame:9 vi_tstamp:28956943327 data:0x00000000
     kworker/0:0-4     [000] ....   917.589722: rtcpu_vinotify_event: tstamp:28956947503 tag:CHANSEL_LOAD_FRAMED channel:0x04 frame:9 vi_tstamp:28956947095 data:0x08000000
     kworker/0:0-4     [000] ....   917.589730: rtos_queue_peek_from_isr_failed: tstamp:28957837663 queue:0x0b4b4500
     kworker/0:0-4     [000] ....   917.589733: rtcpu_vinotify_event: tstamp:28957973065 tag:CSIMUX_FRAME channel:0x00 frame:9 vi_tstamp:28957972305 data:0x00400062
     kworker/0:0-4     [000] ....   917.589736: rtcpu_vinotify_event: tstamp:28957973365 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:9 vi_tstamp:28957972305 data:0x00000001
     kworker/0:0-4     [000] ....   917.589738: rtcpu_vinotify_event: tstamp:28957973573 tag:ATOMP_FE channel:0x00 frame:9 vi_tstamp:28957972308 data:0x00000000
     kworker/0:0-4     [000] ....   917.757996: rtos_queue_peek_from_isr_failed: tstamp:28962837776 queue:0x0b4b4500
 vi-output, s5k5-8689  [003] ....   917.784425: tegra_channel_capture_setup: vnc_id 0 W 2608 H 1960 fmt 20
 vi-output, s5k5-8689  [003] ....   917.784483: tegra_channel_capture_frame: sof:917.424767357
 vi-output, s5k5-8689  [000] ....   917.805161: tegra_channel_capture_frame: sof:917.691416768

The trace log show the CHANSEL_SHORT_FRAME, have sensor driver to report less height one by one to figure it out.

Hi ShaneCCC,

Do you mean to test by adjusting the height value of the device tree prorperty?

Yes, sensor driver may need to modify too.
Have a confirm by the v4l2-ctl --list-formats-ext to check the resolution report for your modification.

Hi ShaneCCC,

i’m try to test v4l2-ctl as your advise.
but i’m in trouble with how to debugging to modified parameter.

device-tree property parameters changed active_w, active_h,mclk_multiplier, but still streaming error is not fixed.

here is v4l2-ctl message.

 jpchae@jpchae-desktop:~/Downloads$ v4l2-ctl --all -d /dev/video0 
Driver Info (not using libv4l2):
	Driver name   : tegra-video
	Card type     : vi-output, s5k5e8 2-0018
	Bus info      : platform:15700000.vi:2
	Driver version: 4.9.140
	Capabilities  : 0x84200001
		Video Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps   : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Priority: 2
Video input : 0 (Camera 2: no power)
Format Video Capture:
	Width/Height      : 2608/1960
	Pixel Format      : 'BA10'
	Field             : None
	Bytes per Line    : 5376
	Size Image        : 10536960
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 

Camera Controls

                     group_hold 0x009a2003 (bool)   : default=0 value=0 flags=execute-on-write
                           gain 0x009a2009 (int64)  : min=0 max=0 step=0 default=0 value=0 flags=slider
                       exposure 0x009a200a (int64)  : min=0 max=0 step=0 default=0 value=16000 flags=slider
                     frame_rate 0x009a200b (int64)  : min=0 max=0 step=0 default=0 value=20000000 flags=slider
                    bypass_mode 0x009a2064 (intmenu): min=0 max=1 default=0 value=0
                override_enable 0x009a2065 (intmenu): min=0 max=1 default=0 value=0
                   height_align 0x009a2066 (int)    : min=1 max=16 step=1 default=1 value=1
                     size_align 0x009a2067 (intmenu): min=0 max=2 default=0 value=0
               write_isp_format 0x009a2068 (int)    : min=1 max=1 step=1 default=1 value=1
       sensor_signal_properties 0x009a2069 (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
        sensor_image_properties 0x009a206a (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
      sensor_control_properties 0x009a206b (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
              sensor_dv_timings 0x009a206c (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
               low_latency_mode 0x009a206d (bool)   : default=0 value=0
                   sensor_modes 0x009a2082 (int)    : min=0 max=30 step=1 default=30 value=2 flags=read-only



jpchae@jpchae-desktop:~/Downloads$ v4l2-ctl -L -d /dev/video0 

Camera Controls

                     group_hold 0x009a2003 (bool)   : default=0 value=0 flags=execute-on-write
                           gain 0x009a2009 (int64)  : min=0 max=6 step=1 default=6 value=0 flags=slider
                       exposure 0x009a200a (int64)  : min=16000 max=30088 step=1 default=30088 value=16000 flags=slider
                     frame_rate 0x009a200b (int64)  : min=20000000 max=30000000 step=1 default=30000000 value=20000000 flags=slider
                    bypass_mode 0x009a2064 (intmenu): min=0 max=1 default=0 value=0
				0: 0 (0x0)
				1: 1 (0x1)
                override_enable 0x009a2065 (intmenu): min=0 max=1 default=0 value=0
				0: 0 (0x0)
				1: 1 (0x1)
                   height_align 0x009a2066 (int)    : min=1 max=16 step=1 default=1 value=1
                     size_align 0x009a2067 (intmenu): min=0 max=2 default=0 value=0
				0: 1 (0x1)
				1: 65536 (0x10000)
				2: 131072 (0x20000)
               write_isp_format 0x009a2068 (int)    : min=1 max=1 step=1 default=1 value=1
       sensor_signal_properties 0x009a2069 (u32)    : min=0 max=4294967295 step=1 default=0 [30][18] flags=read-only, has-payload
        sensor_image_properties 0x009a206a (u32)    : min=0 max=4294967295 step=1 default=0 [30][16] flags=read-only, has-payload
      sensor_control_properties 0x009a206b (u32)    : min=0 max=4294967295 step=1 default=0 [30][36] flags=read-only, has-payload
              sensor_dv_timings 0x009a206c (u32)    : min=0 max=4294967295 step=1 default=0 [30][16] flags=read-only, has-payload
               low_latency_mode 0x009a206d (bool)   : default=0 value=0
                   sensor_modes 0x009a2082 (int)    : min=0 max=30 step=1 default=30 value=2 flags=read-only

also i read the web-page “https://elinux.org/Jetson_TX2_Camera_BringUp
I don’t understand what that mean to trace data.
could you be more specific know me how to debugging changing parameter.

You may need to modify the below struct reduce the {2592, 1944} to report the resolution and active_x*
And confirm your modification are take effect by v4l2-ctl --list-formats-ext (check the Width/Height : 2608/1960)

For your case you need to decrease one by on from 1960 to try.

static const struct camera_common_frmfmt ov5693_frmfmt[] = {
    {{2592, 1944},	ov5693_30fps,	1, 0,	OV5693_MODE_2592X1944},

Hi ShaneCCC,

I review mode_tbls.h as shown below.
There are no inconsistent variables.

enum {
	S5K5E8_MODE_2608X1960,
	S5K5E8_MODE_1304x980,
	S5K5E8_MODE_START_STREAM,
	S5K5E8_MODE_STOP_STREAM,
	S5K5E8_MODE_TEST_PATTERN
};

static const s5k5e8_reg *mode_table[] = {
	[S5K5E8_MODE_2608X1960]			= mode_2608x1960,
	[S5K5E8_MODE_1304x980]			= mode_1304x980,
	[S5K5E8_MODE_START_STREAM]		= S5K5E8_start,
	[S5K5E8_MODE_STOP_STREAM]		= S5K5E8_stop,
	[S5K5E8_MODE_TEST_PATTERN]		= tp_colorbars,
};

static const int S5K5E8_15fps[] = {
	15,
};

static const int S5K5E8_24fps[] = {
	24,
};

static const int S5K5E8_30fps[] = {
	30,
};

static const int S5K5E8_60fps[] = {
	60,
};

static const struct camera_common_frmfmt s5k5e8_frmfmt[] = {
	{{2608, 1960},	S5K5E8_30fps,	1, 0,	S5K5E8_MODE_2608X1960},
	{{1304, 980},	S5K5E8_60fps,	1, 0,	S5K5E8_MODE_1304x980},

};

Do you mean to test by modified hieght value(1960) in mode_tbls.h or device-tree(dtsi)?

Suppose modify the {2608, 1960} and check if it the height was change, then you can try to reduce it one by one and check the trace if the CHANSEL_SHORT_FRAME was gone.

Hi ShaneCCC,

Thank you for your advise.

now command is okay without any error , it make raw file.
v4l2-ctl --set-fmt-video=width=2608,hright=1960, --stream-mmap --stream-count=1 -d /dev/video0 --stream-to=s5k5e8.raw

However, to determine if the source file is correct, I don’t know how to view the raw file.
Please, tell me how to check.

Check if can get preview by nvgstcaptrue-1.0

Hi, ShaneCCC,

I was test nvgstcapture. but it not working.

The screen ran for a while and then disappeared.
It did not work and was forcibly terminated.

it is serial log and trace log message

jpchae-desktop login: [  167.319870] s5k5e8 2-0018: s5k5e8_set_mode: mode 0
 167.368835] s5k5e8 2-0018: s5k5e8_start_streaming: start streaming
[  167.427400] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 49 (15700000.vi_2) clientid 20, HW thresh 0, done 1
[  167.438202] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 48 (15700000.vi_1) clientid 20, HW thresh 1, done 1
[  167.448887] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 47 (15700000.vi_0) clientid 20, HW thresh 1, done 1
[  173.648093] host1x 13e10000.host1x: CaptureSchedule: syncpoint id 39 (15600000.isp_nvargus-daemon_4) stuck waiting 18, timeout                            =-1
[  177.488124] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 35 (15600000.isp_nvargus-daemon_0) clientid 11, HW thresh 0,                             done 2
[  177.500176] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 36 (15600000.isp_nvargus-daemon_1) clientid 11, HW thresh 0,                             done 1
[  177.513110] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 37 (15600000.isp_nvargus-daemon_2) clientid 11, HW thresh 0,                             done 1
[  177.525117] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 38 (15600000.isp_nvargus-daemon_3) clientid 11, HW thresh 0,                             done 1
[  177.537151] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 40 (15600000.isp_nvargus-daemon_5) clientid 11, HW thresh 0,                             done 1
[  177.549243] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 39 (15600000.isp_nvargus-daemon_4) clientid 11, HW thresh 15                            , done 15
[  187.728180] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 35 (15600000.isp_nvargus-daemon_0) clientid 11, HW thresh 4,                             done 6
[  187.740194] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 36 (15600000.isp_nvargus-daemon_1) clientid 11, HW thresh 2,                             done 3
[  187.752193] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 37 (15600000.isp_nvargus-daemon_2) clientid 11, HW thresh 2,                             done 3
[  187.764189] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 38 (15600000.isp_nvargus-daemon_3) clientid 11, HW thresh 2,                             done 3
[  187.776185] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 40 (15600000.isp_nvargus-daemon_5) clientid 11, HW thresh 2,                             done 3
[  187.788177] host1x 13e10000.host1x: cdma_handle_timeout: timeout: 39 (15600000.isp_nvargus-daemon_4) clientid 11, HW thresh 31                            , done 31


root@jpchae-desktop:/home/jpchae# cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 493/493   #P:4
#
#                              _-----=> irqs-off
#                             / _----=> need-resched
#                            | / _---=> hardirq/softirq
#                            || / _--=> preempt-depth
#                            ||| /     delay
#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
 gst-plugin-scan-8419  [005] ....   166.566215: tegra_channel_open: vi-output, s5k5e8 2-0018
 gst-plugin-scan-8419  [000] ....   166.567294: tegra_channel_set_power: s5k5e8 2-0018 : 0x1
 gst-plugin-scan-8419  [000] ....   166.567304: camera_common_s_power: status : 0x1
 gst-plugin-scan-8419  [000] ....   166.571678: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x1
 gst-plugin-scan-8419  [000] ....   166.571681: csi_s_power: enable : 0x1
 gst-plugin-scan-8419  [003] ....   166.574945: tegra_channel_close: vi-output, s5k5e8 2-0018
 gst-plugin-scan-8419  [003] ....   166.574953: tegra_channel_set_power: s5k5e8 2-0018 : 0x0
 gst-plugin-scan-8419  [003] ....   166.574960: camera_common_s_power: status : 0x0
 gst-plugin-scan-8419  [003] ....   166.577082: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x0
 gst-plugin-scan-8419  [003] ....   166.577084: csi_s_power: enable : 0x0
  nvargus-daemon-8428  [003] ....   167.036562: tegra_channel_open: vi-output, s5k5e8 2-0018
  nvargus-daemon-8428  [003] ....   167.036571: tegra_channel_set_power: s5k5e8 2-0018 : 0x1
  nvargus-daemon-8428  [003] ....   167.036578: camera_common_s_power: status : 0x1
  nvargus-daemon-8428  [003] ....   167.040900: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x1
  nvargus-daemon-8428  [003] ....   167.040902: csi_s_power: enable : 0x1
  nvargus-daemon-8428  [003] ....   167.040990: tegra_channel_close: vi-output, s5k5e8 2-0018
  nvargus-daemon-8428  [003] ....   167.040993: tegra_channel_set_power: s5k5e8 2-0018 : 0x0
  nvargus-daemon-8428  [003] ....   167.040996: camera_common_s_power: status : 0x0
  nvargus-daemon-8428  [003] ....   167.043082: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x0
  nvargus-daemon-8428  [003] ....   167.043083: csi_s_power: enable : 0x0
  nvargus-daemon-8428  [003] ....   167.045550: tegra_channel_open: vi-output, s5k5e8 2-0018
  nvargus-daemon-8428  [003] ....   167.045554: tegra_channel_set_power: s5k5e8 2-0018 : 0x1
  nvargus-daemon-8428  [003] ....   167.045558: camera_common_s_power: status : 0x1
  nvargus-daemon-8428  [003] ....   167.049854: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x1
  nvargus-daemon-8428  [003] ....   167.049856: csi_s_power: enable : 0x1
  nvargus-daemon-8428  [003] ....   167.049916: tegra_channel_close: vi-output, s5k5e8 2-0018
  nvargus-daemon-8428  [003] ....   167.049918: tegra_channel_set_power: s5k5e8 2-0018 : 0x0
  nvargus-daemon-8428  [003] ....   167.049921: camera_common_s_power: status : 0x0
  nvargus-daemon-8428  [003] ....   167.052190: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x0
  nvargus-daemon-8428  [003] ....   167.052191: csi_s_power: enable : 0x0
  nvargus-daemon-8428  [000] ....   167.065656: tegra_channel_open: vi-output, s5k5e8 2-0018
  nvargus-daemon-8428  [000] ....   167.065664: tegra_channel_set_power: s5k5e8 2-0018 : 0x1
  nvargus-daemon-8428  [000] ....   167.065672: camera_common_s_power: status : 0x1
  nvargus-daemon-8428  [003] ....   167.070008: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x1
  nvargus-daemon-8428  [003] ....   167.070013: csi_s_power: enable : 0x1
  nvargus-daemon-8428  [003] ....   167.070043: tegra_channel_close: vi-output, s5k5e8 2-0018
  nvargus-daemon-8428  [003] ....   167.070045: tegra_channel_set_power: s5k5e8 2-0018 : 0x0
  nvargus-daemon-8428  [003] ....   167.070051: camera_common_s_power: status : 0x0
  nvargus-daemon-8428  [003] ....   167.072150: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x0
  nvargus-daemon-8428  [003] ....   167.072151: csi_s_power: enable : 0x0
  nvargus-daemon-8428  [003] ....   167.072419: tegra_channel_open: vi-output, s5k5e8 2-0018
  nvargus-daemon-8428  [003] ....   167.072424: tegra_channel_set_power: s5k5e8 2-0018 : 0x1
  nvargus-daemon-8428  [003] ....   167.072428: camera_common_s_power: status : 0x1
  nvargus-daemon-8428  [003] ....   167.076724: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x1
  nvargus-daemon-8428  [003] ....   167.076725: csi_s_power: enable : 0x1
  nvargus-daemon-8428  [003] ....   167.076799: tegra_channel_close: vi-output, s5k5e8 2-0018
  nvargus-daemon-8428  [003] ....   167.076801: tegra_channel_set_power: s5k5e8 2-0018 : 0x0
  nvargus-daemon-8428  [003] ....   167.076805: camera_common_s_power: status : 0x0
  nvargus-daemon-8428  [003] ....   167.078891: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x0
  nvargus-daemon-8428  [003] ....   167.078891: csi_s_power: enable : 0x0
  nvargus-daemon-8428  [003] ....   167.079122: tegra_channel_open: vi-output, s5k5e8 2-0018
  nvargus-daemon-8428  [003] ....   167.079125: tegra_channel_set_power: s5k5e8 2-0018 : 0x1
  nvargus-daemon-8428  [003] ....   167.079128: camera_common_s_power: status : 0x1
  nvargus-daemon-8428  [003] ....   167.083406: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x1
  nvargus-daemon-8428  [003] ....   167.083407: csi_s_power: enable : 0x1
  nvargus-daemon-8428  [003] ....   167.083463: tegra_channel_close: vi-output, s5k5e8 2-0018
  nvargus-daemon-8428  [003] ....   167.083465: tegra_channel_set_power: s5k5e8 2-0018 : 0x0
  nvargus-daemon-8428  [003] ....   167.083468: camera_common_s_power: status : 0x0
  nvargus-daemon-8428  [003] ....   167.085561: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x0
  nvargus-daemon-8428  [003] ....   167.085562: csi_s_power: enable : 0x0
     kworker/3:1-1476  [003] ....   167.160041: rtos_queue_peek_from_isr_failed: tstamp:5505892249 queue:0x0b4b4500
     kworker/3:1-1476  [003] ....   167.160045: rtcpu_start: tstamp:5505893560
     kworker/3:1-1476  [003] ....   167.160047: rtos_queue_send_from_isr_failed: tstamp:5505901573 queue:0x0b4a7258
     kworker/3:1-1476  [003] ....   167.160048: rtos_queue_send_from_isr_failed: tstamp:5505901687 queue:0x0b4aad68
     kworker/3:1-1476  [003] ....   167.160048: rtos_queue_send_from_isr_failed: tstamp:5505901795 queue:0x0b4ac998
     kworker/3:1-1476  [003] ....   167.160049: rtos_queue_send_from_isr_failed: tstamp:5505901903 queue:0x0b4ae518
     kworker/3:1-1476  [003] ....   167.160050: rtos_queue_send_from_isr_failed: tstamp:5505902006 queue:0x0b4af2d8
     kworker/3:1-1476  [003] ....   167.160050: rtos_queue_send_from_isr_failed: tstamp:5505902113 queue:0x0b4b0098
     kworker/3:1-1476  [003] ....   167.160051: rtos_queue_send_from_isr_failed: tstamp:5505902216 queue:0x0b4b0e58
     kworker/3:1-1476  [003] ....   167.160052: rtos_queue_send_from_isr_failed: tstamp:5505902320 queue:0x0b4b1c18
     kworker/3:1-1476  [003] ....   167.160053: rtos_queue_send_failed: tstamp:5505902818 queue:0x0b4a7258
     kworker/3:1-1476  [003] ....   167.272075: rtos_queue_peek_from_isr_failed: tstamp:5510892622 queue:0x0b4b4500
 CaptureSchedule-8447  [000] ....   167.310512: tegra_channel_open: vi-output, s5k5e8 2-0018
 CaptureSchedule-8447  [000] ....   167.310521: tegra_channel_set_power: s5k5e8 2-0018 : 0x1
 CaptureSchedule-8447  [000] ....   167.310529: camera_common_s_power: status : 0x1
 CaptureSchedule-8447  [000] ....   167.314874: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x1
 CaptureSchedule-8447  [000] ....   167.314879: csi_s_power: enable : 0x1
 CaptureSchedule-8447  [003] ....   167.317806: tegra_channel_set_stream: enable : 0x1
 CaptureSchedule-8447  [000] ....   167.319848: tegra_channel_set_stream: 150c0000.nvcsi--1 : 0x1
 CaptureSchedule-8447  [000] ....   167.319853: csi_s_stream: enable : 0x1
 CaptureSchedule-8447  [000] ....   167.319854: tegra_channel_set_stream: s5k5e8 2-0018 : 0x1
     kworker/3:1-1476  [003] ....   167.328044: rtos_queue_send_from_isr_failed: tstamp:5512080878 queue:0x0b4a7258
     kworker/3:1-1476  [003] ....   167.328048: rtos_queue_send_from_isr_failed: tstamp:5512080988 queue:0x0b4aad68
     kworker/3:1-1476  [003] ....   167.328049: rtos_queue_send_from_isr_failed: tstamp:5512081094 queue:0x0b4ac998
     kworker/3:1-1476  [003] ....   167.328049: rtos_queue_send_from_isr_failed: tstamp:5512081201 queue:0x0b4ae518
     kworker/3:1-1476  [003] ....   167.328050: rtos_queue_send_from_isr_failed: tstamp:5512081304 queue:0x0b4af2d8
     kworker/3:1-1476  [003] ....   167.328050: rtos_queue_send_from_isr_failed: tstamp:5512081409 queue:0x0b4b0098
     kworker/3:1-1476  [003] ....   167.328051: rtos_queue_send_from_isr_failed: tstamp:5512081513 queue:0x0b4b0e58
     kworker/3:1-1476  [003] ....   167.328052: rtos_queue_send_from_isr_failed: tstamp:5512081622 queue:0x0b4b1c18
     kworker/3:1-1476  [003] ....   167.328053: rtos_queue_send_failed: tstamp:5512082078 queue:0x0b4a7258
     kworker/3:1-1476  [003] ....   167.328054: rtos_queue_send_from_isr_failed: tstamp:5512305785 queue:0x0b4a7258
     kworker/3:1-1476  [003] ....   167.328054: rtos_queue_send_from_isr_failed: tstamp:5512305894 queue:0x0b4aad68
     kworker/3:1-1476  [003] ....   167.328055: rtos_queue_send_from_isr_failed: tstamp:5512305999 queue:0x0b4ac998
     kworker/3:1-1476  [003] ....   167.328055: rtos_queue_send_from_isr_failed: tstamp:5512306105 queue:0x0b4ae518
     kworker/3:1-1476  [003] ....   167.328056: rtos_queue_send_from_isr_failed: tstamp:5512306209 queue:0x0b4af2d8
     kworker/3:1-1476  [003] ....   167.328057: rtos_queue_send_from_isr_failed: tstamp:5512306314 queue:0x0b4b0098
     kworker/3:1-1476  [003] ....   167.328057: rtos_queue_send_from_isr_failed: tstamp:5512306418 queue:0x0b4b0e58
     kworker/3:1-1476  [003] ....   167.328058: rtos_queue_send_from_isr_failed: tstamp:5512306525 queue:0x0b4b1c18
     kworker/3:1-1476  [003] ....   167.328058: rtos_queue_send_failed: tstamp:5512306969 queue:0x0b4a7258
     kworker/3:1-1476  [003] ....   167.440045: rtos_queue_send_from_isr_failed: tstamp:5514742796 queue:0x0b4a7258
     kworker/3:1-1476  [003] ....   167.440048: rtos_queue_send_from_isr_failed: tstamp:5514742917 queue:0x0b4aad68
     kworker/3:1-1476  [003] ....   167.440049: rtos_queue_send_from_isr_failed: tstamp:5514743023 queue:0x0b4ac998
     kworker/3:1-1476  [003] ....   167.440050: rtos_queue_send_from_isr_failed: tstamp:5514743140 queue:0x0b4ae518
     kworker/3:1-1476  [003] ....   167.440050: rtos_queue_send_from_isr_failed: tstamp:5514743245 queue:0x0b4af2d8
     kworker/3:1-1476  [003] ....   167.440051: rtos_queue_send_from_isr_failed: tstamp:5514743351 queue:0x0b4b0098
     kworker/3:1-1476  [003] ....   167.440051: rtos_queue_send_from_isr_failed: tstamp:5514743458 queue:0x0b4b0e58
     kworker/3:1-1476  [003] ....   167.440052: rtos_queue_send_from_isr_failed: tstamp:5514743562 queue:0x0b4b1c18
     kworker/3:1-1476  [003] ....   167.440054: rtos_queue_send_failed: tstamp:5514744530 queue:0x0b4a7258
     kworker/3:1-1476  [003] ....   167.440055: rtcpu_vinotify_event: tstamp:5515752308 tag:ISPBUF_FS channel:0x00 frame:2 vi_tstamp:5515751504 data:0x00000000
     kworker/3:1-1476  [003] ....   167.440056: rtcpu_vinotify_event: tstamp:5515752440 tag:CHANSEL_PXL_SOF channel:0x00 frame:2 vi_tstamp:5515751760 data:0x00000001
     kworker/3:1-1476  [003] ....   167.440056: rtcpu_vinotify_event: tstamp:5515752606 tag:CHANSEL_FAULT channel:0x00 frame:2 vi_tstamp:5515752009 data:0x00000100
     kworker/3:1-1476  [003] ....   167.440056: rtcpu_vinotify_event: tstamp:5515753393 tag:CHANSEL_LOAD_FRAMED channel:0x04 frame:2 vi_tstamp:5515752741 data:0x08000000
     kworker/3:1-1476  [003] ....   167.440057: rtcpu_vinotify_event: tstamp:5515753503 tag:CHANSEL_FAULT_FE channel:0x04 frame:2 vi_tstamp:5515752741 data:0x00000001
     kworker/3:1-1476  [003] ....   167.440057: rtcpu_vinotify_event: tstamp:5515753646 tag:ISPBUF_FE channel:0x00 frame:2 vi_tstamp:5515752743 data:0x00000000
     kworker/3:1-1476  [003] ....   167.440058: rtos_queue_send_from_isr_failed: tstamp:5515771466 queue:0x0b4a7258
     kworker/3:1-1476  [003] ....   167.440059: rtos_queue_send_from_isr_failed: tstamp:5515771579 queue:0x0b4aad68
     kworker/3:1-1476  [003] ....   167.440060: rtos_queue_send_from_isr_failed: tstamp:5515771688 queue:0x0b4ac998
     kworker/3:1-1476  [003] ....   167.440060: rtos_queue_send_from_isr_failed: tstamp:5515771794 queue:0x0b4ae518
     kworker/3:1-1476  [003] ....   167.440061: rtos_queue_send_from_isr_failed: tstamp:5515771899 queue:0x0b4af2d8
     kworker/3:1-1476  [003] ....   167.440061: rtos_queue_send_from_isr_failed: tstamp:5515772004 queue:0x0b4b0098
     kworker/3:1-1476  [003] ....   167.440062: rtos_queue_send_from_isr_failed: tstamp:5515772113 queue:0x0b4b0e58
     kworker/3:1-1476  [003] ....   167.440063: rtos_queue_send_from_isr_failed: tstamp:5515772217 queue:0x0b4b1c18

Did you modify the active_* the same as the driver report?
The trace show the PIXEL_LONG_LINE of CHANSEL_FAULT could be the width bigger as expect.

Could you verify below command can working well for count = 100 to make sure can capture continuously.

v4l2-ctl --set-fmt-video=width=2608,hright=1960, --stream-mmap --set-ctrl bypass_mode=0 --stream-count=100 -d /dev/video0

Hi. ShaneCCC,

I tested it according to your advice

COUNT operates up to 5 times, and if it exceeds, the following error occurs.
In normal operation, connecting an oscilloscope to the MIPI-Positive data line works well, and sometimes it doesn’t work.

[  379.078827] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  379.085319] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  379.097225] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC0 = 0x0000000e
[  379.106027] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC1 = 0x0000000a
[  379.114768] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC2 = 0x00000008
[  379.123500] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) INTR_STATUS 0x0001000c
[  379.131395] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERR_INTR_STATUS 0x0001000c

In my opinion, the parameter value (active *) set now does not have any problem, and the mipi data signal line seems to be unstable in hardware.

But it takes time to change the hardware, so please let me know if there is a way to test and solve it in software.

Looks like you need to fix the signal problem first.