Camera PXL_SOF syncpt timeout

I have added a ov2775 Sensor to the TX2. The driver code and DTSI ported from the e3326-ov5693.
Now, when i use v4l2-ctl to catpture the raw image, the raw date is all 0x00.
My Capture commond:
v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=BG12 --stream-mmap --stream-count=5 -d /dev/video0 --stream-to=ov2775.raw

Look up the print info, there is a PXL_SOF syncpt timeout err:

Jul 18 14:52:33 tegra-ubuntu kernel: [ 1730.409923] ov5693 2-0036: camera_common_try_fmt: size 1920 x 1080
Jul 18 14:52:33 tegra-ubuntu kernel: [ 1730.416311] ov5693 2-0036: camera_common_s_fmt(12296) size 1920 x 1080
Jul 18 14:52:33 tegra-ubuntu kernel: [ 1730.423227] ov5693 2-0036: camera_common_try_fmt: size 1920 x 1080
Jul 18 14:52:33 tegra-ubuntu kernel: [ 1730.462616] ov5693 2-0036: camera_common_g_fmt++
Jul 18 14:52:33 tegra-ubuntu kernel: [ 1730.468126] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=1080, memFmt=32
Jul 18 14:52:33 tegra-ubuntu kernel: [ 1730.476975] tegra-vi4 15700000.vi: tegra_channel_surface_setup enter: index 0.
Jul 18 14:52:33 tegra-ubuntu kernel: [ 1730.484281] ov5693 2-0036: ov5693_s_stream++: enable = 1
Jul 18 14:52:33 tegra-ubuntu kernel: [ 1730.489721] ov5693 2-0036: ov5693_s_stream: select the mode idex 0
Jul 18 14:52:33 tegra-ubuntu kernel: [ 1730.817046] ov5693 2-0036: ov5693_s_stream–
Jul 18 14:52:33 tegra-ubuntu kernel: [ 1730.848511] video4linux video0: tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc07a4f2c00]
Jul 18 14:52:33 tegra-ubuntu kernel: [ 1730.858147] tegra-vi4 15700000.vi: tegra_channel_surface_setup enter: index 0.
Jul 18 14:52:33 tegra-ubuntu kernel: [ 1730.858175] video4linux video0: tegra_channel_release_frame: vi4 got EOF syncpt buf[ffffffc07a4f2c00]
Jul 18 14:52:33 tegra-ubuntu kernel: [ 1730.858195] video4linux video0: release_buffer: capture init latency is 395 ms
Jul 18 14:52:33 tegra-ubuntu kernel: [ 1730.858209] video4linux video0: release_buffer: release buf[ffffffc07a4f2c00] frame[1] to user-space
Jul 18 14:52:34 tegra-ubuntu kernel: [ 1731.888495] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
Jul 18 14:52:34 tegra-ubuntu kernel: [ 1731.895043] video4linux video0: tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc07a4f1000]
Jul 18 14:52:34 tegra-ubuntu kernel: [ 1731.904669] tegra-vi4 15700000.vi: tegra_channel_surface_setup enter: index 0.
Jul 18 14:52:34 tegra-ubuntu kernel: [ 1731.904708] video4linux video0: tegra_channel_release_frame: vi4 got EOF syncpt buf[ffffffc07a4f1000]
Jul 18 14:52:34 tegra-ubuntu kernel: [ 1731.904730] video4linux video0: release_buffer: release buf[ffffffc07a4f1000] frame[2] to user-space
Jul 18 14:52:35 tegra-ubuntu kernel: [ 1732.928538] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
Jul 18 14:52:35 tegra-ubuntu kernel: [ 1732.935060] video4linux video0: tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc07a4f2800]
Jul 18 14:52:35 tegra-ubuntu kernel: [ 1732.944728] tegra-vi4 15700000.vi: tegra_channel_surface_setup enter: index 0.
Jul 18 14:52:35 tegra-ubuntu kernel: [ 1732.944770] video4linux video0: tegra_channel_release_frame: vi4 got EOF syncpt buf[ffffffc07a4f2800]
Jul 18 14:52:35 tegra-ubuntu kernel: [ 1732.944796] video4linux video0: release_buffer: release buf[ffffffc07a4f2800] frame[3] to user-space
Jul 18 14:52:36 tegra-ubuntu kernel: [ 1733.968534] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
Jul 18 14:52:36 tegra-ubuntu kernel: [ 1733.975057] video4linux video0: tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc07a4f1800]
Jul 18 14:52:36 tegra-ubuntu kernel: [ 1733.984695] tegra-vi4 15700000.vi: tegra_channel_surface_setup enter: index 0.
Jul 18 14:52:36 tegra-ubuntu kernel: [ 1733.984740] video4linux video0: tegra_channel_release_frame: vi4 got EOF syncpt buf[ffffffc07a4f1800]
Jul 18 14:52:36 tegra-ubuntu kernel: [ 1733.984764] video4linux video0: release_buffer: release buf[ffffffc07a4f1800] frame[4] to user-space
Jul 18 14:52:37 tegra-ubuntu kernel: [ 1735.008554] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
Jul 18 14:52:37 tegra-ubuntu kernel: [ 1735.015071] video4linux video0: tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc07a4f2c00]
Jul 18 14:52:37 tegra-ubuntu kernel: [ 1735.024708] tegra-vi4 15700000.vi: tegra_channel_surface_setup enter: index 0.
Jul 18 14:52:37 tegra-ubuntu kernel: [ 1735.024753] video4linux video0: tegra_channel_release_frame: vi4 got EOF syncpt buf[ffffffc07a4f2c00]
Jul 18 14:52:37 tegra-ubuntu kernel: [ 1735.024778] video4linux video0: release_buffer: release buf[ffffffc07a4f2c00] frame[5] to user-space
Jul 18 14:52:38 tegra-ubuntu kernel: [ 1736.048530] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
Jul 18 14:52:38 tegra-ubuntu kernel: [ 1736.055195] video4linux video0: tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc07a4f1000]
Jul 18 14:52:38 tegra-ubuntu kernel: [ 1736.064788] tegra-vi4 15700000.vi: tegra_channel_surface_setup enter: index 0.
Jul 18 14:52:38 tegra-ubuntu kernel: [ 1736.064834] video4linux video0: tegra_channel_release_frame: vi4 got EOF syncpt buf[ffffffc07a4f1000]
Jul 18 14:52:38 tegra-ubuntu kernel: [ 1736.064855] video4linux video0: release_buffer: release buf[ffffffc07a4f1000] frame[6] to user-space
Jul 18 14:52:39 tegra-ubuntu kernel: [ 1737.088514] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
Jul 18 14:52:39 tegra-ubuntu kernel: [ 1737.095037] video4linux video0: tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc07a4f2800]
Jul 18 14:52:39 tegra-ubuntu kernel: [ 1737.104588] tegra-vi4 15700000.vi: tegra_channel_surface_setup enter: index 0.
Jul 18 14:52:39 tegra-ubuntu kernel: [ 1737.104646] video4linux video0: tegra_channel_release_frame: vi4 got EOF syncpt buf[ffffffc07a4f2800]
Jul 18 14:52:39 tegra-ubuntu kernel: [ 1737.104675] video4linux video0: release_buffer: release buf[ffffffc07a4f2800] frame[7] to user-space
Jul 18 14:52:40 tegra-ubuntu kernel: [ 1738.128515] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
Jul 18 14:52:40 tegra-ubuntu kernel: [ 1738.135124] video4linux video0: tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc07a4f1800]
Jul 18 14:52:40 tegra-ubuntu kernel: [ 1738.144835] video4linux video0: tegra_channel_release_frame: vi4 got EOF syncpt buf[ffffffc07a4f1800]
Jul 18 14:52:40 tegra-ubuntu kernel: [ 1738.154273] video4linux video0: release_buffer: release buf[ffffffc07a4f1800] frame[8] to user-space
Jul 18 14:52:40 tegra-ubuntu kernel: [ 1738.163619] tegra-vi4 15700000.vi: tegra_channel_surface_setup enter: index 0.
Jul 18 14:52:41 tegra-ubuntu kernel: [ 1739.168481] tegra-vi4 15700000.vi: ATOMP_FE syncpt timeout!
Jul 18 14:52:41 tegra-ubuntu kernel: [ 1739.174250] video4linux video0: release_buffer: release buf[ffffffc07a4f2c00] frame[9] to user-space
Jul 18 14:52:41 tegra-ubuntu kernel: [ 1739.184582] ov5693 2-0036: ov5693_s_stream++: enable = 0
Jul 18 14:52:41 tegra-ubuntu kernel: [ 1739.190982] ov5693 2-0036: ov5693_s_stream: stop stream…
Jul 18 14:52:41 tegra-ubuntu kernel: [ 1739.196897] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x00000004
Jul 18 14:52:41 tegra-ubuntu kernel: [ 1739.205679] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x00000004
Jul 18 14:52:41 tegra-ubuntu kernel: [ 1739.213547] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x00000004
Jul 18 14:52:41 tegra-ubuntu kernel: [ 1739.240220] ov5693 2-0036: ov5693_power_off: power off
Jul 18 14:52:41 tegra-ubuntu kernel: [ 1739.249603] ov5693 2-0036: camera_common_dpd_enable: csi 0
Jul 18 14:52:41 tegra-ubuntu kernel: [ 1739.255159] ov5693 2-0036: camera_common_dpd_enable: csi 1
Jul 18 14:52:41 tegra-ubuntu kernel: [ 1739.261281] ov5693 2-0036: camera_common_mclk_disable: ***disable MCLK

