Open rr-jmorera opened 3 weeks ago
I resolved the issue related to the backtrace by applying the following patch:
diff --git a/kernel/nvidia/drivers/media/platform/tegra/camera/vi/vi5_fops.c b/kernel/nvidia/drivers/media/platform/tegra/camera/vi/vi5_fops.c
index 8ba911c4d..6eb9aab2d 100644
--- a/kernel/nvidia/drivers/media/platform/tegra/camera/vi/vi5_fops.c
+++ b/kernel/nvidia/drivers/media/platform/tegra/camera/vi/vi5_fops.c
@@ -975,11 +975,12 @@ static int vi5_channel_start_streaming(struct vb2_queue *vq, u32 count)
/* Skip in bypass mode */
if (!chan->bypass) {
for (vi_port = 0; vi_port < chan->valid_ports; vi_port++) {
- int err = vi5_channel_open(chan, vi_port);
-
- if (err)
+ chan->tegra_vi_channel[vi_port] =
+ vi_channel_open_ex(chan->id + vi_port, false);
+ if (IS_ERR(chan->tegra_vi_channel[vi_port])) {
+ ret = PTR_ERR(chan);
goto err_open_ex;
-
+ }
spin_lock_irqsave(&chan->capture_state_lock, flags);
chan->capture_state = CAPTURE_IDLE;
spin_unlock_irqrestore(&chan->capture_state_lock, flags);
@@ -1120,8 +1121,7 @@ static int vi5_channel_stop_streaming(struct vb2_queue *vq)
dev_err(&chan->video->dev,
"vi capture release failed\n");
- vi_channel_close_ex(chan->vi_channel_id[vi_port],
- chan->tegra_vi_channel[vi_port]);
+ vi_channel_close_ex(chan->id + vi_port, chan->tegra_vi_channel[vi_port]);
chan->tegra_vi_channel[vi_port] = NULL;
}
However, I’m still encountering this issue (in all streams). Has anyone else experienced this, or does anyone have additional suggestions for troubleshooting? Any help would be appreciated!
[ 479.457111] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072, vc: 0
[ 479.458521] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 479.458924] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 479.459210] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 479.459395] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
Using a Jetson Xavier AGX devkit with JetPack version 5.1.2 I'm encountering an issue when I enable RGB stream capture using the following command:
v4l2-ctl -d /dev/video2 --stream-mmap
This problem occurs with multiple devices intermediately after running the last command, specifically /dev/video2 (RGB Stream), /dev/video4 (IR Stream), and /dev/video5 (IMU Stream). The capture itself seems to work without any issues, but the kernel log contains the following error messages:
Additionally, the /dev/video0 (Depth Stream) produces the following kernel log:
Has anyone else experienced this issue or have any insights on how to resolve it? Any help would be greatly appreciated!
-Jose