mipi calibration timeout error

Hi All,

We are trying to develop sensor driver code for hdmi2csi adapter. But we get some error related to Mipi caliberation.

2199.312187] tegra_mipi_cal 3990000.mipical: tegra_mipi_bias_pad_enable
[ 2199.319908] tegra_mipi_cal 3990000.mipical: tegra_mipi_calibration
[ 2199.824805] tegra_mipi_cal 3990000.mipical: Mipi cal timeout,val:8771, lanes:c00000
[ 2199.832535] tegra_mipi_cal 3990000.mipical: Fixed clk 68MHz
[ 2199.838278] tegra_mipi_cal 3990000.mipical: MIPI_CAL_CTRL 0x04 0x2a000010
[ 2199.846648] tegra_mipi_cal 3990000.mipical: CIL_MIPI_CAL_STATUS 0x0c 0x00008771
[ 2199.855021] tegra_mipi_cal 3990000.mipical: CIL_MIPI_CAL_STATUS_2 0x10 0x00000000
[ 2199.863374] tegra_mipi_cal 3990000.mipical: CILA_MIPI_CAL_CONFIG 0x18 0x00000000
[ 2199.871706] tegra_mipi_cal 3990000.mipical: CILB_MIPI_CAL_CONFIG 0x1c 0x00000000
[ 2199.880023] tegra_mipi_cal 3990000.mipical: CILC_MIPI_CAL_CONFIG 0x20 0x00200000
[ 2199.888342] tegra_mipi_cal 3990000.mipical: CILD_MIPI_CAL_CONFIG 0x24 0x00200000
[ 2199.896655] tegra_mipi_cal 3990000.mipical: CILE_MIPI_CAL_CONFIG 0x28 0x00000000
[ 2199.904959] tegra_mipi_cal 3990000.mipical: CILF_MIPI_CAL_CONFIG 0x2c 0x00000000
[ 2199.913259] tegra_mipi_cal 3990000.mipical: DSIA_MIPI_CAL_CONFIG 0x3c 0x00000200
[ 2199.921556] tegra_mipi_cal 3990000.mipical: DSIB_MIPI_CAL_CONFIG 0x40 0x00000200
[ 2199.929848] tegra_mipi_cal 3990000.mipical: DSIC_MIPI_CAL_CONFIG 0x44 0x00000200
[ 2199.938141] tegra_mipi_cal 3990000.mipical: DSID_MIPI_CAL_CONFIG 0x48 0x00000200
[ 2199.946437] tegra_mipi_cal 3990000.mipical: MIPI_BIAS_PAD_CFG0 0x5c 0x00000000
[ 2199.954726] tegra_mipi_cal 3990000.mipical: MIPI_BIAS_PAD_CFG1 0x60 0x00000000
[ 2199.963019] tegra_mipi_cal 3990000.mipical: MIPI_BIAS_PAD_CFG2 0x64 0x00010010
[ 2199.971306] tegra_mipi_cal 3990000.mipical: DSIA_MIPI_CAL_CONFIG_2 0x68 0x00000002
[ 2199.979584] tegra_mipi_cal 3990000.mipical: DSIB_MIPI_CAL_CONFIG_2 0x6c 0x00000002
[ 2199.987851] tegra_mipi_cal 3990000.mipical: DSIC_MIPI_CAL_CONFIG_2 0x74 0x00000002
[ 2199.996127] tegra_mipi_cal 3990000.mipical: DSID_MIPI_CAL_CONFIG_2 0x78 0x00000002
[ 2200.004427] fpga_hdmi2csi 0-003c: fpga_hdmi2csi_s_stream():
[ 2201.008844] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 2202.012858] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 2203.016901] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 2204.020915] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 2205.024959] tegra-vi4 15700000.vi: ATOMP_FE syncpt timeout!
[ 2205.031035] fpga_hdmi2csi 0-003c: fpga_hdmi2csi_s_stream():
[ 2205.036822] tegra_mipi_cal 3990000.mipical: tegra_mipi_bias_pad_disable
[ 2205.052354] fpga_hdmi2csi 0-003c: fpga_hdmi2csi_s_power()

