Camera cause kernel panic in jetpack 5.1.3

Hi,nvidia teams:
we encountered several times “kernel panic” by camera error in our board, we use orin&jetpack5.1.3, when it happens, multiple cameras are abnormal simultaneously, the one log is as following, I upload all logs in
panic_2024-12-19_17_45_37.zip (52.7 KB)
panic_2024-12-23_13_07_01.zip (53.9 KB)
panic_2024-12-25_15_08_39.zip (52.1 KB)
attachment, so what is the reason and how to solve it?

4>[ 1920.611314] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
<4>[ 1920.611317] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
<4>[ 1920.611502] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
<4>[ 1920.620312] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
<4>[ 1920.624121] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
<4>[ 1920.628363] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
<4>[ 1920.628500] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
<3>[ 1920.645287] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: flags 2, err_data 0
<3>[ 1920.645483] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: flags 2, err_data 0
<3>[ 1920.646569] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: flags 2, err_data 0
<3>[ 1920.647202] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: flags 2, err_data 0
<3>[ 1920.647304] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: flags 2, err_data 0
<3>[ 1920.647423] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: flags 2, err_data 0
<6>[ 1920.660358] [RCE] ERROR: camera-ip/vi5/vi5.c:745 [vi5_handle_eof] “General error queue is out of sync with frame queue. ts=1933407800480 sof_ts=1933408299296 gerror_code=2 gerror_data=a5 notify_bits=0”
<3>[ 1920.694511] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: flags 2, err_data 0
<6>[ 1920.699236] [RCE] ERROR: camera-ip/vi5/vi5.c:745 [vi5_handle_eof] “General error queue is out of sync with frame queue. ts=1933407804864 sof_ts=1933408303264 gerror_code=2 gerror_data=a4 notify_bits=0”
<6>[ 1920.699237] [RCE] ERROR: camera-ip/vi5/vi5.c:745 [vi5_handle_eof] “General error queue is out of sync with frame queue. ts=1933407824992 sof_ts=1933408323808 gerror_code=2 gerror_data=a2 notify_bits=0”
<6>[ 1920.699238] [RCE] ERROR: camera-ip/vi5/vi5.c:745 [vi5_handle_eof] “General error queue is out of sync with frame queue. ts=1933407817728 sof_ts=1933408316512 gerror_code=2 gerror_data=a4 notify_bits=0”
<6>[ 1920.699239] [RCE] ERROR: camera-ip/vi5/vi5.c:745 [vi5_handle_eof] “General error queue is out of sync with frame queue. ts=1933407813696 sof_ts=1933408312480 gerror_code=2 gerror_data=a5 notify_bits=0”
<6>[ 1920.699240] [RCE] ERROR: camera-ip/vi5/vi5.c:745 [vi5_handle_eof] “General error queue is out of sync with frame queue. ts=1933407820864 sof_ts=1933408319360 gerror_code=2 gerror_data=a0 notify_bits=0”
<6>[ 1920.752311] [RCE] ERROR: camera-ip/vi5/vi5.c:745 [vi5_handle_eof] "General error queue is out of sync with frame queue. ts=1933420596064 sof_ts=1933455173568 gerror_code=2 gerror_data=a2 notify_bits=4000002000
<6>[ 1920.752317] [RCE] "
<3>[ 1923.204282] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
<3>[ 1923.204291] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
<3>[ 1923.204377] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
<3>[ 1923.208987] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
<3>[ 1923.215552] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
<3>[ 1923.216461] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
<3>[ 1923.221447] (NULL device *): vi_capture_control_message: NULL VI channel received
<3>[ 1923.221451] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=5, csi_port=6
<3>[ 1923.221454] (NULL device *): vi_capture_control_message: NULL VI channel received
<3>[ 1923.221456] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 5 vc- 2
<3>[ 1923.222494] (NULL device *): vi_capture_control_message: NULL VI channel received
<3>[ 1923.222498] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
<3>[ 1923.222500] (NULL device *): vi_capture_control_message: NULL VI channel received
<3>[ 1923.222502] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 3
<4>[ 1923.223070] ------------[ cut here ]------------
<3>[ 1923.223783] (NULL device *): vi_capture_control_message: NULL VI channel received
<3>[ 1923.223787] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=4, csi_port=4
<3>[ 1923.223789] (NULL device *): vi_capture_control_message: NULL VI channel received
<3>[ 1923.223791] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 4 vc- 1
<6>[ 1923.374062] channel context at 1 is busy
<4>[ 1923.374095] WARNING: CPU: 2 PID: 21067 at /home/zhidao/jenkins-workspace/workspace/MOGOOS-OS-A741/A744/Kernel_src/kernel/nvidia/drivers/platform/tegra/rtcpu/capture-ivc.c:176 tegra_capture_ivc_notify_chan_id+0x188/0x1b0
<6>[ 1923.394119] Modules linked in: mogo_imx390 mogo_max20087 nvidia_modeset(O) fuse mttcan can_dev can_raw can xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c xt_addrtype iptable_filter br_netfilter lzo_rle lzo_compress zram overlay ramoops reed_solomon snd_soc_tegra186_asrc snd_soc_tegra210_ope snd_soc_tegra186_dspk snd_soc_tegra186_arad snd_soc_tegra210_iqc snd_soc_tegra210_mvc snd_soc_tegra210_afc snd_soc_tegra210_dmic snd_soc_tegra210_adx aes_ce_blk crypto_simd snd_soc_tegra210_amx cryptd aes_ce_cipher snd_soc_tegra210_admaif snd_soc_tegra210_i2s ghash_ce snd_soc_tegra210_mixer snd_soc_tegra_pcm snd_soc_tegra210_sfc sha2_ce sha256_arm64 nvgpu sha1_ce snd_hda_codec_hdmi snd_soc_spdif_tx snd_soc_tegra_machine_driver pwm_fan snd_soc_tegra210_adsp userspace_alert nct1008 ina3221 snd_soc_tegra_utils tegra_bpmp_thermal snd_hda_tegra snd_soc_simple_card_utils i2c_nvvrs11 nvidia(O) snd_hda_codec nvadsp snd_soc_rt5640
<6>[ 1923.394190] snd_hda_core snd_soc_tegra210_ahub tegra210_adma snd_soc_rl6231 mogo_max9295a spi_tegra114 binfmt_misc nvmap trace_noschedule trace_irqoff ip_tables x_tables [last unloaded: mtd]
<6>[ 1923.394207] CPU: 2 PID: 21067 Comm: vi-output, mogo Tainted: G O 5.10.192-tegra #1
<6>[ 1923.394208] Hardware name: Jetson AGX Orin Developer Kit (DT)
<6>[ 1923.394210] pstate: 40c00009 (nZcv daif +PAN +UAO -TCO BTYPE=–)
<6>[ 1923.394213] pc : tegra_capture_ivc_notify_chan_id+0x188/0x1b0
<6>[ 1923.394215] lr : tegra_capture_ivc_notify_chan_id+0x188/0x1b0
<6>[ 1923.394216] sp : ffff800036e23ad0
<6>[ 1923.394217] x29: ffff800036e23ad0 x28: 0000000000000000
<6>[ 1923.394219] x27: 0000000000001043 x26: ffff6cf1edf86c00
<6>[ 1923.394221] x25: ffff6cf073ad9b38 x24: ffff6cff1688e088
<6>[ 1923.394224] x23: 0000000000000047 x22: ffff6cff1688e080
<6>[ 1923.394226] x21: ffff6cff1688e960 x20: 0000000000000001
<6>[ 1923.394228] x19: 0000000000000047 x18: 0000000000000000
<6>[ 1923.394230] x17: 0000000000000000 x16: 0000000000000000
<6>[ 1923.394232] x15: ffff6cf2800ba2f0 x14: ffffffffffffffff
<6>[ 1923.394234] x13: ffffba396ba60e28 x12: ffffba396ba60a5b
<6>[ 1923.394236] x11: 0000000000000001 x10: 0000000000000ab0
<6>[ 1923.394238] x9 : ffff800036e23ad0 x8 : 2073692031207461
<6>[ 1923.394241] x7 : 20747865746e6f63 x6 : c0000000ffffefff
<6>[ 1923.394243] x5 : ffff6cff2cff19b8 x4 : ffffba396b757b28
<6>[ 1923.394245] x3 : 0000000000000001 x2 : ffff6cff2cff19c0
<6>[ 1923.394247] x1 : 15567857fa69c500 x0 : 0000000000000000
<6>[ 1923.394249] Call trace:
<6>[ 1923.394251] tegra_capture_ivc_notify_chan_id+0x188/0x1b0
<6>[ 1923.394255] vi_capture_setup+0x35c/0x660
<6>[ 1923.394257] tegra_channel_capture_setup+0xe4/0x2c0
<6>[ 1923.394258] vi5_channel_error_recover+0x124/0x250
<6>[ 1923.394261] tegra_channel_error_recover+0x40/0x80
<6>[ 1923.394263] tegra_channel_kthread_capture_dequeue+0x124/0x1e0
<6>[ 1923.394266] kthread+0x148/0x170
<6>[ 1923.394269] ret_from_fork+0x10/0x24
<4>[ 1923.394271] —[ end trace e9bb65d0d3236028 ]—
<3>[ 1923.401118] tegra194-vi5 13e40000.host1x:vi1@14c00000: failed to update control callback
<3>[ 1923.402076] (NULL device *): vi_capture_control_message: NULL VI channel received
<3>[ 1923.417141] tegra-camrtc-capture-vi tegra-capture-vi: vi capture setup failed
<3>[ 1923.422618] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=5, csi_port=6
<4>[ 1923.442240] ------------[ cut here ]------------
<3>[ 1923.443019] (NULL device *): vi_capture_control_message: NULL VI channel received
<6>[ 1923.447195] channel context at 0 is busy
<4>[ 1923.455601] WARNING: CPU: 3 PID: 20984 at /home/zhidao/jenkins-workspace/workspace/MOGOOS-OS-A741/A744/Kernel_src/kernel/nvidia/drivers/platform/tegra/rtcpu/capture-ivc.c:176 tegra_capture_ivc_notify_chan_id+0x188/0x1b0
<1>[ 1923.456270] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
<3>[ 1923.458047] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 5 vc- 3
<3>[ 1923.463334] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
<6>[ 1923.475651] Modules linked in: mogo_imx390 mogo_max20087 nvidia_modeset(O) fuse mttcan can_dev can_raw can xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c xt_addrtype iptable_filter br_netfilter lzo_rle lzo_compress zram overlay ramoops reed_solomon snd_soc_tegra186_asrc snd_soc_tegra210_ope snd_soc_tegra186_dspk snd_soc_tegra186_arad snd_soc_tegra210_iqc snd_soc_tegra210_mvc snd_soc_tegra210_afc snd_soc_tegra210_dmic snd_soc_tegra210_adx aes_ce_blk crypto_simd snd_soc_tegra210_amx cryptd aes_ce_cipher snd_soc_tegra210_admaif snd_soc_tegra210_i2s
<1>[ 1923.484770] Mem abort info:
<6>[ 1923.495266] ghash_ce snd_soc_tegra210_mixer snd_soc_tegra_pcm snd_soc_tegra210_sfc sha2_ce sha256_arm64 nvgpu sha1_ce snd_hda_codec_hdmi snd_soc_spdif_tx snd_soc_tegra_machine_driver pwm_fan snd_soc_tegra210_adsp userspace_alert nct1008 ina3221 snd_soc_tegra_utils tegra_bpmp_thermal snd_hda_tegra snd_soc_simple_card_utils i2c_nvvrs11 nvidia(O) snd_hda_codec nvadsp snd_soc_rt5640 snd_hda_core snd_soc_tegra210_ahub tegra210_adma snd_soc_rl6231 mogo_max9295a spi_tegra114 binfmt_misc nvmap trace_noschedule trace_irqoff
<1>[ 1923.504446] ESR = 0x96000004
<6>[ 1923.507291] ip_tables x_tables [last unloaded: mtd]
<6>[ 1923.510440] CPU: 3 PID: 20984 Comm: vi-output, mogo Tainted: G W O 5.10.192-tegra #1
<6>[ 1923.510441] Hardware name: Jetson AGX Orin Developer Kit (DT)
<6>[ 1923.510443] pstate: 40c00009 (nZcv daif +PAN +UAO -TCO BTYPE=–)
<1>[ 1923.510447] EC = 0x25: DABT (current EL), IL = 32 bits
<6>[ 1923.510452] pc : tegra_capture_ivc_notify_chan_id+0x188/0x1b0
<6>[ 1923.510455] lr : tegra_capture_ivc_notify_chan_id+0x188/0x1b0
<6>[ 1923.515914] sp : ffff8000366a3ad0
<6>[ 1923.515915] x29: ffff8000366a3ad0 x28: 0000000000000000
<6>[ 1923.515917] x27: 0000000000001043 x26: ffff6cf367786800
<6>[ 1923.515920] x25: ffff6cf07e24f738
<1>[ 1923.515922] SET = 0, FnV = 0
<6>[ 1923.515922] x24: ffff6cff1688e088
<6>[ 1923.519068] x23: 0000000000000048 x22: ffff6cff1688e080
<6>[ 1923.519071] x21: ffff6cff1688e980 x20: 0000000000000000
<6>[ 1923.519073] x19: 0000000000000048 x18: 0000000000000000
<1>[ 1923.519076] EA = 0, S1PTW = 0
<6>[ 1923.519077] x17: 0000000000000000 x16: 0000000000000000
<6>[ 1923.522308] x15: 0000000000000000 x14: 0000000000000000
<6>[ 1923.522310] x13: 0000000000000000 x12: 0000000000000000
<6>[ 1923.522312] x11: 0000000000000000 x10: 0000000000000ab0
<1>[ 1923.522314] Data abort info:
<6>[ 1923.522315]
<6>[ 1923.522316] x9 : ffff8000366a37c0 x8 : ffff6cf244298b10
<6>[ 1923.525282] x7 : ffff6cf00096ee80 x6 : 00000000000b96e0
<1>[ 1923.525284] ISV = 0, ISS = 0x00000004
<1>[ 1923.525285] CM = 0, WnR = 0
<6>[ 1923.529228] x5 : 0000000000000000 x4 : ffff6cff2d0129b8
<6>[ 1923.529229] x3 : ffff6cff2d022bb0 x2 : ffffba39698ed3f0
<6>[ 1923.532286] x1 : 8cad50a5fe67c700 x0 : 0000000000000000
<1>[ 1923.532289] user pgtable: 4k pages, 48-bit VAs, pgdp=00000003e043d000
<6>[ 1923.532290] Call trace:
<6>[ 1923.532292] tegra_capture_ivc_notify_chan_id+0x188/0x1b0
<6>[ 1923.538923] vi_capture_setup+0x35c/0x660
<6>[ 1923.538924] tegra_channel_capture_setup+0xe4/0x2c0
<6>[ 1923.538926] vi5_channel_error_recover+0x124/0x250
<6>[ 1923.538929] tegra_channel_error_recover+0x40/0x80
<6>[ 1923.538931] tegra_channel_kthread_capture_dequeue+0x124/0x1e0
<1>[ 1923.538932] [0000000000000000] pgd=0000000000000000, p4d=0000000000000000
<6>[ 1923.538937] kthread+0x148/0x170
<6>[ 1923.538938]
<6>[ 1923.545921] ret_from_fork+0x10/0x24
<4>[ 1923.545923] —[ end trace e9bb65d0d3236029 ]—
<0>[ 1923.550706] Internal error: Oops: 96000004 [#1] PREEMPT SMP
<6>[ 1923.556429] Modules linked in: mogo_imx390 mogo_max20087 nvidia_modeset(O) fuse mttcan can_dev can_raw can xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c xt_addrtype iptable_filter br_netfilter lzo_rle lzo_compress zram overlay ramoops reed_solomon snd_soc_tegra186_asrc snd_soc_tegra210_ope snd_soc_tegra186_dspk snd_soc_tegra186_arad snd_soc_tegra210_iqc snd_soc_tegra210_mvc snd_soc_tegra210_afc snd_soc_tegra210_dmic snd_soc_tegra210_adx aes_ce_blk crypto_simd snd_soc_tegra210_amx cryptd aes_ce_cipher snd_soc_tegra210_admaif snd_soc_tegra210_i2s ghash_ce snd_soc_tegra210_mixer snd_soc_tegra_pcm snd_soc_tegra210_sfc sha2_ce sha256_arm64 nvgpu sha1_ce snd_hda_codec_hdmi snd_soc_spdif_tx snd_soc_tegra_machine_driver pwm_fan snd_soc_tegra210_adsp userspace_alert nct1008 ina3221 snd_soc_tegra_utils tegra_bpmp_thermal snd_hda_tegra snd_soc_simple_card_utils i2c_nvvrs11 nvidia(O) snd_hda_codec nvadsp snd_soc_rt5640
<6>[ 1923.556497] snd_hda_core
<4>[ 1923.612609] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
<4>[ 1923.612699] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
<3>[ 1923.614558] (NULL device *): vi_capture_control_message: NULL VI channel received
<3>[ 1923.614560] (NULL device *): vi_capture_control_message: NULL VI channel received
<3>[ 1923.614563] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
<3>[ 1923.614564] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
<3>[ 1923.614566] (NULL device *): vi_capture_control_message: NULL VI channel received
<3>[ 1923.614567] (NULL device *): vi_capture_control_message: NULL VI channel received
<3>[ 1923.614568] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 1
<3>[ 1923.614569] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 2
<4>[ 1923.614835] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
<4>[ 1923.615413] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
<3>[ 1923.617293] (NULL device *): vi_capture_control_message: NULL VI channel received
<3>[ 1923.617297] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=4, csi_port=4
<3>[ 1923.617299] (NULL device *): vi_capture_control_message: NULL VI channel received
<3>[ 1923.617301] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 4 vc- 0
<3>[ 1923.617541] tegra194-vi5 13e40000.host1x:vi0@15c00000: failed to update control callback
<3>[ 1923.617589] tegra-camrtc-capture-vi tegra-capture-vi: vi capture setup failed
<4>[ 1923.617613] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
<3>[ 1923.619374] bwmgr API not supported
<1>[ 1923.619527] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000538
<1>[ 1923.619528] Mem abort info:
<1>[ 1923.619529] ESR = 0x96000045
<1>[ 1923.619530] EC = 0x25: DABT (current EL), IL = 32 bits
<1>[ 1923.619531] SET = 0, FnV = 0
<1>[ 1923.619532] EA = 0, S1PTW = 0
<1>[ 1923.619532] Data abort info:
<1>[ 1923.619533] ISV = 0, ISS = 0x00000045
<1>[ 1923.619534] CM = 0, WnR = 1
<1>[ 1923.619535] user pgtable: 4k pages, 48-bit VAs, pgdp=00000005fa645000
<1>[ 1923.619536] [0000000000000538] pgd=0000000659cae003, p4d=0000000659cae003, pud=0000000000000000
<6>[ 1923.648533] snd_soc_tegra210_ahub tegra210_adma snd_soc_rl6231 mogo_max9295a spi_tegra114 binfmt_misc nvmap trace_noschedule trace_irqoff ip_tables x_tables [last unloaded: mtd]
<6>[ 1923.648546] CPU: 2 PID: 21067 Comm: vi-output, mogo Tainted: G W O 5.10.192-tegra #1
<6>[ 1923.648547] Hardware name: Jetson AGX Orin Developer Kit (DT)
<6>[ 1923.648549] pstate: 00c00009 (nzcv daif +PAN +UAO -TCO BTYPE=–)
<6>[ 1923.648558] pc : dequeue_dequeue_buffer+0x3c/0x70
<6>[ 1923.648560] lr : dequeue_dequeue_buffer+0x24/0x70
<6>[ 1923.648560] sp : ffff800036e23da0
<6>[ 1923.648561] x29: ffff800036e23da0 x28: 0000000000000000
<6>[ 1923.648563] x27: ffff80003542b998 x26: ffff6cff16ac0880
<6>[ 1923.648564] x25: ffff6cf2800b9d80 x24: ffff6cff16ac0680
<6>[ 1923.648566] x23: ffff6cf2800b9d80 x22: ffffba396ba83840
<6>[ 1923.648567] x21: ffff6cff16ac0a14 x20: ffff6cff16ac0938
<6>[ 1923.648568] x19: fffffffffffffc58 x18: 0000000000000000
<6>[ 1923.648570] x17: 0000000000000000 x16: 0000000000000000
<6>[ 1923.648571] x15: 0000000000000000 x14: 0000000000000000
<6>[ 1923.648572] x13: 000000010006303a x12: 00000000000632e1
<6>[ 1923.648574] x11: 0000000002000000 x10: 0000000000000ab0
<4>[ 1923.649284] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072
<6>[ 1923.995523]
<6>[ 1923.997054] x9 : ffff800036e23c30 x8 : ffff6cf2800ba890
<6>[ 1924.002510] x7 : 01ad761319e07f70 x6 : 0000000000000000
<6>[ 1924.007976] x5 : 00000000410fd420 x4 : 0000000000f0000f
<6>[ 1924.013439] x3 : 0000000000000000 x2 : 0000000000000001
<6>[ 1924.018894] x1 : 0000000000000000 x0 : 0000000000000000
<6>[ 1924.024353] Call trace:
<6>[ 1924.026869] dequeue_dequeue_buffer+0x3c/0x70
<6>[ 1924.031350] tegra_channel_kthread_capture_dequeue+0x98/0x1e0
<6>[ 1924.037249] kthread+0x148/0x170
<6>[ 1924.040570] ret_from_fork+0x10/0x24
<0>[ 1924.044251] Code: eb00003f 540001c0 f9445260 d10ea013 (a9400402)
<4>[ 1924.050520] —[ end trace e9bb65d0d323602a ]—

Hi,

For the camera basic functionality first needs to check the device and driver configuration.
You can reference to below program guide for the detailed information of device tree and driver implementation.
https://docs.nvidia.com/jetson/archives/r36.3/DeveloperGuide/SD/CameraDevelopment/SensorSoftwareDriverProgramming.html?highlight=programing#sensor-software-driver-programming

Please refer to Applications Using V4L2 IOCTL Directly by using V4L2 IOCTL to verify basic camera functionality.
https://docs.nvidia.com/jetson/archives/r36.3/DeveloperGuide/SD/CameraDevelopment/SensorSoftwareDriverProgramming.html?highlight=programing#to-run-a-v4l2-ctl-test

Once confirm the configure and still failed below link help to get log and some information and some tips for debug.
https://elinux.org/Jetson/l4t/Camera_BringUp#Steps_to_enable_more_debug_messages

Thanks!

Apply the patch from below link to verify.

Hi,ShaneCCC:
Thanks for your reply, we will try these patch.

Hi, ShaneCCC:
I get a trace log as follow, and upload the trace log, so what case will cause this log:

 *kworker/4:0-551488  [004] ....  1985.579761: rtcpu_vinotify_event: tstamp:62446691884 cch:6 vi:1 tag:ATOMP_FRAME_DONE channel:0x20 frame:0 vi_tstamp:1998283973056 data:0x0000000000000000*
  • kworker/4:0-551488  [004] ....  1985.579764: rtcpu_vinotify_event: tstamp:62446692023 cch:6 vi:1 tag:VIFALC_ACTIONLST channel:0x20 frame:0 vi_tstamp:1998283992800 data:0x000000000202b398*
    
  • kworker/4:0-551488  [004] ....  1985.579764: rtcpu_vinotify_event: tstamp:62446692182 cch:6 vi:1 tag:VIFALC_ACTIONLST channel:0x20 frame:0 vi_tstamp:1998283997984 data:0x000000000002b398*
    
  • kworker/4:0-551488  [004] ....  1985.579765: rtcpu_vinotify_event: tstamp:62446692316 cch:6 vi:1 tag:FS channel:0x02 frame:0 vi_tstamp:1998284062816 data:0x0000000000000012*
    
  • kworker/4:0-551488  [004] ....  1985.579765: rtcpu_vinotify_event: tstamp:62446692475 cch:6 vi:1 tag:ATOMP_FS channel:0x00 frame:0 vi_tstamp:1998284062848 data:0x0000000100000000*
    
  • kworker/4:0-551488  [004] ....  1985.579765: rtcpu_vinotify_event: tstamp:62446692610 cch:6 vi:1 tag:CHANSEL_PXL_SOF channel:0x20 frame:0 vi_tstamp:1998285304768 data:0x0000000000000001*
    
  • kworker/4:0-551488  [004] ....  1985.579765: rtcpu_vinotify_event: tstamp:62446692759 cch:6 vi:1 tag:VIFALC_ACTIONLST channel:0x20 frame:0 vi_tstamp:1998285308160 data:0x000000000802b399*
    
  • kworker/4:0-551488  [004] ....  1985.579765: rtcpu_vinotify_event: tstamp:62446692895 cch:6 vi:1 tag:VIFALC_TDSTATE channel:0x20 frame:0 vi_tstamp:1998285407584 data:0x359e1b0010000000*
    
  • kworker/4:0-551488  [004] ....  1985.579765: rtcpu_vinotify_event: tstamp:62446693043 cch:6 vi:1 tag:VIFALC_TDSTATE channel:0x20 frame:0 vi_tstamp:1998285422592 data:0x000000003100b39a*
    
  • kworker/4:0-551488  [004] ....  1985.579767: rtcpu_start: tstamp:62449045552*
    
  • kworker/4:0-551488  [004] ....  1989.403734: rtcpu_start: tstamp:62567681740*
    
  • kworker/4:0-551488  [004] ....  1994.611686: rtcpu_string: tstamp:62730711387 id:0x04010000 str:"WARNING: core/hsp/hsp-vm.c:283 [camrtc_hsp_full_"*
    
  • kworker/4:0-551488  [004] ....  1994.611690: rtcpu_string: tstamp:62730711508 id:0x04010000 str:"ss_isr] ""*
    
  • kworker/4:0-551488  [004] ....  1994.611691: rtcpu_string: tstamp:62730711767 id:0x04010000 str:"VM0 issued IVC in inactive state."*
    
  • kworker/4:0-551488  [004] ....  1994.611691: rtcpu_string: tstamp:62730711944 id:0x04010000 str:""*
    

"

  • kworker/4:0-551488  [004] ....  1994.611704: rtcpu_string: tstamp:62730712312 id:0x04010000 str:"WARNING: core/hsp/hsp-vm.c:283 [camrtc_hsp_full_"*
    
  • kworker/4:0-551488  [004] ....  1994.611704: rtcpu_string: tstamp:62730712467 id:0x04010000 str:"ss_isr] ""*
    
  • kworker/4:0-551488  [004] ....  1994.611705: rtcpu_string: tstamp:62730712703 id:0x04010000 str:"VM0 issued IVC in inactive state."*
    
  • kworker/4:0-551488  [004] ....  1994.611705: rtcpu_string: tstamp:62730712850 id:0x04010000 str:""*
    

"

  • kworker/4:0-551488  [004] ....  1994.611707: rtcpu_string: tstamp:62730713208 id:0x04010000 str:"WARNING: core/hsp/hsp-vm.c:283 [camrtc_hsp_full_"*
    
  • kworker/4:0-551488  [004] ....  1994.611708: rtcpu_string: tstamp:62730713327 id:0x04010000 str:"ss_isr] ""*
    
  • kworker/4:0-551488  [004] ....  1994.611708: rtcpu_string: tstamp:62730713585 id:0x04010000 str:"VM0 issued IVC in inactive state."*
    
  • kworker/4:0-551488  [004] ....  1994.611709: rtcpu_string: tstamp:62730713768 id:0x04010000 str:""*
    

trace_0102.txt (11.2 KB)