the bottom of csi video shake in tx2 csi

Hi nvidia:
my board is LT9211 (change lvds to MIPI) connect tx2 through CSI.
I debug success in csi, the camara can play in ubuntu.
but the video is not normal.
the bottom of video shake.
trace:

 kworker/0:1-51    [000] ...1   715.843114: rtos_queue_peek_from_isr_failed: tstamp:22479109597 queue:0x0b4a3c58
 kworker/0:1-51    [000] ...1   715.843114: rtcpu_vinotify_handle_msg: tstamp:22480101162 tag:CHANSEL_PXL_EOF channel:0x00 frame:21357 vi_tstamp:1005264005 data:0x04370002
 kworker/0:1-51    [000] ...1   715.843115: rtcpu_vinotify_handle_msg: tstamp:22480101274 tag:ATOMP_FE channel:0x00 frame:21357 vi_tstamp:1005264134 data:0x00000000
 kworker/0:1-51    [000] ...1   715.895111: rtcpu_vinotify_handle_msg: tstamp:22481184485 tag:CHANSEL_PXL_SOF channel:0x00 frame:21359 vi_tstamp:1006347449 data:0x00000001
 kworker/0:1-51    [000] ...1   715.895114: rtcpu_vinotify_handle_msg: tstamp:22481184647 tag:ATOMP_FS channel:0x00 frame:21359 vi_tstamp:1006347462 data:0x00000000
 kworker/0:1-51    [000] ...1   715.895115: rtcpu_vinotify_handle_msg: tstamp:22481696548 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:21359 vi_tstamp:1006859656 data:0x08000000
 kworker/0:1-51    [000] ...1   715.947095: rtcpu_vinotify_handle_msg: tstamp:22482184455 tag:CHANSEL_PXL_EOF channel:0x00 frame:21359 vi_tstamp:1007347304 data:0x04370002
 kworker/0:1-51    [000] ...1   715.947098: rtcpu_vinotify_handle_msg: tstamp:22482184566 tag:ATOMP_FE channel:0x00 frame:21359 vi_tstamp:1007347432 data:0x00000000
 kworker/0:1-51    [000] ...1   715.947099: rtcpu_vinotify_handle_msg: tstamp:22482226119 tag:CHANSEL_PXL_SOF channel:0x00 frame:21360 vi_tstamp:1007389099 data:0x00000001
 kworker/0:1-51    [000] ...1   715.947100: rtcpu_vinotify_handle_msg: tstamp:22482226267 tag:ATOMP_FS channel:0x00 frame:21360 vi_tstamp:1007389112 data:0x00000000
 kworker/0:1-51    [000] ...1   715.947100: rtcpu_vinotify_handle_msg: tstamp:22483024831 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:21360 vi_tstamp:1008187941 data:0x08000000
 kworker/0:1-51    [000] ...1   715.947101: rtcpu_vinotify_handle_msg: tstamp:22483226102 tag:CHANSEL_PXL_EOF channel:0x00 frame:21360 vi_tstamp:1008388953 data:0x04370002
 kworker/0:

=========================================

the bottom of video is not normal.wav (1.06 MB)

What’s the output format? YUV? And resolution?
The trace didn’t show any error. That means vi/csi capture the data from input without problem.

Hi ShaneCCC:
output yuv and resolution is 1080p.

I think it should be the source problem.

Hi ShaneCCC:
kernel log as follows:

[ 20.922020] configfs-gadget gadget: high-speed config #1: c
[ 20.927625] tegra-xudc-new 3550000.xudc: ep 5 (type: 3, dir: in) enabled
[ 20.934331] tegra-xudc-new 3550000.xudc: ep 3 (type: 2, dir: in) enabled
[ 20.941034] tegra-xudc-new 3550000.xudc: ep 2 (type: 2, dir: out) enabled
[ 20.947898] tegra-xudc-new 3550000.xudc: ep 9 (type: 3, dir: in) enabled
[ 20.954603] tegra-xudc-new 3550000.xudc: ep 7 (type: 2, dir: in) enabled
[ 20.961312] tegra-xudc-new 3550000.xudc: ep 4 (type: 2, dir: out) enabled
[ 20.968192] tegra-xudc-new 3550000.xudc: ep 15 (type: 3, dir: in) enabled
[ 20.974985] tegra-xudc-new 3550000.xudc: ep 11 (type: 2, dir: in) enabled
[ 20.981804] tegra-xudc-new 3550000.xudc: ep 6 (type: 2, dir: out) enabled
[ 20.981947] IPv6: ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready
[ 20.982029] l4tbr0: port 1(usb0) entered forwarding state
[ 20.982058] l4tbr0: port 1(usb0) entered forwarding state
[ 20.982114] android_work: sent uevent USB_STATE=CONFIGURED
[ 21.717190] IPVS: Creating netns size=1424 id=3
[ 36.012816] l4tbr0: port 1(usb0) entered forwarding state
[ 80.553697] nvcsi 150c0000.nvcsi: csi4_stream_init: disable the ECC check
[ 113.789025] tegra-vi4 15700000.vi: Status: 5 channel:00 frame:7D6C
[ 113.795337] tegra-vi4 15700000.vi: timestamp sof 117297035456 eof 117320492992 data 0x00000001
[ 113.804821] tegra-vi4 15700000.vi: capture_id 772 stream 0 vchan 0
[ 113.814031] nvcsi 150c0000.nvcsi: csi4_stream_init: disable the ECC check
[ 114.818577] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 115.822575] tegra-vi4 15700000.vi: ATOMP_FE syncpt timeout!
[ 115.828893] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERROR_STATUS2VI_VC0 = 0x00000004
[ 115.837952] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x00000008
[ 115.846000] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x00000008
[ 123.997034] IPVS: Creating netns size=1424 id=4

kernel.txt (71.1 KB)

dts config:

mode0 { // lt9211_MODE_1920X1080_P30
mclk_khz = “24000”;
num_lanes = “2”;
tegra_sinterface = “serial_a”;
discontinuous_clk = “no”;
dpcm_enable = “false”;
cil_settletime = “0”;

					active_w = "1920";
					active_h = "1080";		//1080
					pixel_t = "YUV422";		// bayer_bggr	RGB24	YUV422 UYVY422
					readout_orientation = "0";
					line_length = "2200";
					inherent_gain = "1";
					mclk_multiplier = "3.09";
					pix_clk_hz = "74250000";

					min_gain_val = "1.0";
					max_gain_val = "16";
					min_hdr_ratio = "1";
					max_hdr_ratio = "1";		// 64
					min_framerate = "1.5";		// 1.816577
					max_framerate = "30";
					min_exp_time = "33";		// 34
					max_exp_time = "660000";	// 550385	660000
					//embedded_metadata_height = "0";
				};

==============================
output YUV422, 1080P30

Can it streaming continuously? If you can streaming normally and there’s no kernel message print out continuously I think it’s could not be the problem from Tegra.