How can i to next?Can you help me , this issue really perplex a long time.
Thks!

My v4l2-compliance info:

nvidia@tegra-ubuntu:~$ v4l2-compliance -d /dev/video0
v4l2-compliance SHA   : not available

Driver Info:
	Driver name   : tegra-video
	Card type     : vi-output, ov5693 2-0036
	Bus info      : platform:15700000.vi:0
	Driver version: 4.4.38
	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: 16

	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

hello limiao,

please enable the tracing from debugfs and reproduce the issue to have more details.
thanks

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 > /sys/kernel/debug/tracing/trace
cat /sys/kernel/debug/tracing/trace

Hi,

As the upward steps, with commond:
v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=BG12 --stream-mmap --stream-count=5 -d /dev/video0 --stream-to=ov2775.raw

The log info:

# tracer: nop
#
# entries-in-buffer/entries-written: 63/63   #P:4
#
#                              _-----=> irqs-off
#                             / _----=> need-resched
#                            | / _---=> hardirq/softirq
#                            || / _--=> preempt-depth
#                            ||| /     delay
#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
     kworker/5:2-3034  [005] ...1  8597.760350: rtos_queue_peek_from_isr_failed: tstamp:269013475052 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8597.760362: rtcpu_start: tstamp:269013476914
     kworker/5:2-3034  [005] ...1  8597.968455: rtos_queue_peek_from_isr_failed: tstamp:269018476273 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8598.124602: rtos_queue_peek_from_isr_failed: tstamp:269023476704 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8598.176393: rtcpu_vinotify_handle_msg: tstamp:269025617314 tag:CHANSEL_PXL_SOF channel:0x00 frame:1 vi_tstamp:2737643976 data:0x00000001
     kworker/5:2-3034  [005] ...1  8598.176413: rtcpu_vinotify_handle_msg: tstamp:269025617952 tag:ATOMP_FS channel:0x00 frame:1 vi_tstamp:2737643982 data:0x00000000
     kworker/5:2-3034  [005] ...1  8598.176419: rtcpu_vinotify_handle_msg: tstamp:269025618411 tag:CHANSEL_FAULT channel:0x00 frame:1 vi_tstamp:2737644209 data:0x00000100
     kworker/5:2-3034  [005] ...1  8598.176425: rtcpu_vinotify_handle_msg: tstamp:269025619262 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:1 vi_tstamp:2737646361 data:0x08000000
     kworker/5:2-3034  [005] ...1  8598.176431: rtcpu_vinotify_handle_msg: tstamp:269025620792 tag:CHANSEL_FAULT_FE channel:0x01 frame:1 vi_tstamp:2737647675 data:0x00000001
     kworker/5:2-3034  [005] ...1  8598.176436: rtcpu_vinotify_handle_msg: tstamp:269025621281 tag:ATOMP_FE channel:0x00 frame:1 vi_tstamp:2737647679 data:0x00000000
     kworker/5:2-3034  [005] ...1  8598.280492: rtos_queue_peek_from_isr_failed: tstamp:269028477187 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8598.436403: rtos_queue_peek_from_isr_failed: tstamp:269033477694 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8598.592394: rtos_queue_peek_from_isr_failed: tstamp:269038478203 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8598.748398: rtos_queue_peek_from_isr_failed: tstamp:269043478704 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8598.904440: rtos_queue_peek_from_isr_failed: tstamp:269048479215 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8599.060396: rtos_queue_peek_from_isr_failed: tstamp:269053479717 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8599.224427: rtos_queue_peek_from_isr_failed: tstamp:269058480229 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8599.380430: rtos_queue_peek_from_isr_failed: tstamp:269063480738 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8599.536401: rtos_queue_peek_from_isr_failed: tstamp:269068481239 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8599.692509: rtos_queue_peek_from_isr_failed: tstamp:269073481750 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8599.848443: rtos_queue_peek_from_isr_failed: tstamp:269078482261 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8600.004395: rtos_queue_peek_from_isr_failed: tstamp:269083482765 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8600.160404: rtos_queue_peek_from_isr_failed: tstamp:269088483295 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8600.368439: rtos_queue_peek_from_isr_failed: tstamp:269093483800 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8600.524449: rtos_queue_peek_from_isr_failed: tstamp:269098484308 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8600.680423: rtos_queue_peek_from_isr_failed: tstamp:269103484815 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8600.836532: rtos_queue_peek_from_isr_failed: tstamp:269108485319 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8600.992466: rtos_queue_peek_from_isr_failed: tstamp:269113485829 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8601.148452: rtos_queue_peek_from_isr_failed: tstamp:269118486334 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8601.312435: rtos_queue_peek_from_isr_failed: tstamp:269123486842 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8601.468409: rtos_queue_peek_from_isr_failed: tstamp:269128487348 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8601.624409: rtos_queue_peek_from_isr_failed: tstamp:269133487855 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8601.780501: rtos_queue_peek_from_isr_failed: tstamp:269138488363 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8601.936412: rtos_queue_peek_from_isr_failed: tstamp:269143488869 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8602.092403: rtos_queue_peek_from_isr_failed: tstamp:269148489376 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8602.248403: rtos_queue_peek_from_isr_failed: tstamp:269153489884 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8602.404426: rtos_queue_peek_from_isr_failed: tstamp:269158490386 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8602.560485: rtos_queue_peek_from_isr_failed: tstamp:269163490895 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8602.768458: rtos_queue_peek_from_isr_failed: tstamp:269168491216 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8602.924414: rtos_queue_peek_from_isr_failed: tstamp:269173491920 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8603.080394: rtos_queue_peek_from_isr_failed: tstamp:269178492421 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8603.236392: rtos_queue_peek_from_isr_failed: tstamp:269183492929 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8603.392443: rtos_queue_peek_from_isr_failed: tstamp:269188493433 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8603.548398: rtos_queue_peek_from_isr_failed: tstamp:269193493949 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8603.704400: rtos_queue_peek_from_isr_failed: tstamp:269198494446 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8603.860384: rtos_queue_peek_from_isr_failed: tstamp:269203494963 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8604.016394: rtos_queue_peek_from_isr_failed: tstamp:269208495462 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8604.172399: rtos_queue_peek_from_isr_failed: tstamp:269213495977 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8604.328487: rtos_queue_peek_from_isr_failed: tstamp:269218496477 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8604.484434: rtos_queue_peek_from_isr_failed: tstamp:269223496981 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8604.640404: rtos_queue_peek_from_isr_failed: tstamp:269228497485 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8604.848444: rtos_queue_peek_from_isr_failed: tstamp:269233497998 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8605.004414: rtos_queue_peek_from_isr_failed: tstamp:269238498499 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8605.160398: rtos_queue_peek_from_isr_failed: tstamp:269243499010 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8605.316467: rtos_queue_peek_from_isr_failed: tstamp:269248499512 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8605.472449: rtos_queue_peek_from_isr_failed: tstamp:269253500021 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8605.628394: rtos_queue_peek_from_isr_failed: tstamp:269258500526 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8605.784519: rtos_queue_peek_from_isr_failed: tstamp:269263501033 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8605.940400: rtos_queue_peek_from_isr_failed: tstamp:269268501541 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8606.096392: rtos_queue_peek_from_isr_failed: tstamp:269273502049 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8606.252393: rtos_queue_peek_from_isr_failed: tstamp:269278502552 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8606.408406: rtos_queue_peek_from_isr_failed: tstamp:269283503059 queue:0x0b4a3c58
     kworker/5:2-3034  [005] ...1  8606.512414: rtos_queue_peek_from_isr_failed: tstamp:269286216946 queue:0x0b4a3c58

