Help for VIFALC_TDSTATE parse

Hi everyone,
I connect one imx490 with TI9702/TI971 to Orin NX, TI9702 output 1.6G/lane (total two lanes), TI9702 has enable deskew, NX CSI PORT A has set lane_polarity = “6”. V4L2-CTRL and argus_camera can not get mipi data, the trace log is:

     kworker/1:4-540     [001] .......   156.407567: rtcpu_string: tstamp:5626422348 id:0x04010000 str:"VM0 deactivating."
          v4l_id-1860    [002] .......   264.557657: tegra_channel_open: vi-output, imx490 9-001a
          v4l_id-1860    [002] .......   264.557728: tegra_channel_close: vi-output, imx490 9-001a
 pipewire-media--1732    [003] .......   264.571211: tegra_channel_open: vi-output, imx490 9-001a
 pipewire-media--1333    [000] .......   264.571216: tegra_channel_open: vi-output, imx490 9-001a
 pipewire-media--1333    [000] .......   264.571348: tegra_channel_close: vi-output, imx490 9-001a
 pipewire-media--1732    [003] .......   264.571348: tegra_channel_close: vi-output, imx490 9-001a
 pipewire-media--1732    [003] .......   264.571917: tegra_channel_open: vi-output, imx490 9-001a
 pipewire-media--1333    [000] .......   264.571931: tegra_channel_open: vi-output, imx490 9-001a
 pipewire-media--1732    [003] .......   264.572088: tegra_channel_close: vi-output, imx490 9-001a
 pipewire-media--1333    [000] .......   264.572098: tegra_channel_close: vi-output, imx490 9-001a
        pipewire-1731    [002] .......   264.572915: tegra_channel_open: vi-output, imx490 9-001a
        pipewire-1332    [001] .......   264.572929: tegra_channel_open: vi-output, imx490 9-001a
        pipewire-1731    [002] .......   264.572964: tegra_channel_close: vi-output, imx490 9-001a
        pipewire-1332    [001] .......   264.572979: tegra_channel_close: vi-output, imx490 9-001a
        pipewire-1332    [001] .......   264.573657: tegra_channel_open: vi-output, imx490 9-001a
        pipewire-1731    [002] .......   264.573667: tegra_channel_open: vi-output, imx490 9-001a
        pipewire-1332    [001] .......   264.573815: tegra_channel_close: vi-output, imx490 9-001a
        pipewire-1731    [002] .......   264.573819: tegra_channel_close: vi-output, imx490 9-001a
        pipewire-1332    [001] .......   264.573845: tegra_channel_open: vi-output, imx490 9-001a
        pipewire-1731    [002] .......   264.573851: tegra_channel_open: vi-output, imx490 9-001a
        pipewire-1332    [001] .......   264.573888: tegra_channel_close: vi-output, imx490 9-001a
        pipewire-1731    [002] .......   264.573890: tegra_channel_close: vi-output, imx490 9-001a
        v4l2-ctl-1862    [001] .......   273.257171: tegra_channel_open: vi-output, imx490 9-001a
        v4l2-ctl-1862    [001] .......   273.272149: tegra_channel_set_power: imx490 9-001a : 0x1
        v4l2-ctl-1862    [001] .......   273.272243: camera_common_s_power: status : 0x1
        v4l2-ctl-1862    [001] .......   273.573478: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x1
        v4l2-ctl-1862    [001] .......   273.573481: csi_s_power: enable : 0x1
        v4l2-ctl-1862    [001] .......   273.574394: tegra_channel_capture_setup: vnc_id 0 W 1288 H 1864 fmt c4
 vi-output, imx4-1863    [002] .......   273.581898: vi_task_submit: class_id:48 ch:0 syncpt_id:35 syncpt_thresh:0 pid:1863 tid:1863
 vi-output, imx4-1863    [002] .......   273.581906: vi_task_submit: class_id:48 ch:0 syncpt_id:35 syncpt_thresh:0 pid:1863 tid:1863
 vi-output, imx4-1863    [002] .......   273.581907: vi_task_submit: class_id:48 ch:0 syncpt_id:35 syncpt_thresh:0 pid:1863 tid:1863
 vi-output, imx4-1863    [002] .......   273.581908: vi_task_submit: class_id:48 ch:0 syncpt_id:35 syncpt_thresh:0 pid:1863 tid:1863
        v4l2-ctl-1862    [000] .......   273.582081: tegra_channel_set_stream: enable : 0x1
        v4l2-ctl-1862    [000] .......   273.582621: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x1
        v4l2-ctl-1862    [000] .......   273.582625: csi_s_stream: enable : 0x1
        v4l2-ctl-1862    [000] .......   273.583028: tegra_channel_set_stream: imx490 9-001a : 0x1
     kworker/1:1-57      [001] .......   273.622083: rtcpu_string: tstamp:9287979201 id:0x04010000 str:"VM0 activating."
     kworker/1:1-57      [001] .......   273.622086: rtcpu_vinotify_event: tstamp:9288450228 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:297219932288 data:0x799d580010000000
     kworker/1:1-57      [001] .......   273.622087: rtcpu_vinotify_event: tstamp:9288450364 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:297219938688 data:0x0000000031000001
     kworker/1:1-57      [001] .......   273.622087: rtcpu_vinotify_event: tstamp:9288450519 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:297219941728 data:0x0000000007020001
     kworker/1:1-57      [001] .......   273.622087: rtcpu_vinotify_event: tstamp:9288450652 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:297219983968 data:0x799d550010000000
     kworker/1:1-57      [001] .......   273.622087: rtcpu_vinotify_event: tstamp:9288450807 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:297219990464 data:0x0000000031000002
 vi-output, imx4-1864    [003] .......   276.186964: tegra_channel_capture_setup: vnc_id 0 W 1288 H 1864 fmt c4
 vi-output, imx4-1863    [001] .......   276.187078: vi_task_submit: class_id:48 ch:0 syncpt_id:35 syncpt_thresh:0 pid:1863 tid:1863
 vi-output, imx4-1863    [001] .......   276.187088: vi_task_submit: class_id:48 ch:0 syncpt_id:35 syncpt_thresh:0 pid:1863 tid:1863
 vi-output, imx4-1863    [001] .......   276.187089: vi_task_submit: class_id:48 ch:0 syncpt_id:35 syncpt_thresh:0 pid:1863 tid:1863
 vi-output, imx4-1863    [001] .......   276.187090: vi_task_submit: class_id:48 ch:0 syncpt_id:35 syncpt_thresh:0 pid:1863 tid:1863
     kworker/1:1-57      [001] .......   276.210138: rtcpu_vinotify_event: tstamp:9369580831 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:299825112448 data:0x799d580010000000
     kworker/1:1-57      [001] .......   276.210140: rtcpu_vinotify_event: tstamp:9369580988 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:299825118816 data:0x0000000031000001
     kworker/1:1-57      [001] .......   276.210141: rtcpu_vinotify_event: tstamp:9369581123 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:299825121824 data:0x0000000007020001
     kworker/1:1-57      [001] .......   276.210142: rtcpu_vinotify_event: tstamp:9369581275 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:299825164096 data:0x799d550010000000
     kworker/1:1-57      [001] .......   276.210142: rtcpu_vinotify_event: tstamp:9369581409 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:299825170624 data:0x0000000031000002
 vi-output, imx4-1864    [003] .......   278.747014: tegra_channel_capture_setup: vnc_id 0 W 1288 H 1864 fmt c4
 vi-output, imx4-1863    [001] .......   278.747122: vi_task_submit: class_id:48 ch:0 syncpt_id:35 syncpt_thresh:0 pid:1863 tid:1863
 vi-output, imx4-1863    [001] .......   278.747133: vi_task_submit: class_id:48 ch:0 syncpt_id:35 syncpt_thresh:0 pid:1863 tid:1863
 vi-output, imx4-1863    [001] .......   278.747135: vi_task_submit: class_id:48 ch:0 syncpt_id:35 syncpt_thresh:0 pid:1863 tid:1863
 vi-output, imx4-1863    [001] .......   278.747136: vi_task_submit: class_id:48 ch:0 syncpt_id:35 syncpt_thresh:0 pid:1863 tid:1863
     kworker/1:1-57      [001] .......   278.786194: rtcpu_vinotify_event: tstamp:9449697283 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:302385153152 data:0x799d580010000000
     kworker/1:1-57      [001] .......   278.786197: rtcpu_vinotify_event: tstamp:9449697422 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:302385159552 data:0x0000000031000001
     kworker/1:1-57      [001] .......   278.786197: rtcpu_vinotify_event: tstamp:9449697575 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:302385162560 data:0x0000000007020001
     kworker/1:1-57      [001] .......   278.786198: rtcpu_vinotify_event: tstamp:9449697720 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:302385209696 data:0x799d550010000000
     kworker/1:1-57      [001] .......   278.786199: rtcpu_vinotify_event: tstamp:9449697875 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:302385216192 data:0x0000000031000002

