Is it possible to make tx2 mipi csi works fine without EOF short packet?

Hi Everyone:
We have a self-designed board which use FPGA to create mipi signal send to the csi port of TX2/TX1.
If we use TX1, by setting chan->timeout=200 it works fine.
If we use TX2, we could only get the first frame and then the PXL_SOF syncpt timeout error occurs
By measuring the mipi signal we found that there is no EOF short packet at the end of the frame.
My questions are
1. Why TX1 can works fine without EOF,but TX2 can’t do that?
2. Is it possible to make TX2 works fine without EOF ?

The camera system re-architecture between T210 and T186, TX2 have much check to make sure the stability for TX2 we can’t remove it for the reason.

Check the kernel driver to reduce the width like below example 2592 and check the trace.

#define OV5693_DEFAULT_WIDTH	2592
#define OV5693_DEFAULT_HEIGHT	1944

static const struct camera_common_frmfmt ov5693_frmfmt[] = {
  	{{2592, 1944},	ov5693_30fps,	1, 0,	OV5693_MODE_2592X1944},
  	{{2592, 1458},	ov5693_30fps,	1, 0,	OV5693_MODE_2592X1458},
  	{{1920, 1080},	ov5693_30fps,	1, 0,	OV5693_MODE_1920X1080},
  	{{1280, 720},	ov5693_120fps,	1, 0,	OV5693_MODE_1280X720_120FPS},
  	{{2592, 1944},	ov5693_24fps,	1, 1,	OV5693_MODE_2592X1944_HDR},
  	{{1920, 1080},	ov5693_30fps,	1, 1,	OV5693_MODE_1920X1080_HDR},
 };

Hi ShaneCCC
Thanks for your reply.
According to your guidance in https://devtalk.nvidia.com/default/topic/1037809/?comment=5273373
We measure the FPGA mipi signal.

Now we know that the  FPGA create fix resolution:1920x1080 30fps without frame end.

We have the following questions:
1.We don't know the debug value for width,change it to 1080x720 ?
2.According to the [i]TECHNICAL REFERENCE MANUAL[/i] in 27.20.5.the VI_CSIMUX_CONFIG_STREAM_0[FEMAXTIME] seems to be able to insert a frame end.But how to achive this ?

Following is the trace log of 1920x1080 30fps

tracer: nop

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

_-----=> irqs-off

/ _----=> need-resched

| / _—=> hardirq/softirq

|| / _–=> preempt-depth

||| / delay

TASK-PID CPU# |||| TIMESTAMP FUNCTION

