MIPI CSI-2 Driver Development

Hello @ShaneCCC and @JerryChang
We found that the mipi bus used in ov5693 and our sensor are different in ov5693 lines are connected to CSI2 D0 D1 and CLK but we have connected to CSI0 D0 D1 and CLK may be we are trying to read from port 2 thats the reaso xavier is not able to read any data from mipi bus. now what we have to change to read from port CSI0?

Modify the device tree to configure the NVCSI/VI lane configure.

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide%2Fcamera_sensor_prog.html%23wwpID0E0Q50HA

hello revanth.a,

please also check Topic 79280 for several documentation you might refer to for sensor driver development.
you may also access Tutorials page, you may expand [Developer Tools] session for training materials.
there’s V4L2 Sensor Driver Development Tutorial to have more details.
thanks

Hello @ShaneCCC and @JerryChang
I have changed port-index to 0 from 2 in all places and tegra_sinterface to "serial_a"from serial_c but sill iam unable to get any video

I checked “v4l2-ctl --device /dev/video0 --all” in terminal and VI got enumurated as VI port 0

v4l2-ctl --device /dev/video0 --all
Driver Info (not using libv4l2):
Driver name   : tegra-video
Card type     : vi-output, ov5693 1-0036
Bus info      : *platform:15c10000.vi:0*
Driver version: 4.9.140
Capabilities  : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps   : 0x04200001
Video Capture
Streaming
Extended Pix Format
Priority: 2
Video input : 0 (Camera 0: no power)
Format Video Capture:
Width/Height      : 1920/1080
Pixel Format      : 'BG10'
Field             : None
Bytes per Line    : 3840
Size Image        : 4147200
Colorspace        : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization      : Default (maps to Full Range)
Flags             :

