Quantcast
Viewing all articles
Browse latest Browse all 4176

Troubleshooting • MCP251XFD driver segfault

I loaded 2024-11-19-raspios-bookworm-arm64-lite.img
pi@raspberrypi:~ $ dmesg
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[ 0.000000] Linux version 6.6.51+rpt-rpi-v8 (serge@raspberrypi.com) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08)

After doing
sudo ip link set can1 type can bitrate 125000
sudo ip link set can1 up

[ 233.586926] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
[ 233.586977] Mem abort info:
[ 233.586988] ESR = 0x0000000096000005
[ 233.587002] EC = 0x25: DABT (current EL), IL = 32 bits
[ 233.587019] SET = 0, FnV = 0
[ 233.587032] EA = 0, S1PTW = 0
[ 233.587043] FSC = 0x05: level 1 translation fault
[ 233.587057] Data abort info:
[ 233.587067] ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000
[ 233.587081] CM = 0, WnR = 0, TnD = 0, TagAccess = 0
[ 233.587094] GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[ 233.587110] user pgtable: 4k pages, 39-bit VAs, pgdp=0000000003b58000
[ 233.587128] [0000000000000000] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
[ 233.587166] Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP
[ 233.587186] Modules linked in: cmac algif_hash aes_arm64 aes_generic algif_skcipher af_alg bnep brcmfmac_wcc brcmfmac brcmutil v3d cfg80211 raspberrypi_hwmon vc4 gpu_sched hci_uart drm_shmem_helper btbcm bluetooth snd_soc_hdmi_codec drm_display_helper cec mcp251xfd drm_dma_helper can_dev drm_kms_helper bcm2835_isp(C) ecdh_generic bcm2835_v4l2(C) snd_soc_core bcm2835_codec(C) rpivid_hevc(C) ecc v4l2_mem2mem bcm2835_mmal_vchiq(C) videobuf2_vmalloc videobuf2_dma_contig rfkill videobuf2_memops videobuf2_v4l2 libaes snd_compress videodev binfmt_misc snd_bcm2835(C) snd_pcm_dmaengine raspberrypi_gpiomem snd_pcm vc_sm_cma(C) videobuf2_common snd_timer mc snd nvmem_rmem uio_pdrv_genirq uio drm fuse dm_mod drm_panel_orientation_quirks backlight ip_tables x_tables ipv6 i2c_brcmstb spi_bcm2835 igb i2c_algo_bit
[ 233.587618] CPU: 3 PID: 1141 Comm: ip Tainted: G C 6.6.51+rpt-rpi-v8 #1 Debian 1:6.6.51-1+rpt3
[ 233.587649] Hardware name: Raspberry Pi Compute Module 4 Rev 1.1 (DT)
[ 233.587665] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 233.587688] pc : timecounter_read+0x20/0x80
[ 233.587716] lr : mcp251xfd_ring_init+0x1a0/0x500 [mcp251xfd]
[ 233.587768] sp : ffffffc080b3b420
[ 233.587781] x29: ffffffc080b3b420 x28: ffffff8003c96000 x27: 0000000000000001
[ 233.587816] x26: 0000000000000000 x25: ffffff8003c96040 x24: ffffff8004362940
[ 233.587848] x23: 0000000000000000 x22: 0000000000000460 x21: 0000000000000001
[ 233.587880] x20: ffffff8004360940 x19: ffffff80043638b0 x18: 0000000000000000
[ 233.587911] x17: 0000000000000000 x16: ffffffdb78b53b38 x15: 0000000000000000
[ 233.587941] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
[ 233.587971] x11: 00000000000001b6 x10: 0000000000001a40 x9 : ffffffdb2dfdb980
[ 233.588003] x8 : ffffff8004360e60 x7 : 0000000000000000 x6 : 0000000000000008
[ 233.588034] x5 : 0000000000000001 x4 : 0000000000000005 x3 : 0000000000000004
[ 233.588063] x2 : 000000000000005c x1 : 0000000000002f70 x0 : 0000000000000000
[ 233.588095] Call trace:
[ 233.588108] timecounter_read+0x20/0x80
[ 233.588130] mcp251xfd_ring_init+0x1a0/0x500 [mcp251xfd]
[ 233.588171] mcp251xfd_chip_start+0x234/0x2a0 [mcp251xfd]
[ 233.588209] mcp251xfd_open+0x94/0x2a8 [mcp251xfd]
[ 233.588245] __dev_open+0x120/0x218
[ 233.588269] __dev_change_flags+0x194/0x218
[ 233.588290] dev_change_flags+0x2c/0x80
[ 233.588310] do_setlink+0x28c/0xef8
[ 233.588331] __rtnl_newlink+0x520/0x898
[ 233.588352] rtnl_newlink+0x58/0x90
[ 233.588372] rtnetlink_rcv_msg+0x134/0x390
[ 233.588392] netlink_rcv_skb+0x64/0x138
[ 233.588413] rtnetlink_rcv+0x20/0x38
[ 233.588432] netlink_unicast+0x2fc/0x370
[ 233.588452] netlink_sendmsg+0x1c4/0x448
[ 233.588472] __sock_sendmsg+0x64/0xc0
[ 233.588495] ____sys_sendmsg+0x260/0x298
[ 233.588517] ___sys_sendmsg+0xb4/0x110
[ 233.588540] __sys_sendmsg+0x8c/0xf0
[ 233.588563] __arm64_sys_sendmsg+0x2c/0x40
[ 233.588587] invoke_syscall+0x50/0x128
[ 233.588613] el0_svc_common.constprop.0+0x48/0xf0
[ 233.588637] do_el0_svc+0x24/0x38
[ 233.588660] el0_svc+0x40/0xe8
[ 233.588687] el0t_64_sync_handler+0x100/0x130
[ 233.588704] el0t_64_sync+0x190/0x198
[ 233.588728] Code: 910003fd f9000bf3 aa0003f3 f9400000 (f9400001)
[ 233.588748] ---[ end trace 0000000000000000 ]---

Statistics: Posted by RikusW — Thu Mar 06, 2025 1:36 pm



Viewing all articles
Browse latest Browse all 4176

Trending Articles