Running into an issue w/ serdes and the camera drivers on JP5.1
# entries-in-buffer/entries-written: 21/21 #P:6
#
# _-----=> irqs-off
# / _----=> need-resched
# | / _---=> hardirq/softirq
# || / _--=> preempt-depth
# ||| / delay
# TASK-PID CPU# |||| TIMESTAMP FUNCTION
# | | | |||| | |
kworker/0:2-8810 [000] .... 1190.887204: rtcpu_string: tstamp:37895753648 id:0x04010000 str:"VM0 deactivating."
kworker/0:2-8810 [000] .... 1201.037196: rtcpu_string: tstamp:38212741935 id:0x04010000 str:"VM0 activating."
nvargus-daemon-10551 [003] .... 1201.237611: tegra_channel_open: vi-output, ox08b40 2-0030
nvargus-daemon-10551 [003] .... 1201.237916: tegra_channel_close: vi-output, ox08b40 2-0030
nvargus-daemon-10551 [003] .... 1201.244625: tegra_channel_open: vi-output, ox08b40 2-0030
nvargus-daemon-10551 [003] .... 1201.244888: tegra_channel_close: vi-output, ox08b40 2-0030
nvargus-daemon-10551 [003] .... 1201.280123: tegra_channel_open: vi-output, ox08b40 2-0030
nvargus-daemon-10551 [003] .... 1201.280193: tegra_channel_close: vi-output, ox08b40 2-0030
nvargus-daemon-10551 [003] .... 1201.280251: tegra_channel_open: vi-output, ox08b40 2-0030
nvargus-daemon-10551 [003] .... 1201.280533: tegra_channel_close: vi-output, ox08b40 2-0030
nvargus-daemon-10551 [003] .... 1201.280583: tegra_channel_open: vi-output, ox08b40 2-0030
nvargus-daemon-10551 [003] .... 1201.280775: tegra_channel_close: vi-output, ox08b40 2-0030
CaptureSchedule-10567 [004] .... 1201.477694: tegra_channel_open: vi-output, ox08b40 2-0030
CaptureSchedule-10567 [003] .... 1201.481242: tegra_channel_set_power: ox08b40 2-0030 : 0x1
CaptureSchedule-10567 [003] .... 1201.481255: camera_common_s_power: status : 0x1
CaptureSchedule-10567 [003] .... 1201.508344: tegra_channel_set_power: 13e10000.host1x:nvcsi@15a00000- : 0x1
CaptureSchedule-10567 [003] .... 1201.508352: csi_s_power: enable : 0x1
kworker/0:2-8810 [000] .... 1201.547244: rtcpu_vinotify_event: tstamp:38228884185 cch:1 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1223323673248 data:0xcd9ce50010000000
kworker/0:2-8810 [000] .... 1201.547249: rtcpu_vinotify_event: tstamp:38228884358 cch:1 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1223323684992 data:0x0000000031000001
kworker/0:2-8810 [000] .... 1201.598250: rtcpu_vinotify_event: tstamp:38230240398 cch:1 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1223357494656 data:0xcd9ce20010000000
kworker/0:2-8810 [000] .... 1201.598256: rtcpu_vinotify_event: tstamp:38230240557 cch:1 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1223357506560 data:0x0000000031000002
And it just gets indefinetly stuck
I’ve tried boosting clocks but not useful unfortunately. The deserializer and serializer are both reporting a VIDEO lock which means that things are “working” according to the serdes pair (MAX9295 and MAX9296)
Any tips on how to debug further?
[ 1540.505004] ox08b40 2-0030: ox08b40_set_mode: selecting mode 0
[ 1540.551783] [RCE] tegra_nvcsi_stream_set_config(vm0, stream=0, csi=0)
[ 1540.552024] [RCE] MIPI clock = 576000 kHz, tHS-SETTLE = 0, tCLK-SETTLE = 0
[ 1540.552202] [RCE] ===== NVCSI Stream Configuration =====
[ 1540.552342] [RCE] stream_id: PP 0, csi_port: PORT A
[ 1540.552464] [RCE] Brick: PHY 0, Mode: D-PHY
[ 1540.552588] [RCE] Partition: CIL A, LP bypass: Enabled, Lanes: 4
[ 1540.552863] [RCE] Clock information:
[ 1540.552959] [RCE] MIPI clock rate: 576.00 MHz
[ 1540.553068] [RCE] T_HS settle: 0, T_CLK settle: 0
[ 1540.553184] [RCE] ======================================
[ 1540.553311] [RCE] tegra_nvcsi_stream_open(vm0, stream=0, csi=0)
[ 1540.553503] [RCE] nvcsi_calc_ths_settle ths_settle 19
[ 1540.553831] [RCE] nvcsi_calc_ths_settle ths_settle 19
[ 1540.554053] [RCE] nvcsi_calc_ths_settle ths_settle 19
[ 1540.554174] [RCE] nvcsi_calc_tclk_settle tclk_settle 33
The MIPI clock rate is 576.00MHZ here, but our PLL calclulations indicate that it should be at 1150. Where is the 576.00MHZ coming from? Is it sampling the actual clock rate it sees?
Any help would be appreciated, thank you!