Camera Controls

                     group_hold 0x009a2003 (bool)   : default=0 value=0 flags=execute-on-write
                     hdr_enable 0x009a2004 (intmenu): min=0 max=1 default=0 value=0
                    eeprom_data 0x009a2005 (str)    : min=0 max=2048 step=2 value='00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' flags=read-only, has-payload
                       otp_data 0x009a2006 (str)    : min=0 max=1024 step=2 value='0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' flags=read-only, has-payload
                        fuse_id 0x009a2007 (str)    : min=0 max=16 step=2 value='0000000000000000' flags=read-only, has-payload
                           gain 0x009a2009 (int64)  : min=0 max=0 step=0 default=0 value=10 flags=slider
                       exposure 0x009a200a (int64)  : min=0 max=0 step=0 default=0 value=34 flags=slider
                     frame_rate 0x009a200b (int64)  : min=0 max=0 step=0 default=0 value=1816577 flags=slider
                 exposure_short 0x009a200c (int64)  : min=0 max=0 step=0 default=0 value=34 flags=slider
           sensor_configuration 0x009a2032 (u32)    : min=0 max=0 step=0 default=0 flags=read-only, volatile, has-payload
         sensor_mode_i2c_packet 0x009a2033 (u32)    : min=0 max=0 step=0 default=0 flags=read-only, volatile, has-payload
      sensor_control_i2c_packet 0x009a2034 (u32)    : min=0 max=0 step=0 default=0 flags=read-only, volatile, has-payload
                    bypass_mode 0x009a2064 (intmenu): min=0 max=1 default=0 value=0
                override_enable 0x009a2065 (intmenu): min=0 max=1 default=0 value=0
                   height_align 0x009a2066 (int)    : min=1 max=16 step=1 default=1 value=1
                     size_align 0x009a2067 (intmenu): min=0 max=2 default=0 value=0
               write_isp_format 0x009a2068 (int)    : min=1 max=1 step=1 default=1 value=1
       sensor_signal_properties 0x009a2069 (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
        sensor_image_properties 0x009a206a (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
      sensor_control_properties 0x009a206b (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
              sensor_dv_timings 0x009a206c (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
               low_latency_mode 0x009a206d (bool)   : default=0 value=0
                   sensor_modes 0x009a2082 (int)    : min=0 max=30 step=1 default=30 value=3 flags=read-only

Device tree source code:

host1x {
vi@15c10000 {
num-channels = <1>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
e3326_vi_in0: endpoint {
port-index = <0>;
bus-width = <2>;
remote-endpoint = <&e3326_csi_out0>;
};
};
};
};

  nvcsi@15a00000 {
  	num-channels = <1>;
  	#address-cells = <1>;
  	#size-cells = <0>;
  	channel@0 {
  		reg = <0>;
  		ports {
  			#address-cells = <1>;
  			#size-cells = <0>;
  			port@0 {
  				reg = <0>;
  				e3326_csi_in0: endpoint@0 {
  					port-index = <0>;
  					bus-width = <2>;
  					remote-endpoint = <&e3326_ov5693_out0>;
  				};
  			};
  			port@1 {
  				reg = <1>;
  				e3326_csi_out0: endpoint@1 {
  					remote-endpoint = <&e3326_vi_in0>;
  				};
  			};
  		};
  	};
  };

};

i2c@c240000 {
ov5693_c@36 {
compatible = “nvidia,ov5693”;
/* I2C device address */
reg = <0x36>;

  	/* V4L2 device node location */
  	devnode = "video0";

  	/* Physical dimensions of sensor */
  	physical_w = "3.674";
  	physical_h = "2.738";

  	/* Define any required hw resources needed by driver */
  	/* ie. clocks, io pins, power sources */
  	avdd-reg = "vana";
  	iovdd-reg = "vif";

  	/* Sensor output flip settings */
  	vertical-flip = "true";

  	/**
  	* A modeX node is required to support v4l2 driver
  	* implementation with NVIDIA camera software stack
  	*
  	* mclk_khz = "";
  	* Standard MIPI driving clock, typically 24MHz
  	*
  	* num_lanes = "";
  	* Number of lane channels sensor is programmed to output
  	*
  	* tegra_sinterface = "";
  	* The base tegra serial interface lanes are connected to
  	* Incase of virtual HW devices, use virtual
  	* For SW emulated devices, use host
  	*
  	* phy_mode = "";
  	* PHY mode used by the MIPI lanes for this device
  	*
  	* discontinuous_clk = "";
  	* The sensor is programmed to use a discontinuous clock on MIPI lanes
  	*
  	* dpcm_enable = "true";
  	* The sensor is programmed to use a DPCM modes
  	*
  	* cil_settletime = "";
  	* MIPI lane settle time value.
  	* A "0" value attempts to autocalibrate based on mclk_multiplier
  	*
  	*
  	*
  	*
  	* active_w = "";
  	* Pixel active region width
  	*
  	* active_h = "";
  	* Pixel active region height
  	*
  	* pixel_t = "";
  	* The sensor readout pixel pattern
  	*
  	* readout_orientation = "0";
  	* Based on camera module orientation.
  	* Only change readout_orientation if you specifically
  	* Program a different readout order for this mode
  	*
  	* line_length = "";
  	* Pixel line length (width) for sensor mode.
  	* This is used to calibrate features in our camera stack.
  	*
  	* mclk_multiplier = "";
  	* Multiplier to MCLK to help time hardware capture sequence
  	* TODO: Assign to PLL_Multiplier as well until fixed in core
  	*
  	* pix_clk_hz = "";
  	* Sensor pixel clock used for calculations like exposure and framerate
  	*
  	*
  	*
  	*
  	* inherent_gain = "";
  	* Gain obtained inherently from mode (ie. pixel binning)
  	*
  	* == Source Control Settings ==
  	*
  	* Gain factor used to convert fixed point integer to float
  	* Gain range [min_gain/gain_factor, max_gain/gain_factor]
  	* Gain step [step_gain/gain_factor is the smallest step that can be configured]
  	* Default gain [Default gain to be initialized for the control.
  	*     use min_gain_val as default for optimal results]
  	* Framerate factor used to convert fixed point integer to float
  	* Framerate range [min_framerate/framerate_factor, max_framerate/framerate_factor]
  	* Framerate step [step_framerate/framerate_factor is the smallest step that can be configured]
  	* Default Framerate [Default framerate to be initialized for the control.
  	*     use max_framerate to get required performance]
  	* Exposure factor used to convert fixed point integer to float
  	* For convenience use 1 sec = 1000000us as conversion factor
  	* Exposure range [min_exp_time/exposure_factor, max_exp_time/exposure_factor]
  	* Exposure step [step_exp_time/exposure_factor is the smallest step that can be configured]
  	* Default Exposure Time [Default exposure to be initialized for the control.
  	*     Set default exposure based on the default_framerate for optimal exposure settings]
  	*
  	* gain_factor = ""; (integer factor used for floating to fixed point conversion)
  	* min_gain_val = ""; (ceil to integer)
  	* max_gain_val = ""; (ceil to integer)
  	* step_gain_val = ""; (ceil to integer)
  	* default_gain = ""; (ceil to integer)
  	* Gain limits for mode
  	*
  	* exposure_factor = ""; (integer factor used for floating to fixed point conversion)
  	* min_exp_time = ""; (ceil to integer)
  	* max_exp_time = ""; (ceil to integer)
  	* step_exp_time = ""; (ceil to integer)
  	* default_exp_time = ""; (ceil to integer)
  	* Exposure Time limits for mode (us)
  	*
  	*
  	* min_hdr_ratio = "";
  	* max_hdr_ratio = "";
  	* HDR Ratio limits for mode
  	*
  	* framerate_factor = ""; (integer factor used for floating to fixed point conversion)
  	* min_framerate = "";
  	* max_framerate = "";
  	* step_framerate = ""; (ceil to integer)
  	* default_framerate = ""; (ceil to integer)
  	* Framerate limits for mode (fps)
  	*/
  	mode0 { // OV5693_MODE_2592X1944
  		mclk_khz = "24000";
  		num_lanes = "2";
  		tegra_sinterface = "serial_a";
  		phy_mode = "DPHY";
  		discontinuous_clk = "yes";
  		dpcm_enable = "false";
  		cil_settletime = "0";

  		active_w = "1920";
  		active_h = "1080";
  		mode_type = "bayer";
  		pixel_phase = "bggr";
  		csi_pixel_bit_depth = "10";
  		readout_orientation = "0";
  		line_length = "1935";
  		inherent_gain = "1";
  		mclk_multiplier = "6.67";
  		pix_clk_hz = "90000000";

  		gain_factor = "10";
  		min_gain_val = "10";/* 1DB*/
  		max_gain_val = "160";/* 16DB*/
  		step_gain_val = "1";
  		default_gain = "10";
  		min_hdr_ratio = "1";
  		max_hdr_ratio = "1";
  		framerate_factor = "1000000";
  		min_framerate = "1816577";/*1.816577 */
  		max_framerate = "30000000";/*30*/
  		step_framerate = "1";
  		default_framerate = "30000000";
  		exposure_factor = "1000000";
  		min_exp_time = "34";/* us */
  		max_exp_time = "550385";/* us */
  		step_exp_time = "1";
  		default_exp_time = "33334";/* us */
  		embedded_metadata_height = "0";
  	};

  	mode1 { //OV5693_MODE_2592X1458
  		mclk_khz = "24000";
  		num_lanes = "2";
  		tegra_sinterface = "serial_a";
  		phy_mode = "DPHY";
  		discontinuous_clk = "yes";
  		dpcm_enable = "false";
  		cil_settletime = "0";

  		active_w = "2592";
  		active_h = "1458";
  		mode_type = "bayer";
  		pixel_phase = "bggr";
  		csi_pixel_bit_depth = "10";
  		readout_orientation = "0";
  		line_length = "2688";
  		inherent_gain = "1";
  		mclk_multiplier = "6.67";
  		pix_clk_hz = "90000000";

  		gain_factor = "10";
  		min_gain_val = "10";/* 1DB*/
  		max_gain_val = "160";/* 16DB*/
  		step_gain_val = "1";
  		default_gain = "10";
  		min_hdr_ratio = "1";
  		max_hdr_ratio = "1";
  		framerate_factor = "1000000";
  		min_framerate = "1816577";/*1.816577 */
  		max_framerate = "30000000";/*30*/
  		step_framerate = "1";
  		default_framerate = "30000000";
  		exposure_factor = "1000000";
  		min_exp_time = "34";/* us */
  		max_exp_time = "550385";/* us */
  		step_exp_time = "1";
  		default_exp_time = "33334";/* us */
  		embedded_metadata_height = "0";
  	};

  	mode2 { //OV5693_MODE_1280X720
  		mclk_khz = "24000";
  		num_lanes = "2";
  		tegra_sinterface = "serial_a";
  		phy_mode = "DPHY";
  		discontinuous_clk = "yes";
  		dpcm_enable = "false";
  		cil_settletime = "0";

  		active_w = "1280";
  		active_h = "720";
  		mode_type = "bayer";
  		pixel_phase = "bggr";
  		csi_pixel_bit_depth = "10";
  		readout_orientation = "0";
  		line_length = "1752";
  		inherent_gain = "1";
  		mclk_multiplier = "6.67";
  		pix_clk_hz = "90000000";

  		gain_factor = "10";
  		min_gain_val = "10";/* 1DB*/
  		max_gain_val = "160";/* 16DB*/
  		step_gain_val = "1";
  		default_gain = "10";
  		min_hdr_ratio = "1";
  		max_hdr_ratio = "1";
  		framerate_factor = "1000000";
  		min_framerate = "2787078";/* 2.787078 */
  		max_framerate = "120000000";/* 120*/
  		step_framerate = "1";
  		default_framerate = "120000000";
  		exposure_factor = "1000000";
  		min_exp_time = "22";/* us */
  		max_exp_time = "358733";/* us */
  		step_exp_time = "1";
  		default_exp_time = "8334";/* us */
  		embedded_metadata_height = "0";
  	};

  	ports {
  		#address-cells = <1>;
  		#size-cells = <0>;

  		port@0 {
  			reg = <0>;
  			e3326_ov5693_out0: endpoint {
  				port-index = <0>;
  				bus-width = <2>;
  				remote-endpoint = <&e3326_csi_in0>;
  			};
  		};
  	};
  };

};

e3326_lens_ov5693@P5V27C {
min_focus_distance = “0.0”;
hyper_focal = “0.0”;
focal_length = “2.67”;
f_number = “2.0”;
aperture = “2.0”;
};

tegra-camera-platform {
compatible = “nvidia, tegra-camera-platform”;
/**
* Physical settings to calculate max ISO BW
*
* num_csi_lanes = <>;
* Total number of CSI lanes when all cameras are active
*
* max_lane_speed = <>;
* Max lane speed in Kbit/s
*
* min_bits_per_pixel = <>;
* Min bits per pixel
*
* vi_peak_byte_per_pixel = <>;
* Max byte per pixel for the VI ISO case
*
* vi_bw_margin_pct = <>;
* Vi bandwidth margin in percentage
*
* max_pixel_rate = <>;
* Max pixel rate in Kpixel/s for the ISP ISO case
*
* isp_peak_byte_per_pixel = <>;
* Max byte per pixel for the ISP ISO case
*
* isp_bw_margin_pct = <>;
* Isp bandwidth margin in percentage
*/
num_csi_lanes = <2>;
max_lane_speed = <1500000>;
min_bits_per_pixel = <10>;
vi_peak_byte_per_pixel = <2>;
vi_bw_margin_pct = <25>;
max_pixel_rate = <160000>;
isp_peak_byte_per_pixel = <5>;
isp_bw_margin_pct = <25>;

  /**
  * The general guideline for naming badge_info contains 3 parts, and is as follows,
  * The first part is the camera_board_id for the module; if the module is in a FFD
  * platform, then use the platform name for this part.
  * The second part contains the position of the module, ex. “rear” or “front”.
  * The third part contains the last 6 characters of a part number which is found
  * in the module's specsheet from the vender.
  */
  modules {
  	module0 {
  		badge = "e3326_front_P5V27C";
  		position = "rear";
  		orientation = "1";
  		drivernode0 {
  			/* Declare PCL support driver (classically known as guid)  */
  			pcl_id = "v4l2_sensor";
  			/* Driver v4l2 device name */
  			devname = "ov5693 2-0036";
  			/* Declare the device-tree hierarchy to driver instance */
  			proc-device-tree = "/proc/device-tree/i2c@c240000/ov5693_c@36";
  		};
  		drivernode1 {
  			/* Declare PCL support driver (classically known as guid)  */
  			pcl_id = "v4l2_lens";
  			proc-device-tree = "/proc/device-tree/e3326_lens_ov5693@P5V27C/";
  		};
  	};
  };

};
};

But still iam unable to get the video , following messages were obtained this time instead of no response from terminal

root@rev-desktop:~# v4l2-ctl --stream-mmap --stream-count=1 -d /dev/video0
VIDIOC_STREAMON: failed: Invalid argument

Trace logs:

# tracer: nop
#
# entries-in-buffer/entries-written: 183/183   #P:4
#
#                              _-----=> irqs-off
#                             / _----=> need-resched
#                            | / _---=> hardirq/softirq
#                            || / _--=> preempt-depth
#                            ||| /     delay
#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
        v4l2-ctl-23467 [003] ....  1082.634809: tegra_channel_open: vi-output, ov5693 1-0036
        v4l2-ctl-23467 [002] ....  1082.637350: tegra_channel_set_power: ov5693 1-0036 : 0x1
        v4l2-ctl-23467 [002] ....  1082.637496: camera_common_s_power: status : 0x1
        v4l2-ctl-23467 [002] ....  1082.642273: tegra_channel_set_power: 15a00000.nvcsi--1 : 0x1
        v4l2-ctl-23467 [002] ....  1082.642284: csi_s_power: enable : 0x1
        v4l2-ctl-23467 [002] ....  1082.654557: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt c4
        v4l2-ctl-23467 [002] .n..  1082.670717: tegra_channel_set_stream: enable : 0x1
        v4l2-ctl-23467 [002] ....  1082.679236: tegra_channel_set_stream: 15a00000.nvcsi--1 : 0x1
        v4l2-ctl-23467 [002] ....  1082.679243: csi_s_stream: enable : 0x1
        v4l2-ctl-23467 [002] ....  1082.679293: tegra_channel_set_stream: ov5693 1-0036 : 0x1
     kworker/1:2-23123 [001] ....  1082.684858: rtos_queue_peek_from_isr_failed: tstamp:34151818154 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1082.684864: rtcpu_start: tstamp:34151822228
     kworker/1:2-23123 [001] ....  1082.684868: rtos_queue_send_from_isr_failed: tstamp:34151940637 queue:0x0bcb41f8
     kworker/1:2-23123 [001] ....  1082.684869: rtos_queue_send_from_isr_failed: tstamp:34151940860 queue:0x0bcb8a60
     kworker/1:2-23123 [001] ....  1082.684870: rtos_queue_send_from_isr_failed: tstamp:34151941083 queue:0x0bcba5e0
     kworker/1:2-23123 [001] ....  1082.684872: rtos_queue_send_from_isr_failed: tstamp:34151941328 queue:0x0bcbb3a0
     kworker/1:2-23123 [001] ....  1082.684873: rtos_queue_send_from_isr_failed: tstamp:34151941546 queue:0x0bcbc160
     kworker/1:2-23123 [001] ....  1082.684876: rtcpu_string: tstamp:34151942259 id:0x04010000 str:"Configuring VI GoS.
"
     kworker/1:2-23123 [001] ....  1082.684933: rtcpu_string: tstamp:34151942526 id:0x04010000 str:"VM GOS[#0] addr=0xc2100000
"
     kworker/1:2-23123 [001] ....  1082.684954: rtcpu_string: tstamp:34151942856 id:0x04010000 str:"VM GOS[#1] addr=0xc2101000
"
     kworker/1:2-23123 [001] ....  1082.684973: rtcpu_string: tstamp:34151943227 id:0x04010000 str:"VM GOS[#2] addr=0xc2102000
"
     kworker/1:2-23123 [001] ....  1082.684991: rtcpu_string: tstamp:34151943535 id:0x04010000 str:"VM GOS[#3] addr=0xc2103000
"
     kworker/1:2-23123 [001] ....  1082.685009: rtcpu_string: tstamp:34151943844 id:0x04010000 str:"VM GOS[#4] addr=0xc2104000
"
     kworker/1:2-23123 [001] ....  1082.685027: rtcpu_string: tstamp:34151944152 id:0x04010000 str:"VM GOS[#5] addr=0xc2105000
"
     kworker/1:2-23123 [001] ....  1082.685045: rtcpu_string: tstamp:34151952154 id:0x04010000 str:"vi5_hwinit: firmware CL2018101701 protocol versi"
     kworker/1:2-23123 [001] ....  1082.685047: rtcpu_string: tstamp:34151952344 id:0x04010000 str:"on 2.2
"
     kworker/1:2-23123 [001] ....  1082.685066: rtos_queue_send_from_isr_failed: tstamp:34151982650 queue:0x0bcb41f8
     kworker/1:2-23123 [001] ....  1082.685067: rtos_queue_send_from_isr_failed: tstamp:34151982875 queue:0x0bcb8a60
     kworker/1:2-23123 [001] ....  1082.685069: rtos_queue_send_from_isr_failed: tstamp:34151983102 queue:0x0bcba5e0
     kworker/1:2-23123 [001] ....  1082.685070: rtos_queue_send_from_isr_failed: tstamp:34151983320 queue:0x0bcbb3a0
     kworker/1:2-23123 [001] ....  1082.685071: rtos_queue_send_from_isr_failed: tstamp:34151983536 queue:0x0bcbc160
     kworker/1:2-23123 [001] ....  1082.685073: rtcpu_string: tstamp:34151984724 id:0x04010000 str:"VI GOS[#0] set to VM GOS[4] base 0xc2104000
"
     kworker/1:2-23123 [001] ....  1082.685091: rtos_queue_send_from_isr_failed: tstamp:34152262079 queue:0x0bcb41f8
     kworker/1:2-23123 [001] ....  1082.685093: rtos_queue_send_from_isr_failed: tstamp:34152262258 queue:0x0bcb8a60
     kworker/1:2-23123 [001] ....  1082.685094: rtos_queue_send_from_isr_failed: tstamp:34152262421 queue:0x0bcba5e0
     kworker/1:2-23123 [001] ....  1082.685096: rtos_queue_send_from_isr_failed: tstamp:34152262578 queue:0x0bcbb3a0
     kworker/1:2-23123 [001] ....  1082.685097: rtos_queue_send_from_isr_failed: tstamp:34152262735 queue:0x0bcbc160
     kworker/1:2-23123 [001] ....  1082.740810: rtcpu_vinotify_event: tstamp:34152454794 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:32006626112 data:0x10000000
     kworker/1:2-23123 [001] ....  1082.740816: rtcpu_vinotify_event: tstamp:34152454958 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:32006629920 data:0x31000001
     kworker/1:2-23123 [001] ....  1082.740817: rtcpu_vinotify_event: tstamp:34152455138 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:32006630912 data:0x07020001
     kworker/1:2-23123 [001] ....  1082.740819: rtcpu_vinotify_event: tstamp:34152455284 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:32006685248 data:0x10000000
     kworker/1:2-23123 [001] ....  1082.740820: rtcpu_vinotify_event: tstamp:34152455474 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:32006689120 data:0x31000002
     kworker/1:2-23123 [001] ....  1082.852812: rtos_queue_peek_from_isr_failed: tstamp:34156818539 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1083.020819: rtos_queue_peek_from_isr_failed: tstamp:34161818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1083.188746: rtos_queue_peek_from_isr_failed: tstamp:34166818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1083.356724: rtos_queue_peek_from_isr_failed: tstamp:34171818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1083.468723: rtos_queue_peek_from_isr_failed: tstamp:34176818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1083.636688: rtos_queue_peek_from_isr_failed: tstamp:34181818539 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1083.804681: rtos_queue_peek_from_isr_failed: tstamp:34186818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1083.972692: rtos_queue_peek_from_isr_failed: tstamp:34191818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1084.140635: rtos_queue_peek_from_isr_failed: tstamp:34196818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1084.308621: rtos_queue_peek_from_isr_failed: tstamp:34201818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1084.476617: rtos_queue_peek_from_isr_failed: tstamp:34206818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1084.588585: rtos_queue_peek_from_isr_failed: tstamp:34211818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1084.756552: rtos_queue_peek_from_isr_failed: tstamp:34216818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1084.924545: rtos_queue_peek_from_isr_failed: tstamp:34221818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1085.092493: rtos_queue_peek_from_isr_failed: tstamp:34226818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1085.260521: rtos_queue_peek_from_isr_failed: tstamp:34231818535 queue:0x0bcbcf78
 vi-output, ov56-23469 [000] ....  1085.275118: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt c4
        v4l2-ctl-23467 [003] ....  1085.278868: tegra_channel_close: vi-output, ov5693 1-0036
        v4l2-ctl-23467 [003] ....  1085.280909: tegra_channel_set_power: ov5693 1-0036 : 0x0
        v4l2-ctl-23467 [003] ....  1085.280928: camera_common_s_power: status : 0x0
        v4l2-ctl-23467 [000] ....  1085.283274: tegra_channel_set_power: 15a00000.nvcsi--1 : 0x0
        v4l2-ctl-23467 [000] ....  1085.283280: csi_s_power: enable : 0x0
     kworker/1:2-23123 [001] ....  1085.316481: rtos_queue_send_from_isr_failed: tstamp:34233315965 queue:0x0bcb41f8
     kworker/1:2-23123 [001] ....  1085.316488: rtos_queue_send_from_isr_failed: tstamp:34233316127 queue:0x0bcb8a60
     kworker/1:2-23123 [001] ....  1085.316490: rtos_queue_send_from_isr_failed: tstamp:34233316291 queue:0x0bcba5e0
     kworker/1:2-23123 [001] ....  1085.316491: rtos_queue_send_from_isr_failed: tstamp:34233316449 queue:0x0bcbb3a0
     kworker/1:2-23123 [001] ....  1085.316493: rtos_queue_send_from_isr_failed: tstamp:34233316606 queue:0x0bcbc160
     kworker/1:2-23123 [001] ....  1085.316494: rtos_queue_send_from_isr_failed: tstamp:34233378081 queue:0x0bcb41f8
     kworker/1:2-23123 [001] ....  1085.316496: rtos_queue_send_from_isr_failed: tstamp:34233378243 queue:0x0bcb8a60
     kworker/1:2-23123 [001] ....  1085.316498: rtos_queue_send_from_isr_failed: tstamp:34233378408 queue:0x0bcba5e0
     kworker/1:2-23123 [001] ....  1085.316499: rtos_queue_send_from_isr_failed: tstamp:34233378565 queue:0x0bcbb3a0
     kworker/1:2-23123 [001] ....  1085.316501: rtos_queue_send_from_isr_failed: tstamp:34233378723 queue:0x0bcbc160
     kworker/1:2-23123 [001] ....  1085.316504: rtcpu_string: tstamp:34233385400 id:0x04010000 str:"Configuring VI GoS.
"
     kworker/1:2-23123 [001] ....  1085.316557: rtcpu_string: tstamp:34233385594 id:0x04010000 str:"VM GOS[#0] addr=0xc2100000
"
     kworker/1:2-23123 [001] ....  1085.316579: rtcpu_string: tstamp:34233385856 id:0x04010000 str:"VM GOS[#1] addr=0xc2101000
"
     kworker/1:2-23123 [001] ....  1085.316599: rtcpu_string: tstamp:34233386131 id:0x04010000 str:"VM GOS[#2] addr=0xc2102000
"
     kworker/1:2-23123 [001] ....  1085.316618: rtcpu_string: tstamp:34233386372 id:0x04010000 str:"VM GOS[#3] addr=0xc2103000
"
     kworker/1:2-23123 [001] ....  1085.316637: rtcpu_string: tstamp:34233386616 id:0x04010000 str:"VM GOS[#4] addr=0xc2104000
"
     kworker/1:2-23123 [001] ....  1085.316656: rtcpu_string: tstamp:34233386857 id:0x04010000 str:"VM GOS[#5] addr=0xc2105000
"
     kworker/1:2-23123 [001] ....  1085.428498: rtos_queue_peek_from_isr_failed: tstamp:34236818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1085.596486: rtos_queue_peek_from_isr_failed: tstamp:34241818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1085.708472: rtos_queue_peek_from_isr_failed: tstamp:34246818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1085.876402: rtos_queue_peek_from_isr_failed: tstamp:34251818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1086.044386: rtos_queue_peek_from_isr_failed: tstamp:34256818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1086.212371: rtos_queue_peek_from_isr_failed: tstamp:34261818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1086.380335: rtos_queue_peek_from_isr_failed: tstamp:34266818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1086.548330: rtos_queue_peek_from_isr_failed: tstamp:34271818533 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1086.716307: rtos_queue_peek_from_isr_failed: tstamp:34276818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1086.828320: rtos_queue_peek_from_isr_failed: tstamp:34281818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1086.996319: rtos_queue_peek_from_isr_failed: tstamp:34286818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1087.164228: rtos_queue_peek_from_isr_failed: tstamp:34291818539 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1087.332212: rtos_queue_peek_from_isr_failed: tstamp:34296818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1087.500213: rtos_queue_peek_from_isr_failed: tstamp:34301818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1087.668189: rtos_queue_peek_from_isr_failed: tstamp:34306818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1087.836190: rtos_queue_peek_from_isr_failed: tstamp:34311818539 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1087.948126: rtos_queue_peek_from_isr_failed: tstamp:34316818539 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1088.116113: rtos_queue_peek_from_isr_failed: tstamp:34321818539 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1088.284082: rtos_queue_peek_from_isr_failed: tstamp:34326818539 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1088.452117: rtos_queue_peek_from_isr_failed: tstamp:34331818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1088.620036: rtos_queue_peek_from_isr_failed: tstamp:34336818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1088.788057: rtos_queue_peek_from_isr_failed: tstamp:34341818533 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1088.956011: rtos_queue_peek_from_isr_failed: tstamp:34346818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1089.068011: rtos_queue_peek_from_isr_failed: tstamp:34351818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1089.235963: rtos_queue_peek_from_isr_failed: tstamp:34356818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1089.403961: rtos_queue_peek_from_isr_failed: tstamp:34361818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1089.571939: rtos_queue_peek_from_isr_failed: tstamp:34366818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1089.739975: rtos_queue_peek_from_isr_failed: tstamp:34371818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1089.907887: rtos_queue_peek_from_isr_failed: tstamp:34376818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1090.075855: rtos_queue_peek_from_isr_failed: tstamp:34381818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1090.187828: rtos_queue_peek_from_isr_failed: tstamp:34386818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1090.355820: rtos_queue_peek_from_isr_failed: tstamp:34391818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1090.523831: rtos_queue_peek_from_isr_failed: tstamp:34396818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1090.691789: rtos_queue_peek_from_isr_failed: tstamp:34401818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1090.863740: rtos_queue_peek_from_isr_failed: tstamp:34406818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1091.031771: rtos_queue_peek_from_isr_failed: tstamp:34411818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1091.199757: rtos_queue_peek_from_isr_failed: tstamp:34416818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1091.311713: rtos_queue_peek_from_isr_failed: tstamp:34421818538 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1091.479679: rtos_queue_peek_from_isr_failed: tstamp:34426818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1091.647662: rtos_queue_peek_from_isr_failed: tstamp:34431818538 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1091.815647: rtos_queue_peek_from_isr_failed: tstamp:34436818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1091.983628: rtos_queue_peek_from_isr_failed: tstamp:34441818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1092.151587: rtos_queue_peek_from_isr_failed: tstamp:34446818539 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1092.319613: rtos_queue_peek_from_isr_failed: tstamp:34451818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1092.431568: rtos_queue_peek_from_isr_failed: tstamp:34456819274 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1092.599570: rtos_queue_peek_from_isr_failed: tstamp:34461818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1092.767529: rtos_queue_peek_from_isr_failed: tstamp:34466818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1092.935480: rtos_queue_peek_from_isr_failed: tstamp:34471818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1093.103524: rtos_queue_peek_from_isr_failed: tstamp:34476818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1093.271434: rtos_queue_peek_from_isr_failed: tstamp:34481818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1093.439438: rtos_queue_peek_from_isr_failed: tstamp:34486818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1093.551452: rtos_queue_peek_from_isr_failed: tstamp:34491818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1093.719391: rtos_queue_peek_from_isr_failed: tstamp:34496818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1093.887398: rtos_queue_peek_from_isr_failed: tstamp:34501818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1094.055353: rtos_queue_peek_from_isr_failed: tstamp:34506818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1094.223333: rtos_queue_peek_from_isr_failed: tstamp:34511818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1094.391303: rtos_queue_peek_from_isr_failed: tstamp:34516818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1094.559287: rtos_queue_peek_from_isr_failed: tstamp:34521818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1094.671263: rtos_queue_peek_from_isr_failed: tstamp:34526818531 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1094.839291: rtos_queue_peek_from_isr_failed: tstamp:34531818540 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1095.007227: rtos_queue_peek_from_isr_failed: tstamp:34536818539 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1095.175206: rtos_queue_peek_from_isr_failed: tstamp:34541818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1095.343193: rtos_queue_peek_from_isr_failed: tstamp:34546818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1095.511170: rtos_queue_peek_from_isr_failed: tstamp:34551818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1095.679125: rtos_queue_peek_from_isr_failed: tstamp:34556818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1095.791171: rtos_queue_peek_from_isr_failed: tstamp:34561818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1095.959102: rtos_queue_peek_from_isr_failed: tstamp:34566818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1096.127090: rtos_queue_peek_from_isr_failed: tstamp:34571818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1096.295073: rtos_queue_peek_from_isr_failed: tstamp:34576818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1096.463084: rtos_queue_peek_from_isr_failed: tstamp:34581818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1096.631032: rtos_queue_peek_from_isr_failed: tstamp:34586818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1096.799019: rtos_queue_peek_from_isr_failed: tstamp:34591818539 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1096.910998: rtos_queue_peek_from_isr_failed: tstamp:34596818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1097.078988: rtos_queue_peek_from_isr_failed: tstamp:34601818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1097.246941: rtos_queue_peek_from_isr_failed: tstamp:34606818539 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1097.414941: rtos_queue_peek_from_isr_failed: tstamp:34611818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1097.582917: rtos_queue_peek_from_isr_failed: tstamp:34616818539 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1097.750868: rtos_queue_peek_from_isr_failed: tstamp:34621818542 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1097.918900: rtos_queue_peek_from_isr_failed: tstamp:34626818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1098.030846: rtos_queue_peek_from_isr_failed: tstamp:34631818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1098.198842: rtos_queue_peek_from_isr_failed: tstamp:34636818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1098.366814: rtos_queue_peek_from_isr_failed: tstamp:34641818539 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1098.534793: rtos_queue_peek_from_isr_failed: tstamp:34646818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1098.702759: rtos_queue_peek_from_isr_failed: tstamp:34651818539 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1098.870758: rtos_queue_peek_from_isr_failed: tstamp:34656818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1099.038755: rtos_queue_peek_from_isr_failed: tstamp:34661818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1099.150719: rtos_queue_peek_from_isr_failed: tstamp:34666818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1099.318712: rtos_queue_peek_from_isr_failed: tstamp:34671818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1099.486669: rtos_queue_peek_from_isr_failed: tstamp:34676818539 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1099.654661: rtos_queue_peek_from_isr_failed: tstamp:34681818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1099.822641: rtos_queue_peek_from_isr_failed: tstamp:34686818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1099.990623: rtos_queue_peek_from_isr_failed: tstamp:34691818538 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1100.158589: rtos_queue_peek_from_isr_failed: tstamp:34696818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1100.270590: rtos_queue_peek_from_isr_failed: tstamp:34701818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1100.438559: rtos_queue_peek_from_isr_failed: tstamp:34706818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1100.606518: rtos_queue_peek_from_isr_failed: tstamp:34711818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1100.774541: rtos_queue_peek_from_isr_failed: tstamp:34716818538 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1100.942476: rtos_queue_peek_from_isr_failed: tstamp:34721818536 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1101.114481: rtos_queue_peek_from_isr_failed: tstamp:34726818535 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1101.226508: rtos_queue_peek_from_isr_failed: tstamp:34731818539 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1101.394472: rtos_queue_peek_from_isr_failed: tstamp:34736818539 queue:0x0bcbcf78
     kworker/1:2-23123 [001] ....  1101.562421: rtos_queue_peek_from_isr_failed: tstamp:34741818536 queue:0x0bcbcf78
root@rev-desktop:~# 

V4l2 compliance test

rev@rev-desktop:~$ v4l2-compliance
v4l2-compliance SHA : not available

Driver Info:
Driver name : tegra-video
Card type : vi-output, ov5693 1-0036
Bus info : platform:[15c10000.vi:0](http://15c10000.vi:0/)
Driver version: 4.9.140
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format

Compliance test for device /dev/video0 (not using libv4l2):

Required ioctls:
test VIDIOC_QUERYCAP: OK

Allow for multiple opens:
test second video open: OK
test VIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OK

Debug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
test VIDIOC_LOG_STATUS: OK

Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported)
test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK
test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 1 Audio Inputs: 0 Tuners: 0

Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
test VIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0

Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported)
test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported)
test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported)
test VIDIOC_G/S_EDID: OK (Not Supported)

