How to check mipi lane status ?

Hi All,

We are trying to develop a driver code for a sensor and we get error …

[ 154.428708] fpga_hdmi2csi 0-003c: fpga_hdmi2csi_s_power()
[ 154.453685] fpga_hdmi2csi 0-003c: fpga_hdmi2csi_get_fmt():
[ 154.459236] fpga_hdmi2csi 0-003c: fpga_hdmi2csi_get_fmt(): width=1920, height=1080, code=0x0000100A, field=1
[ 154.473062] tegra_mipi_cal 3990000.mipical: tegra_mipi_bias_pad_enable
[ 154.480825] tegra_mipi_cal 3990000.mipical: tegra_mipi_calibration
[ 154.986635] tegra_mipi_cal 3990000.mipical: Mipi cal timeout,val:8771, lanes:300000
[ 154.994404] tegra_mipi_cal 3990000.mipical: Fixed clk 68MHz
[ 155.000168] tegra_mipi_cal 3990000.mipical: MIPI_CAL_CTRL 0x04 0x2a000010
[ 155.008571] tegra_mipi_cal 3990000.mipical: CIL_MIPI_CAL_STATUS 0x0c 0x00008771
[ 155.017121] tegra_mipi_cal 3990000.mipical: CIL_MIPI_CAL_STATUS_2 0x10 0x00000000
[ 155.025611] tegra_mipi_cal 3990000.mipical: CILA_MIPI_CAL_CONFIG 0x18 0x00200000
[ 155.033966] tegra_mipi_cal 3990000.mipical: CILB_MIPI_CAL_CONFIG 0x1c 0x00200000
[ 155.042330] tegra_mipi_cal 3990000.mipical: CILC_MIPI_CAL_CONFIG 0x20 0x00000000
[ 155.050761] tegra_mipi_cal 3990000.mipical: CILD_MIPI_CAL_CONFIG 0x24 0x00000000
[ 155.059196] tegra_mipi_cal 3990000.mipical: CILE_MIPI_CAL_CONFIG 0x28 0x00000000
[ 155.067604] tegra_mipi_cal 3990000.mipical: CILF_MIPI_CAL_CONFIG 0x2c 0x00000000
[ 155.076123] tegra_mipi_cal 3990000.mipical: DSIA_MIPI_CAL_CONFIG 0x3c 0x00000200
[ 155.084440] tegra_mipi_cal 3990000.mipical: DSIB_MIPI_CAL_CONFIG 0x40 0x00000200
[ 155.092750] tegra_mipi_cal 3990000.mipical: DSIC_MIPI_CAL_CONFIG 0x44 0x00000200
[ 155.101046] tegra_mipi_cal 3990000.mipical: DSID_MIPI_CAL_CONFIG 0x48 0x00000200
[ 155.109365] tegra_mipi_cal 3990000.mipical: MIPI_BIAS_PAD_CFG0 0x5c 0x00000000
[ 155.117656] tegra_mipi_cal 3990000.mipical: MIPI_BIAS_PAD_CFG1 0x60 0x00000000
[ 155.125964] tegra_mipi_cal 3990000.mipical: MIPI_BIAS_PAD_CFG2 0x64 0x00010010
[ 155.134268] tegra_mipi_cal 3990000.mipical: DSIA_MIPI_CAL_CONFIG_2 0x68 0x00000002
[ 155.142566] tegra_mipi_cal 3990000.mipical: DSIB_MIPI_CAL_CONFIG_2 0x6c 0x00000002
[ 155.150858] tegra_mipi_cal 3990000.mipical: DSIC_MIPI_CAL_CONFIG_2 0x74 0x00000002
[ 155.159152] tegra_mipi_cal 3990000.mipical: DSID_MIPI_CAL_CONFIG_2 0x78 0x00000002
[ 155.167477] fpga_hdmi2csi 0-003c: fpga_hdmi2csi_s_stream():
[ 156.170696] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 157.174708] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 158.178734] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 159.182711] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 160.186699] tegra-vi4 15700000.vi: ATOMP_FE syncpt timeout!
[ 160.193354] fpga_hdmi2csi 0-003c: fpga_hdmi2csi_s_stream():
[ 160.199415] tegra_mipi_cal 3990000.mipical: tegra_mipi_bias_pad_disable
[ 160.304938] fpga_hdmi2csi 0-003c: fpga_hdmi2csi_s_power()

While going through forums, It says, issue is related to MIPI lane status.
How to check the MIPI lane status ?
we had enabled trace for more debug information. but, did not get any useful information from it.

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

please give your inputs…
thanks in advance…

Form the trace CSI didn’t receive any validate package from the MIPI bus. You need to probe the signal to check is the signal is as MIPI spec.