| | | |||| | |

 kworker/3:1-2534  [003] ...1  1669.536192: rtos_queue_peek_from_isr_failed: tstamp:52520270003 queue:0x0b4a3c58
 kworker/3:1-2534  [003] ...1  1669.536195: rtcpu_start: tstamp:52520270844
 kworker/3:1-2534  [003] ...1  1669.588186: rtcpu_vinotify_handle_msg: tstamp:52522299677 tag:CSIMUX_STREAM channel:0xff frame:0 vi_tstamp:982691688 data:0x00010000
 kworker/3:1-2534  [003] ...1  1669.588189: rtcpu_vinotify_handle_msg: tstamp:52522391452 tag:CHANSEL_PXL_SOF channel:0x00 frame:1 vi_tstamp:982783352 data:0x00000001
 kworker/3:1-2534  [003] ...1  1669.588190: rtcpu_vinotify_handle_msg: tstamp:52522391607 tag:ATOMP_FS channel:0x00 frame:1 vi_tstamp:982783365 data:0x00000000
 kworker/3:1-2534  [003] ...1  1669.588191: rtcpu_vinotify_handle_msg: tstamp:52522393266 tag:CHANSEL_LOAD_FRAMED channel:0x10 frame:1 vi_tstamp:982785302 data:0x08000000
 kworker/3:1-2534  [003] ...1  1669.640214: rtcpu_vinotify_handle_msg: tstamp:52523391188 tag:CHANSEL_PXL_EOF channel:0x00 frame:1 vi_tstamp:983783204 data:0x04370002
 kworker/3:1-2534  [003] ...1  1669.640219: rtcpu_vinotify_handle_msg: tstamp:52523433003 tag:CSIMUX_FRAME channel:0x00 frame:1 vi_tstamp:983824870 data:0x000000a4
 kworker/3:1-2534  [003] ...1  1669.640220: rtcpu_vinotify_handle_msg: tstamp:52523433200 tag:ATOMP_FE channel:0x00 frame:1 vi_tstamp:983824874 data:0x00000000
 kworker/3:1-2534  [003] ...1  1669.692225: rtos_queue_peek_from_isr_failed: tstamp:52525270968 queue:0x0b4a3c58
 kworker/3:1-2534  [003] ...1  1669.848270: rtos_queue_peek_from_isr_failed: tstamp:52530271680 queue:0x0b4a3c58
 kworker/3:1-2534  [003] ...1  1670.004289: rtos_queue_peek_from_isr_failed: tstamp:52535272350 queue:0x0b4a3c58
 kworker/3:1-2534  [003] ...1  1670.160266: rtos_queue_peek_from_isr_failed: tstamp:52540272619 queue:0x0b4a3c58
 kworker/3:1-2534  [003] ...1  1670.316263: rtos_queue_peek_from_isr_failed: tstamp:52545273129 queue:0x0b4a3c58
 kworker/3:1-2534  [003] ...1  1670.472253: rtos_queue_peek_from_isr_failed: tstamp:52550273633 queue:0x0b4a3c58
 kworker/3:1-2534  [003] ...1  1670.628223: rtos_queue_peek_from_isr_failed: tstamp:52554072607 queue:0x0b4a3c58
 kworker/3:1-2534  [003] ...1  1670.732215: rtos_queue_peek_from_isr_failed: tstamp:52557762640 queue:0x0b4a3c58
 kworker/3:1-2534  [003] ...1  1670.732220: rtcpu_start: tstamp:52557763610
 kworker/3:1-2534  [003] ...1  1670.732222: rtcpu_vinotify_handle_msg: tstamp:52557807286 tag:CSIMUX_FRAME channel:0x00 frame:1 vi_tstamp:1018198976 data:0x000000a4
 kworker/3:1-2534  [003] ...1  1670.732223: rtcpu_vinotify_handle_msg: tstamp:52557807430 tag:CHANSEL_PXL_SOF channel:0x00 frame:1 vi_tstamp:1018199097 data:0x00000001
 kworker/3:1-2534  [003] ...1  1670.732225: rtcpu_vinotify_handle_msg: tstamp:52557807581 tag:ATOMP_FS channel:0x00 frame:1 vi_tstamp:1018199110 data:0x00000000
 kworker/3:1-2534  [003] ...1  1670.784206: rtcpu_vinotify_handle_msg: tstamp:52558806917 tag:CHANSEL_PXL_EOF channel:0x00 frame:1 vi_tstamp:1019198950 data:0x04370002
 kworker/3:1-2534  [003] ...1  1670.784210: rtcpu_vinotify_handle_msg: tstamp:52558848749 tag:CSIMUX_FRAME channel:0x00 frame:1 vi_tstamp:1019240615 data:0x000000a4
 kworker/3:1-2534  [003] ...1  1670.784211: rtcpu_vinotify_handle_msg: tstamp:52558848944 tag:ATOMP_FE channel:0x00 frame:1 vi_tstamp:1019240619 data:0x00000000
 kworker/3:1-2534  [003] ...1  1670.837122: rtos_queue_peek_from_isr_failed: tstamp:52560489030 queue:0x0b4a3c58

@liukejob
Could you try to dump the raw data to check if it’s validate.
Looks like 1920x1080 should be able to get validate data.
If count = 1 can get validate please try about 2 or 3

v4l2-ctl -d /dev/video0 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=t.raw

Hi ShaneCCC
Thanks for your help, we do the following test:
test1: "use v4l2-ctl -d /dev/video0 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=t.raw ",we can’t get a valid t.raw output and there is a lot of kernel error .