Test input 0:

Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
test VIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 1 Private Controls: 23

Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK
fail: v4l2-test-formats.cpp(1184): ret && node->has_frmintervals
test VIDIOC_G/S_PARM: FAIL
test VIDIOC_G_FBUF: OK (Not Supported)
test VIDIOC_G_FMT: OK
test VIDIOC_TRY_FMT: OK
warn: v4l2-test-formats.cpp(997): S_FMT cannot handle an invalid pixelformat.
warn: v4l2-test-formats.cpp(998): This may or may not be a problem. For more information see:
warn: v4l2-test-formats.cpp(999): http://www.mail-archive.com/linux-media@vger.kernel.org/msg56550.html
fail: v4l2-test-formats.cpp(1013): S_FMT cannot handle an invalid format
test VIDIOC_S_FMT: FAIL
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
fail: v4l2-test-formats.cpp(1550): doioctl(node, VIDIOC_S_FMT, &fmt)
fail: v4l2-test-formats.cpp(1647): doioctl(node, VIDIOC_S_FMT, &fmt)
test Scaling: FAIL

Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
test VIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)

Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK
test VIDIOC_EXPBUF: OK

Test input 0:

Total: 43, Succeeded: 40, Failed: 3, Warnings: 3

are you actually working with camera sensor on CSI-A ?