thanks in advance…

The calibration timeout should not the root cause.
Follow below link to enable trace for more information.

https://elinux.org/Jetson_TX2/28.1_Camera_BringUp

Hi ShaneCCC,

thanks for your response.
We followed the steps to enable for more debug message.

root@tegra-ubuntu:/home/nvidia# cat /sys/kernel/debug/tracing/trace

tracer: nop

entries-in-buffer/entries-written: 94/94 #P:4

_-----=> irqs-off

/ _----=> need-resched

| / _—=> hardirq/softirq

|| / _–=> preempt-depth

||| / delay

TASK-PID CPU# |||| TIMESTAMP FUNCTION

| | | |||| | |

 kworker/0:1-4069  [000] ...1   833.277551: rtos_queue_peek_from_isr_failed: tstamp:26343892847 queue:0x0b4a3c58
 kworker/0:1-4069  [000] ...1   833.277559: rtcpu_start: tstamp:26343894144
 kworker/0:1-4069  [000] ...1   833.433577: rtos_queue_peek_from_isr_failed: tstamp:26348893770 queue:0x0b4a3c58
 kworker/0:1-4069  [000] ...1   833.589573: rtos_queue_peek_from_isr_failed: tstamp:26353894275 queue:0x0b4a3c58
 kworker/0:1-4069  [000] ...1   833.745581: rtos_queue_peek_from_isr_failed: tstamp:26358894800 queue:0x0b4a3c58
 kworker/0:1-4069  [000] ...1   833.912475: rtos_queue_peek_from_isr_failed: tstamp:26363895292 queue:0x0b4a3c58
 kworker/0:1-4069  [000] ...1   834.065577: rtos_queue_peek_from_isr_failed: tstamp:26368895793 queue:0x0b4a3c58
 kworker/0:1-4069  [000] ...1   834.221570: rtos_queue_peek_from_isr_failed: tstamp:26373896301 queue:0x0b4a3c58
 kworker/0:1-4069  [000] ...1   834.377570: rtos_queue_peek_from_isr_failed: tstamp:26378896806 queue:0x0b4a3c58
 kworker/0:1-4069  [000] ...1   834.533579: rtos_queue_peek_from_isr_failed: tstamp:26383897322 queue:0x0b4a3c58
 kworker/0:1-4069  [000] ...1   834.741573: rtos_queue_peek_from_isr_failed: tstamp:26388897822 queue:0x0b4a3c58
 kworker/0:1-4069  [000] ...1   834.897589: rtos_queue_peek_from_isr_failed: tstamp:26393898335 queue:0x0b4a3c58
 kworker/0:1-4069  [000] ...1   835.053590: rtos_queue_peek_from_isr_failed: tstamp:26398898835 queue:0x0b4a3c58
 kworker/0:1-4069  [000] ...1   835.209592: rtos_queue_peek_from_isr_failed: tstamp:26403899340 queue:0x0b4a3c58
 kworker/0:1-4069  [000] ...1   835.365584: rtos_queue_peek_from_isr_failed: tstamp:26408899849 queue:0x0b4a3c58
 kworker/0:1-4069  [000] ...1   835.521580: rtos_queue_peek_from_isr_failed: tstamp:26413900356 queue:0x0b4a3c58
 kworker/0:1-4069  [000] ...1   835.677595: rtos_queue_peek_from_isr_failed: tstamp:26418900870 

But we didn’t get any useful information.

From the trace log there’s no any validate data from the mipi bus. You should probe to make sure the mipi output is output data well.

Shall we leave/ignore the mipi cal timeout error? or It must be solved to receive the data in mipi csi further.

It’s could be ignored.