My image format info:
nvidia@tegra-ubuntu:~$ v4l2-ctl --list-formats-ext -d /dev/video0
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: ‘BG12’
Name : 12-bit Bayer BGBG/GRGR
Size: Discrete 1920x1080
Interval: Discrete 0.033s (30.000 fps)

hello limiao,

according to your tracing logs, you got failure from CHANSEL_FAULT.
is your sensor has embedded data in the SOF?
could you please check the correct embedded data lines from sensor datasheet and configure the correct values in the sensor device tree.
thanks

Thanks for your suggest, I will check the embedded of the sensor.

Hi,

I had checked the ov2775 datasheet, it has 2 rows embedded data. Now, I have add the "embedded_metadata_height = “2” " to my sensor dtsi.
After born to the TX2 board, run with the v4l2-ctl,the tools report a err on screen;

$ v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=BG12 --stream-mmap --stream-count=5 -d /dev/video0 --stream-to=ov2775.raw
VIDIOC_DQBUF: failed: Input/output error

My sensor DTSI:

/ {
	host1x {
		vi@15700000 {
			num-channels = <1>;
			ports {
				#address-cells = <1>;
				#size-cells = <0>;
				port@0 {
					reg = <0>;
					e3326_vi_in0: endpoint {
						csi-port = <0>;
						bus-width = <4>;
						remote-endpoint = <&e3326_csi_out0>;
					};
				};
			};
		};

		nvcsi@150c0000 {
			num-channels = <1>;
			#address-cells = <1>;
			#size-cells = <0>;
			channel@0 {
				reg = <0>;
				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					port@0 {
						reg = <0>;
						e3326_csi_in0: endpoint@0 {
							csi-port = <0>;
							bus-width = <4>;
							remote-endpoint = <&e3326_ov5693_out0>;
						};
					};
					port@1 {
						reg = <1>;
						e3326_csi_out0: endpoint@1 {
							remote-endpoint = <&e3326_vi_in0>;
						};
					};
				};
			};
		};
	};

	i2c@3180000 {
		ov5693_c@36 {
			compatible = "nvidia,ov5693";
			/* I2C device address */
			reg = <0x36>;

			/* V4L2 device node location */
			devnode = "video0";

			/* Physical dimensions of sensor */
			physical_w = "5.482";
			physical_h = "3.202";

			/* Define any required hw resources needed by driver */
			/* ie. clocks, io pins, power sources */
			avdd-reg = "vana";
			iovdd-reg = "vif";

			/* Sensor output flip settings */
			vertical-flip = "true";

			mode0 { /* OV2775_MODE_1920X1080_30FPS  */
				mclk_khz = "24000";
				num_lanes = "4";
				tegra_sinterface = "serial_a";
				discontinuous_clk = "no";
				dpcm_enable = "false";
				cil_settletime = "0";

				active_w = "1920";
				active_h = "1080";
				pixel_t = "bayer_bggr12";
				readout_orientation = "0";
				line_length = "3550";
				inherent_gain = "1";
				mclk_multiplier = "5";
				pix_clk_hz = "120000000";
				
				min_gain_val = "1.0";
				max_gain_val = "16";
				min_hdr_ratio = "1";
				max_hdr_ratio = "64";
				min_framerate = "1.5";
				max_framerate = "30";
				min_exp_time = "30";
				max_exp_time = "550385";
				embedded_metadata_height = "2";
			};
			ports {
				#address-cells = <1>;
				#size-cells = <0>;

				port@0 {
					reg = <0>;
					e3326_ov5693_out0: endpoint {
						csi-port = <0>;
						bus-width = <4>;
						remote-endpoint = <&e3326_csi_in0>;
					};
				};
			};
		};
	};

	e3326_lens_ov5693@P5V27C {
		min_focus_distance = "0.0";
		hyper_focal = "0.0";
		focal_length = "2.67";
		f_number = "2.0";
		aperture = "2.0";
	};

	tegra-camera-platform {
		compatible = "nvidia, tegra-camera-platform";
		modules {
			module0 {
				badge = "e3326_front_P5V27C";
				position = "rear";
				orientation = "1";
				drivernode0 {
					/* Declare PCL support driver (classically known as guid)  */
					pcl_id = "v4l2_sensor";
					/* Driver v4l2 device name */
					devname = "ov5693 2-0036";
					/* Declare the device-tree hierarchy to driver instance */
					proc-device-tree = "/proc/device-tree/i2c@3180000/ov5693_c@36";
				};
				drivernode1 {
					/* Declare PCL support driver (classically known as guid)  */
					pcl_id = "v4l2_lens";
					proc-device-tree = "/proc/device-tree/e3326_lens_ov5693@P5V27C/";
				};
			};
		};
	};
};