@JerryChang
Yes our sensors mipi lines are connected to CSI-A of Jetson Xavier

I would suggest to probe the signal to confirm the connection, and print out the configure from the csi/vi driver to confirm the configure.

Hello @ShaneCCC and @JerryChang
We also notice that in MIPI CSI-A clock lanes we are getting signals during initialization of driver and after booting process/ after initialization it goes low. while giving the v4l2 command clock comes for 2 pulse and goes low but data lanes have continuous pulses (image attached). scope_2 image shows mipi bus clk during driver initialization , Scope_3 image shows data lanes when v4l2 command is called. image scope_4 shows clock lanes when v4l2 command is called (only 2 pulses came and goes low).

@ShaneCCC
is the topology is proper for MIPI-CSI A port? do we want to make any changes in Pad settings?

dev@dev-desktop:~$ media-ctl --print-topology
Media controller API version 0.1.0

Media device information
------------------------
driver          tegra194-vi5
model           NVIDIA Tegra Video Input Device
serial          
bus info        
hw revision     0x3
driver version  0.0.0

Device topology
- entity 1: 15a00000.nvcsi--1 (2 pads, 2 links)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev0
pad0: Sink
<- "ov5693 1-0036":0 [ENABLED]
pad1: Source
-> "vi-output, ov5693 1-0036":0 [ENABLED]