test2: We use another V4L2 tool capture 10 frames, this tools can generate 10 yuv.raw files. we found that the odd frame is right but the even frame is pure green. During the capture the kernel emit the same error as test1
Cound you give us some ideas to debug this problem, thank you very much!

kernel msg during capture:
[ 1130.815366] tirvido_mipi_driver tirvideo_mipi_sdi: camera_common_g_fmt++
[ 1130.823401] nvcsi 150c0000.nvcsi: csi4_start_streaming ports index=4, lanes=2
[ 1130.830546] nvcsi 150c0000.nvcsi: csi4_stream_init
[ 1130.835352] nvcsi 150c0000.nvcsi: csi4_stream_config
[ 1130.840330] nvcsi 150c0000.nvcsi: csi4_stream_config (4) read VC0_DPCM_CTRL = 00000000
[ 1130.848249] nvcsi 150c0000.nvcsi: csi4_phy_config
[ 1130.852962] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000000
[ 1130.858713] nvcsi 150c0000.nvcsi: cil_settingtime is pulled from device
[ 1130.865329] nvcsi 150c0000.nvcsi: cil core clock: 204, csi clock: 102
[ 1130.871773] nvcsi 150c0000.nvcsi: cil_settingtime was autocalculated
[ 1130.878132] nvcsi 150c0000.nvcsi: csi settle time: 33, cil settle time: 25
[ 1131.899200] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 1131.905707] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[ 1131.916245] nvcsi 150c0000.nvcsi: csi4_error_recover: resetting nvcsi stream 4
[ 1131.923641] nvcsi 150c0000.nvcsi: csi4_stop_streaming ports index=0, lanes=2
[ 1131.930839] nvcsi 150c0000.nvcsi: csi4_phy_config
[ 1131.935613] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000002
[ 1131.941456] nvcsi 150c0000.nvcsi: csi4_stream_check_status
[ 1131.947015] nvcsi 150c0000.nvcsi: csi4_cil_check_status 354
[ 1131.952649] nvcsi 150c0000.nvcsi: csi4_cil_check_status (4) CIL_INTR_STATUS 0x00000044
[ 1131.960613] nvcsi 150c0000.nvcsi: csi4_cil_check_status (4) CIL_ERR_INTR_STATUS 0x00000044
[ 1131.968925] nvcsi 150c0000.nvcsi: csi4_start_streaming ports index=4, lanes=2
[ 1131.976103] nvcsi 150c0000.nvcsi: csi4_stream_init
[ 1131.980967] nvcsi 150c0000.nvcsi: csi4_stream_config
[ 1131.986003] nvcsi 150c0000.nvcsi: csi4_stream_config (4) read VC0_DPCM_CTRL = 00000000
[ 1131.993938] nvcsi 150c0000.nvcsi: csi4_phy_config
[ 1131.998693] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000000
[ 1132.004459] nvcsi 150c0000.nvcsi: cil_settingtime is pulled from device
[ 1132.011111] nvcsi 150c0000.nvcsi: cil core clock: 204, csi clock: 102
[ 1132.017584] nvcsi 150c0000.nvcsi: cil_settingtime was autocalculated
[ 1132.023963] nvcsi 150c0000.nvcsi: csi settle time: 33, cil settle time: 25
[ 1133.035324] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 1133.041870] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[ 1133.053557] nvcsi 150c0000.nvcsi: csi4_error_recover: resetting nvcsi stream 4
[ 1133.061083] nvcsi 150c0000.nvcsi: csi4_stop_streaming ports index=0, lanes=2
[ 1133.068237] nvcsi 150c0000.nvcsi: csi4_phy_config
[ 1133.073079] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000002
[ 1133.078964] nvcsi 150c0000.nvcsi: csi4_stream_check_status
[ 1133.084540] nvcsi 150c0000.nvcsi: csi4_stream_check_status (4) ERROR_STATUS2VI_VC0 = 0x00000004
[ 1133.093346] nvcsi 150c0000.nvcsi: csi4_stream_check_status (4) INTR_STATUS 0x00000004
[ 1133.101230] nvcsi 150c0000.nvcsi: csi4_stream_check_status (4) ERR_INTR_STATUS 0x00000004
[ 1133.109465] nvcsi 150c0000.nvcsi: csi4_cil_check_status 354
[ 1133.115112] nvcsi 150c0000.nvcsi: csi4_cil_check_status (4) CIL_INTR_STATUS 0x00000044
[ 1133.123058] nvcsi 150c0000.nvcsi: csi4_cil_check_status (4) CIL_ERR_INTR_STATUS 0x00000044
[ 1133.131380] nvcsi 150c0000.nvcsi: csi4_start_streaming ports index=4, lanes=2
[ 1133.138572] nvcsi 150c0000.nvcsi: csi4_stream_init
[ 1133.143413] nvcsi 150c0000.nvcsi: csi4_stream_config
[ 1133.148407] nvcsi 150c0000.nvcsi: csi4_stream_config (4) read VC0_DPCM_CTRL = 00000000
[ 1133.156357] nvcsi 150c0000.nvcsi: csi4_phy_config
[ 1133.161095] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000000
[ 1133.166872] nvcsi 150c0000.nvcsi: cil_settingtime is pulled from device
[ 1133.173517] nvcsi 150c0000.nvcsi: cil core clock: 204, csi clock: 102
[ 1133.179975] nvcsi 150c0000.nvcsi: cil_settingtime was autocalculated
[ 1133.186360] nvcsi 150c0000.nvcsi: csi settle time: 33, cil settle time: 25
[ 1134.199428] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 1134.206015] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[ 1134.217719] nvcsi 150c0000.nvcsi: csi4_error_recover: resetting nvcsi stream 4
[ 1134.225098] nvcsi 150c0000.nvcsi: csi4_stop_streaming ports index=0, lanes=2
[ 1134.232305] nvcsi 150c0000.nvcsi: csi4_phy_config
[ 1134.237142] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000002
[ 1134.243044] nvcsi 150c0000.nvcsi: csi4_stream_check_status
[ 1134.248670] nvcsi 150c0000.nvcsi: csi4_stream_check_status (4) ERROR_STATUS2VI_VC0 = 0x0000000c
[ 1134.257467] nvcsi 150c0000.nvcsi: csi4_stream_check_status (4) INTR_STATUS 0x00000008
[ 1134.265397] nvcsi 150c0000.nvcsi: csi4_stream_check_status (4) ERR_INTR_STATUS 0x00000008
[ 1134.273656] nvcsi 150c0000.nvcsi: csi4_cil_check_status 354
[ 1134.279280] nvcsi 150c0000.nvcsi: csi4_cil_check_status (4) CIL_INTR_STATUS 0x00000064
[ 1134.287249] nvcsi 150c0000.nvcsi: csi4_cil_check_status (4) CIL_ERR_INTR_STATUS 0x00000064
[ 1134.295563] nvcsi 150c0000.nvcsi: csi4_start_streaming ports index=4, lanes=2
[ 1134.302754] nvcsi 150c0000.nvcsi: csi4_stream_init
[ 1134.307615] nvcsi 150c0000.nvcsi: csi4_stream_config
[ 1134.312650] nvcsi 150c0000.nvcsi: csi4_stream_config (4) read VC0_DPCM_CTRL = 00000000
[ 1134.320606] nvcsi 150c0000.nvcsi: csi4_phy_config
[ 1134.325361] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000000
[ 1134.331138] nvcsi 150c0000.nvcsi: cil_settingtime is pulled from device
[ 1134.337781] nvcsi 150c0000.nvcsi: cil core clock: 204, csi clock: 102
[ 1134.344245] nvcsi 150c0000.nvcsi: cil_settingtime was autocalculated
[ 1134.350620] nvcsi 150c0000.nvcsi: csi settle time: 33, cil settle time: 25
[ 1135.367472] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 1135.374035] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[ 1135.385724] nvcsi 150c0000.nvcsi: csi4_error_recover: resetting nvcsi stream 4
[ 1135.393254] nvcsi 150c0000.nvcsi: csi4_stop_streaming ports index=0, lanes=2
[ 1135.400479] nvcsi 150c0000.nvcsi: csi4_phy_config
[ 1135.405368] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000002
[ 1135.411212] nvcsi 150c0000.nvcsi: csi4_stream_check_status
[ 1135.416847] nvcsi 150c0000.nvcsi: csi4_stream_check_status (4) ERROR_STATUS2VI_VC0 = 0x0000000c
[ 1135.425639] nvcsi 150c0000.nvcsi: csi4_stream_check_status (4) INTR_STATUS 0x00000008
[ 1135.433586] nvcsi 150c0000.nvcsi: csi4_stream_check_status (4) ERR_INTR_STATUS 0x00000008
[ 1135.441865] nvcsi 150c0000.nvcsi: csi4_cil_check_status 354
[ 1135.447495] nvcsi 150c0000.nvcsi: csi4_cil_check_status (4) CIL_INTR_STATUS 0x00000064
[ 1135.455470] nvcsi 150c0000.nvcsi: csi4_cil_check_status (4) CIL_ERR_INTR_STATUS 0x00000064
[ 1135.463793] nvcsi 150c0000.nvcsi: csi4_start_streaming ports index=4, lanes=2
[ 1135.470981] nvcsi 150c0000.nvcsi: csi4_stream_init
[ 1135.475839] nvcsi 150c0000.nvcsi: csi4_stream_config
[ 1135.480873] nvcsi 150c0000.nvcsi: csi4_stream_config (4) read VC0_DPCM_CTRL = 00000000
[ 1135.488831] nvcsi 150c0000.nvcsi: csi4_phy_config
[ 1135.493582] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000000
[ 1135.499354] nvcsi 150c0000.nvcsi: cil_settingtime is pulled from device
[ 1135.505997] nvcsi 150c0000.nvcsi: cil core clock: 204, csi clock: 102
[ 1135.512461] nvcsi 150c0000.nvcsi: cil_settingtime was autocalculated
[ 1135.518835] nvcsi 150c0000.nvcsi: csi settle time: 33, cil settle time: 25
[ 1136.531541] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 1136.538082] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[ 1136.549816] nvcsi 150c0000.nvcsi: csi4_error_recover: resetting nvcsi stream 4
[ 1136.557346] nvcsi 150c0000.nvcsi: csi4_stop_streaming ports index=0, lanes=2
[ 1136.564800] nvcsi 150c0000.nvcsi: csi4_phy_config
[ 1136.569676] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000002
[ 1136.575622] nvcsi 150c0000.nvcsi: csi4_stream_check_status
[ 1136.581276] nvcsi 150c0000.nvcsi: csi4_stream_check_status (4) ERROR_STATUS2VI_VC0 = 0x0000000c
[ 1136.590168] nvcsi 150c0000.nvcsi: csi4_stream_check_status (4) INTR_STATUS 0x00000004
[ 1136.598143] nvcsi 150c0000.nvcsi: csi4_stream_check_status (4) ERR_INTR_STATUS 0x00000004
[ 1136.606421] nvcsi 150c0000.nvcsi: csi4_cil_check_status 354
[ 1136.612099] nvcsi 150c0000.nvcsi: csi4_cil_check_status (4) CIL_INTR_STATUS 0x00000064
[ 1136.620082] nvcsi 150c0000.nvcsi: csi4_cil_check_status (4) CIL_ERR_INTR_STATUS 0x00000064
[ 1136.628430] nvcsi 150c0000.nvcsi: csi4_start_streaming ports index=4, lanes=2
[ 1136.635643] nvcsi 150c0000.nvcsi: csi4_stream_init
[ 1136.640499] nvcsi 150c0000.nvcsi: csi4_stream_config
[ 1136.645538] nvcsi 150c0000.nvcsi: csi4_stream_config (4) read VC0_DPCM_CTRL = 00000000
[ 1136.653502] nvcsi 150c0000.nvcsi: csi4_phy_config
[ 1136.658266] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000000
[ 1136.664075] nvcsi 150c0000.nvcsi: cil_settingtime is pulled from device
[ 1136.670748] nvcsi 150c0000.nvcsi: cil core clock: 204, csi clock: 102
[ 1136.677226] nvcsi 150c0000.nvcsi: cil_settingtime was autocalculated
[ 1136.683619] nvcsi 150c0000.nvcsi: csi settle time: 33, cil settle time: 25
[ 1137.699584] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 1137.706181] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[ 1137.717095] nvcsi 150c0000.nvcsi: csi4_error_recover: resetting nvcsi stream 4
[ 1137.724545] nvcsi 150c0000.nvcsi: csi4_stop_streaming ports index=0, lanes=2
[ 1137.731730] nvcsi 150c0000.nvcsi: csi4_phy_config
[ 1137.736528] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000002
[ 1137.742337] nvcsi 150c0000.nvcsi: csi4_stream_check_status
[ 1137.747877] nvcsi 150c0000.nvcsi: csi4_stream_check_status (4) ERROR_STATUS2VI_VC0 = 0x0000000c
[ 1137.756625] nvcsi 150c0000.nvcsi: csi4_stream_check_status (4) INTR_STATUS 0x00000004
[ 1137.764507] nvcsi 150c0000.nvcsi: csi4_stream_check_status (4) ERR_INTR_STATUS 0x00000004
[ 1137.772733] nvcsi 150c0000.nvcsi: csi4_cil_check_status 354
[ 1137.778365] nvcsi 150c0000.nvcsi: csi4_cil_check_status (4) CIL_INTR_STATUS 0x00000066
[ 1137.786341] nvcsi 150c0000.nvcsi: csi4_cil_check_status (4) CIL_ERR_INTR_STATUS 0x00000066
[ 1137.794641] nvcsi 150c0000.nvcsi: csi4_start_streaming ports index=4, lanes=2
[ 1137.801799] nvcsi 150c0000.nvcsi: csi4_stream_init
[ 1137.806634] nvcsi 150c0000.nvcsi: csi4_stream_config
[ 1137.811636] nvcsi 150c0000.nvcsi: csi4_stream_config (4) read VC0_DPCM_CTRL = 00000000
[ 1137.819577] nvcsi 150c0000.nvcsi: csi4_phy_config
[ 1137.824314] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000000
[ 1137.830081] nvcsi 150c0000.nvcsi: cil_settingtime is pulled from device
[ 1137.836728] nvcsi 150c0000.nvcsi: cil core clock: 204, csi clock: 102
[ 1137.843198] nvcsi 150c0000.nvcsi: cil_settingtime was autocalculated
[ 1137.849581] nvcsi 150c0000.nvcsi: csi settle time: 33, cil settle time: 25
[ 1138.859634] tegra-vi4 15700000.vi: ATOMP_FE syncpt timeout!
[ 1138.866125] nvcsi 150c0000.nvcsi: csi4_stop_streaming ports index=0, lanes=2
[ 1138.873489] nvcsi 150c0000.nvcsi: csi4_phy_config
[ 1138.878422] nvcsi 150c0000.nvcsi: NVCSI_CIL_CONFIG = 00000002
[ 1138.884511] nvcsi 150c0000.nvcsi: csi4_stream_check_status
[ 1138.890210] nvcsi 150c0000.nvcsi: csi4_stream_check_status (4) ERROR_STATUS2VI_VC0 = 0x0000000c
[ 1138.899076] nvcsi 150c0000.nvcsi: csi4_stream_check_status (4) INTR_STATUS 0x00000004
[ 1138.907073] nvcsi 150c0000.nvcsi: csi4_stream_check_status (4) ERR_INTR_STATUS 0x00000004
[ 1138.915347] nvcsi 150c0000.nvcsi: csi4_cil_check_status 354
[ 1138.921035] nvcsi 150c0000.nvcsi: csi4_cil_check_status (4) CIL_INTR_STATUS 0x00000066
[ 1138.929062] nvcsi 150c0000.nvcsi: csi4_cil_check_status (4) CIL_ERR_INTR_STATUS 0x00000066
[ 1139.447980] tegra_mipi_cal 3990000.mipical: tegra_mipi_bias_pad_disable