Kernel log:

Jul 19 16:07:05 tegra-ubuntu kernel: [  882.993425] ov5693_set_fmt: Enter. 
Jul 19 16:07:05 tegra-ubuntu kernel: [  882.996995] ov5693 2-0036: camera_common_try_fmt: size 1920 x 1080
Jul 19 16:07:05 tegra-ubuntu kernel: [  883.003506] ov5693_set_fmt: Enter. 
Jul 19 16:07:05 tegra-ubuntu kernel: [  883.007199] ov5693 2-0036: camera_common_s_fmt(12296) size 1920 x 1080
Jul 19 16:07:05 tegra-ubuntu kernel: [  883.013896] ov5693 2-0036: camera_common_try_fmt: size 1920 x 1080
Jul 19 16:07:05 tegra-ubuntu kernel: [  883.048291] ov5693_get_fmt: Enter. 
Jul 19 16:07:05 tegra-ubuntu kernel: [  883.051840] ov5693 2-0036: camera_common_g_fmt++
Jul 19 16:07:05 tegra-ubuntu kernel: [  883.059830] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=1080, memFmt=32
Jul 19 16:07:05 tegra-ubuntu kernel: [  883.069183] tegra-vi4 15700000.vi: tegra_channel_surface_setup enter: index 0.
Jul 19 16:07:05 tegra-ubuntu kernel: [  883.076505] ov5693 2-0036: ov5693_s_stream++: enable = 1 
Jul 19 16:07:05 tegra-ubuntu kernel: [  883.081933] ov5693 2-0036: ov5693_s_stream: select the mode idex 0
Jul 19 16:07:06 tegra-ubuntu kernel: [  883.408611] ov5693 2-0036: ov5693_s_stream--
Jul 19 16:07:06 tegra-ubuntu kernel: [  883.440066] video4linux video0: tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc07a86a400]
Jul 19 16:07:06 tegra-ubuntu kernel: [  883.449488] tegra-vi4 15700000.vi: tegra_channel_surface_setup enter: index 0.
Jul 19 16:07:06 tegra-ubuntu kernel: [  883.449519] video4linux video0: tegra_channel_release_frame: vi4 got EOF syncpt buf[ffffffc07a86a400]
Jul 19 16:07:06 tegra-ubuntu kernel: [  883.449546] video4linux video0: release_buffer: capture init latency is 401 ms
Jul 19 16:07:06 tegra-ubuntu kernel: [  883.449565] video4linux video0: release_buffer: release buf[ffffffc07a86a400] frame[1] to user-space
Jul 19 16:07:06 tegra-ubuntu kernel: [  883.472044] tegra-vi4 15700000.vi: Status:  2 channel:00 frame:0001
Jul 19 16:07:06 tegra-ubuntu kernel: [  883.472070] tegra-vi4 15700000.vi:          timestamp sof 894107215328 eof 894139125088 data 0x00400060
Jul 19 16:07:06 tegra-ubuntu kernel: [  883.472087] tegra-vi4 15700000.vi:          capture_id 7 stream  0 vchan  0
Jul 19 16:07:07 tegra-ubuntu kernel: [  884.505307] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
Jul 19 16:07:07 tegra-ubuntu kernel: [  884.511841] video4linux video0: tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc07a86b400]
Jul 19 16:07:07 tegra-ubuntu kernel: [  884.521233] video4linux video0: release_buffer: release buf[ffffffc07a86b400] frame[2] to user-space
Jul 19 16:07:07 tegra-ubuntu kernel: [  884.530893] tegra-vi4 15700000.vi: tegra_channel_surface_setup enter: index 0.
Jul 19 16:07:08 tegra-ubuntu kernel: [  885.537268] tegra-vi4 15700000.vi: ATOMP_FE syncpt timeout!
Jul 19 16:07:08 tegra-ubuntu kernel: [  885.543037] video4linux video0: release_buffer: release buf[ffffffc07a86ac00] frame[3] to user-space
Jul 19 16:07:08 tegra-ubuntu kernel: [  885.553388] ov5693 2-0036: ov5693_s_stream++: enable = 0 
Jul 19 16:07:08 tegra-ubuntu kernel: [  885.559026] ov5693_update_ctrl_range: Enter. 
Jul 19 16:07:08 tegra-ubuntu kernel: [  885.564109] ov5693 2-0036: ov5693_s_stream: stop stream. 
Jul 19 16:07:08 tegra-ubuntu kernel: [  885.569688] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x00000004
Jul 19 16:07:08 tegra-ubuntu kernel: [  885.578555] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x00000004
Jul 19 16:07:08 tegra-ubuntu kernel: [  885.586535] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x00000004
Jul 19 16:07:08 tegra-ubuntu kernel: [  885.613882] ov5693 2-0036: ov5693_power_off: power off
Jul 19 16:07:08 tegra-ubuntu kernel: [  885.623673] ov5693 2-0036: camera_common_dpd_enable: csi 0
Jul 19 16:07:08 tegra-ubuntu kernel: [  885.629351] ov5693 2-0036: camera_common_dpd_enable: csi 1
Jul 19 16:07:08 tegra-ubuntu kernel: [  885.635029] ov5693 2-0036: camera_common_mclk_disable: ***disable MCLK