- entity 4: ov5693 1-0036 (1 pad, 1 link)
            type V4L2 subdev subtype Sensor flags 0
            device node name /dev/v4l-subdev1
pad0: Source
[fmt:SBGGR10_1X10/1920x1080 field:none colorspace:srgb]
-> "15a00000.nvcsi--1":0 [ENABLED]

- entity 6: vi-output, ov5693 1-0036 (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video0
pad0: Sink
<- "15a00000.nvcsi--1":1 [ENABLED]

Hello @ShaneCCC @JerryChang
Anything to add from your side for previous thread? also i made the following change in the device tree (Added CSI-Port and data lanes parameters) instead of port_Index by revering to the thread (Sensor detected and driver loaded but no /dev/video0 node) , now again sensor driver is loaded but when v4l2 command is called system freezes and restarts ( no logs in trace file).

{
host1x {
vi@15c10000 {
num-channels = <1>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
e3326_vi_in0: endpoint {
csi-port = <0>;
clock-lanes = <0>;
data-lanes = <1 2>;
bus-width = <2>;
remote-endpoint = <&e3326_csi_out0>;
};
};
};
};

  nvcsi@15a00000 {
  	num-channels = <1>;
  	#address-cells = <1>;
  	#size-cells = <0>;
  	channel@0 {
  		reg = <0>;
  		ports {
  			#address-cells = <1>;
  			#size-cells = <0>;
  			port@0 {
  				reg = <0>;
  				e3326_csi_in0: endpoint@0 {
  					csi-port = <0>;
  					bus-width = <2>;
  					remote-endpoint = <&e3326_ov5693_out0>;
  				};
  			};
  			port@1 {
  				reg = <1>;
  				e3326_csi_out0: endpoint@1 {
  					remote-endpoint = <&e3326_vi_in0>;
  				};
  			};
  		};
  	};
  };

};

