I have a Time-of-Flight sensor configured to stream data, (40x30). The sensor configured into Histogram mode, each pixel contain 64 attributes and the format is RAW10 the total resolution will be 40*64x30 (2560x30). Num of CSI lines is 1.
I have modified the imx219 for testing. It’s on a custom board and cam_i2c is used directly without any mux. The sensor used an internal crystal clock of 19200kHz.
embedded_metadata_height = “1” the sensor output 1 embed line same lendth as the data line.
active_w = 2560
active_h = 30
pixel_phase = rggb
mode_type = bayer
csi_pixel_bit_depth = 10
line_length = 2560
pix_clk_hz = 100M
framerate = 50
mclk_multiplier = 5.2
I have used this command to stream:
v4l2-ctl -d /dev/video0 --set-fmt-video=width=2560,height=30,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-skip=0 --stream-to=test.raw
I got the following dmesgs:
[ 297.813623] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 1, flags: 0, err_data 131072
[ 297.834424] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 2, flags: 0, err_data 131072
[ 297.855305] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 3, flags: 0, err_data 131072
[ 297.876089] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 4, flags: 0, err_data 131072
And her is the trace messages:
After the 4th frame I am getting CHANSEL_NOMATCH messages for the rest of the frames.
cer: nop
#
# entries-in-buffer/entries-written: 466/466 #P:4
#
# _-----=> irqs-off
# / _----=> need-resched
# | / _---=> hardirq/softirq
# || / _--=> preempt-depth
# ||| / delay
# TASK-PID CPU# |||| TIMESTAMP FUNCTION
# | | | |||| | |
kworker/2:4-380 [002] .... 206.291705: rtcpu_string: tstamp:7068205227 id:0x04010000 str:"VM0 deactivating."
v4l2-ctl-2617 [003] .... 297.595419: tegra_channel_open: vi-output, imx219 9-006c
v4l2-ctl-2617 [003] .... 297.596169: tegra_channel_set_power: imx219 9-006c : 0x1
v4l2-ctl-2617 [003] .... 297.596175: camera_common_s_power: status : 0x1
v4l2-ctl-2617 [003] .... 297.656872: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-2617 [003] .... 297.656876: csi_s_power: enable : 0x1
v4l2-ctl-2617 [003] .... 297.658087: tegra_channel_capture_setup: vnc_id 0 W 2560 H 32 fmt c4
kworker/2:4-380 [002] .... 297.666075: rtcpu_string: tstamp:9924001744 id:0x04010000 str:"VM0 activating."
v4l2-ctl-2617 [003] .... 297.666289: tegra_channel_set_stream: enable : 0x1
v4l2-ctl-2617 [003] .... 297.677953: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-2617 [003] .... 297.677955: csi_s_stream: enable : 0x1
v4l2-ctl-2617 [003] .... 297.678279: tegra_channel_set_stream: imx219 9-006c : 0x1
kworker/2:4-380 [002] .... 297.722058: rtcpu_vinotify_event: tstamp:9924660349 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:317573147456 data:0x719d580010000000
kworker/2:4-380 [002] .... 297.722059: rtcpu_vinotify_event: tstamp:9924660488 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:317573153952 data:0x0000000031000001
kworker/2:4-380 [002] .... 297.722060: rtcpu_vinotify_event: tstamp:9924660641 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:317573204896 data:0x719d550010000000
kworker/2:4-380 [002] .... 297.722060: rtcpu_vinotify_event: tstamp:9924660773 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:317573211488 data:0x0000000031000002
kworker/2:4-380 [002] .... 297.834040: rtcpu_vinotify_event: tstamp:9929000436 cch:0 vi:0 tag:FS channel:0x00 frame:1 vi_tstamp:317718901248 data:0x0000000100000010
kworker/2:4-380 [002] .... 297.834041: rtcpu_vinotify_event: tstamp:9929000575 cch:0 vi:0 tag:ATOMP_FS channel:0x00 frame:1 vi_tstamp:317718901312 data:0x0000000800000000
kworker/2:4-380 [002] .... 297.834042: rtcpu_vinotify_event: tstamp:9929000729 cch:0 vi:0 tag:CHANSEL_PXL_SOF channel:0x23 frame:1 vi_tstamp:317718939008 data:0x0000000000000001
kworker/2:4-380 [002] .... 297.834042: rtcpu_vinotify_event: tstamp:9929000860 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:1 vi_tstamp:317718949856 data:0x0000000008020001
kworker/2:4-380 [002] .... 297.834042: rtcpu_vinotify_event: tstamp:9929001009 cch:0 vi:0 tag:FE channel:0x00 frame:1 vi_tstamp:317720173952 data:0x0000000100000020
kworker/2:4-380 [002] .... 297.834043: rtcpu_vinotify_event: tstamp:9929001141 cch:0 vi:0 tag:CHANSEL_SHORT_FRAME channel:0x01 frame:1 vi_tstamp:317720173984 data:0x001f200001000000
kworker/2:4-380 [002] .... 297.834043: rtcpu_vinotify_event: tstamp:9929001302 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:1 vi_tstamp:317720240672 data:0x0000000001020001
kworker/2:4-380 [002] .... 297.834044: rtcpu_vinotify_event: tstamp:9929001437 cch:0 vi:0 tag:ATOMP_FE channel:0x00 frame:1 vi_tstamp:317720174048 data:0x0000000800000000
kworker/2:4-380 [002] .... 297.834044: rtcpu_vinotify_event: tstamp:9929001589 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:317720507232 data:0x719d580010000000
kworker/2:4-380 [002] .... 297.834045: rtcpu_vinotify_event: tstamp:9929001721 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:317720550592 data:0x0000000031000003
kworker/2:4-380 [002] .... 297.834045: rtcpu_vinotify_event: tstamp:9929373335 cch:0 vi:0 tag:FS channel:0x00 frame:2 vi_tstamp:317739734080 data:0x0000000200000010
kworker/2:4-380 [002] .... 297.834046: rtcpu_vinotify_event: tstamp:9929373473 cch:0 vi:0 tag:ATOMP_FS channel:0x00 frame:2 vi_tstamp:317739734144 data:0x0000000800000000
kworker/2:4-380 [002] .... 297.890084: rtcpu_vinotify_event: tstamp:9929868727 cch:0 vi:0 tag:CHANSEL_PXL_SOF channel:0x23 frame:2 vi_tstamp:317739771840 data:0x0000000000000001
kworker/2:4-380 [002] .... 297.890085: rtcpu_vinotify_event: tstamp:9929868872 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:2 vi_tstamp:317739788544 data:0x0000000008020002
kworker/2:4-380 [002] .... 297.890085: rtcpu_vinotify_event: tstamp:9929869025 cch:0 vi:0 tag:FE channel:0x00 frame:2 vi_tstamp:317741006784 data:0x0000000200000020
kworker/2:4-380 [002] .... 297.890085: rtcpu_vinotify_event: tstamp:9929869161 cch:0 vi:0 tag:CHANSEL_SHORT_FRAME channel:0x01 frame:2 vi_tstamp:317741006816 data:0x001f200001000000
kworker/2:4-380 [002] .... 297.890086: rtcpu_vinotify_event: tstamp:9929869314 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:2 vi_tstamp:317741073568 data:0x0000000001020002
kworker/2:4-380 [002] .... 297.890086: rtcpu_vinotify_event: tstamp:9929869449 cch:0 vi:0 tag:ATOMP_FE channel:0x00 frame:2 vi_tstameifjcbfghktvfvlkfebeinvendhcldelnfijfcvhcguk
p:317741006880 data:0x0000000800000000
kworker/2:4-380 [002] .... 297.890086: rtcpu_vinotify_event: tstamp:9929869602 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:317741361376 data:0x719d550010000000
kworker/2:4-380 [002] .... 297.890086: rtcpu_vinotify_event: tstamp:9929869736 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:317741404736 data:0x0000000031000004
kworker/2:4-380 [002] .... 297.890087: rtcpu_vinotify_event: tstamp:9930066099 cch:0 vi:0 tag:FS channel:0x00 frame:3 vi_tstamp:317760566976 data:0x0000000300000010
kworker/2:4-380 [002] .... 297.890087: rtcpu_vinotify_event: tstamp:9930066237 cch:0 vi:0 tag:ATOMP_FS channel:0x00 frame:3 vi_tstamp:317760567040 data:0x0000000800000000
kworker/2:4-380 [002] .... 297.890088: rtcpu_vinotify_event: tstamp:9930066393 cch:0 vi:0 tag:CHANSEL_PXL_SOF channel:0x23 frame:3 vi_tstamp:317760604736 data:0x0000000000000001
kworker/2:4-380 [002] .... 297.890088: rtcpu_vinotify_event: tstamp:9930066524 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:3 vi_tstamp:317760615552 data:0x0000000008020003
kworker/2:4-380 [002] .... 297.890088: rtcpu_vinotify_event: tstamp:9930066676 cch:0 vi:0 tag:FE channel:0x00 frame:3 vi_tstamp:317761839680 data:0x0000000300000020
kworker/2:4-380 [002] .... 297.890089: rtcpu_vinotify_event: tstamp:9930066809 cch:0 vi:0 tag:CHANSEL_SHORT_FRAME channel:0x01 frame:3 vi_tstamp:317761839712 data:0x001f200001000000
kworker/2:4-380 [002] .... 297.890089: rtcpu_vinotify_event: tstamp:9930066960 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:3 vi_tstamp:317761906432 data:0x0000000001020003
kworker/2:4-380 [002] .... 297.890089: rtcpu_vinotify_event: tstamp:9930067093 cch:0 vi:0 tag:ATOMP_FE channel:0x00 frame:3 vi_tstamp:317761839776 data:0x0000000800000000
kworker/2:4-380 [002] .... 297.890089: rtcpu_vinotify_event: tstamp:9930683228 cch:0 vi:0 tag:FS channel:0x00 frame:4 vi_tstamp:317781399840 data:0x0000000400000010
kworker/2:4-380 [002] .... 297.890090: rtcpu_vinotify_event: tstamp:9930683363 cch:0 vi:0 tag:ATOMP_FS channel:0x00 frame:4 vi_tstamp:317781399936 data:0x0000000800000000
kworker/2:4-380 [002] .... 297.890090: rtcpu_vinotify_event: tstamp:9930683517 cch:0 vi:0 tag:CHANSEL_PXL_SOF channel:0x23 frame:4 vi_tstamp:317781437632 data:0x0000000000000001
kworker/2:4-380 [002] .... 297.890090: rtcpu_vinotify_event: tstamp:9930683648 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:4 vi_tstamp:317781448480 data:0x0000000008020004
kworker/2:4-380 [002] .... 297.946040: rtcpu_vinotify_event: tstamp:9931225196 cch:0 vi:0 tag:FE channel:0x00 frame:4 vi_tstamp:317782672576 data:0x0000000400000020
kworker/2:4-380 [002] .... 297.946041: rtcpu_vinotify_event: tstamp:9931225332 cch:0 vi:0 tag:CHANSEL_SHORT_FRAME channel:0x01 frame:4 vi_tstamp:317782672576 data:0x001f200001000000
kworker/2:4-380 [002] .... 297.946041: rtcpu_vinotify_event: tstamp:9931225487 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:4 vi_tstamp:317782739360 data:0x0000000001020004
kworker/2:4-380 [002] .... 297.946042: rtcpu_vinotify_event: tstamp:9931225631 cch:0 vi:0 tag:ATOMP_FE channel:0x00 frame:4 vi_tstamp:317782672672 data:0x0000000800000000
kworker/2:4-380 [002] .... 297.946043: rtcpu_vinotify_error: tstamp:9931324908 cch:0 vi:0 tag:CHANSEL_NOMATCH channel:0x01 frame:5 vi_tstamp:317802270496 data:0x0000000000000569
kworker/2:4-380 [002] .... 297.946043: rtcpu_vinotify_event: tstamp:9931767757 cch:0 vi:0 tag:FS channel:0x00 frame:5 vi_tstamp:317802232736 data:0x0000000500000010
kworker/2:4-380 [002] .... 297.946044: rtcpu_vinotify_event: tstamp:9931767893 cch:0 vi:0 tag:CHANSEL_NOMATCH channel:0x01 frame:5 vi_tstamp:317802270496 data:0x0000000000000569
kworker/2:4-380 [002] .... 297.946044: rtcpu_vinotify_event: tstamp:9931768046 cch:0 vi:0 tag:FE channel:0x00 frame:5 vi_tstamp:317803505472 data:0x0000000500000020
kworker/2:4-380 [002] .... 297.946045: rtcpu_vinotify_error: tstamp:9931975933 cch:0 vi:0 tag:CHANSEL_NOMATCH channel:0x01 frame:6 vi_tstamp:317823103328 data:0x0000000000000569