Thank you for the help,
We made a significant progress and now it seems like the timeout issues are gone.
But now we get the following errors when trying to capture the video using v4l2-ctl, it looks like timing issues:
nv@nv-desktop:~$ v4l2-ctl --set-fmt-video=width=1920,height=1080 --set-ctrl bypass_mode=0 --stream-mmap
New timings found
[ 640.800048] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 640.819998] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 640.840015] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 640.860059] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 640.880071] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 640.900011] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 640.920018] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 640.940066] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 640.960079] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 640.980022] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 641.000037] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 641.020067] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 641.040080] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 641.060020] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 641.080036] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 641.100068] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 641.120090] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 641.140036] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 641.160050] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 641.180077] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 641.200094] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 641.220199] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 641.240037] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 641.260076] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 641.280089] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 641.300039] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
When enabling the VI debug we get the following from cat /sys/kernel/debug/tracing/trace
:
# tracer: nop
#
# entries-in-buffer/entries-written: 1167/1167 #P:4
#
# _-------=> irqs-off
# / _------=> need-resched
# | / _-----=> need-resched-lazy
# || / _----=> hardirq/softirq
# ||| / _---=> preempt-depth
# |||| / _--=> preempt-lazy-depth
# ||||| / _-=> migrate-disable
# |||||| / delay
# TASK-PID CPU# ||||||| TIMESTAMP FUNCTION
# | | | ||||||| | |
kworker/2:1-58 [002] ....... 640.825411: rtcpu_vinotify_event: tstamp:20887633466 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:668387107328 data:0x799e300010000000
kworker/2:1-58 [002] ....... 640.825414: rtcpu_vinotify_event: tstamp:20887633606 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:668387149376 data:0x0000000031000001
kworker/2:1-58 [002] ....... 640.825414: rtcpu_vinotify_event: tstamp:20887633763 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:668387167584 data:0x799e2d0010000000
kworker/2:1-58 [002] ....... 640.825415: rtcpu_vinotify_event: tstamp:20887633899 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:668387187936 data:0x0000000007020001
kworker/2:1-58 [002] ....... 640.825415: rtcpu_vinotify_event: tstamp:20887634052 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:668387230304 data:0x0000000031000002
kworker/2:1-58 [002] ....... 640.825415: rtcpu_vinotify_event: tstamp:20887634187 cch:0 vi:1 tag:FS channel:0x00 frame:0 vi_tstamp:668390028928 data:0x0000000000000012
kworker/2:1-58 [002] ....... 640.825416: rtcpu_vinotify_event: tstamp:20887634343 cch:0 vi:1 tag:ATOMP_FS channel:0x00 frame:0 vi_tstamp:668390029024 data:0x0000000800000000
kworker/2:1-58 [002] ....... 640.825416: rtcpu_vinotify_event: tstamp:20887634477 cch:0 vi:1 tag:CHANSEL_PXL_SOF channel:0x23 frame:0 vi_tstamp:668390030368 data:0x0000000000000001
kworker/2:1-58 [002] ....... 640.825417: rtcpu_vinotify_event: tstamp:20887634630 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:668390069920 data:0x0000000008020001
kworker/2:1-58 [002] ....... 640.825417: rtcpu_vinotify_event: tstamp:20887766473 cch:0 vi:1 tag:FE channel:0x00 frame:0 vi_tstamp:668408108352 data:0x0000000000000022
kworker/2:1-58 [002] ....... 640.825418: rtcpu_vinotify_event: tstamp:20887766627 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:0 vi_tstamp:668408108384 data:0x0290200001000000
kworker/2:1-58 [002] ....... 640.825418: rtcpu_vinotify_event: tstamp:20887766763 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:668408174592 data:0x0000000001020001
kworker/2:1-58 [002] ....... 640.825418: rtcpu_vinotify_event: tstamp:20887766918 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:0 vi_tstamp:668408108384 data:0x0000200000000000
kworker/2:1-58 [002] ....... 640.825419: rtcpu_vinotify_event: tstamp:20887767055 cch:0 vi:1 tag:ATOMP_FE channel:0x00 frame:0 vi_tstamp:668408108448 data:0x0000000800000000
kworker/2:1-58 [002] ....... 640.825419: rtcpu_vinotify_event: tstamp:20887768475 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:668408322880 data:0x0000000007020002
kworker/2:1-58 [002] ....... 640.825419: rtcpu_vinotify_event: tstamp:20887768609 cch:0 vi:1 tag:FS channel:0x00 frame:0 vi_tstamp:668408161664 data:0x0000000000000012
kworker/2:1-58 [002] ....... 640.825420: rtcpu_vinotify_event: tstamp:20888284870 cch:0 vi:1 tag:ATOMP_FS channel:0x00 frame:0 vi_tstamp:668408161728 data:0x0000000800000000
kworker/2:1-58 [002] ....... 640.825420: rtcpu_vinotify_event: tstamp:20888285006 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:668408606464 data:0x799e300010000000
kworker/2:1-58 [002] ....... 640.825421: rtcpu_vinotify_event: tstamp:20888285162 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:668408649184 data:0x0000000031000003
kworker/2:1-58 [002] ....... 640.825421: rtcpu_vinotify_event: tstamp:20888285302 cch:0 vi:1 tag:CHANSEL_PXL_SOF channel:0x23 frame:0 vi_tstamp:668408722272 data:0x0000000000000001
kworker/2:1-58 [002] ....... 640.825422: rtcpu_vinotify_event: tstamp:20888285454 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:668408732064 data:0x0000000008020002
kworker/2:1-58 [002] ....... 640.825422: rtcpu_vinotify_event: tstamp:20888403348 cch:0 vi:1 tag:FE channel:0x00 frame:0 vi_tstamp:668428110080 data:0x0000000000000022
kworker/2:1-58 [002] ....... 640.825422: rtcpu_vinotify_event: tstamp:20888403501 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:0 vi_tstamp:668428110112 data:0x02c0200001000000
kworker/2:1-58 [002] ....... 640.825423: rtcpu_vinotify_event: tstamp:20888403636 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:668428176320 data:0x0000000001020002
kworker/2:1-58 [002] ....... 640.825423: rtcpu_vinotify_event: tstamp:20888403799 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:0 vi_tstamp:668428110112 data:0x0000200000000000
kworker/2:1-58 [002] ....... 640.825423: rtcpu_vinotify_event: tstamp:20888403935 cch:0 vi:1 tag:ATOMP_FE channel:0x00 frame:0 vi_tstamp:668428110208 data:0x0000000800000000
kworker/2:1-58 [002] ....... 640.825424: rtcpu_vinotify_event: tstamp:20888404090 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:668428324672 data:0x0000000007020003
kworker/2:1-58 [002] ....... 640.825424: rtcpu_vinotify_event: tstamp:20888404226 cch:0 vi:1 tag:FS channel:0x00 frame:0 vi_tstamp:668428163424 data:0x0000000000000012
kworker/2:1-58 [002] ....... 640.825425: rtcpu_vinotify_event: tstamp:20888404380 cch:0 vi:1 tag:ATOMP_FS channel:0x00 frame:0 vi_tstamp:668428163520 data:0x0000000800000000
kworker/2:1-58 [002] ....... 640.825425: rtcpu_vinotify_event: tstamp:20888404516 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:668428579136 data:0x799e2d0010000000
kworker/2:1-58 [002] ....... 640.825425: rtcpu_vinotify_event: tstamp:20888404669 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:668428621888 data:0x0000000031000004
kworker/2:1-58 [002] ....... 640.825426: rtcpu_vinotify_event: tstamp:20888404831 cch:0 vi:1 tag:CHANSEL_PXL_SOF channel:0x23 frame:0 vi_tstamp:668428724096 data:0x0000000000000001
kworker/2:1-58 [002] ....... 640.881416: rtcpu_vinotify_event: tstamp:20888935831 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:668428742176 data:0x0000000008020003
kworker/2:1-58 [002] ....... 640.881419: rtcpu_vinotify_event: tstamp:20889478725 cch:0 vi:1 tag:FE channel:0x00 frame:0 vi_tstamp:668448111872 data:0x0000000000000022
kworker/2:1-58 [002] ....... 640.881419: rtcpu_vinotify_event: tstamp:20889478882 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:0 vi_tstamp:668448111904 data:0x02c0200001000000
kworker/2:1-58 [002] ....... 640.881420: rtcpu_vinotify_event: tstamp:20889479021 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:668448178144 data:0x0000000001020003
kworker/2:1-58 [002] ....... 640.881420: rtcpu_vinotify_event: tstamp:20889479175 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:0 vi_tstamp:668448111904 data:0x0000200000000000
kworker/2:1-58 [002] ....... 640.881421: rtcpu_vinotify_event: tstamp:20889479310 cch:0 vi:1 tag:ATOMP_FE channel:0x00 frame:0 vi_tstamp:668448111968 data:0x0000000800000000
kworker/2:1-58 [002] ....... 640.881422: rtcpu_vinotify_event: tstamp:20889479462 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:668448326464 data:0x0000000007020004
kworker/2:1-58 [002] ....... 640.881422: rtcpu_vinotify_event: tstamp:20889479595 cch:0 vi:1 tag:FS channel:0x00 frame:0 vi_tstamp:668448165184 data:0x0000000000000012
kworker/2:1-58 [002] ....... 640.881422: rtcpu_vinotify_event: tstamp:20889479750 cch:0 vi:1 tag:ATOMP_FS channel:0x00 frame:0 vi_tstamp:668448165280 data:0x0000000800000000
kworker/2:1-58 [002] ....... 640.881423: rtcpu_vinotify_event: tstamp:20889479883 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:668448566400 data:0x799e300010000000
kworker/2:1-58 [002] ....... 640.881423: rtcpu_vinotify_event: tstamp:20889480035 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:668448609152 data:0x0000000031000005
kworker/2:1-58 [002] ....... 640.881424: rtcpu_vinotify_event: tstamp:20889480167 cch:0 vi:1 tag:CHANSEL_PXL_SOF channel:0x23 frame:0 vi_tstamp:668448725856 data:0x0000000000000001
kworker/2:1-58 [002] ....... 640.881424: rtcpu_vinotify_event: tstamp:20889480324 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:668448735616 data:0x0000000008020004
kworker/2:1-58 [002] ....... 640.881425: rtcpu_vinotify_event: tstamp:20889641356 cch:0 vi:1 tag:FE channel:0x00 frame:0 vi_tstamp:668468113600 data:0x0000000000000022
kworker/2:1-58 [002] ....... 640.881425: rtcpu_vinotify_event: tstamp:20889641513 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:0 vi_tstamp:668468113632 data:0x02c0200001000000
kworker/2:1-58 [002] ....... 640.881426: rtcpu_vinotify_event: tstamp:20889641648 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:668468179872 data:0x0000000001020004
kworker/2:1-58 [002] ....... 640.881426: rtcpu_vinotify_event: tstamp:20890129575 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:0 vi_tstamp:668468113632 data:0x0000200000000000
kworker/2:1-58 [002] ....... 640.881426: rtcpu_vinotify_event: tstamp:20890129716 cch:0 vi:1 tag:ATOMP_FE channel:0x00 frame:0 vi_tstamp:668468113728 data:0x0000000800000000
kworker/2:1-58 [002] ....... 640.881427: rtcpu_vinotify_event: tstamp:20890129870 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:668468338720 data:0x0000000007020005
kworker/2:1-58 [002] ....... 640.881427: rtcpu_vinotify_event: tstamp:20890130005 cch:0 vi:1 tag:FS channel:0x00 frame:0 vi_tstamp:668468166976 data:0x0000000000000012
kworker/2:1-58 [002] ....... 640.881427: rtcpu_vinotify_event: tstamp:20890130162 cch:0 vi:1 tag:ATOMP_FS channel:0x00 frame:0 vi_tstamp:668468167040 data:0x0000000800000000
kworker/2:1-58 [002] ....... 640.881428: rtcpu_vinotify_event: tstamp:20890130298 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:668468620768 data:0x799e2d0010000000
kworker/2:1-58 [002] ....... 640.881428: rtcpu_vinotify_event: tstamp:20890130451 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:668468663488 data:0x0000000031000006
kworker/2:1-58 [002] ....... 640.881428: rtcpu_vinotify_event: tstamp:20890130586 cch:0 vi:1 tag:CHANSEL_PXL_SOF channel:0x23 frame:0 vi_tstamp:668468727584 data:0x0000000000000001
kworker/2:1-58 [002] ....... 640.881428: rtcpu_vinotify_event: tstamp:20890130740 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:668468737376 data:0x0000000008020005
kworker/2:1-58 [002] ....... 640.881429: rtcpu_vinotify_event: tstamp:20890266722 cch:0 vi:1 tag:FE channel:0x00 frame:0 vi_tstamp:668488115424 data:0x0000000000000022
kworker/2:1-58 [002] ....... 640.881429: rtcpu_vinotify_event: tstamp:20890266876 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:0 vi_tstamp:668488115424 data:0x02c0200001000000
kworker/2:1-58 [002] ....... 640.881429: rtcpu_vinotify_event: tstamp:20890267014 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:668488181632 data:0x0000000001020005
kworker/2:1-58 [002] ....... 640.881429: rtcpu_vinotify_event: tstamp:20890267169 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:0 vi_tstamp:668488115424 data:0x0000200000000000
kworker/2:1-58 [002] ....... 640.881429: rtcpu_vinotify_event: tstamp:20890267307 cch:0 vi:1 tag:ATOMP_FE channel:0x00 frame:0 vi_tstamp:668488115520 data:0x0000000800000000
kworker/2:1-58 [002] ....... 640.881430: rtcpu_vinotify_event: tstamp:20890267461 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:668488329920 data:0x0000000007020006
kworker/2:1-58 [002] ....... 640.881430: rtcpu_vinotify_event: tstamp:20890267597 cch:0 vi:1 tag:FS channel:0x00 frame:0 vi_tstamp:668488168704 data:0x0000000000000012
Can you help us clarify the issues?
Thanks,
Ben