Hello,
I’m using Jetson Xavier NX with three cameras connected via MIPI and sometimes kernel panics when my application tries to open the device driver.
The application starts capturing on all three cameras at the same time and then stops them at approximately the same time. When the camera device(/dev/video*) is closed I see in dmesg warnings:
[ 2597.964838] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[ 2597.964851] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[ 2597.964868] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 2597.965161] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 2597.965796] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 2597.965972] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 2597.966176] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 2597.966337] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[ 2597.966750] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 2597.966981] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=4, csi_port=4
[ 2597.966994] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 2597.967326] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 2597.967334] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 4 vc- 0
[ 2597.975015] vc_mipi 9-001a: vc_sen_stop_stream(): Stop streaming
[ 2597.984228] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 2598.019870] vc_mipi 11-001a: vc_sen_stop_stream(): Stop streaming
If i repeat open/close cycle a few times the kernel driver crashes:
[ 2704.320995] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[ 2704.321257] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 2704.321324] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 5000 ms
[ 2704.321669] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 2704.323282] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 2704.323535] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=4, csi_port=4
[ 2704.323813] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 2704.324027] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 4 vc- 0
[ 2704.324687] ------------[ cut here ]------------
[ 2704.324894] WARNING: CPU: 0 PID: 9451 at /__w/jetson-kernel/jetson-kernel/build/Linux_for_Tegra/sources/kernel/nvidia/drivers/platform/tegra/rtcpu/capture-ivc.c:176 tegra_capture_ivc_notify_chan_id+0x1b4/0x1e0
[ 2704.325949] ---[ end trace 8466e515f18f3a1b ]---
[ 2704.330492] tegra194-vi5 15c10000.vi: failed to update control callback
[ 2704.330869] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 2704.337732] tegra-camrtc-capture-vi tegra-capture-vi: vi capture setup failed
[ 2704.344578] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 2704.344585] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 2704.344591] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[ 2704.380178] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
[ 2704.380447] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 2704.388562] vc_mipi 11-001a: vc_sen_stop_stream(): Stop streaming
[ 2704.396738] vc_mipi 9-001a: vc_sen_stop_stream(): Stop streaming
[ 2705.472980] tegra194-vi5 15c10000.vi: capture control message timed out
[ 2705.473162] tegra194-vi5 15c10000.vi: vi_capture_release: release channel IVC failed
[ 2705.473385] WARNING: CPU: 4 PID: 9168 at /__w/jetson-kernel/jetson-kernel/build/Linux_for_Tegra/sources/kernel/nvidia/drivers/media/platform/tegra/camera/fusa-capture/capture-vi.c:971 vi_capture_release+0x2ac/0x300
[ 2705.474358] ---[ end trace 8466e515f18f3a1c ]---
��[ 2327.969902] Camera-FW on t194-rce-safe started
TCU early console enabled.
[ 2328.050627] Camera-FW on t194-rce-safe ready SHA1=01b72e3c (crt 0.746 ms, total boot 81.500 ms)
��[ 2705.558248] ------------[ cut here ]------------
[ 2705.558410] WARNING: CPU: 5 PID: 9168 at /__w/jetson-kernel/jetson-kernel/build/Linux_for_Tegra/sources/kernel/nvidia/drivers/platform/tegra/rtcpu/capture-ivc.c:306 tegra_capture_ivc_unregister_capture_cb+0xac/0xe0
[ 2705.559373] ---[ end trace 8466e515f18f3a1d ]---
[ 2705.559484] ------------[ cut here ]------------
[ 2705.559605] WARNING: CPU: 5 PID: 9168 at /__w/jetson-kernel/jetson-kernel/build/Linux_for_Tegra/sources/kernel/nvidia/drivers/platform/tegra/rtcpu/capture-ivc.c:262 tegra_capture_ivc_unregister_control_cb+0x13c/0x160
[ 2705.560582] ---[ end trace 8466e515f18f3a1e ]---
[ 2705.560716] video4linux video2: vi capture release failed
[ 2708.503740] vc_mipi 9-001a: vc_sen_set_exposure(): Set sensor exposure: 350 us
[ 2708.507950] ------------[ cut here ]------------
[ 2708.508147] WARNING: CPU: 4 PID: 9168 at /__w/jetson-kernel/jetson-kernel/build/Linux_for_Tegra/sources/kernel/nvidia/drivers/platform/tegra/rtcpu/capture-ivc.c:176 tegra_capture_ivc_notify_chan_id+0x1b4/0x1e0
[ 2708.509166] ---[ end trace 8466e515f18f3a1f ]---
[ 2708.509319] tegra194-vi5 15c10000.vi: failed to update control callback
[ 2708.509500] tegra-camrtc-capture-vi tegra-capture-vi: vi capture setup failed
[ 2708.510242] tegra194-isp5 13e10000.host1x:isp@14800000: isp_capture_ivc_control_callback: unknown capture isp control resp
[ 2708.515293] ------------[ cut here ]------------
[ 2708.515503] WARNING: CPU: 5 PID: 9165 at /__w/jetson-kernel/jetson-kernel/build/Linux_for_Tegra/sources/kernel/nvidia/drivers/platform/tegra/rtcpu/capture-ivc.c:176 tegra_capture_ivc_notify_chan_id+0x1b4/0x1e0
[ 2708.516567] ---[ end trace 8466e515f18f3a20 ]---
[ 2708.516703] tegra194-vi5 15c10000.vi: failed to update control callback
[ 2708.516980] tegra-camrtc-capture-vi tegra-capture-vi: vi capture setup failed
[ 2709.536966] tegra194-vi5 15c10000.vi: capture control message timed out
[ 2709.536984] tegra194-vi5 15c10000.vi: capture control message timed out
[ 2709.537321] tegra194-isp5 13e10000.host1x:isp@14800000: isp_capture_ivc_control_callback: unknown capture isp control resp
[ 2710.561006] tegra194-vi5 15c10000.vi: capture control message timed out
[ 2710.561200] tegra194-vi5 15c10000.vi: csi_stream_release: failed to disable nvcsi tpg on stream 4 virtual channel 0
[ 2710.562258] tegra194-isp5 13e10000.host1x:isp@14800000: isp_capture_ivc_control_callback: unknown capture isp control resp
[ 2710.564971] tegra194-vi5 15c10000.vi: capture control message timed out
[ 2710.565125] tegra194-vi5 15c10000.vi: csi_stream_release: failed to disable nvcsi tpg on stream 0 virtual channel 0
[ 2711.229109] tegra194-vi5 15c10000.vi: unexpected response from camera processor
[ 2711.229288] tegra194-vi5 15c10000.vi: unexpected response from camera processor
[ 2711.229446] tegra194-vi5 15c10000.vi: csi_stream_release: failed to disable nvcsi tpg on stream 2 virtual channel 0
[ 2711.229660] tegra194-vi5 15c10000.vi: unexpected response from camera processor
[ 2711.229822] tegra194-vi5 15c10000.vi: vi_capture_release: release channel IVC failed
[ 2711.230007] WARNING: CPU: 5 PID: 9024 at /__w/jetson-kernel/jetson-kernel/build/Linux_for_Tegra/sources/kernel/nvidia/drivers/media/platform/tegra/camera/fusa-capture/capture-vi.c:971 vi_capture_release+0x2ac/0x300
[ 2711.230901] ---[ end trace 8466e515f18f3a21 ]---
��[ 2333.726178] Camera-FW on t194-rce-safe started
TCU early console enabled.
[ 2333.832719] Camera-FW on t194-rce-safe ready SHA1=01b72e3c (crt 0.741 ms, total boot 107.310 ms)
��[ 2711.391548] tegra194-isp5 13e10000.host1x:isp@14800000: isp_capture_reset: control failed, errno 1
[ 2711.391835] tegra194-isp5 13e10000.host1x:isp@14800000: isp_capture_release: control failed, errno 1
[ 2711.584984] tegra194-vi5 15c10000.vi: capture control message timed out
[ 2711.585035] tegra194-vi5 15c10000.vi: capture control message timed out
[ 2711.585166] tegra194-vi5 15c10000.vi: vi_capture_release: release channel IVC failed
[ 2711.585336] tegra194-vi5 15c10000.vi: vi_capture_release: release channel IVC failed
[ 2711.585506] WARNING: CPU: 4 PID: 9165 at /__w/jetson-kernel/jetson-kernel/build/Linux_for_Tegra/sources/kernel/nvidia/drivers/media/platform/tegra/camera/fusa-capture/capture-vi.c:971 vi_capture_release+0x2ac/0x300
[ 2711.586072] WARNING: CPU: 0 PID: 9168 at /__w/jetson-kernel/jetson-kernel/build/Linux_for_Tegra/sources/kernel/nvidia/drivers/media/platform/tegra/camera/fusa-capture/capture-vi.c:971 vi_capture_release+0x2ac/0x300
[ 2711.588180] ---[ end trace 8466e515f18f3a22 ]---
[ 2711.588346] ---[ end trace 8466e515f18f3a23 ]---
[ 2711.588696] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
[ 2711.589020] Mem abort info:
[ 2711.589122] ESR = 0x96000004
[ 2711.589226] EC = 0x25: DABT (current EL), IL = 32 bits
[ 2711.590164] SET = 0, FnV = 0
[ 2711.593492] EA = 0, S1PTW = 0
[ 2711.596879] Data abort info:
[ 2711.599732] ISV = 0, ISS = 0x00000004
[ 2711.603169] CM = 0, WnR = 0
[ 2711.606245] user pgtable: 4k pages, 48-bit VAs, pgdp=0000000102da2000
[ 2711.612863] [0000000000000000] pgd=0000000000000000, p4d=0000000000000000
[ 2711.619692] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[ 2711.625344] Modules linked in: aes_ce_ccm can_isotp iwlmvm mac80211 snd_soc_tegra210_iqc snd_soc_tegra186_asrc snd_soc_tegra210_ope snd_soc_tegra186_dspk snd_soc_tegra210_mvc snd_soc_tegra186_arad snd_soc_tegra210_dmic snd_soc_tegra210_afc snd_soc_tegra210_admaif snd_soc_tegra210_adx snd_soc_tegra210_amx snd_soc_tegra210_mixer snd_soc_tegra210_i2s snd_soc_tegra210_sfc snd_soc_tegra_pcm aes_ce_blk crypto_simd cryptd aes_ce_cipher ghash_ce sha2_ce sha256_arm64 sha1_ce snd_soc_spdif_tx snd_soc_tegra_machine_driver leds_gpio iwlwifi cfg80211 snd_soc_tegra210_adsp snd_hda_codec_hdmi snd_soc_tegra_utils snd_soc_tegra210_ahub snd_soc_simple_card_utils nvadsp snd_hda_tegra tegra210_adma tegra_bpmp_thermal userspace_alert snd_hda_codec snd_hda_core spi_tegra114 ina3221 pwm_fan nvgpu nvmap mttcan can_dev can_raw can ramoops reed_solomon ip_tables x_tables [last unloaded: mtd]
[ 2711.701568] CPU: 0 PID: 9168 Comm: IrCamera Tainted: G W 5.10.104+ #1
[ 2711.709432] Hardware name: Unknown NVIDIA Jetson Xavier NX Developer Kit/NVIDIA Jetson Xavier NX Developer Kit, BIOS 202210.2-754f765 06/05/2023
[ 2711.722834] pstate: 60400009 (nZCv daif +PAN -UAO -TCO BTYPE=--)
[ 2711.728600] pc : vi_capture_request_unpin+0x40/0xd0
[ 2711.733836] lr : vi_capture_request_unpin+0x30/0xd0
[ 2711.738821] sp : ffff80002025ba60
[ 2711.741978] x29: ffff80002025ba60 x28: 0000000000000001
[ 2711.747489] x27: 0000000000000000 x26: ffff3a8f820ce1f8
[ 2711.753257] x25: 0000000000000000 x24: ffff3a8f820ce680
[ 2711.758529] x23: ffff3a8f820ce9fc x22: ffff3a8f91e17288
[ 2711.764283] x21: ffff3a8f91e17000 x20: 0000000000000000
[ 2711.769621] x19: 0000000000000000 x18: 000000000008ee78
[ 2711.774875] x17: 0000000000000000 x16: 0000000000000000
[ 2711.780315] x15: 0000000000000010 x14: 69762e3030303031
[ 2711.786070] x13: 633531203569762d x12: 6c65725f65727574
[ 2711.791497] x11: 00002faca9bcf284 x10: 0000000000000a80
[ 2711.796752] x9 : ffffa46799651f10 x8 : ffff3a8f8a4a2860
[ 2711.802433] x7 : 000000000000005b x6 : 0000000029e65a0b
[ 2711.807859] x5 : 000000004e0f0040 x4 : 0000000000000000
[ 2711.813284] x3 : ffff3a8f91e17288 x2 : ffff3a8f8a4a1d80
[ 2711.818619] x1 : 0000000000000000 x0 : 0000000000000000
[ 2711.823973] Call trace:
[ 2711.826157] vi_capture_request_unpin+0x40/0xd0
[ 2711.830719] vi_capture_shutdown+0x94/0x110
[ 2711.835160] vi_channel_close_ex+0x30/0x90
[ 2711.838929] vi5_channel_start_streaming+0x1cc/0x450
[ 2711.844000] tegra_channel_start_streaming+0x54/0x80
[ 2711.848552] vb2_start_streaming+0x74/0x170
[ 2711.852577] vb2_core_streamon+0x98/0x1a0
[ 2711.856860] vb2_streamon+0x24/0x80
���711.860536] vb2_ioctl_streamon+0x58/0x70
I’m using Jetson Xavier NX with two IMX296 sensors and one IMX219 sensor.
Jetson Xavier BSP version Jetson Linux 35.2.1 | NVIDIA Developer