here is the trace log:
nvidia@tegra-ubuntu:~/work$ sudo cat /sys/kernel/debug/tracing/trace

tracer: nop

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

_-----=> irqs-off

/ _----=> need-resched

| / _—=> hardirq/softirq

|| / _–=> preempt-depth

||| / delay

TASK-PID CPU# |||| TIMESTAMP FUNCTION

| | | |||| | |

 kworker/0:1-59    [000] ...1   359.313474: rtos_queue_peek_from_isr_failed: tstamp:11563562037 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   359.313478: rtcpu_start: tstamp:11563562875
 kworker/0:1-59    [000] ...1   359.313480: rtcpu_vinotify_handle_msg: tstamp:11563588924 tag:CSIMUX_STREAM channel:0xff frame:0 vi_tstamp:2973653911 data:0x00010000
 kworker/0:1-59    [000] ...1   359.365494: rtcpu_vinotify_handle_msg: tstamp:11564451061 tag:CHANSEL_PXL_SOF channel:0x00 frame:1 vi_tstamp:2974515922 data:0x00000001
 kworker/0:1-59    [000] ...1   359.365497: rtcpu_vinotify_handle_msg: tstamp:11564451212 tag:ATOMP_FS channel:0x00 frame:1 vi_tstamp:2974515935 data:0x00000000
 kworker/0:1-59    [000] ...1   359.365499: rtcpu_vinotify_handle_msg: tstamp:11564453463 tag:CHANSEL_LOAD_FRAMED channel:0x10 frame:1 vi_tstamp:2974518457 data:0x08000000
 kworker/0:1-59    [000] ...1   359.365501: rtcpu_vinotify_handle_msg: tstamp:11565450797 tag:CHANSEL_PXL_EOF channel:0x00 frame:1 vi_tstamp:2975515771 data:0x04370002
 kworker/0:1-59    [000] ...1   359.417520: rtcpu_vinotify_handle_msg: tstamp:11565492622 tag:CSIMUX_FRAME channel:0x00 frame:1 vi_tstamp:2975557436 data:0x000000a4
 kworker/0:1-59    [000] ...1   359.417529: rtcpu_vinotify_handle_msg: tstamp:11565492849 tag:ATOMP_FE channel:0x00 frame:1 vi_tstamp:2975557439 data:0x00000000
 kworker/0:1-59    [000] ...1   359.469518: rtos_queue_peek_from_isr_failed: tstamp:11568563132 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   359.625503: rtos_queue_peek_from_isr_failed: tstamp:11573563636 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   359.833463: rtos_queue_peek_from_isr_failed: tstamp:11578564153 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   359.989535: rtos_queue_peek_from_isr_failed: tstamp:11583564649 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   360.145469: rtos_queue_peek_from_isr_failed: tstamp:11588565169 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   360.301455: rtos_queue_peek_from_isr_failed: tstamp:11593565661 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   360.357458: rtos_queue_peek_from_isr_failed: tstamp:11596135880 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   360.405441: rtos_queue_peek_from_isr_failed: tstamp:11596779674 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   360.405447: rtcpu_start: tstamp:11596782145
 kworker/0:1-59    [000] ...1   360.405450: rtcpu_vinotify_handle_msg: tstamp:11597783510 tag:CSIMUX_FRAME channel:0x00 frame:1 vi_tstamp:3007848121 data:0x000000a4
 kworker/0:1-59    [000] ...1   360.405451: rtcpu_vinotify_handle_msg: tstamp:11597783761 tag:CHANSEL_PXL_SOF channel:0x00 frame:1 vi_tstamp:3007848242 data:0x00000001
 kworker/0:1-59    [000] ...1   360.405453: rtcpu_vinotify_handle_msg: tstamp:11597784002 tag:ATOMP_FS channel:0x00 frame:1 vi_tstamp:3007848255 data:0x00000000
 kworker/0:1-59    [000] ...1   360.405454: rtcpu_vinotify_handle_msg: tstamp:11597786959 tag:CHANSEL_LOAD_FRAMED channel:0x10 frame:1 vi_tstamp:3007851916 data:0x08000000
 kworker/0:1-59    [000] ...1   360.457489: rtcpu_vinotify_handle_msg: tstamp:11598783135 tag:CHANSEL_PXL_EOF channel:0x00 frame:1 vi_tstamp:3008848091 data:0x04370002
 kworker/0:1-59    [000] ...1   360.457508: rtcpu_vinotify_handle_msg: tstamp:11598824984 tag:CSIMUX_FRAME channel:0x00 frame:1 vi_tstamp:3008889756 data:0x000000a4
 kworker/0:1-59    [000] ...1   360.457515: rtcpu_vinotify_handle_msg: tstamp:11598825248 tag:ATOMP_FE channel:0x00 frame:1 vi_tstamp:3008889760 data:0x00000000
 kworker/0:1-59    [000] ...1   360.561448: rtos_queue_peek_from_isr_failed: tstamp:11601780777 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   360.717436: rtos_queue_peek_from_isr_failed: tstamp:11606781290 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   360.873422: rtos_queue_peek_from_isr_failed: tstamp:11611781786 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   361.029411: rtos_queue_peek_from_isr_failed: tstamp:11616782291 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   361.185397: rtos_queue_peek_from_isr_failed: tstamp:11621782804 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   361.341395: rtos_queue_peek_from_isr_failed: tstamp:11626783305 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   361.445350: rtos_queue_peek_from_isr_failed: tstamp:11629520506 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   361.497404: rtos_queue_peek_from_isr_failed: tstamp:11630897953 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   361.497421: rtcpu_start: tstamp:11630900017
 kworker/0:1-59    [000] ...1   361.497432: rtcpu_vinotify_handle_msg: tstamp:11631116041 tag:CSIMUX_FRAME channel:0x00 frame:1 vi_tstamp:3041180440 data:0x000000a4
 kworker/0:1-59    [000] ...1   361.497439: rtcpu_vinotify_handle_msg: tstamp:11631116561 tag:CHANSEL_PXL_SOF channel:0x00 frame:1 vi_tstamp:3041180562 data:0x00000001
 kworker/0:1-59    [000] ...1   361.497445: rtcpu_vinotify_handle_msg: tstamp:11631117174 tag:ATOMP_FS channel:0x00 frame:1 vi_tstamp:3041180575 data:0x00000000
 kworker/0:1-59    [000] ...1   361.549368: rtcpu_vinotify_handle_msg: tstamp:11632115650 tag:CHANSEL_PXL_EOF channel:0x00 frame:1 vi_tstamp:3042180411 data:0x04370002
 kworker/0:1-59    [000] ...1   361.549377: rtcpu_vinotify_handle_msg: tstamp:11632157426 tag:CSIMUX_FRAME channel:0x00 frame:1 vi_tstamp:3042222076 data:0x000000a4
 kworker/0:1-59    [000] ...1   361.549383: rtcpu_vinotify_handle_msg: tstamp:11632157976 tag:ATOMP_FE channel:0x00 frame:1 vi_tstamp:3042222079 data:0x00000000
 kworker/0:1-59    [000] ...1   361.653438: rtos_queue_peek_from_isr_failed: tstamp:11635899067 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   361.809424: rtos_queue_peek_from_isr_failed: tstamp:11640899569 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   361.965371: rtos_queue_peek_from_isr_failed: tstamp:11645900083 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   362.121345: rtos_queue_peek_from_isr_failed: tstamp:11650900598 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   362.277333: rtos_queue_peek_from_isr_failed: tstamp:11655901097 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   362.433320: rtos_queue_peek_from_isr_failed: tstamp:11660901592 queue:0x0b4a3c58
 kworker/0:1-59    [000] ...1   362.485331: rtos_queue_peek_from_isr_failed: tstamp:11662581924 queue:0x0b4a3c58

From your log show csi didn’t detect the sync word(0xB8)
Please have a check your MIPI timing.

nvcsi 150c0000.nvcsi: csi4_cil_check_status (4) CIL_INTR_STATUS 0x00000044