Can’t get camera data on jetson thor

i want to bring up camera function on thor,my serders is max9295+max96712, on max96712, the serders video pipe is lock,but on thor, i cat get the data by "
v4l2-ctl -d /dev/video1 --set-ctrl bypass_mode=0 --stream-mmap
"

The problematic trace log is as follows

trace_log.txt (121.6 KB)

The device tree I use is as follows

tegra264-camera-p3762-a00.txt (6.7 KB)

tegra264-p3971-camera-p3762-a00.txt (17.5 KB)

Could you please help check what the problem is? Thank you.

hello yanxiao,

I don’t fully understand this part, what’s your pipeline for fetching the sensor streaming?
besides, it looks you have four 4-lane camera on CSI-C, you may also check To verify the port binding result.

The meaning of “On MAX96712, the SerDes video pipe is locked” is that we can measure the MIPI signal on the CSI-C of Thor.

I have checked the port binding and confirmed that it is correct.

  kworker/9:3-317     [009] .....    85.486340: rtcpu_nvcsi_intr: tstamp:114315227397 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x10000000
     kworker/9:3-317     [009] .....    85.486340: rtcpu_nvcsi_intr: tstamp:114315227397 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00001000
     kworker/9:3-317     [009] .....    85.486341: rtcpu_nvcsi_intr: tstamp:114318770943 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x0a000000
     kworker/9:3-317     [009] .....    85.486341: rtcpu_nvcsi_intr: tstamp:114320582138 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x10000000
     kworker/9:3-317     [009] .....    85.542333: rtcpu_nvcsi_intr: tstamp:114325474119 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x0e000000
     kworker/9:3-317     [009] .....    85.542335: rtcpu_nvcsi_intr: tstamp:114325474119 class:GLOBAL type:PHY_INTR0 phy:1 cil:1 st:0 vc:0 status:0x06000000
     kworker/9:3-317     [009] .....    85.542335: rtcpu_nvcsi_intr: tstamp:114333473610 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x0e000000
     kworker/9:3-317     [009] .....    85.542336: rtcpu_nvcsi_intr: tstamp:114333473610 class:GLOBAL type:PHY_INTR0 phy:1 cil:1 st:0 vc:0 status:0x06000000

What do the statuses in the trace log mean? Is the VC accurate? I set the VC of the video stream to 1, but the VC in the trace log is 0—what is the reason for this?

 kworker/9:3-317     [009] .....    85.430344: rtcpu_unknown: tstamp:114258972785 id:0x000a0002 len:4 data:01 00 00 00
     kworker/9:3-317     [009] .....    85.430344: rtcpu_unknown: tstamp:114258994720 id:0x000a0004 len:8 data:01 00 00 00 ff 0f 00 00
     kworker/9:3-317     [009] .....    85.430345: rtcpu_unknown: tstamp:114259003415 id:0x000a0003 len:36 data:01 00 00 00 00 00 00 00 00 00 00 00 13 00 00 00 0d 00 00 00 13 00 00 00 0c 00 00 00 0e 00 00 00 15 00 00 00
     kworker/9:3-317     [009] .....    85.430346: rtcpu_unknown: tstamp:114259010276 id:0x000a0003 len:36 data:01 00 00 00 01 00 00 00 00 00 00 00 17 00 00 00 17 00 00 00 16 00 00 00 12 00 00 00 1e 00

What does “rtcpu_unknown” mean, and under what circumstances does the “rtcpu_unknown” issue occur?

hello yanxiao,

it usually due to DPHY deskew calibration not complete, it happened when the calibration sequence length is not long enough.
please give it a try to configure cil_settletime, you may also review the pixel clock rate settings.

Thank you for your reply. Could you please tell me what the setting range of cil_settletime is?

hello yanxiao,

you may refer to developer guide for cil_settletime property description,
for instance, Property-Value Pairs.

Thank you. I have tried modifying cil_settletime to 40/50/60 and adjusting pix_clk_hz, but it still didn’t work—the error in the trace log remains the same. Do you have any other suggestions?

Is DPHY deskew calibration only enabled when the data rate exceeds 1.5G/lane? The data rate I am using is 1.5G/lane.

hello yanxiao,

it’s camera firmware waits for deskew calibration done when data-rate > 1.5 Gbps.
could you please refer to Sensor Pixel Clock section, let’s double check your clock rate settings, which must be set correctly to avoid potential issues.

Thank you. The data rate I am using is 1.5G per lane, which does not exceed 1.5G. Why is the error “DPHY deskew calibration not complete” reported? The Sensor Pixel Clock is filled in according to the instructions.

hello yanxiao,

please configure higher log-level, and gather the tracing logs for checking again.

modprobe rtcpu-debug 
echo 1 > /sys/kernel/debug/tracing/tracing_on
echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb
echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable
echo 1 > /sys/kernel/debug/tracing/events/freertos/enable
echo 3 > /sys/kernel/debug/camrtc/log-level 
echo > /sys/kernel/debug/tracing/trace
cat /sys/kernel/debug/tracing/trace

Thank you very much. We used the method you provided to enable the trace log, and after our investigation, we found that the issue was caused by poor MIPI signal quality.