Xavier AGX phy error trace log

I’m using Xavier AGX with jetpack 4.9 (R32.4)

I have trouble using D-PHY to get image.

There is signal output from sensor and it looks fine.

Here’s the trace, it keep repeating so I just show part of it:

kworker/0:1-17730 [000] … 4366.165905: rtcpu_vinotify_event: tstamp:136728598452 tag:FS channel:0x00 frame:1 vi_tstamp:136728291972 data:0x00000010
kworker/0:1-17730 [000] … 4366.165907: rtcpu_vinotify_event: tstamp:136728598600 tag:ATOMP_FS channel:0x00 frame:1 vi_tstamp:136728291973 data:0x00000000
kworker/0:1-17730 [000] … 4366.165908: rtcpu_vinotify_event: tstamp:136728598725 tag:CHANSEL_PXL_SOF channel:0x23 frame:1 vi_tstamp:136728307901 data:0x00000001
kworker/0:1-17730 [000] … 4366.165909: rtcpu_vinotify_event: tstamp:136728598867 tag:RESERVED_19 channel:0x23 frame:1 vi_tstamp:136173133056 data:0x08020001
kworker/0:1-17730 [000] … 4366.165911: rtos_queue_peek_from_isr_failed: tstamp:136729028612 queue:0x0bcbcf78
kworker/0:1-17730 [000] … 4366.221890: rtcpu_nvcsi_intr: tstamp:136730188068 class:GLOBAL type:PHY_INTR0 phy:0 cil:0 st:0 vc:0 status:0x0e000000
kworker/0:1-17730 [000] … 4366.221893: rtcpu_nvcsi_intr: tstamp:136730188068 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x06000000
kworker/0:1-17730 [000] … 4366.221895: rtcpu_nvcsi_intr: tstamp:136730188068 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:0 st:0 vc:0 status:0x00000e00
kworker/0:1-17730 [000] … 4366.221896: rtcpu_nvcsi_intr: tstamp:136730188068 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00000600
kworker/0:1-17730 [000] … 4366.221898: rtcpu_vinotify_event: tstamp:136730190081 tag:CHANSEL_PXL_EOF channel:0x23 frame:1 vi_tstamp:136730187821 data:0x177f0002
kworker/0:1-17730 [000] … 4366.221899: rtcpu_vinotify_event: tstamp:136730190226 tag:ATOMP_FRAME_DONE channel:0x23 frame:1 vi_tstamp:136730187837 data:0x00000000
kworker/0:1-17730 [000] … 4366.221900: rtcpu_vinotify_event: tstamp:136730190352 tag:RESERVED_19 channel:0x23 frame:1 vi_tstamp:136233291680 data:0x02020001
kworker/0:1-17730 [000] … 4366.221902: rtcpu_vinotify_event: tstamp:136730190493 tag:FE channel:0x00 frame:1 vi_tstamp:136730187843 data:0x00000020
kworker/0:1-17730 [000] … 4366.221903: rtcpu_vinotify_event: tstamp:136730190623 tag:ATOMP_FE channel:0x00 frame:1 vi_tstamp:136730187843 data:0x00000000
kworker/0:1-17730 [000] … 4366.221904: rtcpu_vinotify_event: tstamp:136730190763 tag:RESERVED_19 channel:0x23 frame:1 vi_tstamp:136233299776 data:0x00020001
kworker/0:1-17730 [000] … 4366.221905: rtcpu_vinotify_event: tstamp:136730190886 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:136233306784 data:0x07020002
kworker/0:1-17730 [000] … 4366.221912: rtos_queue_send_from_isr_failed: tstamp:136730199975 queue:0x0bcb41f8
kworker/0:1-17730 [000] … 4366.221913: rtos_queue_send_from_isr_failed: tstamp:136730200119 queue:0x0bcb8a60
kworker/0:1-17730 [000] … 4366.221915: rtos_queue_send_from_isr_failed: tstamp:136730200261 queue:0x0bcba5e0
kworker/0:1-17730 [000] … 4366.221940: rtos_queue_send_from_isr_failed: tstamp:136730200396 queue:0x0bcbb3a0
kworker/0:1-17730 [000] … 4366.221942: rtos_queue_send_from_isr_failed: tstamp:136730200528 queue:0x0bcbc160
kworker/0:1-17730 [000] … 4366.221944: rtcpu_vinotify_event: tstamp:136730516777 tag:FS channel:0x00 frame:2 vi_tstamp:136730389472 data:0x00000010
kworker/0:1-17730 [000] … 4366.221945: rtcpu_vinotify_event: tstamp:136730516909 tag:ATOMP_FS channel:0x00 frame:2 vi_tstamp:136730389473 data:0x00000000
kworker/0:1-17730 [000] … 4366.221946: rtcpu_vinotify_event: tstamp:136730517057 tag:CHANSEL_PXL_SOF channel:0x23 frame:2 vi_tstamp:136730405401 data:0x00000001
kworker/0:1-17730 [000] … 4366.221947: rtcpu_vinotify_event: tstamp:136730517180 tag:RESERVED_19 channel:0x23 frame:2 vi_tstamp:136240253056 data:0x08020002
kworker/0:1-17730 [000] … 4366.221948: rtcpu_vinotify_event: tstamp:136730517320 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:136240336128 data:0x10000000
kworker/0:1-17730 [000] … 4366.221949: rtcpu_vinotify_event: tstamp:136730517442 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:136240346912 data:0x31000003
kworker/0:1-17730 [000] … 4366.277886: rtcpu_nvcsi_intr: tstamp:136732285571 class:GLOBAL type:PHY_INTR0 phy:0 cil:0 st:0 vc:0 status:0x0e000000
kworker/0:1-17730 [000] … 4366.277889: rtcpu_nvcsi_intr: tstamp:136732285571 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x06000000
kworker/0:1-17730 [000] … 4366.277891: rtcpu_nvcsi_intr: tstamp:136732285571 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:0 st:0 vc:0 status:0x00000e00
kworker/0:1-17730 [000] … 4366.277892: rtcpu_nvcsi_intr: tstamp:136732285571 class:CORRECTABLE_ERR type:PHY_INTR phy:0 cil:1 st:0 vc:0 status:0x00000600
kworker/0:1-17730 [000] … 4366.277926: rtos_queue_send_from_isr_failed: tstamp:136732298935 queue:0x0bcb41f8
kworker/0:1-17730 [000] … 4366.277928: rtos_queue_send_from_isr_failed: tstamp:136732299079 queue:0x0bcb8a60
kworker/0:1-17730 [000] … 4366.277930: rtos_queue_send_from_isr_failed: tstamp:136732299220 queue:0x0bcba5e0
kworker/0:1-17730 [000] … 4366.277931: rtos_queue_send_from_isr_failed: tstamp:136732299357 queue:0x0bcbb3a0
kworker/0:1-17730 [000] … 4366.277932: rtos_queue_send_from_isr_failed: tstamp:136732299491 queue:0x0bcbc160
kworker/0:1-17730 [000] … 4366.277934: rtcpu_vinotify_event: tstamp:136732504440 tag:CHANSEL_PXL_EOF channel:0x23 frame:2 vi_tstamp:136732285321 data:0x177f0002
kworker/0:1-17730 [000] … 4366.277935: rtcpu_vinotify_event: tstamp:136732504570 tag:ATOMP_FRAME_DONE channel:0x23 frame:2 vi_tstamp:136732285337 data:0x00000000
kworker/0:1-17730 [000] … 4366.277936: rtcpu_vinotify_event: tstamp:136732504714 tag:RESERVED_19 channel:0x23 frame:2 vi_tstamp:136300411680 data:0x02020002
kworker/0:1-17730 [000] … 4366.277938: rtcpu_vinotify_event: tstamp:136732504840 tag:FE channel:0x00 frame:2 vi_tstamp:136732285343 data:0x00000020
kworker/0:1-17730 [000] … 4366.277939: rtcpu_vinotify_event: tstamp:136732504982 tag:ATOMP_FE channel:0x00 frame:2 vi_tstamp:136732285343 data:0x00000000
kworker/0:1-17730 [000] … 4366.277940: rtcpu_vinotify_event: tstamp:136732505104 tag:RESERVED_19 channel:0x23 frame:2 vi_tstamp:136300419776 data:0x00020002
kworker/0:1-17730 [000] … 4366.277942: rtcpu_vinotify_event: tstamp:136732505244 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:136300426816 data:0x07020003

