Dear support team:
It looks like the VI block is hitting a performance bottleneck, I can’t open more than 13 Video devices at the same time. the kernel log:
[ 184.094341] [RCE] BUG: camera-ip/vi5/vi5.c:415 [vi5_check_falcon_failure] "VI FALCON FAILURE: 0x40000000"
[ 184.159960] tegra186-cam-rtcpu bc00000.rtcpu: Alert: Camera RTCPU gone bad! restoring it immediately!!
[ 185.102355] tegra194-vi5 13e40000.host1x:vi1@14c00000: capture control message timed out
[ 185.110734] tegra194-vi5 13e40000.host1x:vi1@14c00000: vi_capture_control_send_message: failed to send IVC control message
[ 186.638320] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 40000 ms
[ 186.638328] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 40000 ms
[ 186.638336] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 40000 ms
[ 186.638347] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 40000 ms
[ 186.638353] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 40000 ms
[ 186.638359] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 40000 ms
[ 186.638395] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 40000 ms
[ 186.638560] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 40000 ms
[ 186.638638] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 40000 ms
[ 186.638894] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 40000 ms
[ 186.639009] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 186.639022] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 40000 ms
[ 186.639039] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 40000 ms
[ 186.639637] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 186.639800] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 186.640219] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 186.640310] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 186.640444] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 186.640525] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 186.640544] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 40000 ms
[ 186.640769] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 186.640820] tegra194-vi5 13e40000.host1x:vi1@14c00000: vi_capture_release: control failed, errno 1
[ 186.640824] tegra194-vi5 13e40000.host1x:vi1@14c00000: vi_capture_release: control failed, errno 1
[ 186.640903] video4linux video13: vi capture release failed
[ 186.640906] video4linux video15: vi capture release failed
[ 186.640909] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
[ 186.640911] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
[ 186.640964] tegra194-vi5 13e40000.host1x:vi1@14c00000: vi_capture_release: control failed, errno 1
[ 186.640976] tegra194-vi5 13e40000.host1x:vi0@15c00000: vi_capture_release: control failed, errno 1
[ 186.641008] video4linux video14: vi capture release failed
[ 186.641012] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
[ 186.641019] video4linux video2: vi capture release failed
[ 186.641022] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
[ 186.641060] tegra194-vi5 13e40000.host1x:vi1@14c00000: vi_capture_release: control failed, errno 1
[ 186.641098] video4linux video12: vi capture release failed
[ 186.641103] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
[ 186.641773] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 186.641786] tegra194-vi5 13e40000.host1x:vi0@15c00000: vi_capture_release: control failed, errno 1
[ 186.641832] video4linux video8: vi capture release failed
[ 186.641835] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
[ 186.641888] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 186.641900] tegra194-vi5 13e40000.host1x:vi1@14c00000: vi_capture_release: control failed, errno 1
[ 186.641946] video4linux video6: vi capture release failed
[ 186.641949] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
[ 186.642011] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 186.658007] tegra194-vi5 13e40000.host1x:vi1@14c00000: vi_capture_release: control failed, errno 1
[ 186.658011] tegra194-vi5 13e40000.host1x:vi0@15c00000: vi_capture_release: control failed, errno 1
[ 186.658054] video4linux video10: vi capture release failed
[ 186.658058] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
[ 186.658800] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 186.659345] tegra194-vi5 13e40000.host1x:vi0@15c00000: vi_capture_release: control failed, errno 1
[ 186.659386] video4linux video0: vi capture release failed
[ 186.659388] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
[ 186.662340] tegra194-vi5 13e40000.host1x:vi1@14c00000: vi_capture_release: control failed, errno 1
[ 186.662372] video4linux video4: vi capture release failed
[ 186.662374] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
[ 186.666087] tegra194-vi5 13e40000.host1x:vi0@15c00000: vi_capture_release: control failed, errno 1
[ 186.667192] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 186.669584] tegra194-vi5 13e40000.host1x:vi0@15c00000: vi_capture_release: control failed, errno 1
[ 186.669620] video4linux video9: vi capture release failed
[ 186.669623] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
[ 186.675441] video4linux video5: vi capture release failed
[ 186.684643] video4linux video1: vi capture release failed
[ 186.694441] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
[ 186.712312] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
[ 413.223054] ------------[ cut here ]------------
[ 413.227822] refcount_t: addition on 0; use-after-free.
[ 413.227841] WARNING: CPU: 11 PID: 7525 at lib/refcount.c:25 refcount_warn_saturate+0x98/0x140
[ 413.236615] Modules linked in: scsensor_site3(E) scsensor_site2(E) scsensor_site1(E) scsensor_site0(E) nvidia_modeset(OE) fuse(E) lzo_rle(E) lzo_compress(E) zram(E) ramoops(E) reed_solomon(E) bnep(E) loop(E) snd_soc_tegra186_asrc(E) snd_soc_tegra210_iqc(E) snd_soc_tegra210_ope(E) snd_soc_tegra210_mvc(E) snd_soc_tegra186_dspk(E) snd_soc_tegra186_arad(E) snd_soc_tegra210_afc(E) snd_soc_tegra210_admaif(E) snd_soc_tegra210_dmic(E) aes_ce_blk(E) snd_soc_tegra210_adx(E) crypto_simd(E) snd_soc_tegra210_amx(E) snd_soc_tegra_pcm(E) snd_soc_tegra210_mixer(E) snd_soc_tegra210_i2s(E) snd_soc_tegra210_sfc(E) cryptd(E) aes_ce_cipher(E) nvgpu(E) ghash_ce(E) sha2_ce(E) rtk_btusb(E) sha256_arm64(E) sha1_ce(E) snd_hda_codec_hdmi(E) snd_soc_tegra210_adsp(E) btusb(E) ucsi_ccg(E) snd_soc_tegra_machine_driver(E) input_leds(E) rtl8822ce(E) btrtl(E) typec_ucsi(E) snd_soc_tegra_utils(E) btbcm(E) snd_hda_tegra(E) btintel(E) snd_soc_simple_card_utils(E) pwm_fan(E) snd_soc_spdif_tx(E) snd_hda_codec(E)
[ 413.236670] snd_soc_rt5640(E) i40e(E) typec(E) nct1008(E) snd_soc_tegra210_ahub(E) ina3221(E) nvadsp(E) snd_soc_rl6231(E) snd_hda_core(E) tegra_bpmp_thermal(E) userspace_alert(E) cfg80211(E) tegra210_adma(E) spi_tegra114(E) nvidia(OE) binfmt_misc(E) nvmap(E) ip_tables(E) x_tables(E) [last unloaded: mtd]
[ 413.236693] CPU: 11 PID: 7525 Comm: v4l2-ctl-t186 Tainted: G OE 5.10.104-tegra #50
[ 413.236694] Hardware name: Unknown Jetson AGX Orin/Jetson AGX Orin, BIOS 3.1-32827747 03/19/2023
[ 413.236697] pstate: 60400009 (nZCv daif +PAN -UAO -TCO BTYPE=--)
[ 413.236699] pc : refcount_warn_saturate+0x98/0x140
[ 413.236700] lr : refcount_warn_saturate+0x98/0x140
[ 413.236701] sp : ffff8000323a3a70
[ 413.236702] x29: ffff8000323a3a70 x28: ffff0f1ec042ba00
[ 413.236704] x27: ffffbf7eaf4e7000 x26: 0000ffff8c0be93c
[ 413.236706] x25: fffffffffffffe00 x24: ffff0f1ec042c000
[ 413.236708] x23: ffff0f258195c1f8 x22: ffff0f25819620a0
[ 413.236710] x21: ffff0f1e8a653a30 x20: ffff0f258195c550
[ 413.236712] x19: ffff0f1e8a653a00 x18: 0000000000000000
[ 413.236714] x17: 0000000000000000 x16: 0000000000000000
[ 413.236716] x15: 0000000000000000 x14: 0000000000000000
[ 413.236717] x13: 0000000000000000 x12: 0000000000000000
[ 413.236719] x11: 0000000000000000 x10: 0000000000000a80
[ 413.236721] x9 : ffff8000323a3a70 x8 : 6572662d72657466
[ 413.236723] x7 : 612d657375203b30 x6 : c0000000ffffefff
[ 413.236725] x5 : ffff0f25aec0e958 x4 : ffffbf7eaf7f7968
[ 413.236727] x3 : 0000000000000001 x2 : ffff0f25aec0e960
[ 413.236729] x1 : 0000000000000000 x0 : 0000000000000000
[ 413.236731] Call trace:
[ 413.236733] refcount_warn_saturate+0x98/0x140
[ 413.236736] kthread_stop+0x4c/0x260
[ 413.236740] vi5_channel_stop_kthreads+0x44/0x60
[ 413.236741] vi5_channel_stop_streaming+0xc0/0xe0
[ 413.236743] tegra_channel_stop_streaming+0x3c/0x70
[ 413.236745] __vb2_queue_cancel+0x40/0x220
[ 413.236746] vb2_core_queue_release+0x30/0x60
[ 413.236747] _vb2_fop_release+0x88/0xb0
[ 413.236749] tegra_channel_close+0x68/0x190
[ 413.236751] v4l2_release+0xc0/0x100
[ 413.236754] __fput+0x80/0x240
[ 413.236756] ____fput+0x24/0x30
[ 413.236758] task_work_run+0x88/0x140
[ 413.236760] do_exit+0x354/0xab0
[ 413.236762] do_group_exit+0x4c/0xb0
[ 413.236764] get_signal+0x104/0x830
[ 413.236767] do_notify_resume+0x184/0xa00
[ 413.236768] work_pending+0xc/0x384
[ 413.236769] ---[ end trace 3dafc625905151bc ]---
[ 413.242292] ------------[ cut here ]------------
[ 413.247050] refcount_t: underflow; use-after-free.
[ 413.247062] WARNING: CPU: 11 PID: 7525 at lib/refcount.c:28 refcount_warn_saturate+0xec/0x140
[ 413.255837] Modules linked in: scsensor_site3(E) scsensor_site2(E) scsensor_site1(E) scsensor_site0(E) nvidia_modeset(OE) fuse(E) lzo_rle(E) lzo_compress(E) zram(E) ramoops(E) reed_solomon(E) bnep(E) loop(E) snd_soc_tegra186_asrc(E) snd_soc_tegra210_iqc(E) snd_soc_tegra210_ope(E) snd_soc_tegra210_mvc(E) snd_soc_tegra186_dspk(E) snd_soc_tegra186_arad(E) snd_soc_tegra210_afc(E) snd_soc_tegra210_admaif(E) snd_soc_tegra210_dmic(E) aes_ce_blk(E) snd_soc_tegra210_adx(E) crypto_simd(E) snd_soc_tegra210_amx(E) snd_soc_tegra_pcm(E) snd_soc_tegra210_mixer(E) snd_soc_tegra210_i2s(E) snd_soc_tegra210_sfc(E) cryptd(E) aes_ce_cipher(E) nvgpu(E) ghash_ce(E) sha2_ce(E) rtk_btusb(E) sha256_arm64(E) sha1_ce(E) snd_hda_codec_hdmi(E) snd_soc_tegra210_adsp(E) btusb(E) ucsi_ccg(E) snd_soc_tegra_machine_driver(E) input_leds(E) rtl8822ce(E) btrtl(E) typec_ucsi(E) snd_soc_tegra_utils(E) btbcm(E) snd_hda_tegra(E) btintel(E) snd_soc_simple_card_utils(E) pwm_fan(E) snd_soc_spdif_tx(E) snd_hda_codec(E)
[ 413.255877] snd_soc_rt5640(E) i40e(E) typec(E) nct1008(E) snd_soc_tegra210_ahub(E) ina3221(E) nvadsp(E) snd_soc_rl6231(E) snd_hda_core(E) tegra_bpmp_thermal(E) userspace_alert(E) cfg80211(E) tegra210_adma(E) spi_tegra114(E) nvidia(OE) binfmt_misc(E) nvmap(E) ip_tables(E) x_tables(E) [last unloaded: mtd]
[ 413.255894] CPU: 11 PID: 7525 Comm: v4l2-ctl-t186 Tainted: G W OE 5.10.104-tegra #50
[ 413.255895] Hardware name: Unknown Jetson AGX Orin/Jetson AGX Orin, BIOS 3.1-32827747 03/19/2023
[ 413.255896] pstate: 60400009 (nZCv daif +PAN -UAO -TCO BTYPE=--)
[ 413.255898] pc : refcount_warn_saturate+0xec/0x140
[ 413.255900] lr : refcount_warn_saturate+0xec/0x140
[ 413.255900] sp : ffff8000323a3a70
[ 413.255901] x29: ffff8000323a3a70 x28: ffff0f1ec042ba00
[ 413.255903] x27: ffffbf7eaf4e7000 x26: 0000ffff8c0be93c
[ 413.255906] x25: fffffffffffffe00 x24: ffff0f1ec042c000
[ 413.255907] x23: ffff0f258195c1f8 x22: ffff0f25819620a0
[ 413.255909] x21: ffff0f1e8a653a30 x20: 0000000000000000
[ 413.255911] x19: ffff0f1e8a653a00 x18: 0000000000000010
[ 413.255913] x17: 0000000000000000 x16: ffffbf7eadb03210
[ 413.255915] x15: ffff0f1ec042bf70 x14: ffffffffffffffff
[ 413.255917] x13: ffff8000b23a36a7 x12: ffff8000323a36af
[ 413.255919] x11: 0000000000000000 x10: 0000000000000a80
[ 413.255921] x9 : ffff8000323a3a70 x8 : 72657466612d6573
[ 413.255923] x7 : 75203b776f6c6672 x6 : c0000000ffffefff
[ 413.255925] x5 : ffff0f25aec0e958 x4 : ffffbf7eaf7f7968
[ 413.255927] x3 : 0000000000000001 x2 : ffff0f25aec0e960
[ 413.255928] x1 : 0000000000000000 x0 : 0000000000000000
[ 413.255931] Call trace:
[ 413.255933] refcount_warn_saturate+0xec/0x140
[ 413.255934] kthread_stop+0x24c/0x260
[ 413.255937] vi5_channel_stop_kthreads+0x44/0x60
[ 413.255938] vi5_channel_stop_streaming+0xc0/0xe0
[ 413.255940] tegra_channel_stop_streaming+0x3c/0x70
[ 413.255942] __vb2_queue_cancel+0x40/0x220
[ 413.255943] vb2_core_queue_release+0x30/0x60
[ 413.255944] _vb2_fop_release+0x88/0xb0
[ 413.255946] tegra_channel_close+0x68/0x190
[ 413.255948] v4l2_release+0xc0/0x100
[ 413.255950] __fput+0x80/0x240
[ 413.255951] ____fput+0x24/0x30
[ 413.255953] task_work_run+0x88/0x140
[ 413.255955] do_exit+0x354/0xab0
[ 413.255956] do_group_exit+0x4c/0xb0
[ 413.255958] get_signal+0x104/0x830
[ 413.255960] do_notify_resume+0x184/0xa00
[ 413.255962] work_pending+0xc/0x384
[ 413.255963] ---[ end trace 3dafc625905151bd ]---
[ 413.317706] [RCE] WARNING: core/hsp/hsp-vm.c:283 [camrtc_hsp_full_ss_isr] "VM0 issued IVC in inactive state."
[ 414.285696] tegra194-vi5 13e40000.host1x:vi0@15c00000: capture control message timed out
[ 414.294073] tegra194-vi5 13e40000.host1x:vi0@15c00000: vi_capture_control_send_message: failed to send IVC control message
[ 414.315538] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 414.347737] bwmgr API not supported
[ 414.347877] bwmgr req failed for 8
[ 414.355082] misc tegra_camera_ctrl: tegra_camera_isomgr_request: ICC failed to reserve 13500000 KBps
[ 414.374539] misc tegra_camera_ctrl: tegra_camera_update_isobw: failed to reserve 13500000 KBps with isomgr
[ 414.384491] tegra194-vi5 13e40000.host1x:vi0@15c00000: vi_capture_release: setup channel first
[ 414.413477] video4linux video0: vi capture release failed
It looks like there is a problem with the camera-ip module, this part of the code is not open source
primo@VM:~/project/nvidia/Linux_for_Tegra$ grep -nr "VI FALCON FAILURE"
Binary file rootfs/opt/ota_package/t19x/bl_only_payload matches
Binary file rootfs/opt/ota_package/t19x/TEGRA_BL.Cap matches
Binary file rootfs/opt/ota_package/t23x/bl_only_payload matches
Binary file rootfs/opt/ota_package/t23x/bl_only_payload_3701_000 matches
Binary file rootfs/opt/ota_package/t23x/TEGRA_BL_3701_000.Cap matches
Binary file rootfs/opt/ota_package/t23x/TEGRA_BL.Cap matches
Binary file bootloader/camera-rtcpu-t194-rce.img matches
Binary file bootloader/system.img matches
Binary file bootloader/system.img.raw matches
Binary file bootloader/camera-rtcpu-t234-rce.img matches
Could you give an accurate spec of the MIPI CPHY? Or what module is limiting the ability to turn on 16 cameras at the same time?