MIPI camera goes wrong after random minutes

Hello,
while I’m using 4 MIPI cameras, some cameras often fails to get images suddenly.
It is okay for minutes, but after while, it freezes so I checked dmesg, then I got the message below.

[6762.084734] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[6762.085031] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[6762.085750] (NULL device *): vi_capture_control_message: NULL VI channel received
[6762.085970] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=5, csi_port=6
[6762.086278] (NULL device *): vi_capture_control_message: NULL VI channel received
[6762.086491] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 5 vc- 0
[6762.086974] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel

I know these messages can be shown when the camera setting was not good or camera doesn’t output image,
but the problem is it was normal for while and it always happens only on 3rd and 4th camera.
The time to start freezing is random, so sometimes it is hard to reproduce the issue.
And it works well if I reset the camera image viewer.

Camera driver is custom made, but it works well, so I don’t think it is driver issue.

Anyone have idea to fix this?

hello hscho0316,

may I confirm the Jetpack release you’re working with.
please check the release tag, $ cat /etc/nv_tegra_release for confirmation.

note, there’s some known issues with early rel-35 release version.
if that’s possible, please moving to the latest L4T release, i.e. l4t-r35.3.1 to include camera bug fixes.

may I also know what’s your test pipeline. also, how did you reset the stream?

Hello JerryChang,

when I checked release tag, I think it is r35.1.0:

R35 (release), REVISION: 1.0, GCID: 31346300, BOARD: t186ref, EABI: aarch64, DATE: Thu Aug 25 18:41:45 UTC 2022

I think first I have to update this one.
I’ll check and back. Thank you.

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