MIPI CSI-DHPY issue

Hi
attachment is our MIPI diagram .
Use these two methods to test,

  1. gst-launch-1.0 v4l2src device=/dev/video0 ! ‘video/x-raw, format=(string)UYVY, width=(int)1920, height=(int)1080, framerate=(fraction)30/1’ ! nvvidconv ! ‘video/x-raw(memory:NVMM), format=(string)NV12’ ! omxh264enc ! qtmux ! filesink location=test.mp4 -ev

message:
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
EOS on shutdown enabled – waiting for EOS after Error
Waiting for EOS…
New clock: GstSystemClock
/GstPipeline:pipeline0/GstQTMux:qtmux0.GstPad:src: caps = video/quicktime, variant=(string)apple
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/quicktime, variant=(string)apple

  1. ./yavta /dev/video0 -c1 -n1 -s1920x1080 -fUYVY -Fcam.raw
    can’t stop with ctrl^c
    dmesg log:
    [ 2991.490743] tegra194-vi5 15c10000.vi: unexpected response from camera processor
    [ 2991.491039] video4linux video0: vi capture release failed
    [ 2991.491166] tegra194-vi5 15c10000.vi: unexpected response from camera processor
    [ 2991.491458] Unable to handle kernel NULL pointer dereference at virtual address 00000000
    [ 2991.491643] Mem abort info:
    [ 2991.491707] ESR = 0x96000005
    [ 2991.491777] Exception class = DABT (current EL), IL = 32 bits
    [ 2991.491887] SET = 0, FnV = 0
    [ 2991.491950] EA = 0, S1PTW = 0
    [ 2991.492018] Data abort info:
    [ 2991.492083] ISV = 0, ISS = 0x00000005
    [ 2991.492165] CM = 0, WnR = 0
    [ 2991.492230] user pgtable: 4k pages, 39-bit VAs, pgd = ffffffc7963b1000
    [ 2991.492353] [0000000000000000] *pgd=0000000000000000, *pud=0000000000000000
    [ 2991.492531] Internal error: Oops: 96000005 [#1] PREEMPT SMP
    [ 2991.492647] Modules linked in: bnep fuse zram overlay tpm_tis_spi tpm_tis_core tpm tc358746 spidev nvgpu bluedroid_pm ip_tables x_tables
    [ 2991.493579] CPU: 0 PID: 9265 Comm: yavta Not tainted 4.9.140-tegra #34
    [ 2991.494890] Hardware name: Jetson-AGX (DT)
    [ 2991.499024] task: ffffffc759d51c00 task.stack: ffffffc74b1c8000
    [ 2991.505244] PC is at vi_capture_request_unpin+0x40/0xb8
    [ 2991.510052] LR is at vi_capture_request_unpin+0x34/0xb8
    [ 2991.515287] pc : [] lr : [] pstate: 20400045
    [ 2991.522895] sp : ffffffc74b1cba30
    [ 2991.526044] x29: ffffffc74b1cba30 x28: 0000000000000000
    [ 2991.532102] x27: ffffffc7bcece800 x26: 0000000000000001
    [ 2991.537494] x25: ffffff8009f9d358 x24: 0000000000000013
    [ 2991.543094] x23: ffffffc74b1db800 x22: 0000000000000000
    [ 2991.548349] x21: ffffffc74b1dba68 x20: ffffffc74b06b200
    [ 2991.553358] x19: 0000000000000000 x18: 00000000000035cf
    [ 2991.558864] x17: 0000007faff70748 x16: 0000000000000000
    [ 2991.564795] x15: 0000000000000000 x14: 000000000000005f
    [ 2991.570481] x13: 0000000000000132 x12: 0000000000000400
    [ 2991.576014] x11: 0000000000000400 x10: 0000000000000a20
    [ 2991.582035] x9 : ffffffc74b1cb840 x8 : fffffffffffffffe
    [ 2991.587827] x7 : ffffffc74b06bf00 x6 : ffffffc74b06b3c0
    [ 2991.593078] x5 : ffffffc759d51c00 x4 : ffffffc7ffce50e0
    [ 2991.598418] x3 : 0000000001da0e40 x2 : ffffffc74b06be40
    [ 2991.603750] x1 : 0000000000000000 x0 : 0000000000000000

[ 2991.610757] Process yavta (pid: 9265, stack limit = 0xffffffc74b1c8000)
[ 2991.617127] Call trace:
[ 2991.619278] [] vi_capture_request_unpin+0x40/0xb8
[ 2991.625372] [] vi_capture_shutdown+0xac/0x118
[ 2991.630972] [] vi_channel_close_ex+0x2c/0x88
[ 2991.636573] [] vi5_channel_stop_streaming+0x64/0xa8
[ 2991.642504] [] tegra_channel_stop_streaming+0x34/0x48
[ 2991.648904] [] __vb2_queue_cancel+0x34/0x188
[ 2991.654512] [] vb2_core_streamoff+0x54/0xb8
[ 2991.659588] [] vb2_streamoff+0x54/0x88
[ 2991.664922] [] vb2_ioctl_streamoff+0x54/0x60
[ 2991.670502] [] v4l_streamoff+0x3c/0x50
[ 2991.675687] [] __video_do_ioctl+0x204/0x2c8
[ 2991.681284] [] video_usercopy+0x2a0/0x6a0
[ 2991.686884] [] video_ioctl2+0x3c/0x50
[ 2991.691854] [] v4l2_ioctl+0x88/0x118
[ 2991.697034] [] do_vfs_ioctl+0xb0/0x8d8
[ 2991.702615] [] SyS_ioctl+0x8c/0xa8
[ 2991.707259] [] el0_svc_naked+0x34/0x38
[ 2991.713045] —[ end trace 529ecb45319e6e44 ]—

===================================================================
If repeat execution this command :
gst-launch-1.0 v4l2src device=/dev/video0 ! ‘video/x-raw, format=(string)UYVY, width=(int)1920, height=(int)1080, framerate=(fraction)30/1’ ! nvvidconv ! ‘video/x-raw(memory:NVMM), format=(string)NV12’ ! omxh264enc ! qtmux ! filesink location=test.mp4 -ev

sometimes shown as below message .

Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
EOS on shutdown enabled – waiting for EOS after Error
Waiting for EOS…
/GstPipeline:pipeline0/GstQTMux:qtmux0.GstPad:src: caps = video/quicktime, variant=(string)apple
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/quicktime, variant=(string)apple
New clock: GstSystemClock
/GstPipeline:pipeline0/GstQTMux:qtmux0.GstPad:src: caps = video/quicktime, variant=(string)apple, streamheader=(buffer)< 000002446d6f6f760000006c6d76686400000000dc25b31adc25b31a00000708000000000001000001000000000000000000000000010000000000000000000000000000000100000000000000000000000000004000000000000000000000000000000000000000000000000000000000000002000001937472616b0000005c746b686400000007dc25b31adc25b31a000000010000000000000000000000000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000400000000000000000000000000000f26d646961000000206d64686400000000dc25b31adc25b31a000000000000000055c400000000002168646c7200000000000000000000000000000000000000000000000000000000a96d696e660000002168646c720000000064686c72616c6973000000000000000000000000000000002464696e660000001c6472656600000000000000010000000c616c6973000000010000005c7374626c000000107374736400000000000000000000001073747473000000000000000000000010737473630000000000000000000000147374737a000000000000000000000000000000107374636f00000000000000000000003d75647461000000356d657461000000000000002168646c72000000006d686c726d6469720000000000000000000000000000000008696c73740000003d75647461000000356d657461000000000000002168646c72000000006d686c726d6469720000000000000000000000000000000008696c7374 >
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/quicktime, variant=(string)apple, streamheader=(buffer)< 000002446d6f6f760000006c6d76686400000000dc25b31adc25b31a00000708000000000001000001000000000000000000000000010000000000000000000000000000000100000000000000000000000000004000000000000000000000000000000000000000000000000000000000000002000001937472616b0000005c746b686400000007dc25b31adc25b31a000000010000000000000000000000000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000400000000000000000000000000000f26d646961000000206d64686400000000dc25b31adc25b31a000000000000000055c400000000002168646c7200000000000000000000000000000000000000000000000000000000a96d696e660000002168646c720000000064686c72616c6973000000000000000000000000000000002464696e660000001c6472656600000000000000010000000c616c6973000000010000005c7374626c000000107374736400000000000000000000001073747473000000000000000000000010737473630000000000000000000000147374737a000000000000000000000000000000107374636f00000000000000000000003d75647461000000356d657461000000000000002168646c72000000006d686c726d6469720000000000000000000000000000000008696c73740000003d75647461000000356d657461000000000000002168646c72000000006d686c726d6469720000000000000000000000000000000008696c7374 >
Got EOS from element “pipeline0”.
EOS received - stopping pipeline…
Execution ended after 0:00:00.003681628
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

Do you have any suggestions can provide our reference. Thanks

I would suggest to use v4l2-ctl for verify it, also have a check below WIKI to get the trace log.

Hi ShaneCCC:

The debug log output use the command “sudo cat /sys/kernel/debug/tracing/trace” is:

kworker/0:2-8048 [000] … 2601.063679: rtcpu_string: tstamp:81673988177 id:0x04010000 str:"Configuring VI GoS.
"kworker/0:2-8048 [000] … 2601.063711: rtcpu_string: tstamp:81673988356 id:0x04010000 str:"VM GOS[#0] addr=0xc2100000
"
kworker/0:2-8048 [000] … 2601.063722: rtcpu_string: tstamp:81673988612 id:0x04010000 str:"VM GOS[#1] addr=0xc2101000
"
kworker/0:2-8048 [000] … 2601.063733: rtcpu_string: tstamp:81673988887 id:0x04010000 str:"VM GOS[#2] addr=0xc2102000
"
kworker/0:2-8048 [000] … 2601.063747: rtcpu_string: tstamp:81673989120 id:0x04010000 str:"VM GOS[#3] addr=0xc2103000
"
kworker/0:2-8048 [000] … 2601.063758: rtcpu_string: tstamp:81673989352 id:0x04010000 str:"VM GOS[#4] addr=0xc2104000
"
kworker/0:2-8048 [000] … 2601.063767: rtcpu_string: tstamp:81673989584 id:0x04010000 str:"VM GOS[#5] addr=0xc2105000
"
kworker/0:2-8048 [000] … 2601.063778: rtos_queue_peek_from_isr_failed: tstamp:81674180786 queue:0x0bcbcf78
kworker/0:2-8048 [000] … 2601.119723: rtos_queue_send_from_isr_failed: tstamp:81675525358 queue:0x0bcb41f8

We confirm that the sensor have output data to the mipi bus.

Get the /sys/kernel/debug/tracing/trace again after run the v4l2-ctl to capture data.

Hi ShaneCCC:
after using the command “v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=UYVY–set-ctrl --stream-mmap --stream-count=1000”

Please check the attachment file for debug output. Thanks.

result.txt (17.1 KB)

The error from below tell the lanes control error from the REG NVCSI_PHY_0_CILB_INTR_0_STATUS_CILA_0 of the TRM. It’s could be the signal or power sequence didn’t match the MIPI spec.

     kworker/0:3-1690  [000] ....   139.036764: rtcpu_nvcsi_intr: tstamp:4734276115 class:GLOBAL type:PHY_INTR0 phy:0 cil:0 st:0 vc:0 status:0x00000089

lan0+/- waveform :

Picture 1 : Toshiba MIPI out , not connect to nVIDIA

Picture 2 : Toshiba MIPI out and connect to nVIDIA

Red frame show the data are cut in half.

Hi ShaneCCC:

By the way, we also test with the command “/yavta /dev/video0 -c1 -n1 -s1920x1080 -fUYVY -Fcam.raw”, below message is the debug output. (our data format is 1920x1080 YUV4:2:2)

 kworker/0:1-8829  [000] ....   497.697231: rtos_queue_send_from_isr_failed: tstamp:15945062280 queue:0x0bcba5e0
 kworker/0:1-8829  [000] ....   497.697231: rtos_queue_send_from_isr_failed: tstamp:15945062429 queue:0x0bcbb3a0
 kworker/0:1-8829  [000] ....   497.697232: rtos_queue_send_from_isr_failed: tstamp:15945062574 queue:0x0bcbc160
 kworker/0:1-8829  [000] ....   497.697233: rtcpu_vinotify_event: tstamp:15945168587 tag:ATOMP_FE channel:0x00 frame:0 vi_tstamp:15944880240 data:0x00000000
 kworker/0:1-8829  [000] ....   497.697235: rtcpu_vinotify_event: tstamp:15945168728 tag:FS channel:0x00 frame:0 vi_tstamp:15944921925 data:0x00000010
 kworker/0:1-8829  [000] ....   497.697236: rtcpu_vinotify_event: tstamp:15945168889 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15944921958 data:0x000003c9
 kworker/0:1-8829  [000] ....   497.697236: rtcpu_vinotify_event: tstamp:15945169025 tag:FE channel:0x00 frame:0 vi_tstamp:15944974726 data:0x00000020
 kworker/0:1-8829  [000] ....   497.697236: rtcpu_vinotify_event: tstamp:15945169181 tag:FS channel:0x00 frame:0 vi_tstamp:15945016413 data:0x00000010
 kworker/0:1-8829  [000] ....   497.697237: rtcpu_vinotify_event: tstamp:15945169313 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15945016447 data:0x000003c9
 kworker/0:1-8829  [000] ....   497.697237: rtcpu_vinotify_event: tstamp:15945169518 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:16320873504 data:0x10000000
 kworker/0:1-8829  [000] ....   497.697237: rtcpu_vinotify_event: tstamp:15945169656 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:16320902880 data:0x31000477
 kworker/0:1-8829  [000] ....   497.697238: rtcpu_vinotify_event: tstamp:15945169815 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:16320911520 data:0x07020477
 kworker/0:1-8829  [000] ....   497.697238: rtcpu_vinotify_event: tstamp:15945169951 tag:FE channel:0x00 frame:0 vi_tstamp:15945069214 data:0x00000020
 kworker/0:1-8829  [000] ....   497.697238: rtcpu_vinotify_event: tstamp:15945170105 tag:FS channel:0x00 frame:0 vi_tstamp:15945110901 data:0x00000010
 kworker/0:1-8829  [000] ....   497.697239: rtcpu_vinotify_event: tstamp:15945170249 tag:ATOMP_FS channel:0x00 frame:0 vi_tstamp:15945110903 data:0x00000000
 kworker/0:1-8829  [000] ....   497.697239: rtcpu_vinotify_event: tstamp:15945170409 tag:CHANSEL_PXL_SOF channel:0x23 frame:0 vi_tstamp:15945110935 data:0x00000001
 kworker/0:1-8829  [000] ....   497.697239: rtcpu_vinotify_event: tstamp:15945170544 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:16322326816 data:0x08020477
 kworker/0:1-8829  [000] ....   497.697240: rtcpu_vinotify_event: tstamp:15945170699 tag:FE channel:0x00 frame:0 vi_tstamp:15945163703 data:0x00000020
 kworker/0:1-8829  [000] ....   497.697240: rtcpu_vinotify_event: tstamp:15945170839 tag:CHANSEL_SHORT_FRAME channel:0x01 frame:0 vi_tstamp:15945163703 data:0x01000000
 kworker/0:1-8829  [000] ....   497.697240: rtcpu_vinotify_error: tstamp:15945208268 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15945205423 data:0x000003c9
 kworker/0:1-8829  [000] ....   497.697241: rtcpu_vinotify_error: tstamp:15945302752 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15945299911 data:0x000003c9
 kworker/0:1-8829  [000] ....   497.697241: rtos_queue_send_from_isr_failed: tstamp:15945329337 queue:0x0bcb41f8
 kworker/0:1-8829  [000] ....   497.697241: rtos_queue_send_from_isr_failed: tstamp:15945329509 queue:0x0bcb8a60
 kworker/0:1-8829  [000] ....   497.697242: rtos_queue_send_from_isr_failed: tstamp:15945329662 queue:0x0bcba5e0
 kworker/0:1-8829  [000] ....   497.697242: rtos_queue_send_from_isr_failed: tstamp:15945329811 queue:0x0bcbb3a0
 kworker/0:1-8829  [000] ....   497.697242: rtos_queue_send_from_isr_failed: tstamp:15945329956 queue:0x0bcbc160
 kworker/0:1-8829  [000] ....   497.753116: rtcpu_vinotify_event: tstamp:15945540828 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:16324023040 data:0x01020477
 kworker/0:1-8829  [000] ....   497.753119: rtcpu_vinotify_event: tstamp:15945541048 tag:ATOMP_FE channel:0x00 frame:0 vi_tstamp:15945163705 data:0x00000000
 kworker/0:1-8829  [000] ....   497.753119: rtcpu_vinotify_event: tstamp:15945541302 tag:FS channel:0x00 frame:0 vi_tstamp:15945205389 data:0x00000010
 kworker/0:1-8829  [000] ....   497.753119: rtcpu_vinotify_event: tstamp:15945541512 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15945205423 data:0x000003c9
 kworker/0:1-8829  [000] ....   497.753120: rtcpu_vinotify_event: tstamp:15945541760 tag:FE channel:0x00 frame:0 vi_tstamp:15945258191 data:0x00000020
 kworker/0:1-8829  [000] ....   497.753120: rtcpu_vinotify_event: tstamp:15945541971 tag:FS channel:0x00 frame:0 vi_tstamp:15945299878 data:0x00000010
 kworker/0:1-8829  [000] ....   497.753120: rtcpu_vinotify_event: tstamp:15945542218 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15945299911 data:0x000003c9
 kworker/0:1-8829  [000] ....   497.753122: rtos_queue_send_from_isr_failed: tstamp:15945550837 queue:0x0bcb41f8
 kworker/0:1-8829  [000] ....   497.753122: rtos_queue_send_from_isr_failed: tstamp:15945551061 queue:0x0bcb8a60
 kworker/0:1-8829  [000] ....   497.753122: rtos_queue_send_from_isr_failed: tstamp:15945551284 queue:0x0bcba5e0
 kworker/0:1-8829  [000] ....   497.753123: rtos_queue_send_from_isr_failed: tstamp:15945551503 queue:0x0bcbb3a0
 kworker/0:1-8829  [000] ....   497.753123: rtos_queue_send_from_isr_failed: tstamp:15945551721 queue:0x0bcbc160

The dmesg log:

[  497.201427] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.210498] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.219558] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.228630] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.234682] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.243747] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.252816] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.261921] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.270965] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.280042] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.286092] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.295153] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.304257] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.313304] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.322376] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.331437] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 128, err_data 131072
[  497.340527] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 128, err_data 131072
[  497.346560] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.355656] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.364685] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.373763] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.382955] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.392030] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.398029] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.407156] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.416219] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.425306] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.434362] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.443321] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.449484] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.458540] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.467499] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.476579] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.485676] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.494727] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 128, err_data 131072
[  497.503794] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 128, err_data 131072
[  497.509845] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.518902] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.528020] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.537070] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.546112] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.555190] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 128, err_data 131072
[  497.561256] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.570303] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.579378] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.588452] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.597556] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.606595] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.612620] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.621731] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.630773] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.639850] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.649028] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.658106] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.664018] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.673220] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.682317] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  497.691391] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072 