Trace log:

tracer: nop

entries-in-buffer/entries-written: 23/23 #P:4

_-----=> irqs-off

/ _----=> need-resched

| / _—=> hardirq/softirq

|| / _–=> preempt-depth

||| / delay

TASK-PID CPU# |||| TIMESTAMP FUNCTION

| | | |||| | |

 kworker/3:2-268   [003] ...1   883.073092: rtos_queue_peek_from_isr_failed: tstamp:27928960655 queue:0x0b4a3c58
 kworker/3:2-268   [003] ...1   883.073099: rtcpu_start: tstamp:27928963745
 kworker/3:2-268   [003] ...1   883.229167: rtos_queue_peek_from_isr_failed: tstamp:27933961836 queue:0x0b4a3c58
 kworker/3:2-268   [003] ...1   883.385208: rtos_queue_peek_from_isr_failed: tstamp:27938962279 queue:0x0b4a3c58
 kworker/3:2-268   [003] ...1   883.501175: rtcpu_vinotify_handle_msg: tstamp:27940851237 tag:CHANSEL_PXL_SOF channel:0x00 frame:1 vi_tstamp:2171046703 data:0x00000001
 kworker/3:2-268   [003] ...1   883.501197: rtcpu_vinotify_handle_msg: tstamp:27940851883 tag:ATOMP_FS channel:0x00 frame:1 vi_tstamp:2171046709 data:0x00000000
 kworker/3:2-268   [003] ...1   883.501204: rtcpu_vinotify_handle_msg: tstamp:27941848543 tag:CHANSEL_PXL_EOF channel:0x00 frame:1 vi_tstamp:2172043822 data:0x04370002
 kworker/3:2-268   [003] ...1   883.501210: rtcpu_vinotify_handle_msg: tstamp:27941849024 tag:CSIMUX_FRAME channel:0x00 frame:1 vi_tstamp:2172043883 data:0x00400060
 kworker/3:2-268   [003] ...1   883.501217: rtcpu_vinotify_handle_msg: tstamp:27941849551 tag:ATOMP_FE channel:0x00 frame:1 vi_tstamp:2172043887 data:0x00000000
 kworker/3:2-268   [003] ...1   883.549141: rtos_queue_peek_from_isr_failed: tstamp:27943962610 queue:0x0b4a3c58
 kworker/3:2-268   [003] ...1   883.705174: rtos_queue_peek_from_isr_failed: tstamp:27948963318 queue:0x0b4a3c58
 kworker/3:2-268   [003] ...1   883.861313: rtos_queue_peek_from_isr_failed: tstamp:27953963814 queue:0x0b4a3c58
 kworker/3:2-268   [003] ...1   884.069163: rtos_queue_peek_from_isr_failed: tstamp:27958964314 queue:0x0b4a3c58
 kworker/3:2-268   [003] ...1   884.225154: rtos_queue_peek_from_isr_failed: tstamp:27963964824 queue:0x0b4a3c58
 kworker/3:2-268   [003] ...1   884.381168: rtos_queue_peek_from_isr_failed: tstamp:27968965331 queue:0x0b4a3c58
 kworker/3:2-268   [003] ...1   884.537133: rtos_queue_peek_from_isr_failed: tstamp:27973965874 queue:0x0b4a3c58
 kworker/3:2-268   [003] ...1   884.693164: rtos_queue_peek_from_isr_failed: tstamp:27978966343 queue:0x0b4a3c58
 kworker/3:2-268   [003] ...1   884.849240: rtos_queue_peek_from_isr_failed: tstamp:27983966848 queue:0x0b4a3c58
 kworker/3:2-268   [003] ...1   885.005156: rtos_queue_peek_from_isr_failed: tstamp:27988967354 queue:0x0b4a3c58
 kworker/3:2-268   [003] ...1   885.161153: rtos_queue_peek_from_isr_failed: tstamp:27993967858 queue:0x0b4a3c58
 kworker/3:2-268   [003] ...1   885.317180: rtos_queue_peek_from_isr_failed: tstamp:27998968384 queue:0x0b4a3c58
 kworker/3:2-268   [003] ...1   885.473181: rtos_queue_peek_from_isr_failed: tstamp:28003968874 queue:0x0b4a3c58
 kworker/3:2-268   [003] ...1   885.577138: rtos_queue_peek_from_isr_failed: tstamp:28006897476 queue:0x0b4a3c58