The trace showed there were PHY error between FS and FE.

I have checked TRM, but still don’t know what do these description “intr_cil_data_lane_sot_2lsb_err1_a”, “intr_dphy_cil_clk_lane_ulpm_req_a”, “intr_cil_lpdt_int1_a” mean.

Any idea?

Looks like intr_dphy_cil_deskew_calib_err_lane*_a and intr_dphy_cil_deskew_calib_err_ctrl_a

kworker/0:1-17730 [000] … 4366.221890: rtcpu_nvcsi_intr: tstamp:136730188068 class:GLOBAL type:PHY_INTR0 phy:0 cil:0 st:0 vc:0 status:0x0e000000

Hi ShaneCCC,

Does it mean I need to check GLOBAL class instead of CORRECTABLE_ERR class?

What does the error you mentioned mean?

I didn’t enable any deskew in my device tree

Here’s my DT setting:

host1x {
	vi@15c10000 {
		num-channels = <1>;
		ports {
			#address-cells = <1>;
			#size-cells = <0>;
			port@0 {
				reg = <0>;
				e3387_vi_in0: endpoint {
					port-index = <0>;
					bus-width = <4>;
					remote-endpoint = <&e3387_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>;
					e3387_csi_in0: endpoint@0 {
						port-index = <0>;
						bus-width = <4>;
						remote-endpoint = <&e3387_ov5693_out0>;
					};
				};
				port@1 {
					reg = <1>;
					e3387_csi_out0: endpoint@1 {
						remote-endpoint = <&e3387_vi_in0>;
					};
				};
			};
		};
	};
};