The dtsi setting is:

      tc358746@0e {
        compatible = "toshiba,tc358746";  /* I2C device address */              
        reg = <0x0e>;                     /* shifted by 2 */        
        physical_w = "3.680";             /* Physical dimensions of sensor */
        physical_h = "2.760";
        devnode = "video0";               /* V4L2 device node location */
        sensor_model = "TC358746";
        post_crop_frame_drop = "0";
        use_decibel_gain = "true";
        delay_gain = "true";
        use_sensor_mode_id = "true";

        mode0 { /*TC358748_MODE_1920x1080_30FPS */
            mclk_khz = "37125";
            num_lanes = "2";
            tegra_sinterface = "serial_a";
            phy_mode = "DPHY";
            discontinuous_clk = "no";
            dpcm_enable = "false";
            cil_settletime = "0";   
            // dynamic_pixel_bit_depth = "16";
            csi_pixel_bit_depth = "16";
            mode_type = "yuv";
            pixel_phase = "yuyv";
            // pixel_t = "yuv_yuyv16";
            active_w = "1920";
            active_h = "1080";
            readout_orientation = "0";
            line_length = "2200";
            inherent_gain = "1";
            mclk_multiplier = "1";               
            pix_clk_hz = "74250000";      
  
            gain_factor = "10";
            min_gain_val = "0"; /* 0dB */
            max_gain_val = "480"; /* 48dB */
            step_gain_val = "3"; /* 0.3 */
            default_gain = "0";
            min_hdr_ratio = "1";
            max_hdr_ratio = "1";
            framerate_factor = "1000000";
            min_framerate = "3000000"; /* 1.5 */
            max_framerate = "30000000"; /* 30 */
            step_framerate = "1";
            default_framerate= "30000000";
            exposure_factor = "1000000";
            min_exp_time = "30"; /* us */
            max_exp_time = "660000"; /* us */
            step_exp_time = "1";
            default_exp_time = "33334";/* us */
            embedded_metadata_height = "0";
	        };

Do you have any suggestions? Thanks.

The trace show the short frame, that tell the output size didn’t as expect.

tag:CHANSEL_SHORT_FRAME