Can you give more suggest?
Thks!

hello limiao,

seems you had CSI frame-end signal error.
please review the sensor specification again to have correct active_w, active_h, and line_length settings.
please also check you had correct pixel clock hz in the sensor device tree.
thanks

Hi, Jerry:

Sure this is CSI frame-end signal error? Can you tell me which logs can indicate ?
I have check the active_w, active_h, line_length, frame_length, pixel clock, they are all correct.
Is there any other problem cause the isuue?
Thanks!

hello limiao,

we check this with the register dumped values in the tracing logs.
may I know which JetPack release you’re working on?
furthermore, here’s some debug tips you for your reference, Jetson TX2/28.1 Camera BringUp
thanks

The JetPack release is L4T_28.2.

Hi, Jerry:

From Jetson TX2/28.1 Camera BringUp :

Tips for debugging
if you saw below error message
tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
please check below 4 items in your sensor device tree, these should follow the settings in your sensor datasheet
                                mode0 {
                                        cil_settletime = "0";
                                        active_w = "1920";
                                        active_h = "1080";
                                        embedded_metadata_height = "1";

I do not understand the cil_settletime mean, can you explain it? And should I adjust this parameter value to debug the issue?

Hi, NVD partner:

About your last reply, you said this is a CSI frame-end signal error.
But I check the kernel ERR info:

Jul 15 15:25:22 tegra-ubuntu kernel: [  172.753649] ov5693_set_fmt: Enter. 
Jul 15 15:25:22 tegra-ubuntu kernel: [  172.757207] ov5693 2-0036: camera_common_s_fmt(12296) size 1928 x 1088
Jul 15 15:25:22 tegra-ubuntu kernel: [  172.763867] ov5693 2-0036: camera_common_try_fmt: size 1928 x 1088
Jul 15 15:25:22 tegra-ubuntu kernel: [  172.895505] ov5693_get_fmt: Enter. 
Jul 15 15:25:22 tegra-ubuntu kernel: [  172.899189] ov5693 2-0036: camera_common_g_fmt++
Jul 15 15:25:22 tegra-ubuntu kernel: [  172.907000] tegra-vi4 15700000.vi: Create Surface with imgW=1928, imgH=1088, memFmt=32
Jul 15 15:25:22 tegra-ubuntu kernel: [  172.920180] tegra-vi4 15700000.vi: tegra_channel_surface_setup enter: index 0.
Jul 15 15:25:22 tegra-ubuntu kernel: [  172.927479] nvcsi 150c0000.nvcsi: csi4_start_streaming ports index=0, lanes=4
Jul 15 15:25:22 tegra-ubuntu kernel: [  172.934646] nvcsi 150c0000.nvcsi: csi4_stream_init
Jul 15 15:25:22 tegra-ubuntu kernel: [  172.939478] nvcsi 150c0000.nvcsi: csi4_stream_config
Jul 15 15:25:22 tegra-ubuntu kernel: [  172.944478] nvcsi 150c0000.nvcsi: csi4_stream_config (0) read VC0_DPCM_CTRL = 00000000
Jul 15 15:25:22 tegra-ubuntu kernel: [  172.952411] nvcsi 150c0000.nvcsi: csi4_phy_config
Jul 15 15:25:22 tegra-ubuntu kernel: [  172.957152] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000000
Jul 15 15:25:22 tegra-ubuntu kernel: [  172.962929] nvcsi 150c0000.nvcsi: cil_settingtime is pulled from device
Jul 15 15:25:22 tegra-ubuntu kernel: [  172.969566] nvcsi 150c0000.nvcsi: cil core clock: 204, csi clock: 102
Jul 15 15:25:22 tegra-ubuntu kernel: [  172.976020] nvcsi 150c0000.nvcsi: cil_settingtime was autocalculated
Jul 15 15:25:22 tegra-ubuntu kernel: [  172.982382] nvcsi 150c0000.nvcsi: csi settle time: 33, cil settle time: 25
Jul 15 15:25:22 tegra-ubuntu kernel: [  172.989263] ov5693 2-0036: ov5693_s_stream++: enable = 1 
Jul 15 15:25:22 tegra-ubuntu kernel: [  172.994666] ov5693 2-0036: ov5693_s_stream: select the mode idex 0
Jul 15 15:25:22 tegra-ubuntu kernel: [  173.321154] ov5693 2-0036: ov5693_s_stream--
Jul 15 15:25:22 tegra-ubuntu kernel: [  173.352543] video4linux video0: tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc1c76d3400]
Jul 15 15:25:22 tegra-ubuntu kernel: [  173.361992] tegra-vi4 15700000.vi: tegra_channel_surface_setup enter: index 0.
Jul 15 15:25:22 tegra-ubuntu kernel: [  173.362025] video4linux video0: tegra_channel_release_frame: vi4 got EOF syncpt buf[ffffffc1c76d3400]
Jul 15 15:25:22 tegra-ubuntu kernel: [  173.384573] tegra-vi4 15700000.vi: Status:  2 channel:00 frame:0001
Jul 15 15:25:22 tegra-ubuntu kernel: [  173.391020] tegra-vi4 15700000.vi:          timestamp sof 183996557184 eof 184028701632 data 0x00400060
Jul 15 15:25:22 tegra-ubuntu kernel: [  173.400735] tegra-vi4 15700000.vi:          capture_id 11 stream  0 vchan  0
Jul 15 15:25:23 tegra-ubuntu kernel: [  174.377273] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
Jul 15 15:25:23 tegra-ubuntu kernel: [  174.383841] video4linux video0: tegra_channel_capture_frame: vi4 got SOF syncpt buf[ffffffc1c76d1000]
Jul 15 15:25:23 tegra-ubuntu kernel: [  174.393650] tegra-vi4 15700000.vi: tegra_channel_surface_setup enter: index 0.
Jul 15 15:25:24 tegra-ubuntu kernel: [  175.401274] tegra-vi4 15700000.vi: ATOMP_FE syncpt timeout!
Jul 15 15:25:24 tegra-ubuntu kernel: [  175.407660] ov5693 2-0036: ov5693_s_stream++: enable = 0 
Jul 15 15:25:24 tegra-ubuntu kernel: [  175.413284] ov5693_update_ctrl_range: Enter. 
Jul 15 15:25:24 tegra-ubuntu kernel: [  175.418788] ov5693 2-0036: ov5693_s_stream: stop stream. 
Jul 15 15:25:24 tegra-ubuntu kernel: [  175.424405] nvcsi 150c0000.nvcsi: csi4_stop_streaming ports index=0, lanes=4
Jul 15 15:25:24 tegra-ubuntu kernel: [  175.431611] nvcsi 150c0000.nvcsi: csi4_phy_config
Jul 15 15:25:24 tegra-ubuntu kernel: [  175.436395] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000004
Jul 15 15:25:24 tegra-ubuntu kernel: [  175.442224] nvcsi 150c0000.nvcsi: csi4_stream_check_status
Jul 15 15:25:24 tegra-ubuntu kernel: [  175.447852] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) <b>ERROR_STATUS2VI_VC0 = 0x00000004</b>
Jul 15 15:25:24 tegra-ubuntu kernel: [  175.456649] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) <b>INTR_STATUS 0x00000004</b>
Jul 15 15:25:24 tegra-ubuntu kernel: [  175.464545] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) <b>ERR_INTR_STATUS 0x00000004</b>
Jul 15 15:25:24 tegra-ubuntu kernel: [  175.472784] nvcsi 150c0000.nvcsi: csi4_cil_check_status 340
Jul 15 15:25:24 tegra-ubuntu kernel: [  175.487581] ov5693 2-0036: ov5693_power_off: power off
Jul 15 15:25:24 tegra-ubuntu kernel: [  175.496980] ov5693 2-0036: camera_common_dpd_enable: csi 0
Jul 15 15:25:24 tegra-ubuntu kernel: [  175.502524] ov5693 2-0036: camera_common_dpd_enable: csi 1
Jul 15 15:25:24 tegra-ubuntu kernel: [  175.508102] ov5693 2-0036: camera_common_mclk_disable: ***disable MCLK
Jul 15 15:25:25 tegra-ubuntu kernel: [  176.013464] tegra_mipi_cal 3990000.mipical: tegra_mipi_bias_pad_disable

