Orin camera stop streaming occasionally kernel panic

We use Orin 64G module ,the version is R36.3 ,when we stop v4l2 camera,sometimes would occur Kernel panic,the dmesg is below:

[  +0.009001] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 10000 ms, port=0, vc-id=3
[  +0.000027] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  +0.000006] tegra-camrtc-capture-vi tegra-capture-vi: vi5_channel_error_recover() vc: 3
[  +0.000078] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_release: control failed, errno 1
[  +0.000061] video4linux video6: vi capture release failed
[  +0.000002] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
[  +0.000027] g2xx 9-0069: s_stream for stream G2XX motion detection 9-001a,vc:3, on = 0,format =8 ,fps =30
[  +0.087795] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 10000 ms, port=0, vc-id=1
[  +0.000023] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  +0.000005] tegra-camrtc-capture-vi tegra-capture-vi: vi5_channel_error_recover() vc: 1
[  +0.000588] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_release: control failed, errno 1
[  +0.000065] video4linux video2: vi capture release failed
[  +0.000005] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
[  +0.003293] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 10000 ms, port=0, vc-id=2
[  +0.000014] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  +0.000003] tegra-camrtc-capture-vi tegra-capture-vi: vi5_channel_error_recover() vc: 2
[  +0.000297] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_release: control failed, errno 1
[  +0.000047] video4linux video4: vi capture release failed
[  +0.000003] tegra-camrtc-capture-vi tegra-capture-vi: fatal: error recovery failed
[  +0.219653] t194-nvcsi 13e00000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[  +0.002027] tegra194-vi5 13e00000.host1x:vi0@15c00000: vi_capture_release: setup channel first
[  +0.000013] video4linux video6: vi capture release failed
[  +0.000523] g2xx 9-0066: orb_g_volatile_ctrl(): ctrl: G2R_GET_IMU_DATA
[  +0.009828] g2xx 9-0066: orb_s_ctrl(): ctrl: G2R_W
[  +0.000009] g2xx 9-0066: orb_s_ctrl(): G2R set size
[  +0.000003] g2xx 9-0066: orb_s_ctrl(): G2R set opcode=2, proid=38
[  +0.000705] g2xx 9-0066: orb_s_ctrl(): ctrl: SET G2R_R LEN
[  +0.000004] g2xx 9-0066: orb_s_ctrl(): G2R set get data len= 74
[  +0.000008] g2xx 9-0066: orb_g_volatile_ctrl(): ctrl: G2R_R
[  +0.000002] g2xx 9-0066: orb_g_volatile_ctrl(): G2R getdata
[  +0.002729] g2xx 9-0066: orb_g_volatile_ctrl(): ctrl: G2R_GET_IMU_DATA
[  +0.007265] ------------[ cut here ]------------
[  +0.000007] refcount_t: addition on 0; use-after-free.
[  +0.000013] WARNING: CPU: 9 PID: 3709 at lib/refcount.c:25 refcount_warn_saturate+0xa0/0x150
[  +0.000015] Modules linked in: nvidia_modeset(OE) lzo_rle(E) lzo_compress(E) zram(E) zsmalloc(E) ramoops(E) reed_solomon(E) bridge(E) stp(E) llc(E) usb_f_ncm(E) usb_f_mass_storage(E) algif_hash(E) algif_skcipher(E) af_alg(E) usb_f_acm(E) u_serial(E) usb_f_rndis(E) u_ether(E) libcomposite(E) nvidia_p2p(O) obc_cam_sync(O) joydev(E) rtk_btusb(O) btusb(E) btrtl(E) btintel(E) btbcm(E) bluetooth(E) ecdh_generic(E) ecc(E) snd_soc_tegra186_asrc(O) snd_soc_tegra210_admaif(O) snd_soc_tegra210_afc(O) snd_soc_tegra186_arad(O) snd_soc_tegra210_mvc(O) snd_soc_tegra210_mixer(O) snd_soc_tegra210_ope(O) snd_soc_tegra186_dspk(O) snd_soc_tegra_pcm(E) snd_soc_tegra210_dmic(O) snd_soc_tegra210_adx(O) snd_soc_tegra210_amx(O) snd_soc_tegra210_sfc(O) snd_soc_tegra210_i2s(O) snd_soc_tegra210_ahub(O) tegra210_adma(E) nvvrs_pseq_rtc(O) spidev(E) nvgpu(O) crct10dif_ce(E) snd_soc_tegra_machine_driver(O) rtl8822ce(O) snd_soc_tegra_utils(O) snd_soc_simple_card_utils(E) tegra23x_perf_uncore(O) tegra234_oc_event(O)
[  +0.000049]  nvethernet(O) mttcan(O) nvpmodel_clk_cap(O) tegra_mce(O) thermal_trip_event(O) tegra234_aon(O) tegra_cactmon_mc_all(O) ina3221(E) can_dev(E) cfg80211(E) tegra_aconnect(E) nvpps(O) rfkill(E) governor_pod_scaling(O) snd_hda_codec_hdmi(E) snd_hda_tegra(E) at24(E) snd_soc_rt5640(E) nvmap(O) snd_hda_codec(E) snd_soc_rl6231(E) snd_hda_core(E) nvsciipc(O) pwm_tegra_tachometer(O) host1x_fence(O) mc_hwpm(O) spi_tegra114(E) nvidia(OE) tegra_pcie_dma_test(O) nvidia_vrs_pseq(O) i2c_nvvrs11(O) tegra_dce(O) lm90(E) tegra_pcie_edma(O) governor_userspace(E) tegra_drm(O) nvhost_nvcsi_t194(O) tegra_wmark(O) nvhost_pva(O) tegra_se(O) nvhost_nvdla(O) nvhost_isp5(O) nvhost_vi5(O) cec(E) crypto_engine(E) nvhost_capture(O) nvhwpm(O) tsecriscv(O) drm_kms_helper(E) g2xx(O) tegra_camera(O) v4l2_dv_timings(E) nvhost_nvcsi(O) host1x_nvhost(O) host1x(O) tegra_camera_platform(O) mc_utils(O) capture_ivc(O) tegra_camera_rtcpu(O) ivc_bus(O) hsp_mailbox_client(O) ivc_ext(O) v4l2_fwnode(E) v4l2_async(E)
[  +0.000049]  videobuf2_dma_contig(E) videobuf2_memops(E) videobuf2_v4l2(E) videobuf2_common(E) videodev mc(E) max9295(O) max9296(O) fuse(E) drm(E) ip_tables(E) x_tables(E) ipv6(E) pwm_fan(E) pwm_tegra(E) tegra_bpmp_thermal(E) tegra_xudc(E) ucsi_ccg(E) typec_ucsi(E) typec(E) nvme(E) nvme_core(E) phy_tegra194_p2u(E) pcie_tegra194(E)
[  +0.000021] CPU: 9 PID: 3709 Comm: power-pressure- Tainted: G        W  OE     5.15.136-tegra #6
[  +0.000003] Hardware name: NVIDIA NVIDIA Jetson AGX Orin Developer Kit/Jetson, BIOS 36.3.0-gcid-36191598 05/06/2024
[  +0.000002] pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[  +0.000003] pc : refcount_warn_saturate+0xa0/0x150
[  +0.000003] lr : refcount_warn_saturate+0xa0/0x150
[  +0.000003] sp : ffff800016f7ba40
[  +0.000000] x29: ffff800016f7ba40 x28: ffff000088672600 x27: 0000000040045613
[  +0.000003] x26: ffffb1b09e9d4fd0 x25: 0000000000000000 x24: ffff800016f7bcd8
[  +0.000002] x23: ffff00008a11b1f8 x22: ffff800016f7bcd8 x21: ffff000094a25d30
[  +0.000002] x20: ffff00008a11b550 x19: ffff000094a25d00 x18: 0000000000000000
[  +0.000002] x17: 0000000000000000 x16: ffffb1b0d9036790 x15: 0000000000000003
[  +0.000002] x14: 0000000000001f73 x13: 0a2e656572662d72 x12: 657466612d657375
[  +0.000002] x11: 203b30206e6f206e x10: 6f69746964646120 x9 : 612d657375203b30
[  +0.000002] x8 : 206e6f206e6f6974 x7 : 69646461203a745f x6 : 746e756f63666572
[  +0.000002] x5 : ffff000fa2c7d9f0 x4 : 00000001008795ac x3 : ffffb1b0db3dc618
[  +0.000002] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff00008a1cae80
[  +0.000002] Call trace:
[  +0.000001]  refcount_warn_saturate+0xa0/0x150
[  +0.000002]  kthread_stop+0x138/0x250
[  +0.000004]  vi5_channel_stop_streaming+0x148/0x170 [tegra_camera]
[  +0.000020]  tegra_channel_stop_streaming+0x40/0x70 [tegra_camera]
[  +0.000011]  vb2_buffer_done+0x2e4/0x4e0 [videobuf2_common]
[  +0.000006]  vb2_core_streamoff+0x38/0x180 [videobuf2_common]
[  +0.000004]  vb2_ioctl_streamoff+0x74/0x1c0 [videobuf2_v4l2]
[  +0.000004]  v4l_streamoff+0x44/0x60 [videodev]
[  +0.000012]  __video_do_ioctl+0x190/0x400 [videodev]
[  +0.000010]  video_usercopy+0x278/0x660 [videodev]
[  +0.000009]  video_ioctl2+0x44/0x80 [videodev]
[  +0.000009]  v4l2_ioctl+0x6c/0xa0 [videodev]
[  +0.000010]  __arm64_sys_ioctl+0xb4/0x100
[  +0.000003]  invoke_syscall+0x5c/0x130
[  +0.000005]  el0_svc_common.constprop.0+0x64/0x110
[  +0.000002]  do_el0_svc+0x74/0xa0
[  +0.000002]  el0_svc+0x28/0x80
[  +0.000004]  el0t_64_sync_handler+0xa4/0x130
[  +0.000002]  el0t_64_sync+0x1a4/0x1a8
[  +0.000002] ---[ end trace 790607597cada73b ]---
[  +0.100650] ------------[ cut here ]------------
[  +0.000004] refcount_t: underflow; use-after-free.
[  +0.000010] WARNING: CPU: 9 PID: 3709 at lib/refcount.c:28 refcount_warn_saturate+0xf4/0x150
[  +0.000010] Modules linked in: nvidia_modeset(OE) lzo_rle(E) lzo_compress(E) zram(E) zsmalloc(E) ramoops(E) reed_solomon(E) bridge(E) stp(E) llc(E) usb_f_ncm(E) usb_f_mass_storage(E) algif_hash(E) algif_skcipher(E) af_alg(E) usb_f_acm(E) u_serial(E) usb_f_rndis(E) u_ether(E) libcomposite(E) nvidia_p2p(O) obc_cam_sync(O) joydev(E) rtk_btusb(O) btusb(E) btrtl(E) btintel(E) btbcm(E) bluetooth(E) ecdh_generic(E) ecc(E) snd_soc_tegra186_asrc(O) snd_soc_tegra210_admaif(O) snd_soc_tegra210_afc(O) snd_soc_tegra186_arad(O) snd_soc_tegra210_mvc(O) snd_soc_tegra210_mixer(O) snd_soc_tegra210_ope(O) snd_soc_tegra186_dspk(O) snd_soc_tegra_pcm(E) snd_soc_tegra210_dmic(O) snd_soc_tegra210_adx(O) snd_soc_tegra210_amx(O) snd_soc_tegra210_sfc(O) snd_soc_tegra210_i2s(O) snd_soc_tegra210_ahub(O) tegra210_adma(E) nvvrs_pseq_rtc(O) spidev(E) nvgpu(O) crct10dif_ce(E) snd_soc_tegra_machine_driver(O) rtl8822ce(O) snd_soc_tegra_utils(O) snd_soc_simple_card_utils(E) tegra23x_perf_uncore(O) tegra234_oc_event(O)
[  +0.000044]  nvethernet(O) mttcan(O) nvpmodel_clk_cap(O) tegra_mce(O) thermal_trip_event(O) tegra234_aon(O) tegra_cactmon_mc_all(O) ina3221(E) can_dev(E) cfg80211(E) tegra_aconnect(E) nvpps(O) rfkill(E) governor_pod_scaling(O) snd_hda_codec_hdmi(E) snd_hda_tegra(E) at24(E) snd_soc_rt5640(E) nvmap(O) snd_hda_codec(E) snd_soc_rl6231(E) snd_hda_core(E) nvsciipc(O) pwm_tegra_tachometer(O) host1x_fence(O) mc_hwpm(O) spi_tegra114(E) nvidia(OE) tegra_pcie_dma_test(O) nvidia_vrs_pseq(O) i2c_nvvrs11(O) tegra_dce(O) lm90(E) tegra_pcie_edma(O) governor_userspace(E) tegra_drm(O) nvhost_nvcsi_t194(O) tegra_wmark(O) nvhost_pva(O) tegra_se(O) nvhost_nvdla(O) nvhost_isp5(O) nvhost_vi5(O) cec(E) crypto_engine(E) nvhost_capture(O) nvhwpm(O) tsecriscv(O) drm_kms_helper(E) g2xx(O) tegra_camera(O) v4l2_dv_timings(E) nvhost_nvcsi(O) host1x_nvhost(O) host1x(O) tegra_camera_platform(O) mc_utils(O) capture_ivc(O) tegra_camera_rtcpu(O) ivc_bus(O) hsp_mailbox_client(O) ivc_ext(O) v4l2_fwnode(E) v4l2_async(E)
[  +0.000042]  videobuf2_dma_contig(E) videobuf2_memops(E) videobuf2_v4l2(E) videobuf2_common(E) videodev mc(E) max9295(O) max9296(O) fuse(E) drm(E) ip_tables(E) x_tables(E) ipv6(E) pwm_fan(E) pwm_tegra(E) tegra_bpmp_thermal(E) tegra_xudc(E) ucsi_ccg(E) typec_ucsi(E) typec(E) nvme(E) nvme_core(E) phy_tegra194_p2u(E) pcie_tegra194(E)
[  +0.000018] CPU: 9 PID: 3709 Comm: power-pressure- Tainted: G        W  OE     5.15.136-tegra #6
[  +0.000002] Hardware name: NVIDIA NVIDIA Jetson AGX Orin Developer Kit/Jetson, BIOS 36.3.0-gcid-36191598 05/06/2024
[  +0.000002] pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[  +0.000002] pc : refcount_warn_saturate+0xf4/0x150
[  +0.000002] lr : refcount_warn_saturate+0xf4/0x150
[  +0.000003] sp : ffff800016f7ba40
[  +0.000001] x29: ffff800016f7ba40 x28: ffff000088672600 x27: 0000000040045613
[  +0.000002] x26: ffffb1b09e9d4fd0 x25: 0000000000000000 x24: ffff800016f7bcd8
[  +0.000002] x23: ffff00008a11b1f8 x22: ffff800016f7bcd8 x21: ffff000094a25d30
[  +0.000001] x20: 0000000000000000 x19: ffff000094a25d00 x18: 0000000000000000
[  +0.000002] x17: 0000000000000000 x16: ffffb1b0d9036790 x15: 0000000000000003
[  +0.000002] x14: 0000000000001f73 x13: 0a2e656572662d72 x12: 657466612d657375
[  +0.000002] x11: 203b776f6c667265 x10: 646e75203a745f74 x9 : 72657466612d6573
[  +0.000002] x8 : 75203b776f6c6672 x7 : 65646e75203a745f x6 : 746e756f63666572
[  +0.000002] x5 : ffff000fa2c7d9f0 x4 : 00000001008795d7 x3 : ffffb1b0db3dca20
[  +0.000002] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff00008a1cae80
[  +0.000002] Call trace:
[  +0.000001]  refcount_warn_saturate+0xf4/0x150
[  +0.000003]  kthread_stop+0x230/0x250
[  +0.000002]  vi5_channel_stop_streaming+0x148/0x170 [tegra_camera]
[  +0.000016]  tegra_channel_stop_streaming+0x40/0x70 [tegra_camera]
[  +0.000011]  vb2_buffer_done+0x2e4/0x4e0 [videobuf2_common]
[  +0.000005]  vb2_core_streamoff+0x38/0x180 [videobuf2_common]
[  +0.000003]  vb2_ioctl_streamoff+0x74/0x1c0 [videobuf2_v4l2]
[  +0.000004]  v4l_streamoff+0x44/0x60 [videodev]
[  +0.000011]  __video_do_ioctl+0x190/0x400 [videodev]
[  +0.000010]  video_usercopy+0x278/0x660 [videodev]
[  +0.000009]  video_ioctl2+0x44/0x80 [videodev]
[  +0.000009]  v4l2_ioctl+0x6c/0xa0 [videodev]
[  +0.000010]  __arm64_sys_ioctl+0xb4/0x100
[  +0.000002]  invoke_syscall+0x5c/0x130
[  +0.000004]  el0_svc_common.constprop.0+0x64/0x110
[  +0.000003]  do_el0_svc+0x74/0xa0
[  +0.000003]  el0_svc+0x28/0x80
[  +0.000002]  el0t_64_sync_handler+0xa4/0x130
[  +0.000002]  el0t_64_sync+0x1a4/0x1a8
[  +0.000002] ---[ end trace 790607597cada73c ]---
[  +0.931657] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 10000 ms, port=0, vc-id=0
[  +0.000020] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  +0.000003] tegra-camrtc-capture-vi tegra-capture-vi: vi5_channel_error_recover() vc: 0
[  +0.001117] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  +0.072259] g2xx 9-0068: s_stream for stream G2XX motion detection 9-001a,vc:2, on = 0,format =8 ,fps =30
[  +0.086512] Unable to handle kernel paging request at virtual address 006e4749ca880087
[  +0.000011] Mem abort info:
[  +0.000001]   ESR = 0x0000000096000004
[  +0.000001]   EC = 0x25: DABT (current EL), IL = 32 bits
[  +0.000003]   SET = 0, FnV = 0
[  +0.000001]   EA = 0, S1PTW = 0
[  +0.000001]   FSC = 0x04: level 0 translation fault
[  +0.000002] Data abort info:
[  +0.000000]   ISV = 0, ISS = 0x00000004
[  +0.000001]   CM = 0, WnR = 0
[  +0.000001] [006e4749ca880087] address between user and kernel address ranges
[  +0.000003] Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
[  +0.000004] Modules linked in: nvidia_modeset(OE) lzo_rle(E) lzo_compress(E) zram(E) zsmalloc(E) ramoops(E) reed_solomon(E) bridge(E) stp(E) llc(E) usb_f_ncm(E) usb_f_mass_storage(E) algif_hash(E) algif_skcipher(E) af_alg(E) usb_f_acm(E) u_serial(E) usb_f_rndis(E) u_ether(E) libcomposite(E) nvidia_p2p(O) obc_cam_sync(O) joydev(E) rtk_btusb(O) btusb(E) btrtl(E) btintel(E) btbcm(E) bluetooth(E) ecdh_generic(E) ecc(E) snd_soc_tegra186_asrc(O) snd_soc_tegra210_admaif(O) snd_soc_tegra210_afc(O) snd_soc_tegra186_arad(O) snd_soc_tegra210_mvc(O) snd_soc_tegra210_mixer(O) snd_soc_tegra210_ope(O) snd_soc_tegra186_dspk(O) snd_soc_tegra_pcm(E) snd_soc_tegra210_dmic(O) snd_soc_tegra210_adx(O) snd_soc_tegra210_amx(O) snd_soc_tegra210_sfc(O) snd_soc_tegra210_i2s(O) snd_soc_tegra210_ahub(O) tegra210_adma(E) nvvrs_pseq_rtc(O) spidev(E) nvgpu(O) crct10dif_ce(E) snd_soc_tegra_machine_driver(O) rtl8822ce(O) snd_soc_tegra_utils(O) snd_soc_simple_card_utils(E) tegra23x_perf_uncore(O) tegra234_oc_event(O)
[  +0.000051]  nvethernet(O) mttcan(O) nvpmodel_clk_cap(O) tegra_mce(O) thermal_trip_event(O) tegra234_aon(O) tegra_cactmon_mc_all(O) ina3221(E) can_dev(E) cfg80211(E) tegra_aconnect(E) nvpps(O) rfkill(E) governor_pod_scaling(O) snd_hda_codec_hdmi(E) snd_hda_tegra(E) at24(E) snd_soc_rt5640(E) nvmap(O) snd_hda_codec(E) snd_soc_rl6231(E) snd_hda_core(E) nvsciipc(O) pwm_tegra_tachometer(O) host1x_fence(O) mc_hwpm(O) spi_tegra114(E) nvidia(OE) tegra_pcie_dma_test(O) nvidia_vrs_pseq(O) i2c_nvvrs11(O) tegra_dce(O) lm90(E) tegra_pcie_edma(O) governor_userspace(E) tegra_drm(O) nvhost_nvcsi_t194(O) tegra_wmark(O) nvhost_pva(O) tegra_se(O) nvhost_nvdla(O) nvhost_isp5(O) nvhost_vi5(O) cec(E) crypto_engine(E) nvhost_capture(O) nvhwpm(O) tsecriscv(O) drm_kms_helper(E) g2xx(O) tegra_camera(O) v4l2_dv_timings(E) nvhost_nvcsi(O) host1x_nvhost(O) host1x(O) tegra_camera_platform(O) mc_utils(O) capture_ivc(O) tegra_camera_rtcpu(O) ivc_bus(O) hsp_mailbox_client(O) ivc_ext(O) v4l2_fwnode(E) v4l2_async(E)
[  +0.000051]  videobuf2_dma_contig(E) videobuf2_memops(E) videobuf2_v4l2(E) videobuf2_common(E) videodev mc(E) max9295(O) max9296(O) fuse(E) drm(E) ip_tables(E) x_tables(E) ipv6(E) pwm_fan(E) pwm_tegra(E) tegra_bpmp_thermal(E) tegra_xudc(E) ucsi_ccg(E) typec_ucsi(E) typec(E) nvme(E) nvme_core(E) phy_tegra194_p2u(E) pcie_tegra194(E)
[  +0.000022] CPU: 8 PID: 1642 Comm: Xorg Tainted: G        W  OE     5.15.136-tegra #6
[  +0.000004] Hardware name: NVIDIA NVIDIA Jetson AGX Orin Developer Kit/Jetson, BIOS 36.3.0-gcid-36191598 05/06/2024
[  +0.000001] pstate: a0400009 (NzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[  +0.000004] pc : kmem_cache_alloc_trace+0x104/0x390
[  +0.000010] lr : kmem_cache_alloc_trace+0xcc/0x390
[  +0.000002] sp : ffff8000108cb960
[  +0.000001] x29: ffff8000108cb960 x28: ffff00008ee30a30 x27: ffffb1b0db359000
[  +0.000003] x26: ffff00008a62cd80 x25: ffffb1b0db745000 x24: 00000000f708f208
[  +0.000002] x23: 989db1b09f5e258c x22: 0000000000000dc0 x21: 0000000000000000
[  +0.000002] x20: ffffb1b0dad60a60 x19: ffff000080002200 x18: 0000000000000000
[  +0.000002] x17: 0000000000000000 x16: ffffb1b0d9276800 x15: 0000fff9ad0fc570
[  +0.000002] x14: 0000000000000000 x13: 001000012001001b x12: 000000002001001a
[  +0.000002] x11: 0000000020010019 x10: 0000002020010018 x9 : 0000000000000000
[  +0.000002] x8 : ffff00048f3c8b00 x7 : 0000000000000000 x6 : a57e16b74ff4d19e
[  +0.000002] x5 : 0000000000000040 x4 : 0000000000000040 x3 : 0000000000000000
[  +0.000003] x2 : 870088ca49476ee4 x1 : 0000000000000dc0 x0 : e46e4749ca880047
[  +0.000002] Call trace:
[  +0.000001]  kmem_cache_alloc_trace+0x104/0x390
[  +0.000021] Unable to handle kernel paging request at virtual address ffff000132da0a19
[  +0.000008] Mem abort info:
[  +0.000001]   ESR = 0x0000000096000021
[  +0.000002]   EC = 0x25: DABT (current EL), IL = 32 bits
[  +0.000001]   SET = 0, FnV = 0
[  +0.000001]   EA = 0, S1PTW = 0
[  +0.000001]   FSC = 0x21: alignment fault
[  +0.000002] Data abort info:
[  +0.000000]   ISV = 0, ISS = 0x00000021
[  +0.000001]   CM = 0, WnR = 0
[  +0.000001] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000ff7fd5000
[  +0.000003] [ffff000132da0a19] pgd=180000102cd67003, p4d=180000102cd67003, pud=180000102c362003, pmd=180000102c1cb003, pte=00680001b2da0f07
[  -0.000040]  nvgpu_nvhost_intr_register_notifier+0x7c/0x1a0 [nvgpu]
[  +0.000149]  channel_sync_syncpt_mark_progress+0x98/0xd0 [nvgpu]
[  +0.000114]  nvgpu_channel_sync_mark_progress+0x38/0x50 [nvgpu]
[  +0.000110]  nvgpu_do_submit+0x5f8/0x680 [nvgpu]
[  +0.000108]  nvgpu_submit_channel_gpfifo+0x13c/0x610 [nvgpu]
[  +0.000107]  nvgpu_submit_channel_gpfifo_user+0x84/0x100 [nvgpu]
[  +0.000105]  gk20a_channel_ioctl+0xed0/0x1860 [nvgpu]
[  +0.000106]  __arm64_sys_ioctl+0xb4/0x100
[  +0.000004]  invoke_syscall+0x5c/0x130
[  +0.000005]  el0_svc_common.constprop.0+0x64/0x110
[  +0.000002]  do_el0_svc+0x74/0xa0
[  +0.000002]  el0_svc+0x28/0x80
[  +0.000004]  el0t_64_sync_handler+0xa4/0x130
[  +0.000002]  el0t_64_sync+0x1a4/0x1a8
[  +0.000004] Code: f9405e66 8b040002 b9401b43 dac00c42 (f864681c)
[  +0.000005] ---[ end trace 790607597cada73d ]---
[  +0.223093] t194-nvcsi 13e00000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0

how can this problem be solved?

Could you increase the below in vi5_fops.c to try.

#define CAPTURE_TIMEOUT_MS      2500
tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 10000 ms, port=0, vc-id=3

When there is a problem, CAPTURE_TIMEOUT_MS has already been increased to 10000 milliseconds.

Apply this change to set the timeout to -1 by “v4l2-ctl -c override_capture_timeout_ms=-1” to avoid kernel crash.

0001-vi5-camera-add-ovrride-capture-timeout-control.patch (7.3 KB)

Can we address the causes that lead to kernel crashes?

Not sure if you want to know the memory address?
Maybe try gdb.

https://docs.nvidia.com/jetson/archives/r36.3/DeveloperGuide/AT/JetsonLinuxDevelopmentTools/DebuggingTheKernel.html

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.