i2c@3180000 {
	ov5693_a@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";

		mode0 { 
			mclk_khz = "24000";
			num_lanes = "4";
			tegra_sinterface = "serial_a";
			phy_mode = "DPHY";
			discontinuous_clk = "no";
			dpcm_enable = "false";
			cil_settletime = "0";

			active_w = "8000";
			active_h = "6016";
			mode_type = "bayer";
			pixel_phase = "bggr";
			csi_pixel_bit_depth = "10";
			readout_orientation = "0";
			line_length = "8192";
			inherent_gain = "1";
			mclk_multiplier = "6.67";
			pix_clk_hz = "2352000000";//1416000000

			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 = "1500000";/*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";
		};

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

			port@0 {
				reg = <0>;
				e3387_ov5693_out0: endpoint {
					port-index = <0>;
					bus-width = <3>;
					remote-endpoint = <&e3387_csi_in0>;
				};
			};
		};
	};
};

tegra-camera-platform {
	compatible = "nvidia, tegra-camera-platform";
	
	num_csi_lanes = <4>;
	max_lane_speed = <2500000>;
	min_bits_per_pixel = <10>;
	vi_peak_byte_per_pixel = <2>;
	vi_bw_margin_pct = <25>;
	max_pixel_rate = <1000000>;
	isp_peak_byte_per_pixel = <5>;
	isp_bw_margin_pct = <25>;

	modules {
		module0 {
			badge = "e3387_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@3180000/ov5693_a@36";
			};
		};
	};
};

if sensor is not sending de-skew sequence, then there should be error on the link which cause the NVCSI CIL detect a de-skew sync word (0xFF) instead of 0xB8 sync word