Xavier NX Driver Adaption

Hello There,

I am facing again some issues during my camera driver implementation. I might be wrong but my current assumption is a faulty “pix_clk_hz” setting.

Overview

Driver Base: nv_imx477.c
Linux Version: L4T 35.3.1

Mode devicetree

			mode0 { /* IMX586_MODE_4000x3000 */
				mclk_khz = "24000";
				num_lanes = "4";
				tegra_sinterface = "serial_a";
				phy_mode = "DPHY";
				discontinuous_clk = "yes"; /* yes? */
				dpcm_enable = "false";
				cil_settletime = "0";
 
				active_w = "4000";
				active_h = "3000";
				mode_type = "bayer";
				pixel_phase = "rggb";
				csi_pixel_bit_depth = "10";
				readout_orientation = "90";
				line_length = "7808"; 
				inherent_gain = "1"; /* TODO: verify */
				mclk_multiplier = "80"; /* depricated */

				// pix_clk_hz = "998400000";
				// pix_clk_hz = "800000000"; 
				pix_clk_hz = "744000000"; 

				gain_factor = "16"; /* TODO: verify */
				framerate_factor = "1000000"; /* TODO: verify */
				exposure_factor = "1000000"; /* TODO: verify */
				min_gain_val = "16"; /* 1.00x */ /* TODO: verify */
				max_gain_val = "256"; /* 16x */ /* TODO: verify */
				step_gain_val = "1"; /* TODO: verify */
				default_gain = "16"; /* 1.00x */ /* TODO: verify */
				min_hdr_ratio = "1"; /* TODO: verify */
				max_hdr_ratio = "1"; /* TODO: verify */
				min_framerate = "2000000"; /* 2.0 fps */ /* TODO: verify */
				max_framerate = "30000000"; /* 30.0 fps */ /* TODO: verify */
				step_framerate = "1"; /* TODO: verify */
				default_framerate = "30000000"; /* 30.0 fps */ /* TODO: verify */
				min_exp_time = "13"; /* us */ /* TODO: verify */
				max_exp_time = "683709"; /* us */ /* TODO: verify */
				step_exp_time = "1"; /* TODO: verify */
				default_exp_time = "2495"; /* us */ /* TODO: verify */

				embedded_metadata_height = "0";
			};

Streaming

 v4l2-ctl -d /dev/video0 --set-fmt-video=width=4000,height=3000,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=100

trace log

     kworker/0:4-181     [000] ....    72.570339: rtcpu_nvcsi_intr: tstamp:3076361163 class:GLOBAL type:STREAM_VC phy:0 cil:0 st:0 vc:0 status:0x00000004
     kworker/0:4-181     [000] ....    72.570340: rtcpu_nvcsi_intr: tstamp:3076361163 class:CORRECTABLE_ERR type:STREAM_VC phy:0 cil:0 st:0 vc:0 status:0x00000004
     kworker/0:4-181     [000] ....    72.570341: rtcpu_nvcsi_intr: tstamp:3076361753 class:GLOBAL type:STREAM_VC phy:0 cil:0 st:0 vc:0 status:0x0000000c
     kworker/0:4-181     [000] ....    72.570341: rtcpu_nvcsi_intr: tstamp:3076361753 class:CORRECTABLE_ERR type:STREAM_VC phy:0 cil:0 st:0 vc:0 status:0x00000008
     kworker/0:4-181     [000] ....    72.570343: rtcpu_vinotify_error: tstamp:3076365389 cch:-1 vi:0 tag:CSIMUX_STREAM channel:0x00 frame:0 vi_tstamp:98429945248 data:0x0000000000000001
     kworker/0:4-181     [000] ....    72.570344: rtcpu_vinotify_event: tstamp:3076367168 cch:-1 vi:0 tag:CSIMUX_STREAM channel:0x00 frame:0 vi_tstamp:98429945248 data:0x0000000000000001
     kworker/0:4-181     [000] ....    72.622900: rtcpu_nvcsi_intr: tstamp:3076977360 class:GLOBAL type:STREAM_VC phy:0 cil:0 st:0 vc:0 status:0x00000008
     kworker/0:4-181     [000] ....    72.622928: rtcpu_nvcsi_intr: tstamp:3076977360 class:CORRECTABLE_ERR type:STREAM_VC phy:0 cil:0 st:0 vc:0 status:0x00000008
     kworker/0:4-181     [000] ....    72.622931: rtcpu_string: tstamp:3076978374 id:0x04010000 str:"BUG: camera-ip/vi5/vi5.c:415 [vi5_check_falcon_f"
     kworker/0:4-181     [000] ....    72.622934: rtcpu_string: tstamp:3076978489 id:0x04010000 str:"ailure] ""
     kworker/0:4-181     [000] ....    72.622936: rtcpu_string: tstamp:3076981570 id:0x04010000 str:"VI FALCON FAILURE: 0x40000000"
     kworker/0:4-181     [000] ....    72.622938: rtcpu_string: tstamp:3076992590 id:0x04010000 str:""
"
     kworker/0:4-181     [000] ....    72.734922: rtcpu_start: tstamp:3081323274

Please update to r35.4.1 for deskew calibration due to your output data rate > 1.5Gbps.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.