Is the format is correct for CSI-A port connection?

Current VI driver should use port-index instead of csi-port.

Hello @ShaneCCC and @JerryChang
Still we were not anle to any image data , as of now following things are done

  • Video0 enumurated properly and driver probed properly
  • Sensor mode is seeted up properly and i2c registers are written properly to sensor
  • Start streaming function is invoked properly
  • We are using onboard oscillator , power and GPIO controls in the sensor and not using any power or clock from the Xavier , do we need to comment power and clock related things in driver and devictree file?
  • Since our camera sensor is connected to MIPI CSI A port we have changed, port-index to 0 from 2 in all places and tegra_sinterface to "serial_a"from “serial_c”

Did you check the trace log still the same?

Hello @ShaneCCC @JerryChang

Attached the tracelog and Dmesg Kindly let us know what will be the issue

root@rev-desktop:/home/rev# cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 126/126   #P:4
#
#                              _-----=> irqs-off
#                             / _----=> need-resched
#                            | / _---=> hardirq/softirq
#                            || / _--=> preempt-depth
#                            ||| /     delay
#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
        v4l2-ctl-9256  [000] ....   712.758342: tegra_channel_open: vi-output, ov5693 1-0036
        v4l2-ctl-9256  [000] ....   712.760374: tegra_channel_set_power: ov5693 1-0036 : 0x1
        v4l2-ctl-9256  [000] ....   712.760397: camera_common_s_power: status : 0x1
        v4l2-ctl-9256  [000] ....   712.761080: tegra_channel_set_power: 15a00000.nvcsi--1 : 0x1
        v4l2-ctl-9256  [000] ....   712.761088: csi_s_power: enable : 0x1
        v4l2-ctl-9256  [000] ....   712.773168: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt c4
        v4l2-ctl-9256  [002] ....   712.786991: tegra_channel_set_stream: enable : 0x1
        v4l2-ctl-9256  [000] ....   712.795493: tegra_channel_set_stream: 15a00000.nvcsi--1 : 0x1
        v4l2-ctl-9256  [000] ....   712.795499: csi_s_stream: enable : 0x1
        v4l2-ctl-9256  [000] ....   712.795540: tegra_channel_set_stream: ov5693 1-0036 : 0x1
     kworker/0:0-8999  [000] ....   712.812986: rtos_queue_peek_from_isr_failed: tstamp:22596074318 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   712.812991: rtcpu_start: tstamp:22596076077
     kworker/0:0-8999  [000] ....   712.812994: rtos_queue_send_from_isr_failed: tstamp:22596205258 queue:0x0bcb41f8
     kworker/0:0-8999  [000] ....   712.812996: rtos_queue_send_from_isr_failed: tstamp:22596205482 queue:0x0bcb8a60
     kworker/0:0-8999  [000] ....   712.813030: rtos_queue_send_from_isr_failed: tstamp:22596205701 queue:0x0bcba5e0
     kworker/0:0-8999  [000] ....   712.813031: rtos_queue_send_from_isr_failed: tstamp:22596205924 queue:0x0bcbb3a0
     kworker/0:0-8999  [000] ....   712.813032: rtos_queue_send_from_isr_failed: tstamp:22596206143 queue:0x0bcbc160
     kworker/0:0-8999  [000] ....   712.813034: rtcpu_string: tstamp:22596206767 id:0x04010000 str:"Configuring VI GoS.