I check the NVCSI_STREAM_0_ERROR_STATUS2VI_VC0_0 in Spec,
28.6.58 NVCSI_STREAM_0_ERROR_STATUS2VI_VC0_0
Bit Reset Description
3:0 0x0 err_status2vi_vc0:
[0]: PP FSM timeout error
[1]: PH ECC single bit error
[2]: Packet Payload CRC error
[3]: Packet Payload is less than WC in PH

This issue should be Packet Payload CRC error, that’s right?
If so, how can I debug this error?
Please, your answer will give me a great help. Thinks!

hello limiao,

could you please have a try to update the kernel to ignore the CRC errors.

diff --git a/drivers/media/platform/tegra/camera/csi/csi4_fops.c b/drivers/media/platform/tegra/camera/csi/csi4_fops.c
index 0377d7b..b3d01d3 100644
--- a/drivers/media/platform/tegra/camera/csi/csi4_fops.c
+++ b/drivers/media/platform/tegra/camera/csi/csi4_fops.c
@@ -76,8 +76,18 @@ static void csi4_stream_init(struct tegra_csi_channel *chan, int port_num)
        csi4_stream_write(chan, port_num, INTR_STATUS, 0x3ffff);
        csi4_stream_write(chan, port_num, ERR_INTR_STATUS, 0x7ffff);
        csi4_stream_write(chan, port_num, ERROR_STATUS2VI_MASK, 0x0);
-       csi4_stream_write(chan, port_num, INTR_MASK, 0x0);
-       csi4_stream_write(chan, port_num, ERR_INTR_MASK, 0x0);
+
+       csi4_stream_write(chan, port_num, INTR_MASK, PH_ECC_MULTI_BIT_ERR |
+                       PD_CRC_ERR_VC0 | PH_ECC_SINGLE_BIT_ERR_VC0);
+       csi4_stream_write(chan, port_num, ERR_INTR_MASK, PH_ECC_MULTI_BIT_ERR |
+                       PD_CRC_ERR_VC0 | PH_ECC_SINGLE_BIT_ERR_VC0);
+       csi4_stream_write(chan, port_num, ERROR_STATUS2VI_MASK,
+                       CFG_ERR_STATUS2VI_MASK_VC0 |
+                       CFG_ERR_STATUS2VI_MASK_VC1 |
+                       CFG_ERR_STATUS2VI_MASK_VC2 |
+                       CFG_ERR_STATUS2VI_MASK_VC3);
 }