After making driver modifications and device tree changes similar to those by @Towe_Roll in attached DTSI file, I was able to receive more data, but it remains incorrect.
I am now getting two different errors:
class:CORRECTABLE_ERR type:STREAM_NOVC phy:0 cil:0 st:2 vc:0 status:0x00000001
and:
class:GLOBAL type:STREAM_NOVC phy:0 cil:0 st:2 vc:0 status:0x00000001
The trace after a few seconds of: v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --stream-mmap --stream-count=1 -d /dev/video1 --stream-to=imx586.raw --verbose
# tracer: nop
#
# entries-in-buffer/entries-written: 17924/17924 #P:6
#
# _-----=> irqs-off
# / _----=> need-resched
# | / _---=> hardirq/softirq
# || / _--=> preempt-depth
# ||| / delay
# TASK-PID CPU# |||| TIMESTAMP FUNCTION
# | | | |||| | |
v4l2-ctl-4700 [000] .... 2678.836375: tegra_channel_open: vi-output, imx586 10-001a
v4l2-ctl-4700 [000] .... 2678.842069: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt c4
v4l2-ctl-4700 [000] .... 2678.842462: tegra_channel_set_stream: enable : 0x1
v4l2-ctl-4700 [000] .... 2678.857190: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-4700 [000] .... 2678.857192: csi_s_stream: enable : 0x1
v4l2-ctl-4700 [000] .... 2678.857499: tegra_channel_set_stream: imx586 10-001a : 0x1
kworker/2:0-4364 [002] .... 2678.864776: rtcpu_vinotify_event: tstamp:84401236426 cch:4 vi:1 tag:VIFALC_TDSTATE channel:0x20 frame:0 vi_tstamp:2700827333792 data:0x759e1e0010000000
kworker/2:0-4364 [002] .... 2678.864777: rtcpu_vinotify_event: tstamp:84401236627 cch:4 vi:1 tag:VIFALC_TDSTATE channel:0x20 frame:0 vi_tstamp:2700827340224 data:0x0000000031000001
kworker/2:0-4364 [002] .... 2678.864777: rtcpu_vinotify_event: tstamp:84401236823 cch:4 vi:1 tag:VIFALC_TDSTATE channel:0x20 frame:0 vi_tstamp:2700827390976 data:0x759e1b0010000000
kworker/2:0-4364 [002] .... 2678.864777: rtcpu_vinotify_event: tstamp:84401236989 cch:4 vi:1 tag:VIFALC_TDSTATE channel:0x20 frame:0 vi_tstamp:2700827397536 data:0x0000000031000002
kworker/2:0-4364 [002] .... 2678.920797: rtcpu_nvcsi_intr: tstamp:84401635761 class:GLOBAL type:STREAM_NOVC phy:0 cil:0 st:2 vc:0 status:0x00000001
kworker/2:0-4364 [002] .... 2678.920799: rtcpu_nvcsi_intr: tstamp:84401635761 class:CORRECTABLE_ERR type:STREAM_NOVC phy:0 cil:0 st:2 vc:0 status:0x00000001
kworker/2:0-4364 [002] .... 2678.920799: rtcpu_nvcsi_intr: tstamp:84401642383 class:GLOBAL type:STREAM_NOVC phy:0 cil:0 st:2 vc:0 status:0x00000001
kworker/2:0-4364 [002] .... 2678.920800: rtcpu_nvcsi_intr: tstamp:84401642383 class:CORRECTABLE_ERR type:STREAM_NOVC phy:0 cil:0 st:2 vc:0 status:0x00000001
kworker/2:0-4364 [002] .... 2678.920800: rtcpu_nvcsi_intr: tstamp:84401642990 class:GLOBAL type:STREAM_NOVC phy:0 cil:0 st:2 vc:0 status:0x00000001
...
kworker/2:0-4364 [002] .... 2679.260256: rtcpu_nvcsi_intr: tstamp:84413552112 class:GLOBAL type:STREAM_NOVC phy:0 cil:0 st:2 vc:0 status:0x00000001
kworker/2:0-4364 [002] .... 2679.260256: rtcpu_nvcsi_intr: tstamp:84413552112 class:GLOBAL type:STREAM_VC phy:0 cil:0 st:2 vc:0 status:0x00000008
kworker/2:0-4364 [002] .... 2679.260256: rtcpu_nvcsi_intr: tstamp:84413552112 class:CORRECTABLE_ERR type:STREAM_NOVC phy:0 cil:0 st:2 vc:0 status:0x00000001
kworker/2:0-4364 [002] .... 2679.260256: rtcpu_nvcsi_intr: tstamp:84413552112 class:CORRECTABLE_ERR type:STREAM_VC phy:0 cil:0 st:2 vc:0 status:0x00000008
kworker/2:0-4364 [002] .... 2679.260257: rtcpu_vinotify_error: tstamp:84413555692 cch:4 vi:1 tag:CSIMUX_FRAME channel:0x00 frame:792 vi_tstamp:2701219228544 data:0x0000051b000000a2
kworker/2:0-4364 [002] .... 2679.260258: rtcpu_vinotify_event: tstamp:84413559591 cch:4 vi:1 tag:CSIMUX_FRAME channel:0x00 frame:792 vi_tstamp:2701219228544 data:0x0000051b000000a2
kworker/2:0-4364 [002] .... 2679.260258: rtcpu_vinotify_event: tstamp:84413559728 cch:4 vi:1 tag:FS channel:0x00 frame:1307 vi_tstamp:2701219228544 data:0x0000051b00000012
kworker/2:0-4364 [002] .... 2679.260259: rtcpu_vinotify_event: tstamp:84413559883 cch:4 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:792 vi_tstamp:2701219228576 data:0x0000040001000000
kworker/2:0-4364 [002] .... 2679.260259: rtcpu_vinotify_event: tstamp:84413560019 cch:4 vi:1 tag:VIFALC_ACTIONLST channel:0x20 frame:792 vi_tstamp:2701219313120 data:0x0000000001020005
kworker/2:0-4364 [002] .... 2679.260259: rtcpu_vinotify_event: tstamp:84413560175 cch:4 vi:1 tag:ATOMP_FE channel:0x00 frame:792 vi_tstamp:2701219228640 data:0x0000000100000000
kworker/2:0-4364 [002] .... 2679.260259: rtcpu_vinotify_event: tstamp:84413560311 cch:4 vi:1 tag:ATOMP_FS channel:0x00 frame:1307 vi_tstamp:2701219228640 data:0x0000000100000000
kworker/2:0-4364 [002] .... 2679.260259: rtcpu_vinotify_event: tstamp:84413768585 cch:4 vi:1 tag:CHANSEL_NOMATCH channel:0x04 frame:1307 vi_tstamp:2701233660384 data:0x00000000000006c9
kworker/2:0-4364 [002] .... 2679.260259: rtcpu_vinotify_event: tstamp:84413768721 cch:4 vi:1 tag:VIFALC_TDSTATE channel:0x20 frame:0 vi_tstamp:2701233975648 data:0x759e1e0010000000
kworker/2:0-4364 [002] .... 2679.260260: rtcpu_vinotify_event: tstamp:84413768877 cch:4 vi:1 tag:VIFALC_TDSTATE channel:0x20 frame:0 vi_tstamp:2701234018976 data:0x0000000031000007
kworker/2:0-4364 [002] .... 2679.316773: rtcpu_vinotify_event: tstamp:84415652051 cch:-1 vi:1 tag:FE channel:0x00 frame:1307 vi_tstamp:2701300234240 data:0x0000000000000022
kworker/2:0-4364 [002] .... 2679.316775: rtcpu_vinotify_event: tstamp:84415652253 cch:-1 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:1307 vi_tstamp:2701300234240 data:0x0000040001000000
kworker/2:0-4364 [002] .... 2679.316775: rtcpu_vinotify_event: tstamp:84415652430 cch:-1 vi:1 tag:ATOMP_FE channel:0x00 frame:1307 vi_tstamp:2701300234240 data:0x0000000100000000
kworker/2:0-4364 [002] .... 2685.420659: rtcpu_string: tstamp:84606172390 id:0x04010000 str:"VM0 deactivating."
In my device tree, the configuration for CSI2/3 clocks was previously as follows:
clocks = <&bpmp_clks TEGRA234_CLK_EXTPERIPH2>, <&bpmp_clks TEGRA234_CLK_PLLP_OUT0>;
I will now change it to:
clocks = <&bpmp_clks TEGRA234_CLK_EXTPERIPH2>, <&bpmp_clks TEGRA234_CLK_EXTPERIPH2>;
How should the clock be configured to get a stable 24MHz source for the camera on CSI2/3?