Hi,
I am running 2 sensors over v4l2 pipe and have a problem with VI.
Commands used:
v4l2-ctl --set-fmt-video=width=3864,height=2180 --stream-mmap --stream-count=200 -d /dev/video0
v4l2-ctl --set-fmt-video=width=3864,height=2180 --stream-mmap --stream-count=200 -d /dev/video1
When the first pipe captures 200 frames it stops the stream. In the process, VI doesn’t capture frames from the second (still active) sensor which causes VI to go into the error recovery routine.
dmesg dump with additional info. number in squered brackets is chan->id.
[ 707.113123] vi5_capture_dequeue ++ [0]
[ 707.113513] vi5_capture_dequeue ++ [2]
[ 707.129623] vi5_capture_dequeue ++ [0]
[ 707.130036] vi5_capture_dequeue ++ [2]
[ 707.146108] vi5_capture_dequeue ++ [0]
[ 707.146484] vi5_capture_dequeue ++ [2]
[ 707.162666] vi5_capture_dequeue ++ [0]
[ 707.163032] vi5_capture_dequeue ++ [2]
[ 707.179181] vi5_capture_dequeue ++ [0]
[ 707.179353] vi5_channel_stop_streaming ++ [0]
[ 707.179520] vi5_capture_dequeue ++ [2]
[ 707.195850] imx334 30-001a: imx334_stop_streaming++
[ 707.195929] vi5_capture_dequeue ++ [2]
[ 707.212428] vi5_capture_dequeue ++ [2]
[ 707.213397] imx334 30-001a: imx334_stop_streaming++
[ 707.228022] vi5_power_off ++ [0]
[ 707.228085] imx334 30-001a: imx334_power_off: power off
[ 707.228575] imx334 30-001a: imx334_power_off: Skipping power-off, 1 sensors still active
[ 712.371402] tegra194-vi5 15c10000.vi: no reply from camera processor
[ 712.371593] vi5_capture_dequeue ++ [2]
[ 712.371601] tegra194-vi5 15c10000.vi: uncorr_err: request timed out after 5000 ms
[ 712.371745] tegra194-vi5 15c10000.vi: err_rec: attempting to reset the capture channel
[ 712.371880] vi5_channel_error_recover ++ [2]
[ 712.376932] vi5_channel_error_recover ++ [2]
[ 712.376944] vi5_capture_dequeue ++ [2]
[ 712.376949] vi5_channel_error_recover ++ [2]
[ 712.376955] vi5_capture_dequeue ++ [2]
[ 712.376961] vi5_channel_error_recover ++ [2]
[ 712.376966] vi5_capture_dequeue ++ [2]
[ 712.377084] tegra_channel_capture_setup ++ [2]
[ 712.377325] tegra194-vi5 15c10000.vi: err_rec: successfully reset the capture channel
[ 712.377539] vi5_capture_dequeue ++ [2]
[ 712.410871] vi5_capture_dequeue ++ [2]
[ 712.427428] vi5_capture_dequeue ++ [2]
[ 712.443862] vi5_capture_dequeue ++ [2]
[ 712.460391] vi5_capture_dequeue ++ [2]
[ 712.476960] vi5_capture_dequeue ++ [2]
[ 712.493411] vi5_capture_dequeue ++ [2]
[ 712.509949] vi5_capture_dequeue ++ [2]
[ 712.526455] vi5_capture_dequeue ++ [2]
[ 712.542927] vi5_capture_dequeue ++ [2]
I’ve tried commenting stop stream register settings in the driver to be sure that stream continues for both sensors.
I’ve noticed when starting with sensor registered on vi chan 2, sometimes we didn’t get the error. Problems persist on several v4l2 app as well. Error didn’t occur with argus_camera app.
Also, the problem doesn’t occur on TX2.
Do you have experience with this problem? what could I do?
L4T: 32.2.1