AGX Orin camera: request timed out after 2500 ms

Hello,all:

Jetpack:5.1.0

There are 8 GMSL cameras on our custom board.When I execute the following command:

v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=UYVY --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1000000 --stream-to=/dev/null -d /dev/video0

Sometimes the following error occurs:

 tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 7080.804501] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 7080.804844] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 7080.804849] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[ 7080.804854] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 7080.804855] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 1
[ 7080.805133] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 7083.364453] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 7083.364468] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 7083.364797] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 7083.364800] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[ 7083.364804] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 7083.364806] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 1
[ 7083.365059] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 7085.924395] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 7085.924410] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 7085.924824] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 7085.924829] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[ 7085.924835] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 7085.924836] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 1
[ 7085.925134] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 7088.003114] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 256
[ 7088.046840] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: flags 2, err_data 0
[ 7088.060325] [RCE] ERROR: camera-ip/vi5/vi5.c:745 [vi5_handle_eof] "General error queue is out of sync with frame queue. ts=7108650661920 sof_ts=7108652015328 gerror_code=2 gerror_data=400062 notify_bits=20000"
[ 7088.484319] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 7088.484334] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 7088.484826] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 7088.484837] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[ 7088.484843] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 7088.484845] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 1
[ 7088.485181] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 7090.788271] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 7090.788290] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 7090.788912] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 7090.788920] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2

Then,the camera has no frame rate output.But when I ctrl +c this command and then re-execute it,the camera frame rate is back to normal.

So,how to fix this issue?
Thanks!!!

request timed out after 2500 ms
try to increase timeout.
…/Linux_for_Tegra/source/public/kernel/nvidia/drivers/media/platform/tegra/camera/vi/vi5_fops.c

 #define CAPTURE_TIMEOUT_MS	2500 >--->  #define CAPTURE_TIMEOUT_MS	5000

Hi,541449841
I changed this, but it can not work.
When the following error occurs,the camera has no frame rate output.

tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 256

Can I confirm some parameters with you?
CPHY or DPHY ?
MIPICLK is __ MHz?
pix_clk_hz is __? (in dtsi)

Hi,541449841

Our config as below:

                num_csi_lanes = <4>;
                max_lane_speed = <2000000>;
                min_bits_per_pixel = <10>;
                vi_peak_byte_per_pixel = <2>;
                vi_bw_margin_pct = <25>;
                max_pixel_rate = <750000>;
                isp_peak_byte_per_pixel = <5>;
                isp_bw_margin_pct = <25>;

image

Hi, 1627226101
How many serdes do you use ? You can actually think of serdes as a physical camera, What is the MIPI rate of serdes now? Your problem seems to be that the MIPI rate is too high or the MIPI signal quality is not good, so Orin can not recognize the frame signal properly every time,Of course, misconfiguring Orin parameters can also cause this problem, you can print key parameters such as the MIPI rate in the driver, or use the debug version of rtcpu.img to get more detailed information

for example,
Topic 268833, for camera firmware to update deskew algorithm, and also stability fixes,
Topic 268519, to fix memory corruption within libnvargus
for instance, Topic268833_JP-512_rce-fw_Debug.7z (254.1 KB)

Maybe get the trace log to check.

https://elinux.org/Jetson/l4t/Camera_BringUp#Steps_to_enable_more_debug_messages

Hi,541449841
We have a total of eight cameras, and only five are running right now.

Here is the log for the rtcpu:
e.txt (6.0 MB)

Hi,541449841
The 0x320 register of max9296 has a value of 0x30 and should be 1.6G.

Confirm the embedded_data_height in device tree match to sensor output.

rtcpu_vinotify_error: tstamp:31037494531 cch:3 vi:1 tag:CHANSEL_NOMATCH channel:0x04 frame:0

1 Like

Hi,ShaneCCC:
When the following error occurs in dmesg,the camera has no frame rate output.

[  994.352201] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  994.376558] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072

So I want to ask if this is a normal phenomenon?

This message tell didn’t get frame data from sensor that’s why no frame rate output.

Hi,ShaneCCC
In fact, if corr_err: discarding frame 0, flags: 0, err_data 131072 errors occur for four consecutive times, the camera has no frame rate output.When the camera is turned back on, the frame rate is normal.

So,how can I change this to avoid having no frame rate output?

Don’t understand what’s your mean.

Hi,ShaneCCC
If the following error occurs,the camera has no frame rate output.

[  994.352201] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[  994.376558] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072

Then I re-execute the following command and the camera returns to normal.

v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=UYVY --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1000000 --stream-to=/dev/null -d /dev/video0

If the above error occurs, the protection mechanism will be triggered? resulting in no frame rate output?

Finally,how do I solve this problem?

When you re-execute the v4l2-ctl the sensor and NVCSI/VI are reinitialize that can get the frame again is predictable.

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