what does this VIFALC_TDSTATE state mean? thanks for your help.

hello mqs198506,

may I know which Jetpack release version you’re working with?

you may also try these commands to boost all the VI/CSI/ISP clocks for testing.

sudo su
echo 1 > /sys/kernel/debug/bpmp/debug/clk/vi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/isp/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/nvcsi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/emc/mrq_rate_locked
cat /sys/kernel/debug/bpmp/debug/clk/vi/max_rate |tee /sys/kernel/debug/bpmp/debug/clk/vi/rate
cat /sys/kernel/debug/bpmp/debug/clk/isp/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/isp/rate
cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/nvcsi/rate
cat /sys/kernel/debug/bpmp/debug/clk/emc/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/emc/rate

besides,
let me give you VI tracing logs with a success image capture as an example.
here must be one pair of CHANSEL_PXL_SOF/CHANSEL_PXL_EOF to indicate a frame has detected by VI engine.
afterwards, it’s ATOMP_FRAME_DONE to indicate it’s complete writing a frame to memory.
for instance,

rtcpu_vinotify_event: tstamp:4058867917 cch:-1 vi:0 tag:CSIMUX_STREAM channel:0x00 frame:0 vi_tstamp:129874754944 data:0x0000000000000001
rtcpu_vinotify_event: tstamp:4059206674 cch:0 vi:0 tag:ATOMP_FS channel:0x00 frame:1 vi_tstamp:129891804896 data:0x0000000800000000
rtcpu_vinotify_event: tstamp:4059206818 cch:0 vi:0 tag:CHANSEL_PXL_SOF channel:0x23 frame:1 vi_tstamp:129891808928 data:0x0000000000000001
rtcpu_vinotify_event: tstamp:4059206976 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:1 vi_tstamp:129891815424 data:0x0000000008020001
rtcpu_vinotify_error: tstamp:4060164160 cch:0 vi:0 tag:CSIMUX_FRAME channel:0x00 frame:1 vi_tstamp:129925171392 data:0x00000000000000a0
rtcpu_vinotify_event: tstamp:4060166846 cch:0 vi:0 tag:CHANSEL_PXL_EOF channel:0x23 frame:1 vi_tstamp:129923836800 data:0x0000000004370002
rtcpu_vinotify_event: tstamp:4060167015 cch:0 vi:0 tag:ATOMP_FRAME_DONE channel:0x23 frame:1 vi_tstamp:129923837312 data:0x0000000000000000

I use Jetpack 6.1, the dtb drivers and ser/des/sensor can work on AGX ORIN with the same l4t version.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.