"
     kworker/0:0-8999  [000] ....   712.813071: rtcpu_string: tstamp:22596207034 id:0x04010000 str:"VM GOS[#0] addr=0xc2100000
"
     kworker/0:0-8999  [000] ....   712.813088: rtcpu_string: tstamp:22596207370 id:0x04010000 str:"VM GOS[#1] addr=0xc2101000
"
     kworker/0:0-8999  [000] ....   712.813103: rtcpu_string: tstamp:22596207737 id:0x04010000 str:"VM GOS[#2] addr=0xc2102000
"
     kworker/0:0-8999  [000] ....   712.813118: rtcpu_string: tstamp:22596208044 id:0x04010000 str:"VM GOS[#3] addr=0xc2103000
"
     kworker/0:0-8999  [000] ....   712.813132: rtcpu_string: tstamp:22596208358 id:0x04010000 str:"VM GOS[#4] addr=0xc2104000
"
     kworker/0:0-8999  [000] ....   712.813151: rtcpu_string: tstamp:22596208667 id:0x04010000 str:"VM GOS[#5] addr=0xc2105000
"
     kworker/0:0-8999  [000] ....   712.813166: rtcpu_string: tstamp:22596216774 id:0x04010000 str:"vi5_hwinit: firmware CL2018101701 protocol versi"
     kworker/0:0-8999  [000] ....   712.813169: rtcpu_string: tstamp:22596216964 id:0x04010000 str:"on 2.2
"
     kworker/0:0-8999  [000] ....   712.813183: rtos_queue_send_from_isr_failed: tstamp:22596242439 queue:0x0bcb41f8
     kworker/0:0-8999  [000] ....   712.813184: rtos_queue_send_from_isr_failed: tstamp:22596242699 queue:0x0bcb8a60
     kworker/0:0-8999  [000] ....   712.813186: rtos_queue_send_from_isr_failed: tstamp:22596242926 queue:0x0bcba5e0
     kworker/0:0-8999  [000] ....   712.813187: rtos_queue_send_from_isr_failed: tstamp:22596243144 queue:0x0bcbb3a0
     kworker/0:0-8999  [000] ....   712.813188: rtos_queue_send_from_isr_failed: tstamp:22596243362 queue:0x0bcbc160
     kworker/0:0-8999  [000] ....   712.813190: rtcpu_string: tstamp:22596244530 id:0x04010000 str:"VI GOS[#0] set to VM GOS[4] base 0xc2104000
"
     kworker/0:0-8999  [000] ....   712.813233: rtos_queue_send_from_isr_failed: tstamp:22596512021 queue:0x0bcb41f8
     kworker/0:0-8999  [000] ....   712.813234: rtos_queue_send_from_isr_failed: tstamp:22596512200 queue:0x0bcb8a60
     kworker/0:0-8999  [000] ....   712.813236: rtos_queue_send_from_isr_failed: tstamp:22596512362 queue:0x0bcba5e0
     kworker/0:0-8999  [000] ....   712.813237: rtos_queue_send_from_isr_failed: tstamp:22596512519 queue:0x0bcbb3a0
     kworker/0:0-8999  [000] ....   712.813238: rtos_queue_send_from_isr_failed: tstamp:22596512675 queue:0x0bcbc160
     kworker/0:0-8999  [000] ....   712.813241: rtcpu_vinotify_event: tstamp:22596730101 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:23000193568 data:0x10000000
     kworker/0:0-8999  [000] ....   712.813243: rtcpu_vinotify_event: tstamp:22596730258 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:23000197376 data:0x31000001
     kworker/0:0-8999  [000] ....   712.813244: rtcpu_vinotify_event: tstamp:22596730433 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:23000198368 data:0x07020001
     kworker/0:0-8999  [000] ....   712.813246: rtcpu_vinotify_event: tstamp:22596730578 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:23000253824 data:0x10000000
     kworker/0:0-8999  [000] ....   712.813247: rtcpu_vinotify_event: tstamp:22596730749 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:23000257696 data:0x31000002
     kworker/0:0-8999  [000] ....   712.981042: rtos_queue_peek_from_isr_failed: tstamp:22601074692 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   713.148984: rtos_queue_peek_from_isr_failed: tstamp:22606074698 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   713.316947: rtos_queue_peek_from_isr_failed: tstamp:22611074695 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   713.429005: rtos_queue_peek_from_isr_failed: tstamp:22616074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   713.596954: rtos_queue_peek_from_isr_failed: tstamp:22621074695 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   713.764945: rtos_queue_peek_from_isr_failed: tstamp:22626074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   713.932941: rtos_queue_peek_from_isr_failed: tstamp:22631074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   714.100942: rtos_queue_peek_from_isr_failed: tstamp:22636074695 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   714.268926: rtos_queue_peek_from_isr_failed: tstamp:22641074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   714.436917: rtos_queue_peek_from_isr_failed: tstamp:22646074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   714.548952: rtos_queue_peek_from_isr_failed: tstamp:22651074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   714.716890: rtos_queue_peek_from_isr_failed: tstamp:22656074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   714.884913: rtos_queue_peek_from_isr_failed: tstamp:22661074700 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   715.052894: rtos_queue_peek_from_isr_failed: tstamp:22666074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   715.220854: rtos_queue_peek_from_isr_failed: tstamp:22671074695 queue:0x0bcbcf78
 vi-output, ov56-9258  [000] ....   715.387968: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt c4
     kworker/0:0-8999  [000] ....   715.388869: rtos_queue_peek_from_isr_failed: tstamp:22676074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   715.388875: rtos_queue_send_from_isr_failed: tstamp:22677446184 queue:0x0bcb41f8
     kworker/0:0-8999  [000] ....   715.388877: rtos_queue_send_from_isr_failed: tstamp:22677446348 queue:0x0bcb8a60
     kworker/0:0-8999  [000] ....   715.388878: rtos_queue_send_from_isr_failed: tstamp:22677446513 queue:0x0bcba5e0
     kworker/0:0-8999  [000] ....   715.388880: rtos_queue_send_from_isr_failed: tstamp:22677446671 queue:0x0bcbb3a0
     kworker/0:0-8999  [000] ....   715.388881: rtos_queue_send_from_isr_failed: tstamp:22677446828 queue:0x0bcbc160
     kworker/0:0-8999  [000] ....   715.388882: rtos_queue_send_from_isr_failed: tstamp:22677522769 queue:0x0bcb41f8
     kworker/0:0-8999  [000] ....   715.388883: rtos_queue_send_from_isr_failed: tstamp:22677522931 queue:0x0bcb8a60
     kworker/0:0-8999  [000] ....   715.388885: rtos_queue_send_from_isr_failed: tstamp:22677523094 queue:0x0bcba5e0
     kworker/0:0-8999  [000] ....   715.388886: rtos_queue_send_from_isr_failed: tstamp:22677523252 queue:0x0bcbb3a0
     kworker/0:0-8999  [000] ....   715.388888: rtos_queue_send_from_isr_failed: tstamp:22677523409 queue:0x0bcbc160
     kworker/0:0-8999  [000] ....   715.388890: rtcpu_string: tstamp:22677530081 id:0x04010000 str:"Configuring VI GoS.
"
     kworker/0:0-8999  [000] ....   715.388945: rtcpu_string: tstamp:22677530276 id:0x04010000 str:"VM GOS[#0] addr=0xc2100000
"
     kworker/0:0-8999  [000] ....   715.388964: rtcpu_string: tstamp:22677530574 id:0x04010000 str:"VM GOS[#1] addr=0xc2101000
