When I tested the camera, there was an exception

Hi All,
When I tested the camera, there was an exception as follows. Could you please help me find out what caused it? Thank you!

root@tegra:/home/robot# more /etc/nv_tegra_release
# R35 (release), REVISION: 4.1, GCID: 33958178, BOARD: t186ref, EABI: aarch64, DATE: Tue Aug  1 19:57:35 UTC 2023

device :
orin nx

robot@tegra:/var/lib/systemd/pstore/20240824113138_26715$ cat console-ramoops-0 
[   22.457795] Bridge firewalling registered
[   46.845756] d4xx 32-000a: Probing new driver for D45x
[   46.965783] d4xx 32-001a: Probing new driver for D45x
[   47.059226] debugfs: Directory 'd4xx_c' with parent '/' already present!
[   47.093127] d4xx 32-000b: Probing new driver for D45x
[   47.186112] debugfs: Directory 'd4xx_c' with parent '/' already present!
[   47.220129] d4xx 32-001b: Probing new driver for D45x
[   47.314384] debugfs: Directory 'd4xx_c' with parent '/' already present!
[   49.378068] bwmgr API not supported
[   49.885193] bwmgr API not supported
[   50.033507] bwmgr API not supported
[   50.485038] bwmgr API not supported
[   50.620070] bwmgr API not supported
[   51.085033] bwmgr API not supported
[   51.208163] bwmgr API not supported
[   51.335939] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072=0x20000, vc: 0.2024-08-12.
[   51.529014] bwmgr API not supported
[   51.556229] bwmgr API not supported
[   51.684897] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072=0x20000, vc: 2.2024-08-12.
[   51.878058] bwmgr API not supported
[   69.395770] d4xx 32-000a: ds5_send_hwmc(): HWMC failed, ret: 0, status: 1, error code: -21
[   69.919465] d4xx 32-000a: ds5_get_hwmc(): HWMC failed, ret: 0, error code: 0
[   71.361621] d4xx 32-000a: ds5_send_hwmc(): HWMC failed, ret: 0, status: 1, error code: -21
[   71.885841] d4xx 32-000a: ds5_get_hwmc(): HWMC failed, ret: 0, error code: 0
[   73.330556] d4xx 32-000a: ds5_send_hwmc(): HWMC failed, ret: 0, status: 1, error code: -21
[   73.852483] d4xx 32-000a: ds5_get_hwmc(): HWMC failed, ret: 0, error code: 0
[   74.052353] bwmgr API not supported
[   74.211122] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072=0x20000, vc: 0.2024-08-12.
[   75.854560] d4xx 32-000a: ds5_send_hwmc(): HWMC failed, ret: 0, status: 1, error code: -21
[   76.388042] d4xx 32-000a: ds5_get_hwmc(): HWMC failed, ret: 0, error code: 96354038
[  438.485741] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 512=0x200, vc: 0.2024-08-12.
[  438.559064] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: flags 2, err_data 0
[  441.302569] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  441.311741] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  441.321336] (NULL device *): vi_capture_control_message: NULL VI channel received
[  441.329563] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[  441.340272] (NULL device *): vi_capture_control_message: NULL VI channel received
[  441.349057] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  443.866556] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  443.875697] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  443.885421] (NULL device *): vi_capture_control_message: NULL VI channel received
[  443.893176] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[  443.904396] (NULL device *): vi_capture_control_message: NULL VI channel received
[  443.912135] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[  443.923237] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  446.682559] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  446.691730] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  446.701741] (NULL device *): vi_capture_control_message: NULL VI channel received
[  446.709768] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[  446.720623] (NULL device *): vi_capture_control_message: NULL VI channel received
[  446.728393] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[  446.739785] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  449.494564] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  449.503732] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  449.513957] (NULL device *): vi_capture_control_message: NULL VI channel received
[  449.521782] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[  449.532897] (NULL device *): vi_capture_control_message: NULL VI channel received
[  449.540762] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[  449.551811] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  452.314558] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  452.323700] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  452.333359] (NULL device *): vi_capture_control_message: NULL VI channel received
[  452.341621] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[  452.352315] (NULL device *): vi_capture_control_message: NULL VI channel received
[  452.360016] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[  452.370782] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  455.130564] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  455.139709] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  455.149825] (NULL device *): vi_capture_control_message: NULL VI channel received
[  455.157796] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[  455.168785] (NULL device *): vi_capture_control_message: NULL VI channel received
[  455.176573] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[  455.189343] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  457.942557] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  457.951728] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  457.962121] (NULL device *): vi_capture_control_message: NULL VI channel received
[  457.970055] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[  457.981161] (NULL device *): vi_capture_control_message: NULL VI channel received
[  458.998561] Unable to handle kernel paging request at virtual address 0000000300000069
[  459.006745] Mem abort info:
[  459.009617]   ESR = 0x96000004
[  459.012773]   EC = 0x25: DABT (current EL), IL = 32 bits
[  459.018882]   SET = 0, FnV = 0
[  459.022138]   EA = 0, S1PTW = 0
[  459.025421] Data abort info:
[  459.028483]   ISV = 0, ISS = 0x00000004
[  459.032629]   CM = 0, WnR = 0
[  459.035774] user pgtable: 4k pages, 48-bit VAs, pgdp=000000015c750000
[  459.043753] [0000000300000069] pgd=0000000000000000, p4d=0000000000000000
[  459.051452] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[  459.057202] Modules linked in: nvidia_modeset(OE) fuse(E) d4xx(E) mttcan(E) can_dev(E) can_raw(E) can(E) xt_conntrack(E) xt_MASQUERADE(E) nf_conntrack_netlink(E) nfnetlink(E) iptable_nat(E) nf_nat(E) nf_conntrack(E) nf_defrag_ipv6(E) nf_defrag_ipv4(E) libcrc32c(E) xt_addrtype(E) iptable_filter(E) br_netfilter(E) lzo_rle(E) lzo_compress(E) zram(E) overlay(E) ramoops(E) reed_solomon(E) option(E) usb_wwan(E) usbserial(E) loop(E) 8021q(E) garp(E) mrp(E) wlan(OE) aes_ce_blk(E) crypto_simd(E) snd_soc_tegra210_ope(E) snd_soc_tegra186_dspk(E) cryptd(E) snd_soc_tegra186_asrc(E) snd_soc_tegra210_iqc(E) aes_ce_cipher(E) snd_soc_tegra186_arad(E) snd_soc_tegra210_mvc(E) snd_soc_tegra210_afc(E) ghash_ce(E) snd_soc_tegra210_dmic(E) snd_soc_tegra210_admaif(E) snd_soc_tegra210_adx(E) sha2_ce(E) cfg80211(E) snd_soc_tegra210_amx(E) snd_soc_tegra210_mixer(E) snd_soc_tegra210_i2s(E) snd_soc_tegra_pcm(E) snd_soc_tegra210_sfc(E) sha256_arm64(E) snd_soc_tegra210_adsp(E) sha1_ce(E) cdc_acm(E) nvgpu(E)
[  459.057272]  snd_soc_tegra_machine_driver(E) snd_soc_tegra_utils(E) snd_hda_codec_hdmi(E) snd_soc_simple_card_utils(E) snd_soc_spdif_tx(E) pwm_fan(E) nvadsp(E) snd_hda_tegra(E) snd_hda_codec(E) userspace_alert(E) r8168(E) ina3221(E) fusb301(E) snd_soc_tegra210_ahub(E) tegra_bpmp_thermal(E) snd_hda_core(E) tegra210_adma(E) spi_tegra114(E) wlan_cnss_core_pcie(OE) nv_ar0233(E) nvidia(OE) binfmt_misc(E) nvmap(E) GobiNet(OE) ip_tables(E) x_tables(E) [last unloaded: mtd]
[  459.190233] CPU: 6 PID: 4672 Comm: vi-output, DS5  Tainted: G           OE     5.10.120-tegra #6
[  459.199241] Hardware name: Unknown NVIDIA Orin NX Developer Kit/NVIDIA Orin NX Developer Kit, BIOS 202210.3-6362cf511-dirty 12/19/2023
[  459.211639] pstate: 60c00009 (nZCv daif +PAN +UAO -TCO BTYPE=--)
[  459.217809] pc : __dev_printk+0x20/0x84
[  459.221731] lr : _dev_err+0x6c/0x94
[  459.225301] sp : ffff80002f51b990
[  459.228693] x29: ffff80002f51b990 x28: 0000000000000000 
[  459.234138] x27: ffff80002faeba28 x26: ffff3341c1468880 
[  459.239594] x25: ffff3343a5841e00 x24: ffff3341f376e530 
[  459.245035] x23: ffff3341ccdebf00 x22: 0000000000000118 
[  459.250480] x21: ffff3343a5841e00 x20: ffff3341f376e400 
[  459.255928] x19: ffff3343a5841e00 x18: 0000000000000000 
[  459.261378] x17: 0000000000000000 x16: 0000000000000000 
[  459.266817] x15: 000000000000022d x14: 0000000000000272 
[  459.272255] x13: 000000000000009e x12: 0000000000000024 
[  459.277698] x11: 071c71c71c71c71c x10: 71fe497b39525783 
[  459.283148] x9 : ffffc6c6f72037ec x8 : ffffc6c6f7b65600 
[  459.288585] x7 : 0000000000000411 x6 : 00000000000003e8 
[  459.294023] x5 : ffff80002f51b9c8 x4 : ffff80002f51ba00 
[  459.299467] x3 : 00000000ffffffd0 x2 : ffff80002f51b9c8 
[  459.304912] x1 : 0000000300000001 x0 : 0000000000000033 
[  459.310358] Call trace:
[  459.312857]  __dev_printk+0x20/0x84
[  459.316430]  _dev_err+0x6c/0x94
[  459.319644]  vi_capture_ivc_send_control.isra.0+0x100/0x120
[  459.325350]  vi_capture_control_send_message+0x78/0x240
[  459.330699]  vi_capture_control_message+0xa0/0x140
[  459.335604]  csi5_send_control_message+0x48/0xa0
[  459.340332]  csi5_stream_open+0x94/0x120
[  459.344352]  csi5_start_streaming+0xa8/0xe0
[  459.348630]  csi5_error_recover+0x3c/0x90
[  459.352739]  tegra_csi_error_recovery+0x58/0xc0
[  459.357385]  tegra_csi_sync_event+0x30/0x40
[  459.361667]  vi5_channel_error_recover+0x1e4/0x250
[  459.366574]  tegra_channel_error_recover+0x7c/0xa0
[  459.371476]  tegra_channel_kthread_capture_dequeue+0x134/0x1f0
[  459.377459]  kthread+0x148/0x170
[  459.380760]  ret_from_fork+0x10/0x38
[  459.384425] Code: 910003fd b40002a1 aa0203e5 39400400 (f9403422) 
[  459.390676] ---[ end trace df4362f611afb6f5 ]---
[  459.400966] Kernel panic - not syncing: Oops: Fatal exception
[  459.406858] SMP: stopping secondary CPUs
[  459.410875] Kernel Offset: 0x46c6e6000000 from 0xffff800010000000
[  459.417120] PHYS_OFFSET: 0xffffccbf40000000
[  459.421399] CPU features: 0x081c0146,4a80aa38
[  459.425856] Memory Limit: none
[  459.428974] cnss: Crash shutdown with driver_state 0x47
[  459.434324] cnss: Setting MHI state: RDDM_KERNEL_PANIC(8)
[  459.769445] [firmware_dump] to write file:none, mem: 0x00000000825a0ce4, size: 0x80000
[  459.777590] [firmware_dump] to write file:none, mem: 0x000000004b7fb997, size: 0x80000
[  459.785727] [firmware_dump] to write file:none, mem: 0x000000000aa981e9, size: 0x80000
[  459.793861] [firmware_dump] to write file:none, mem: 0x000000007f4ad2a8, size: 0x80000
[  459.801992] [firmware_dump] to write file:none, mem: 0x000000001938623d, size: 0x80000
[  459.810137] [firmware_dump] to write file:none, mem: 0x000000008f69b7f5, size: 0x80000
[  459.818276] [firmware_dump] to write file:none, mem: 0x00000000ebdc48ad, size: 0x80000
[  459.826412] [firmware_dump] to write file:none, mem: 0x00000000fc7be2b4, size: 0x80000
[  459.834543] [firmware_dump] to write file:none, mem: 0x000000000145128f, size: 0x80000
[  459.842686] [firmware_dump] to write file:none, mem: 0x00000000b0be1472, size: 0x90
[  459.850557] [fw_paging_dump] to write file:none, mem: 0x000000003f20e8e8, size: 0x200
[  459.858601] [fw_paging_dump] to write file:none, mem: 0x00000000755d9b80, size: 0x80000
[  459.866819] [fw_paging_dump] to write file:none, mem: 0x0000000045c3c567, size: 0x80000
[  459.875047] [fw_paging_dump] to write file:none, mem: 0x00000000df1e6575, size: 0x80000
[  459.883279] [fw_paging_dump] to write file:none, mem: 0x00000000bc93624d, size: 0x80000
[  459.891506] [fw_paging_dump] to write file:none, mem: 0x0000000007d23d2d, size: 0x80000
[  459.899728] [fw_paging_dump] to write file:none, mem: 0x00000000f84e888a, size: 0x80000
[  459.907947] [fw_paging_dump] to write file:none, mem: 0x00000000d04dc0b9, size: 0x80000
[  459.916179] [fw_paging_dump] to write file:none, mem: 0x000000008ef8d4cf, size: 0x80000
[  459.924404] [fw_paging_dump] to write file:none, mem: 0x0000000075d4d40a, size: 0x80000
[  459.932635] [fw_paging_dump] to write file:none, mem: 0x00000000c6ed8094, size: 0x80000
[  459.940858] [fw_remote_mem_dump] to write file:none, mem: 0x0000000088853760, size: 0x5dc000
[  459.949529] cnss: Collect dump seg: type 0, nentries 11
[  459.954906] cnss: seg-0: address 0xfff00000, v_address ffff800019c04000, size 0x80000
[  459.962958] cnss: seg-1: address 0xffe00000, v_address ffff800019c86000, size 0x80000
[  459.970997] cnss: seg-2: address 0xffd00000, v_address ffff800019d08000, size 0x80000
[  459.979041] cnss: seg-3: address 0xffc00000, v_address ffff800019d8a000, size 0x80000
[  459.987080] cnss: seg-4: address 0xffb00000, v_address ffff800019e0c000, size 0x80000
[  459.995130] cnss: seg-5: address 0xffa00000, v_address ffff800019e8e000, size 0x80000
[  460.003179] cnss: seg-6: address 0xff900000, v_address ffff80001bc04000, size 0x80000
[  460.011219] cnss: seg-7: address 0xff800000, v_address ffff80001bd91000, size 0x80000
[  460.019263] cnss: seg-8: address 0xff700000, v_address ffff80001be13000, size 0x80000
[  460.027307] cnss: seg-9: address 0xff600000, v_address ffff80001be95000, size 0x3b000
[  460.035358] cnss: seg-10: address 0xff5fe000, v_address ffff800010fcd000, size 0xa0
[  460.043224] cnss: Collect dump seg: type 1, nentries 10
[  460.048594] cnss: seg-0: address 0xff500000, v_address ffff80001bf17000, size 0x80000
[  460.056633] cnss: seg-1: address 0xff400000, v_address ffff80001dc04000, size 0x80000
[  460.064677] cnss: seg-2: address 0xff300000, v_address ffff80001dc86000, size 0x80000
[  460.072721] cnss: seg-3: address 0xff200000, v_address ffff80001dd08000, size 0x80000
[  460.080765] cnss: seg-4: address 0xff100000, v_address ffff80001dd8a000, size 0x80000
[  460.088820] cnss: seg-5: address 0xff000000, v_address ffff80001de0c000, size 0x80000
[  460.096870] cnss: seg-6: address 0xfef00000, v_address ffff80001de8e000, size 0x80000
[  460.104924] cnss: seg-7: address 0xfee00000, v_address ffff80001df10000, size 0x80000
[  460.112975] cnss: seg-8: address 0xfed00000, v_address ffff80001fc04000, size 0x80000
[  460.121019] cnss: seg-9: address 0xfecfe000, v_address ffff800010fed000, size 0x90
[  460.128800] cnss: Collect remote heap dump segment
[  460.133729] cnss: seg-0: address 0xfe000000, v_address ffff800023001000, size 0x5dc000
[  460.141873] cnss: Unknown CNSS MHI state (10)
[  460.146345] cnss: Setting MHI state: RDDM_DONE(10)
[  460.151273] cnss: Failed to set MHI state: RDDM_DONE(10)
[  460.156745] cnss: Config PCIe remap window register to 0x40000038
[  460.163025] cnss: QDSSCSR_ETRIRQCTRL[0x1c0106c] = 0x0
[  460.168215] cnss: Config PCIe remap window register to 0x40000038
[  460.174495] cnss: QDSSCSR_PRESERVEETF[0x1c01070] = 0x0
[  460.179775] cnss: Config PCIe remap window register to 0x40000038
[  460.186055] cnss: QDSSCSR_PRESERVEETR0[0x1c01074] = 0x0
[  460.191420] cnss: Config PCIe remap window register to 0x40000038
[  460.197688] cnss: QDSSCSR_PRESERVEETR1[0x1c01078] = 0x0
[  460.248764] ---[ end Kernel panic - not syncing: Oops: Fatal exception ]---

hello wxsrite,

it’s kernel panic from one of debug print, please examine whether it’s a NULL pointer.

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