L4T35.3.1Xavier NX MIPI카메라 관련 이슈

안녕하세요
오랜만에 문의글 남깁니다.

음… 카메라를 테스트하는중에 새로운 증상이 발생하여 해결방안을 찾고자 글을 남깁니다.

현재 작업중인 구성은
Xavier NX+ Custom Carrier + MIPI 2Lane Camera 4Port 이고,
Jetpack5.1.1 , deepstream-6.2버전을 사용중입니다

MIPI카메라를 단일로 1개씩 동작시키면 이상이 없으나 2개이상 동시에 작동 할 경우 문제가 발생합니다.

[225638.225660] (NULL device *): vi_capture_control_message: NULL VI channel received
[225638.225829] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 3 vc- 0
[225638.226474] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[225638.227221] (NULL device *): vi_capture_control_message: NULL VI channel received
[225638.227523] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=3, csi_port=3

위에 로그와 같이 메세지가 발생 한 후 프레임 드랍이 조금씩 발생하다가 영상이 멈춰버립니다.

여기서 한가지 궁금한점은 Power Mode를 변경하면 증상이 달라진다는겁니다.
7: MODE 10W DESKTOP모드에서는 프레임 드랍없이 정상적으로 동작합니다 (CPU클럭 가장 높음 4core, 1.9GHz)

그 외 코어가 증가하거나 클럭이 낮아지는 경우 영상의 끊김은 눈에띄게 증가합니다.

이유가 무엇인지 알려줄수 있습니까??

이론적으로 CPU가 빨라지면 처리하는 속도가 당연히 빨라지기 때문에 해당 증상이 발생 할 수 있을것으로 생각이들긴하는데…

deepstream app을 사용하여 화면에 표출시 CPU 자원을 많이 사용하나요??

Please rephrase by English.

Thanks

hello

While testing the camera, a new symptom occurred, so I am writing to find a solution.

The configuration currently being worked on is
Xavier NX+ Custom Carrier + MIPI 2Lane Camera 4Port,
I am using Jetpack5.1.1 and deepstream-6.2 versions.

There is no problem if MIPI cameras are operated one at a time, but problems occur if two or more MIPI cameras are operated simultaneously.

[225638.225660] (NULL device *): vi_capture_control_message: NULL VI channel received
[225638.225829] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 3 vc- 0
[225638.226474] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[225638.227221] (NULL device *): vi_capture_control_message: NULL VI channel received
[225638.227523] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=3, csi_port=3

After the message shown in the log above appears, frame drops occur little by little, and then the video stops.

One thing I’m curious about here is that the symptoms change when you change the power mode.
7: In MODE 10W DESKTOP mode, it operates normally without frame drops (highest CPU clock: 4 core, 1.9 GHz)

In addition, when the number of cores increases or the clock speed decreases, video stuttering increases noticeably.

Can you tell me what the reason is??

In theory, I think that this symptom may occur because the faster the CPU, the faster the processing speed, of course…

Does displaying on the screen using the deepstream app use a lot of CPU resources?

  1. Try cool the system by fan.
  2. Boost the clocks to try.
sudo su
echo 1 > /sys/kernel/debug/bpmp/debug/clk/vi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/isp/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/nvcsi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/emc/mrq_rate_locked
cat /sys/kernel/debug/bpmp/debug/clk/vi/max_rate |tee /sys/kernel/debug/bpmp/debug/clk/vi/rate
cat /sys/kernel/debug/bpmp/debug/clk/isp/max_rate | tee  /sys/kernel/debug/bpmp/debug/clk/isp/rate
cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/nvcsi/rate
cat /sys/kernel/debug/bpmp/debug/clk/emc/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/emc/rate

I tried it because there was clock-related control information in another topic, but the symptoms were the same…
The fan is also operating at maximum PWM output.

When run with multiple cameras need more CPU should be know due to a lot of software feature like 3A and some ISP features.

Thanks

Thank you for answer

Additionally, can you provide information about the properties of each power mode of the Jetson Xavier NX module?

Please check the /etc/nvpmodel.conf for the detail.

Thanks