"
     kworker/0:0-8999  [000] ....   715.388975: rtcpu_string: tstamp:22677530854 id:0x04010000 str:"VM GOS[#2] addr=0xc2102000
"
     kworker/0:0-8999  [000] ....   715.388985: rtcpu_string: tstamp:22677531095 id:0x04010000 str:"VM GOS[#3] addr=0xc2103000
"
     kworker/0:0-8999  [000] ....   715.388995: rtcpu_string: tstamp:22677531338 id:0x04010000 str:"VM GOS[#4] addr=0xc2104000
"
     kworker/0:0-8999  [000] ....   715.389004: rtcpu_string: tstamp:22677531578 id:0x04010000 str:"VM GOS[#5] addr=0xc2105000
"
     kworker/0:0-8999  [000] ....   715.389013: rtos_queue_send_from_isr_failed: tstamp:22677533870 queue:0x0bcb41f8
     kworker/0:0-8999  [000] ....   715.389015: rtos_queue_send_from_isr_failed: tstamp:22677534031 queue:0x0bcb8a60
     kworker/0:0-8999  [000] ....   715.389016: rtos_queue_send_from_isr_failed: tstamp:22677534192 queue:0x0bcba5e0
     kworker/0:0-8999  [000] ....   715.389017: rtos_queue_send_from_isr_failed: tstamp:22677534346 queue:0x0bcbb3a0
     kworker/0:0-8999  [000] ....   715.389019: rtos_queue_send_from_isr_failed: tstamp:22677534499 queue:0x0bcbc160
     kworker/0:0-8999  [000] ....   715.444840: rtcpu_vinotify_event: tstamp:22677568765 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:21306589792 data:0x10000000
     kworker/0:0-8999  [000] ....   715.444846: rtcpu_vinotify_event: tstamp:22677568949 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:21306628352 data:0x31000001
     kworker/0:0-8999  [000] ....   715.444848: rtcpu_vinotify_event: tstamp:22677569100 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:21306638528 data:0x10000000
     kworker/0:0-8999  [000] ....   715.444849: rtcpu_vinotify_event: tstamp:22677569268 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:21306646976 data:0x07020001
     kworker/0:0-8999  [000] ....   715.444850: rtcpu_vinotify_event: tstamp:22677569414 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:21306677408 data:0x31000002
     kworker/0:0-8999  [000] ....   715.556837: rtos_queue_peek_from_isr_failed: tstamp:22681074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   715.668827: rtos_queue_peek_from_isr_failed: tstamp:22686074700 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   715.836857: rtos_queue_peek_from_isr_failed: tstamp:22691074694 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   716.004826: rtos_queue_peek_from_isr_failed: tstamp:22696074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   716.172840: rtos_queue_peek_from_isr_failed: tstamp:22701074698 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   716.340835: rtos_queue_peek_from_isr_failed: tstamp:22706074695 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   716.508798: rtos_queue_peek_from_isr_failed: tstamp:22711074694 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   716.676766: rtos_queue_peek_from_isr_failed: tstamp:22716074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   716.788771: rtos_queue_peek_from_isr_failed: tstamp:22721074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   716.956804: rtos_queue_peek_from_isr_failed: tstamp:22726074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   717.124777: rtos_queue_peek_from_isr_failed: tstamp:22731074698 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   717.292750: rtos_queue_peek_from_isr_failed: tstamp:22736074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   717.460760: rtos_queue_peek_from_isr_failed: tstamp:22741074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   717.628766: rtos_queue_peek_from_isr_failed: tstamp:22746074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   717.796762: rtos_queue_peek_from_isr_failed: tstamp:22751074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   717.908706: rtos_queue_peek_from_isr_failed: tstamp:22756074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   717.964740: rtos_queue_send_from_isr_failed: tstamp:22757441658 queue:0x0bcb41f8
     kworker/0:0-8999  [000] ....   717.964745: rtos_queue_send_from_isr_failed: tstamp:22757441821 queue:0x0bcb8a60
     kworker/0:0-8999  [000] ....   717.964746: rtos_queue_send_from_isr_failed: tstamp:22757441986 queue:0x0bcba5e0
     kworker/0:0-8999  [000] ....   717.964796: rtos_queue_send_from_isr_failed: tstamp:22757442143 queue:0x0bcbb3a0
     kworker/0:0-8999  [000] ....   717.964797: rtos_queue_send_from_isr_failed: tstamp:22757442300 queue:0x0bcbc160
     kworker/0:0-8999  [000] ....   718.076735: rtos_queue_peek_from_isr_failed: tstamp:22761074695 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   718.244703: rtos_queue_peek_from_isr_failed: tstamp:22766074698 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   718.412709: rtos_queue_peek_from_isr_failed: tstamp:22771074695 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   718.580674: rtos_queue_peek_from_isr_failed: tstamp:22776074698 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   718.748701: rtos_queue_peek_from_isr_failed: tstamp:22781074692 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   718.916669: rtos_queue_peek_from_isr_failed: tstamp:22786074936 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   719.028652: rtos_queue_peek_from_isr_failed: tstamp:22791074695 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   719.196647: rtos_queue_peek_from_isr_failed: tstamp:22796074695 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   719.364621: rtos_queue_peek_from_isr_failed: tstamp:22801074695 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   719.532623: rtos_queue_peek_from_isr_failed: tstamp:22806074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   719.700627: rtos_queue_peek_from_isr_failed: tstamp:22811074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   719.868617: rtos_queue_peek_from_isr_failed: tstamp:22816074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   720.040598: rtos_queue_peek_from_isr_failed: tstamp:22821074699 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   720.152616: rtos_queue_peek_from_isr_failed: tstamp:22826074695 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   720.320587: rtos_queue_peek_from_isr_failed: tstamp:22831074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   720.488586: rtos_queue_peek_from_isr_failed: tstamp:22836074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   720.656562: rtos_queue_peek_from_isr_failed: tstamp:22841074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   720.824558: rtos_queue_peek_from_isr_failed: tstamp:22846074696 queue:0x0bcbcf78
     kworker/0:0-8999  [000] ....   720.992540: rtos_queue_peek_from_isr_failed: tstamp:22851074696 queue:0x0bcbcf78  

Dmesg

[  712.761038] ov5693 1-0036: ov5693_power_on: power on
[  712.795559] OV5693 Writing Table
[  712.846663] OV5693 Writing Table
[  712.847140] ov5693 number  Start Streaming

Looks like the same VI/CSI didn’t receive any validate package from the bus.

@ShaneCCC can it happen because of any mis-configuration in device-tree file or is it because of im-proper data from the sensor side?

Both of them are possible.

Hello @ShaneCCC
we observed now after implementing all the changes , when v4l2 command is called and registers are written properly there transactions in mipi data lanes checked with oscilloscopes , but the clock lanes goes low and it goes high only after the interrupt ctrl+C, So no Clock transcation is happening. I also doubt whether by any chance Xavier pulls down the clock lane during v4l2 stream command? Also when calling GST-Launch there no transaction in both clock and data lane and showas message as follows

rev@rev-desktop:~$ gst-launch-1.0 nvarguscamerasrc ! nvvidconv ! xvimagesink
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:532 No cameras available
Got EOS from element “pipeline0”.
Execution ended after 0:00:00.405248477
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

Correct me if iam wrong : I guess MIPI clock lane signal is generated from sensor (Image attached)image , but when the v4l2 stream command is called and data signal starts coming somehow the sensor clock lane goes low, is there any explanation you can provide?

The MIPI clock was control/output from the sensor. It could be sensor HW or configure incorrect.