Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel oops or hard freeze when streaming video on Zero W (and Pi 3B+) #2555

Open
balboah opened this issue May 13, 2018 · 63 comments
Open

Kernel oops or hard freeze when streaming video on Zero W (and Pi 3B+) #2555

balboah opened this issue May 13, 2018 · 63 comments
Labels
Wifi Issue Any issues related to wifi

Comments

@balboah
Copy link

balboah commented May 13, 2018

This is a summary from troubleshooting on https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=213423&p=1315106

When trying to stream video on Zero W with the noir v2 camera module, I get many variants of kernel oopses and freezes. For example:

[  273.802531] random: crng init done
[  379.898672] ------------[ cut here ]------------
[  379.901131] kernel BUG at Returning to usermode but unexpected PSR bits set?:5!
[  379.903359] Internal error: Oops - BUG: 0 [#1] ARM
[  379.905866] Modules linked in: cmac bnep hci_uart btbcm serdev bluetooth ecdh_generic brcmfmac brcmutil cfg80211 snd_bcm2835(C) snd_pcm rfkill snd_timer snd uio_pdrv_genirq uio fixed ip_tables x_tables ipv6
[  379.913291] CPU: 0 PID: 826 Comm: modprobe Tainted: G         C      4.14.34+ #1110
[  379.917705] Hardware name: BCM2835
[  379.920005] task: d6a0e120 task.stack: d5662000
[  379.922689] PC is at no_work_pending+0x30/0x34
[  379.925152] LR is at 0xbea4f970
[  379.927229] pc : [<c000fe54>]    lr : [<bea4f970>]    psr: 20000013
[  379.929588] sp : d5663fa8  ip : d5663fa8  fp : 00000000
[  379.932763] r10: 00000000  r9 : d5662000  r8 : c000ff64
[  379.935421] r7 : 000000d9  r6 : 00d321d8  r5 : 00000020  r4 : 00000078
[  379.938231] r3 : c0939414  r2 : d5663fe4  r1 : b6e6f198  r0 : 00000000
[  379.940929] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  379.943654] Control: 00c5387d  Table: 15664008  DAC: 00000055
[  379.946464] Process modprobe (pid: 826, stack limit = 0xd5662188)
[  379.948699] Stack: (0xd5663fa8 to 0xd5664000)
[  379.951177] 3fa0:                   00d321b8 00000020 00000000 00d321d8 00008000 00000000
[  379.956042] 3fc0: 00d321b8 00000020 00d321d8 000000d9 00000002 0002b990 0003f030 bea4fb10
[  379.960686] 3fe0: 0003efa8 bea4f970 b6e6f198 b6e6f0b8 60000010 00000000 00000000 00000000
[  379.966304] Code: e9527fff e1a00000 e28dd048 e1b0f00e (e7f001f2)
[  379.969043] ---[ end trace ee6907230b405e54 ]---
[  185.473451] random: crng init done
[  289.843386] Unable to handle kernel paging request at virtual address a259878c
[  289.845896] pgd = d3d98000
[  289.847720] [a259878c] *pgd=00000000
[  289.849367] Internal error: Oops: 5 [#1] ARM
[  289.851559] Modules linked in: cmac bnep hci_uart btbcm serdev bluetooth ecdh_generic brcmfmac brcmutil cfg80211 snd_bcm2835(C) rfkill snd_pcm snd_timer snd uio_pdrv_genirq fixed uio ip_tables x_tables ipv6
[  289.858880] CPU: 0 PID: 566 Comm: VCHIQ completio Tainted: G         C      4.14.34+ #1110
[  289.864663] Hardware name: BCM2835
[  289.867276] task: d3d24560 task.stack: d3d94000
[  289.869315] PC is at alloc_contig_range+0x254/0x344
[  289.871577] LR is at drain_all_pages+0x9c/0x148
[  289.873676] pc : [<c01005f8>]    lr : [<c00fcddc>]    psr: 60000013
[  289.876103] sp : d3d95b80  ip : 00000000  fp : d3d95c14
[  289.878873] r10: 00000005  r9 : 00017521  r8 : d3d95ba0
[  289.881112] r7 : c0108314  r6 : c0646614  r5 : d3d95b58  r4 : d3d95b6c
[  289.883087] r3 : a2598780  r2 : 00000000  r1 : d7c8a500  r0 : 00000000
[  289.885885] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  289.888657] Control: 00c5387d  Table: 13d98008  DAC: 00000055
[  289.891100] Process VCHIQ completio (pid: 566, stack limit = 0xd3d94188)
[  289.894036] Stack: (0xd3d95b80 to 0xd3d96000)
[  289.897008] 5b80: 00000002 00000006 fffffff0 00017800 00017400 00000004 00000000 00000000
[  289.902505] 5ba0: d3d95ba0 d3d95ba0 c09be368 00000000 00000001 00000001 00000000 00000000
[  289.907371] 5bc0: 00000000 00017520 014080c0 ffffffff 00000000 00000000 00000000 00000002
[  289.913045] 5be0: 00000001 00000000 00000001 00017520 00000120 c0a46a88 fffffff0 00000001
[  289.918027] 5c00: 00000001 00000800 d3d95c64 d3d95c18 c0155648 c01003b0 00000000 00000000
[  289.924077] 5c20: 00000000 00000001 00000000 014080c0 00000000 c0a46a98 00000000 00000001
[  289.931001] 5c40: d3d95ce8 00000001 00000247 00001000 00000000 d3d95d94 d3d95c74 d3d95c68
[  289.936747] 5c60: c04078d0 c0155554 d3d95c9c d3d95c78 c0019d84 c0407898 d3d95ce8 c0518d68
[  289.943030] 5c80: d7162e10 00000001 00000000 d53ab780 d3d95ccc d3d95ca0 c0019e5c c0019d50
[  289.949379] 5ca0: c0518d68 00000001 00000000 014080c0 ffffffff 014080c0 d7162e10 ffffffff
[  289.956599] 5cc0: d3d95d34 d3d95cd0 c001a01c c0019e18 d3d95d04 d3d95ce0 c004c940 c00409d4
[  289.964323] 5ce0: d515fd40 00000000 00000000 d7162e10 00001000 014080c0 00000247 c0518d68
[  289.970769] 5d00: d3d24501 00000000 00000000 00000000 00000000 00000bb0 0000e2f8 00000198
[  289.977483] 5d20: d7162e10 00000006 d3d95d5c d3d95d38 c001a248 c0019e70 00000247 00000000
[  289.983707] 5d40: 00000000 c0518d68 0000000f c001a1fc d3d95dd4 d3d95d60 c0518d68 c001a208
[  289.991248] 5d60: 00000000 00000200 00000200 c0517a80 00000000 d6b44f10 d3d24560 d3d95d88
[  289.998981] 5d80: 0044bbb0 00000001 00000001 0000e2f8 d3d95dd4 ffffffff c0517a8c c0026478
[  290.005268] 5da0: c0648df0 c0645a34 c0944318 d6b44e00 00000000 0044bbb0 00000000 0000e2f8
[  290.012067] 5dc0: 00000072 00000006 d3d95e44 d3d95dd8 c05110ac c0518c84 00000001 c064767c
[  290.018587] 5de0: d3d95e04 d3d95df0 c064767c 00000020 d6b44efc 00000000 d6b44f10 d6b44f88
[  290.025889] 5e00: c0a54928 d6b44edc d3d95e2c 20000113 20000113 c09b3f50 b6cb6ce4 c014c406
[  290.033451] 5e20: c09b3f50 b6cb6ce4 00000001 d6b44e00 d7580194 d50fd000 d3d95f0c d3d95e48
[  290.039559] 5e40: c0515db8 c0510de0 b63085c0 00000000 00000001 d3d95e60 c0048748 c00484c0
[  290.046525] 5e60: d7122478 d50fd824 b6cb6d84 c014c407 d7580194 00000040 0000012c d6b44e00
[  290.053050] 5e80: c0065900 00000007 ffffffff d3d95e98 b63085c0 00000000 d3d95ec4 d695a268
[  290.060107] 5ea0: 0000b009 0044bbb0 0000e2f8 b63085c0 00000000 d3d95ec0 c004c360 c0638a0c
[  290.069844] 5ec0: c004c95c c00409d4 00000000 d5215340 00000001 d3d24560 d3d95f1c d3d95ee8
[  290.076552] 5ee0: c0046aec b6cb6ce4 d730bd88 d522ca00 00000004 00000004 d3d94000 00000000
[  290.082991] 5f00: d3d95f7c d3d95f10 c016c858 c0515870 d3d95f74 d3d95f20 c06455ac c0046a9c
[  290.090363] 5f20: 00000004 c01770c4 80000013 ffffffff 7a12d780 c01774c4 d5231a80 b6e79538
[  290.098061] 5f40: b6cb6ce4 0044bbb0 c014c406 00000004 d3d95f6c d522ca01 b6cb6ce4 d522ca00
[  290.104406] 5f60: c014c406 00000004 d3d94000 00000000 d3d95fa4 d3d95f80 c016cf54 c016c7c8
[  290.111185] 5f80: 0000b009 b6e79538 b6cb6ce4 0044bbb0 00000036 c000ff64 00000000 d3d95fa8
[  290.117580] 5fa0: c000fdc0 c016cf1c b6e79538 b6cb6ce4 00000004 c014c406 b6cb6ce4 0000b009
[  290.125019] 5fc0: b6e79538 b6cb6ce4 0044bbb0 00000036 b63085c0 b6cb6d84 b6e792b4 b6e68f3c
[  290.132671] 5fe0: b6e79240 b6cb6cd4 b6e66f44 b6d8180c 80000010 00000004 00000000 00000000
[  290.138902] [<c01005f8>] (alloc_contig_range) from [<c0155648>] (cma_alloc+0x100/0x24c)
[  290.145834] [<c0155648>] (cma_alloc) from [<c04078d0>] (dma_alloc_from_contiguous+0x44/0x4c)
[  290.152461] [<c04078d0>] (dma_alloc_from_contiguous) from [<c0019d84>] (__alloc_from_contiguous+0x40/0xc8)
[  290.160121] [<c0019d84>] (__alloc_from_contiguous) from [<c0019e5c>] (cma_allocator_alloc+0x50/0x58)
[  290.167665] [<c0019e5c>] (cma_allocator_alloc) from [<c001a01c>] (__dma_alloc+0x1b8/0x350)
[  290.173780] [<c001a01c>] (__dma_alloc) from [<c001a248>] (arm_dma_alloc+0x4c/0x58)
[  290.180857] [<c001a248>] (arm_dma_alloc) from [<c0518d68>] (vchiq_prepare_bulk_data+0xf0/0x6bc)
[  290.187955] [<c0518d68>] (vchiq_prepare_bulk_data) from [<c05110ac>] (vchiq_bulk_transfer+0x2d8/0x554)
[  290.195634] [<c05110ac>] (vchiq_bulk_transfer) from [<c0515db8>] (vchiq_ioctl+0x554/0x1958)
[  290.202681] [<c0515db8>] (vchiq_ioctl) from [<c016c858>] (do_vfs_ioctl+0x9c/0x754)
[  290.209238] [<c016c858>] (do_vfs_ioctl) from [<c016cf54>] (SyS_ioctl+0x44/0x6c)
[  290.213236] [<c016cf54>] (SyS_ioctl) from [<c000fdc0>] (ret_fast_syscall+0x0/0x28)
[  290.219884] Code: e5931000 e0603008 e0833183 e0813103 (e593300c)
[  290.223715] ---[ end trace ee6907230b405e54 ]---

It can easily be reproduced by these steps:

  1. Reset to the 2018-04-18-raspbian-stretch-lite.img and enable the headless SSH and /boot/wpa_supplicant.conf
  2. raspi-config -> enable camera module -> reboot
  3. (terminal 1)$ raspivid -t 0 -w 1280 -h 720 -o /dev/null
  4. (terminal 2)$ ssh pi@the-zero-ip
  5. Repeat step 4 until crash (will happen within 5 minutes)

The issue still exists when testing after updating with rpi-update.

I have also had freezes on Pi 3B+ with the same camera, but have not been able to create a proper reproduce or catched any kernel messages. It might be more related to #2387

@lategoodbye
Copy link
Contributor

Could you please try http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2018-03-14/ with the Zero W?

@balboah
Copy link
Author

balboah commented May 15, 2018

@lategoodbye

When leaving a watch ssh [email protected] date in my terminal
after the pi had been running raspivid -t 0 -w 1280 -h 720 -o /dev/null for maybe 15 minutes, I got:

dmesg:

[ 1473.345882] systemd: 33 output lines suppressed due to ratelimiting
[ 1551.070104] systemd-journald[108]: Failed to send WATCHDOG=1 notification message: Connection refused

journald:

sshd[857]: Accepted publickey for pi from 192.168.1.14 port 54892 ssh2: RSA SHA256:xxx
sshd[857]: pam_unix(sshd:session): session opened for user pi by (uid=0)
systemd[1]: [35B blob data]
systemd[1]: :0, function (null)(). Aborting.
systemd[1]: Caught <ABRT>, dumped core as pid 861.
kernel: systemd: 33 output lines suppressed due to ratelimiting
systemd[1]: Freezing execution.
systemd-logind[251]: Failed to start session scope session-c19.scope: Message recipient disconnected from message bus without replying
sshd[857]: pam_systemd(sshd:session): Failed to create session: Connection timed out
sshd[867]: Received disconnect from 192.168.1.14 port 54892:11: disconnected by user

But it seems I'm unable to provoke a kernel oops!
I guess it's just something fishy with authenticating new logins too fast in this older version.

UPDATE

It seemed harder to trigger but after making and disconnecting ssh connections with a few seconds in between while running raspivid I got a crash on raspbian_lite-2018-03-14 as well:

[  +0.002281] kernel BUG at kernel/smpboot.c:136!
[  +0.001892] Internal error: Oops - BUG: 0 [#1] ARM
[  +0.001585] Modules linked in: cmac bnep hci_uart btbcm bluetooth brcmfmac brcmutil snd_bcm2835 cfg80211 snd_pcm snd_timer rfkill snd bcm2835_gpiomem uio_pdrv_genirq uio fixed ip_tables x_tables ipv6
[  +0.006210] CPU: 0 PID: 3 Comm: ksoftirqd/0 Not tainted 4.9.80+ #1098
[  +0.002335] Hardware name: BCM2835
[  +0.001928] task: d70a9b40 task.stack: d7100000
[  +0.002436] PC is at smpboot_thread_fn+0x11c/0x178
[  +0.002669] LR is at run_ksoftirqd+0x3c/0x58
[  +0.002489] pc : [<c0042be0>]    lr : [<c0025fa0>]    psr: 60000013
              sp : d7101f40  ip : d7101f30  fp : d7101f64
[  +0.004868] r10: 00000000  r9 : 00000002  r8 : c08c3efc
[  +0.001919] r7 : 00000001  r6 : 00000000  r5 : d7100000  r4 : d70049c0
[  +0.001901] r3 : d7100000  r2 : 00000000  r1 : d70a9b40  r0 : d7100001
[  +0.002381] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  +0.002522] Control: 00c5387d  Table: 1509c008  DAC: 00000055
[  +0.002044] Process ksoftirqd/0 (pid: 3, stack limit = 0xd7100188)
[  +0.001944] Stack: (0xd7101f40 to 0xd7102000)
[  +0.002947] 1f40: 00000000 d70049e0 d70049c0 c0042ac4 00000000 00000000 d7101fac d7101f68
[  +0.005194] 1f60: c003ea54 c0042ad0 00000000 00000001 00000000 d70049c0 00000000 d7101f7c
[  +0.006899] 1f80: d7101f7c 00000000 d7101f88 d7101f88 d70049e0 c003e95c 00000000 00000000
[  +0.005113] 1fa0: 00000000 d7101fb0 c000fed4 c003e968 00000000 00000000 00000000 00000000
[  +0.004385] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  +0.005620] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[  +0.005546] [<c0042be0>] (smpboot_thread_fn) from [<c003ea54>] (kthread+0xf8/0x114)
[  +0.006337] [<c003ea54>] (kthread) from [<c000fed4>] (ret_from_fork+0x14/0x20)
[  +0.003535] Code: e5983010 e5940000 e12fff33 eaffffc4 (e7f001f2)
[  +0.103600] NOHZ: local_softirq_pending 242
[  +0.004190] NOHZ: local_softirq_pending 242
[  +0.011112] ---[ end trace f7cd89d2fa4b04cf ]---
[  +0.006461] NOHZ: local_softirq_pending 242
[  +1.040051] NOHZ: local_softirq_pending 40
[  +2.079984] NOHZ: local_softirq_pending 40
[  +1.039995] NOHZ: local_softirq_pending 40
[  +0.018528] NOHZ: local_softirq_pending 40
[  +0.010858] NOHZ: local_softirq_pending 40

And another (before any hard freeze or reboot):

[ 1766.489466] Unable to handle kernel NULL pointer dereference at virtual address 00000001
[ 1766.496737] pgd = d4524000
[ 1766.500537] [00000001] *pgd=14523831, *pte=00000000, *ppte=00000000
[ 1766.504369] Internal error: Oops: 17 [#2] ARM
[ 1766.507683] Modules linked in: cmac bnep hci_uart btbcm bluetooth brcmfmac brcmutil snd_bcm2835 cfg80211 snd_pcm snd_timer rfkill snd bcm2835_gpiomem uio_pdrv_genirq uio fixed ip_tables x_tables ipv6
[ 1766.516789] CPU: 0 PID: 1822 Comm: sshd Tainted: G      D         4.9.80+ #1098
[ 1766.519532] Hardware name: BCM2835
[ 1766.521996] task: d45e28e0 task.stack: d51e8000
[ 1766.524782] PC is at ret_fast_syscall+0x0/0x1c
[ 1766.527541] LR is at __f_unlock_pos+0x1c/0x20
[ 1766.530035] pc : [<c000fe40>]    lr : [<c0162f64>]    psr: 60000013
               sp : d51e9fa8  ip : d51e9f60  fp : 00000000
[ 1766.535295] r10: 00000000  r9 : d51e8000  r8 : c000ffc4
[ 1766.538023] r7 : 0000008c  r6 : b6fc1000  r5 : 00000000  r4 : 00000000
[ 1766.540395] r3 : 00000000  r2 : 00000001  r1 : 00000000  r0 : 00000000
[ 1766.542901] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[ 1766.545469] Control: 00c5387d  Table: 14524008  DAC: 00000055
[ 1766.548381] Process sshd (pid: 1822, stack limit = 0xd51e8188)
[ 1766.551480] Stack: (0xd51e9fa8 to 0xd51ea000)
[ 1766.554274] 9fa0:                   00000000 00000000 00000006 00000000 000002e2 be805d58
[ 1766.560909] 9fc0: 00000000 00000000 b6fc1000 0000008c 0000000a be805f00 00000000 00000000
[ 1766.568064] 9fe0: 00000000 be805d58 b6a84d74 b6aedbe8 80000010 00000006 00000000 00000000
[ 1766.575277] Code: d3a00001 e89da800 00000000 00000000 (e5ad0008)
[ 1766.579137] ---[ end trace f7cd89d2fa4b04d0 ]---

And another (this time ssh stops working but ping replies)

Unable to handle kernel NULL pointer dereference at virtual address 00000008
[  +0.008241] pgd = d4424000
[  +0.004025] [00000008] *pgd=145c7831, *pte=00000000, *ppte=00000000
[  +0.004500] Internal error: Oops: 17 [#3] ARM
[  +0.003847] Modules linked in: cmac bnep hci_uart btbcm bluetooth brcmfmac brcmutil snd_bcm2835 cfg80211 snd_pcm snd_timer rfkill snd bcm2835_gpiomem uio_pdrv_genirq uio fixed ip_tables x_tables ipv6
[  +0.011834] CPU: 0 PID: 1941 Comm: modprobe Tainted: G      D         4.9.80+ #1098
[  +0.008252] Hardware name: BCM2835
[  +0.004382] task: d69edf60 task.stack: d462c000
[  +0.004458] PC is at __vma_adjust+0x18/0x644
[  +0.003961] LR is at down_write+0x1c/0x50
[  +0.003729] pc : [<c011cb68>]    lr : [<c05e15bc>]    psr: 60000013
              sp : d462de34  ip : d462de50  fp : d462de4c
[  +0.007947] r10: d50892c0  r9 : d5093f78  r8 : d5089228
[  +0.004195] r7 : d6e48164  r6 : d6e48178  r5 : d50892c0  r4 : d6870820
[  +0.003990] r3 : d5089228  r2 : ffff0001  r1 : 00000000  r0 : 00000000
[  +0.003854] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  +0.004033] Control: 00c5387d  Table: 14424008  DAC: 00000055
[  +0.003645] Process modprobe (pid: 1941, stack limit = 0xd462c188)
[  +0.003479] Stack: (0xd462de34 to 0xd462e000)
[  +0.003240] de20:                                              d6870820 d462de74 c05e15bc
[  +0.006929] de40: d462de64 d462de50 c05e15bc c05dfd34 d5089228 d6870820 d462de8c d462de68
[  +0.007166] de60: c011cad8 c05e15ac d5089228 b6d99000 d5089220 d6870820 d5093f78 00000075
[  +0.007300] de80: d462def4 d462de90 c011f42c c011caa4 d5089220 00000000 d6b34a00 00000000
[  +0.007776] dea0: 00000000 0013f000 00000000 00000000 0000013f d50892c0 d6b34a00 00000075
[  +0.007966] dec0: 00000000 b6d99000 d462def4 0013f000 00000075 00000005 d6b34a00 d6870820
[  +0.008631] dee0: b6d99000 0000013f d462df34 d462def8 c011fa3c c011f100 00000000 00000000
[  +0.008825] df00: 5aa855df 2ad97987 0000076f d6870854 00000005 0013e540 d6b34a00 00000000
[  +0.009310] df20: d462c000 00000000 d462df74 d462df38 c01076dc c011f718 00000002 00000000
[  +0.009775] df40: 00000000 d462df4c 00000005 00000000 00000000 00000002 00000005 0013e540
[  +0.010438] df60: 00000000 d6b34a00 d462dfa4 d462df78 c011d6f0 c0107658 00000002 00000000
[  +0.011373] df80: befaf8ec 00000000 00000000 befaf8ec 000000c0 c000ffc4 00000000 d462dfa8
[  +0.010882] dfa0: c000fe40 c011d65c 00000000 00000000 00000000 0013e540 00000005 00000802
[  +0.011535] dfc0: 00000000 00000000 befaf8ec 000000c0 b6f1c558 befaf7ac 0013e540 befaf72c
[  +0.011882] dfe0: 00000000 befaf51c b6ef40bc b6f086bc 60000010 00000000 00000000 00000000
[  +0.011645] Code: e24cb004 e24dd034 e52de004 e8bd4000 (e5906008)
[  +0.006647] ---[ end trace f7cd89d2fa4b04d1 ]---

@amovitz
Copy link

amovitz commented May 23, 2018

I'm having this issue when streaming video for long periods of time, even if the CPU average usage is below 30%. The 3B+ hard locks some time between 30 minutes to a few hours, consistently. Using the exact same SD card image, it works perfectly stable for over a week on a 3B. It will usually not let the hardware or software watchdog kick it after the hard lock occurs. I've been seeing this behavior since I got the 3B+ on day one.

@JamesH65
Copy link
Contributor

@amovitz What version of kernel are you running? Does rpi-update fix the issue.

@amovitz
Copy link

amovitz commented May 23, 2018

It should be noted, the Pi camera module is not being used on my system. It has been tested with every version of the kernel available - rpi-update has not fixed the problem.

This particular test lasted approximately 45 minutes before hard locking this morning.

Linux Pi-2 4.14.42-v7+ #1114 SMP Mon May 21 16:39:21 BST 2018 armv7l armv7l armv7l GNU/Linux

@JamesH65
Copy link
Contributor

If you drop the max CPU frequency to 1200, does that help?

@amovitz
Copy link

amovitz commented May 23, 2018

I have set arm_freq=1200 and will let it run. I'll report back.

$ sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
600000
$ sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
1200000
$ sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
1200000

@balboah
Copy link
Author

balboah commented May 23, 2018

@amovitz I have that same problem on 3B+ as well without any camera attached, from start it has frozen within a day or maximum 2 days. The recent crash logs are from my Zero W though. I never managed to get a dump from the 3B+, so maybe or maybe not two different issues. And these two rPi's are my first experience, not great :P

@JamesH65
Copy link
Contributor

Almost certainly different problems, the SoC on the Zero and 3B+, along with the different wireless chips means they are sufficiently dissimilar. Unless (!) there is something in your environment that is triggering the fault. We've sold a lot of Pi's which run for years without issue, so this is unusual. First check is power supply, is it sufficient?

@amovitz
Copy link

amovitz commented May 23, 2018

The power supply I'm using is the branded one. we've tried many different power supplies and it will even hard lock when no applications are running.

We don't use any Zeros, so I couldn't tell you if the same happened for some reason. We have extensively tested with the 3B, running for months at a time, and never had an issue until we put the SD card into a 3B+ (and upgraded the boot for it). Same image works perfectly well on a 3B, but the 3B+ will constantly lock up.

So far, it's been a little over 6 hours, and it hasn't locked with the lowered CPU Freq, but we'll see within 24 hours if it's more stable.

From our testing, it feels like it is an issue with either the upgraded SoC or another chip on the board which has changed that the Kernel is not handling properly or that the Broadcom firmware is not interfacing properly with the new chip.

@balboah
Copy link
Author

balboah commented May 24, 2018

@JamesH65 yeah I would have expected more people to react if it was common, I must have hit the jackpot with 2 out of 2. My power is the raspberry branded ones which I'm assuming has the correct rating.

The thing both have in common is that the SDCard brand is Sandisk class 10 and that it is written to by dd on mac.

Zero W

The installed image is not customized in any way except for configuring WiFI, camera module via raspi-config and SSH access.

3B+

This one runs Kubernetes master which averages on 20% cpu.
I also tried a more recent version with rpi-update without luck. Have not yet tried the frequencey limit. I no longer have a camera or camera module active on this one, which still freeze

@amovitz
Copy link

amovitz commented May 24, 2018

About 1 hour and 15 minutes after my last post (Total Uptime: 07:35:46), it hard locked.

@JamesH65
Copy link
Contributor

Hmm, if it had kept running at 1200 I would have thought it was one of the test escapes (i.e. an SoC that passed test but shouldn't have). But I believe they work at 1200. So confused, and not sure what to suggest. Might be worth RMA'ing for a replacement.

@balboah
Copy link
Author

balboah commented May 24, 2018

@amovitz and when it freeze it become burning hot right. sounds very much the same as my 3B+

@JamesH65
Copy link
Contributor

Burning hot is bad. That would indicate a broken SoC I suspect.

@amovitz
Copy link

amovitz commented May 25, 2018

That's my issue, too. It may be a factory defect since we got the first batch on launch day and all of ours exhibit the same behavior (3 boards). It still freezes even when it's clocked at 1200MHz.

I would definitely agree that it is high above ambient temperature. We even have a custom heatsink on it with a fan and it's still very hot after it hard locks. If it will help, I can try to get external thermal readings and thermal images, but I'm pretty certain it's the SoC that's hot.

@JamesH65
Copy link
Contributor

JamesH65 commented May 25, 2018 via email

@zoff99
Copy link

zoff99 commented May 25, 2018

@amovitz i had the same thing with some PIs.
if you just overvoltage (not overclock) it got a bit better in my tests.

add to /boot/config.txt:
over_voltage=5

@amovitz
Copy link

amovitz commented May 29, 2018

Overvoltage did not help, it still hard locks.

@imbashamba
Copy link

setup: pi 3B+, Linux raspberrypi 4.14.44-v7+ #1117. Completely stuck after ~1 hour of playing video. gpu_mem=256, everything other is by default.
Nothin in syslog, but some strange warnings in dmesg at boot time:

[   41.957094] ------------[ cut here ]------------
[   41.957115] WARNING: CPU: 0 PID: 585 at drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c:541 vchiq_prepare_bulk_data+0x4d0/0x6dc
[   41.957118] Modules linked in: cmac bnep hci_uart btbcm serdev bluetooth ecdh_generic brcmfmac brcmutil cfg80211 rfkill snd_bcm2835(C) snd_pcm snd_timer snd uio_pdrv_genirq fixed uio ip_tables x_tables ipv6
[   41.957173] CPU: 0 PID: 585 Comm: info-beamer Tainted: G         C      4.14.44-v7+ #1117
[   41.957176] Hardware name: BCM2835
[   41.957193] [<8010ffd8>] (unwind_backtrace) from [<8010c240>] (show_stack+0x20/0x24)
[   41.957201] [<8010c240>] (show_stack) from [<80785424>] (dump_stack+0xd4/0x118)
[   41.957210] [<80785424>] (dump_stack) from [<8011da4c>] (__warn+0xf8/0x110)
[   41.957217] [<8011da4c>] (__warn) from [<8011db34>] (warn_slowpath_null+0x30/0x38)
[   41.957224] [<8011db34>] (warn_slowpath_null) from [<80666194>] (vchiq_prepare_bulk_data+0x4d0/0x6dc)
[   41.957233] [<80666194>] (vchiq_prepare_bulk_data) from [<8065e078>] (vchiq_bulk_transfer+0x2e4/0x568)
[   41.957241] [<8065e078>] (vchiq_bulk_transfer) from [<80663aec>] (vchiq_ioctl+0x1344/0x1a14)
[   41.957250] [<80663aec>] (vchiq_ioctl) from [<8029de50>] (do_vfs_ioctl+0xac/0x7c4)
[   41.957257] [<8029de50>] (do_vfs_ioctl) from [<8029e5ac>] (SyS_ioctl+0x44/0x6c)
[   41.957266] [<8029e5ac>] (SyS_ioctl) from [<80108060>] (ret_fast_syscall+0x0/0x28)
[   41.957269] ---[ end trace 0dbf65047004fe73 ]---

@balboah
Copy link
Author

balboah commented Jun 2, 2018

So I've gotten a 2nd Zero W and it seems that at least for that model, it's a hardware issue.
Running the same camera module and sdcard installation works fine without any issues (for at least 30 minutes so far).

I noticed one difference on the hardware layout, the "H" marking on the chip closest to the camera module connector. Not sure if it helps with anything but here are photos of the two:

Broken one

img_0509

Working one

img_0512

@amovitz
Copy link

amovitz commented Aug 7, 2018

@balboah Are you still having issues after the latest kernel update?

@usedbytes
Copy link

I'm seeing this (or something similar) on the latest kernel (and whatever kernel I was running before I upgraded - still 4.14). It's a Pi Zero W.

raspistill works fine, and will happily capture JPEG and sit with the camera preview running for dozens of seconds. On the other hand raspivid (or RPi-Cam-Web-Interface) will immediately panic the kernel.

The reported process in the Oops and the backtrace appears to be random, though this one does show vc.ril.video_en. Maybe the video codec is trashing random bits of memory somehow?

I don't have a serial port hooked up, and it normally crashes before the Oops makes it onto the SSH session, so gathering useful crash dumps is a bit hard.

[  421.582317] Unable to handle kernel paging request at virtual address 00001038
[  421.589872] pgd = d3fc8000
[  421.592639] [00001038] *pgd=0d7c8831, *pte=00000000, *ppte=00000000
[  421.599216] Internal error: Oops: 17 [#1] ARM
[  421.603660] Modules linked in: fuse rfcomm cmac bnep hci_uart btbcm serdev bluetooth ecdh_generic evdev spidev brcmfmac brcmutil cfg80211 rfkill snd_bcm2835(C) gpio_keys snd_pcm snd_timer snd spi_bcm2835 fixed uio_pdrv_genirq uio hid_sony ff_memless i2c_dev ip_tables x_tables ipv6
[  421.628996] CPU: 0 PID: 1000 Comm: vc.ril.video_en Tainted: G         C      4.14.67+ #1139
[  421.637475] Hardware name: BCM2835
[  421.640930] task: cd7f3780 task.stack: cd454000
[  421.645556] PC is at grab_cache_page_write_begin+0x20/0x3c
[  421.651146] LR is at ext4_da_write_begin+0xb8/0x438
[  421.656096] pc : [<c00f5020>]    lr : [<c02025b0>]    psr: 60000013
[  421.662453] sp : cd455d40  ip : cd455d58  fp : cd455d54
[  421.667751] r10: c01fbcc4  r9 : cd455df4  r8 : 00001000
[  421.673053] r7 : 00001000  r6 : c8903638  r5 : d6ec81e0  r4 : d7d697a8
[  421.679675] r3 : d7fc3320  r2 : 0000000e  r1 : 000000f2  r0 : 00001000
[  421.686298] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  421.693539] Control: 00c5387d  Table: 13fc8008  DAC: 00000055
[  421.699369] Process vc.ril.video_en (pid: 1000, stack limit = 0xcd454188)
[  421.706259] Stack: (0xcd455d40 to 0xcd456000)
[  421.710688] 5d40: d7fc3320 d7d697a8 cd455dc4 cd455d58 c02025b0 c00f500c 00000000 c8903638

Message from syslogd@minimouse at Sep  3 21:48:04 ...
 kernel:[  421.599216] Internal error: Oops: 17 [#1] ARM
[  421.718991] 5d60: 00001000 00001000 000f3000 00000000 00001000 00000000 000000f2 00001000
[  421.727296] 5d80: d7d69784 00000000 000f2000 00000000 d689fd20 00000000 c0204a60 00000000
[  421.735600] 5da0: 00001000 c8903714 cd455ef0 00001000 00001000 c065f388 cd455e24 cd455dc8
[  421.743903] 5dc0: c00f51d4 c0202504 00001000 00000000 cd455df0 cd455df4 c8903638 cd454000
[  421.752206] 5de0: 00008000 d689fd20 000f2000 00000000 d7d69784 00000000 5b8dac14 00000000

@balboah
Copy link
Author

balboah commented Sep 4, 2018

@amovitz sorry for the late reply. After replacing the hardware I am no longer experiencing the problem (still the same sdcard) and I've stopped using the broken one. Maybe there are faulty hardware or some small differences which cause the bug to trigger

@usedbytes
Copy link

I did some experiments. On a different Pi Zero, my card + camera + power supply worked fine. That seems to point to an issue with my actual hardware, supporting @balboah's theory.

Another example of an Oops when running the camera below:

[  153.531076] NOHZ: local_softirq_pending 40
[  278.981974] NOHZ: local_softirq_pending 40
[  282.294591] NOHZ: local_softirq_pending 40
[  282.716442] ------------[ cut here ]------------
[  282.721176] kernel BUG at Returning to usermode but unexpected PSR bits
set?:5!
[  282.728604] Internal error: Oops - BUG: 0 [#1] ARM
[  282.733469] Modules linked in: fuse rfcomm cmac bnep hci_uart btbcm serdev
bluetooth ecdh_generic evdev spidev brcmfmac brcmutil gpio_keys snd_bcm2835(C)
cfg80211 snd_pcm snd_timer rfkill snd i2c_bcm2835 spi_bcm2835 uio_pdrv_genirq
uio fixed hid_sony ff_memless i2c_dev ip_tables x_tables ipv6
[  282.759865] CPU: 0 PID: 596 Comm: apache2 Tainted: G         C
4.14.67+ #1139
[  282.767548] Hardware name: BCM2835
[  282.770999] task: cc858000 task.stack: cc89a000
[  282.775623] PC is at no_work_pending+0x30/0x34
[  282.780140] LR is at 0xbeb31b40
[  282.783329] pc : [<c000fe54>]    lr : [<beb31b40>]    psr: 20000013
[  282.789685] sp : cc89bfa8  ip : cc89bfa8  fp : 00000000
[  282.794984] r10: 00000000  r9 : cc89a000  r8 : c000ff64
[  282.800282] r7 : 0000008c  r6 : b5a621b4  r5 : b5a620a0  r4 : 00000000
[  282.806903] r3 : c093d414  r2 : cc89bfe4  r1 : b60bb98c  r0 : 00000000
[  282.813526] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment
user
[  282.820768] Control: 00c5387d  Table: 0c8b8008  DAC: 00000055
[  282.826598] Process apache2 (pid: 596, stack limit = 0xcc89a188)
[  282.832694] Stack: (0xcc89bfa8 to 0xcc89c000)
[  282.837119] bfa0:                   00000000 b5a620a0 0000000b 00000000
00002518 beb31b40
[  282.845421] bfc0: 00000000 b5a620a0 b5a621b4 0000008c b60bb954 b6f6bce8
00000000 beb3650c
[  282.853724] bfe0: b623e470 beb31b40 b60bb98c b6e16ba8 20000010 0000000b
00000000 00000000
[  282.862041] Code: e9527fff e1a00000 e28dd048 e1b0f00e (e7f001f2) 

Pretty annoyed that this seems to be a HW issue, as this zero is now deeply embedded in the project.

@usedbytes
Copy link

With further fiddling, and following @zoff99 and this forum thread: https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=212777, I resolved my issue by over-volting.

Seems like Broadcom/RPi shipped a batch or two of marginal chips.

@avanc
Copy link

avanc commented Sep 30, 2019

I can confirm the very same problem with my Raspberry Pi Zero W (Revision with H*) an dsolved ith with arm_freq=950.

It would be interesting to get to know what the differences between the two HW revisions are!

@avanc
Copy link

avanc commented Oct 1, 2019

I was to early: 950MHz reduces the freezes, but they still occur.

@eldad-a Had all six Raspi Zeros the H*?

@eldad-a
Copy link

eldad-a commented Oct 2, 2019

I was to early: 950MHz reduces the freezes, but they still occur.

@eldad-a Had all six Raspi Zeros the H*?

@avanc
Sorry this is not working for you :-/
The machines are currently isolated in terms of light, so I cannot check the H*;
I should be able to so in the coming weeks.
Is there other information I can provide?
Anything that's accessible through SSH should work.

NB: I have it set at arm_freq=600
(not 950)

@eldad-a
Copy link

eldad-a commented Oct 7, 2019

I was to early: 950MHz reduces the freezes, but they still occur.

@eldad-a Had all six Raspi Zeros the H*?

@avanc Hi again,
Just wanted to let you know that I have 5 Pi Zero W having the H* mark; I have 4 more which are currently visually inaccessible; will check them in a couple of weeks when the experiment is completed. All 9 were purchased from the same supplier (Adafruit) in the past six months.

Hope this is of any help

@avanc
Copy link

avanc commented Oct 8, 2019

@eldad-a Thanks for the update.

I also got freezes with 600MHz. So it seems the device is really broken. As last try, I will install Rasbian and do some tests.

@JamesH65
Copy link
Contributor

JamesH65 commented Oct 8, 2019

Hi all, sorry about the delay in replying. Can anyone seeing this issue who hasn't tried it, try a core voltage increase to see if this changes anything?

In config.txt, add the line

over_voltage=1

If no help, slightly larger numbers might help.

@avanc
Copy link

avanc commented Nov 3, 2019

@JamesH65 No luck. I tried over_voltage=1, but my Raspberry Pi still hangs after some time (approx. 30 min).
So I guess its really a HW issue.

@JamesH65
Copy link
Contributor

JamesH65 commented Nov 4, 2019

Did you try larger numbers for over_voltage?

@avanc
Copy link

avanc commented Nov 4, 2019

After reading a little more about over_voltage, I'm confused:
According to https://www.raspberrypi.org/documentation/configuration/config-txt/overclocking.md, the default value for the Raspberry Pi Zero W is already over_voltage=6.

Shall I set it to 7? In that case I have to set force_turbo and loose warranty.

@popcornmix
Copy link
Collaborator

over_voltage is added to the default voltage (1.35V for turbo mode on Pi0).
You should be able to set it to 1 or 2 to get 1.375V or 1.4V.

@maciek01
Copy link

maciek01 commented Feb 3, 2020

the same behavior here on stretch RPIZW when streaming via gst-launch-1.0 - both via wlan0 and ppp0 (modem)

UPDATE:

before i set over voltage to 2 RPI was crashing consistently after 15 mins,
Now with over voltage 2 its been a full hour and still going. This solves it for me. i just need the stream to be up for up to 25 mins at a time.

thanks!

@cmptscpeacock
Copy link

also set my Ri0 W to over_voltage=1 after crashing after 15 mins and now it's been running over an hour no issue.

Using streameye

@MertDalbudak
Copy link

MertDalbudak commented Jun 17, 2020

Also having the h* sign near my camera port and also getting kernel panic. I am using a 1.3 Raspberry Pi Camera module. I get crashes after few minutes and lost wifi connection.

@kbharadwaj93
Copy link

I have the RPi Zero W with the H*. I got it working well (so far) with below added to config file.
arm_freq=950

force_turbo=1
over_voltage=4

@wollew
Copy link

wollew commented Apr 12, 2021

Ok, I had a PI Zero W ("model H") that, after fresh install of Raspbian buster, consistently froze when trying to apt-get update && apt-upgrade via WiFi. Tried several power supplies, reflashing images, nothing worked.

Setting

arm_freq=950
force_turbo=1
over_voltage=4

in config.txt fixed the problem for me, too.

@Krautmaster
Copy link

Krautmaster commented Apr 25, 2021

got a similar problem. I just setup my pi zero w with the latest raspian image. Now it gets stuck once streaming between minutes and hours. Any ideas?

Apr 25 08:56:18 raspberrypi rngd[271]: stats: FIPS 140-2(2001-10-10) Runs: 0
Apr 25 08:56:18 raspberrypi rngd[271]: stats: FIPS 140-2(2001-10-10) Long run: 0
Apr 25 08:56:18 raspberrypi rngd[271]: stats: FIPS 140-2(2001-10-10) Continuous run: 0
Apr 25 08:56:18 raspberrypi rngd[271]: stats: HRNG source speed: (min=119.300; avg=410.195; max=980.238)Kibits/s
Apr 25 08:56:18 raspberrypi rngd[271]: stats: FIPS tests speed: (min=1.314; avg=4.723; max=8.871)Mibits/s
Apr 25 08:56:18 raspberrypi rngd[271]: stats: Lowest ready-buffers level: 2
Apr 25 08:56:18 raspberrypi rngd[271]: stats: Entropy starvations: 0
Apr 25 08:56:18 raspberrypi rngd[271]: stats: Time spent starving for entropy: (min=0; avg=0.000; max=0)us
Apr 25 09:17:01 raspberrypi CRON[1689]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Apr 25 09:40:44 raspberrypi kernel: [53089.270500] ------------[ cut here ]------------
Apr 25 09:40:44 raspberrypi kernel: [53089.270610] WARNING: CPU: 0 PID: 1699 at kernel/time/timer.c:909 add_timer+0x1b0/0x1f4
Apr 25 09:40:44 raspberrypi kernel: [53089.270618] Modules linked in: 8021q garp stp llc brcmfmac brcmutil sha256_generic libsha256 raspberrypi_hwmon snd_soc_rpi_simple_soundcard cfg80211 rfkill bcm2835_codec(C) v4l2_mem2mem bcm2835_v4l2(C) bcm2835_isp(C) bcm2835_mmal_vchiq(C) videobuf2_vmalloc videobuf2_dma_contig videobuf2_memops snd_soc_bcm2835_i2s videobuf2_v4l2 videobuf2_common regmap_mmio snd_soc_pcm5102a videodev snd_soc_core mc vc_sm_cma(C) snd_compress snd_pcm_dmaengine snd_pcm snd_timer snd uio_pdrv_genirq uio fixed ip_tables x_tables ipv6
Apr 25 09:40:44 raspberrypi kernel: [53089.270831] CPU: 0 PID: 1699 Comm: kworker/u2:0 Tainted: G C 5.10.17+ #1403
Apr 25 09:40:44 raspberrypi kernel: [53089.270838] Hardware name: BCM2835
Apr 25 09:40:44 raspberrypi kernel: [53089.271380] Workqueue: brcmf_wq/mmc1:0001:1 brcmf_sdio_dataworker [brcmfmac]
Apr 25 09:40:44 raspberrypi kernel: [53089.271400] Backtrace:
Apr 25 09:40:44 raspberrypi kernel: [53089.271443] [] (dump_backtrace) from [] (show_stack+0x20/0x24)
Apr 25 09:40:44 raspberrypi kernel: [53089.271460] r7:0000038d r6:00000009 r5:c0080e18 r4:c0a637c4
Apr 25 09:40:44 raspberrypi kernel: [53089.271488] [] (show_stack) from [] (dump_stack+0x28/0x30)
Apr 25 09:40:44 raspberrypi kernel: [53089.271521] [] (dump_stack) from [] (__warn+0xe8/0x110)
Apr 25 09:40:44 raspberrypi kernel: [53089.271532] r5:c0080e18 r4:c0a60400
Apr 25 09:40:44 raspberrypi kernel: [53089.271555] [] (__warn) from [] (warn_slowpath_fmt+0x68/0xd8)
Apr 25 09:40:44 raspberrypi kernel: [53089.271568] r7:00000009 r6:c0080e18 r5:0000038d r4:c0a60400
Apr 25 09:40:44 raspberrypi kernel: [53089.271599] [] (warn_slowpath_fmt) from [] (add_timer+0x1b0/0x1f4)
Apr 25 09:40:44 raspberrypi kernel: [53089.271616] r9:00508ca2 r8:00000001 r7:bf5c57c0 r6:c0ba5028 r5:00000001 r4:c37d4de4
Apr 25 09:40:44 raspberrypi kernel: [53089.271877] [] (add_timer) from [] (brcmf_sdio_wd_timer+0x70/0x8c [brcmfmac])
Apr 25 09:40:44 raspberrypi kernel: [53089.271897] r9:00000000 r8:00000001 r7:bf5c57c0 r6:c0ba5028 r5:00000001 r4:c37d4c00
Apr 25 09:40:44 raspberrypi kernel: [53089.272299] [] (brcmf_sdio_wd_timer [brcmfmac]) from [] (brcmf_sdio_bus_sleep+0x104/0x1e0 [brcmfmac])
Apr 25 09:40:44 raspberrypi kernel: [53089.272320] r5:00000000 r4:c37d4c00
Apr 25 09:40:44 raspberrypi kernel: [53089.272704] [] (brcmf_sdio_bus_sleep [brcmfmac]) from [] (brcmf_sdio_dataworker+0x1b8/0x2480 [brcmfmac])
Apr 25 09:40:44 raspberrypi kernel: [53089.272725] r8:c37d4e10 r7:c18eb900 r6:c37d4c00 r5:c3519400 r4:18002000
Apr 25 09:40:44 raspberrypi kernel: [53089.272952] [] (brcmf_sdio_dataworker [brcmfmac]) from [] (process_one_work+0x208/0x4e0)
Apr 25 09:40:44 raspberrypi kernel: [53089.272972] r10:c37d4e14 r9:00000000 r8:00000000 r7:c18eb900 r6:00000040 r5:c41d2ae0
Apr 25 09:40:44 raspberrypi kernel: [53089.272980] r4:c37d4e10
Apr 25 09:40:44 raspberrypi kernel: [53089.272996] [] (process_one_work) from [] (worker_thread+0x34/0x594)
Apr 25 09:40:44 raspberrypi kernel: [53089.273011] r10:c1045200 r9:00000088 r8:c0c19e40 r7:c1045214 r6:c41d2af4 r5:c1045200
Apr 25 09:40:44 raspberrypi kernel: [53089.273019] r4:c41d2ae0
Apr 25 09:40:44 raspberrypi kernel: [53089.273037] [] (worker_thread) from [] (kthread+0x148/0x15c)
Apr 25 09:40:44 raspberrypi kernel: [53089.273053] r10:cc121e88 r9:c41d2ae0 r8:c003dee4 r7:c5352000 r6:00000000 r5:c53ba7e0
Apr 25 09:40:44 raspberrypi kernel: [53089.273062] r4:c51ef2c0 r3:00000000
Apr 25 09:40:44 raspberrypi kernel: [53089.273079] [] (kthread) from [] (ret_from_fork+0x14/0x28)
Apr 25 09:40:44 raspberrypi kernel: [53089.273087] Exception stack(0xc5353fb0 to 0xc5353ff8)
Apr 25 09:40:44 raspberrypi kernel: [53089.273098] 3fa0: 00000000 00000000 00000000 00000000
Apr 25 09:40:44 raspberrypi kernel: [53089.273111] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Apr 25 09:40:44 raspberrypi kernel: [53089.273121] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
Apr 25 09:40:44 raspberrypi kernel: [53089.273138] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c0043700
Apr 25 09:40:44 raspberrypi kernel: [53089.273145] r4:c53ba7e0
Apr 25 09:40:44 raspberrypi kernel: [53089.273154] ---[ end trace 43d52116de660cbd ]---
Apr 25 09:40:44 raspberrypi kernel: [53089.273177] 8<--- cut here ---
Apr 25 09:40:44 raspberrypi kernel: [53089.275021] Unable to handle kernel NULL pointer dereference at virtual address 00000001
Apr 25 09:40:44 raspberrypi kernel: [53089.279226] pgd = 949e2389
Apr 25 09:40:44 raspberrypi kernel: [53089.281398] [00000001] *pgd=00000000
Apr 25 09:40:44 raspberrypi kernel: [53089.283512] Internal error: Oops: 5 [#1] ARM
Apr 25 09:40:44 raspberrypi kernel: [53089.285464] Modules linked in: 8021q garp stp llc brcmfmac brcmutil sha256_generic libsha256 raspberrypi_hwmon snd_soc_rpi_simple_soundcard cfg80211 rfkill bcm2835_codec(C) v4l2_mem2mem bcm2835_v4l2(C) bcm2835_isp(C) bcm2835_mmal_vchiq(C) videobuf2_vmalloc videobuf2_dma_contig videobuf2_memops snd_soc_bcm2835_i2s videobuf2_v4l2 videobuf2_common regmap_mmio snd_soc_pcm5102a videodev snd_soc_core mc vc_sm_cma(C) snd_compress snd_pcm_dmaengine snd_pcm snd_timer snd uio_pdrv_genirq uio fixed ip_tables x_tables ipv6
Apr 25 09:40:44 raspberrypi kernel: [53089.305653] CPU: 0 PID: 1699 Comm: kworker/u2:0 Tainted: G WC 5.10.17+ #1403
Apr 25 09:40:44 raspberrypi kernel: [53089.311896] Hardware name: BCM2835
Apr 25 09:40:44 raspberrypi kernel: [53089.317408] Workqueue: brcmf_wq/mmc1:0001:1 brcmf_sdio_dataworker [brcmfmac]
Apr 25 09:40:44 raspberrypi kernel: [53089.324120] PC is at add_timer+0xf4/0x1f4
Apr 25 09:40:44 raspberrypi kernel: [53089.327803] LR is at add_timer+0xac/0x1f4
Apr 25 09:40:44 raspberrypi kernel: [53089.331207] pc : [] lr : [] psr: 38000093
Apr 25 09:40:44 raspberrypi kernel: [53089.335017] sp : c5353da0 ip : c5353da0 fp : c5353dcc
Apr 25 09:40:44 raspberrypi kernel: [53089.338771] r10: c37d4e10 r9 : 00508ca2 r8 : 00000001
Apr 25 09:40:44 raspberrypi kernel: [53089.341896] r7 : bf5c57c0 r6 : c0ba5028 r5 : c0c1afc0 r4 : c37d4de4
Apr 25 09:40:44 raspberrypi kernel: [53089.344795] r3 : 08c00000 r2 : 00000000 r1 : bf5c57c0 r0 : 00000000
Apr 25 09:40:44 raspberrypi kernel: [53089.347083] Flags: nzCV IRQs off FIQs on Mode SVC_32 ISA ARM Segment user
Apr 25 09:40:44 raspberrypi kernel: [53089.350007] Control: 00c5387d Table: 053bc008 DAC: 00000055
Apr 25 09:40:44 raspberrypi kernel: [53089.352689] Process kworker/u2:0 (pid: 1699, stack limit = 0x2557b9fe)
Apr 25 09:40:44 raspberrypi kernel: [53089.356928] Stack: (0xc5353da0 to 0xc5354000)
Apr 25 09:40:44 raspberrypi kernel: [53089.360713] 3da0: 48000013 b9b3d778 c37d4c00 00000001 c0ba5028 bf5c57c0 00000001 00000000
Apr 25 09:40:44 raspberrypi kernel: [53089.366712] 3dc0: c5353de4 c5353dd0 bf5b06b4 c0080c74 c37d4c00 00000000 c5353e1c c5353de8
Apr 25 09:40:44 raspberrypi kernel: [53089.373369] 3de0: bf5b07d4 bf5b0650 bf5c57b8 00000040 00000000 b9b3d778 00000000 18002000
Apr 25 09:40:44 raspberrypi kernel: [53089.379349] 3e00: c3519400 c37d4c00 c18eb900 c37d4e10 c5353f0c c5353e20 bf5b1350 bf5b06dc
Apr 25 09:40:44 raspberrypi kernel: [53089.384586] 3e20: 00000000 c0ba5028 00000000 c0871300 c5353e74 c5353e40 c00144a0 c0013658
Apr 25 09:40:44 raspberrypi kernel: [53089.389969] 3e40: c34d1400 00000000 c0871300 c5353f2c 00000014 c004c894 c37d4c10 c0871300
Apr 25 09:40:44 raspberrypi kernel: [53089.397545] 3e60: c0871300 c29e3a80 c5353e9c c5353e78 c37d4c00 00000000 00000000 c1bee4a0
Apr 25 09:40:44 raspberrypi kernel: [53089.404551] 3e80: c5353eac c5353e90 c0013674 c001442c 00000000 c0ba5028 00000040 c003df18
Apr 25 09:40:44 raspberrypi kernel: [53089.412711] 3ea0: c5353ee4 c5353eb0 c00144a0 c0013658 c35f6018 00000000 c003df18 c5353f74
Apr 25 09:40:44 raspberrypi kernel: [53089.419864] 3ec0: c0c252d8 c003dbf8 00000040 c003df18 00000000 00000000 c5353f0c b9b3d778
Apr 25 09:40:44 raspberrypi kernel: [53089.426195] 3ee0: c00f5f64 c37d4e10 c41d2ae0 00000040 c18eb900 00000000 00000000 c37d4e14
Apr 25 09:40:44 raspberrypi kernel: [53089.432913] 3f00: c5353f44 c5353f10 c003dc0c bf5b11a4 c003e17c 00000001 c5353f44 c41d2ae0
Apr 25 09:40:44 raspberrypi kernel: [53089.441956] 3f20: c1045200 c41d2af4 c1045214 c0c19e40 00000088 c1045200 c5353f74 c5353f48
Apr 25 09:40:44 raspberrypi kernel: [53089.450308] 3f40: c003df18 c003da10 00000000 c51ef2c0 c53ba7e0 00000000 c5352000 c003dee4
Apr 25 09:40:44 raspberrypi kernel: [53089.458610] 3f60: c41d2ae0 cc121e88 c5353fac c5353f78 c0043848 c003def0 c51ef2e0 c51ef2e0
Apr 25 09:40:44 raspberrypi kernel: [53089.464972] 3f80: c002fc50 c53ba7e0 c0043700 00000000 00000000 00000000 00000000 00000000
Apr 25 09:40:44 raspberrypi kernel: [53089.471373] 3fa0: 00000000 c5353fb0 c00082ec c004370c 00000000 00000000 00000000 00000000
Apr 25 09:40:44 raspberrypi kernel: [53089.480390] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Apr 25 09:40:44 raspberrypi kernel: [53089.487612] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
Apr 25 09:40:44 raspberrypi kernel: [53089.497010] Backtrace:
Apr 25 09:40:44 raspberrypi kernel: [53089.500205] [] (add_timer) from [] (brcmf_sdio_wd_timer+0x70/0x8c [brcmfmac])
Apr 25 09:40:44 raspberrypi kernel: [53089.506399] r9:00000000 r8:00000001 r7:bf5c57c0 r6:c0ba5028 r5:00000001 r4:c37d4c00
Apr 25 09:40:44 raspberrypi kernel: [53089.513649] [] (brcmf_sdio_wd_timer [brcmfmac]) from [] (brcmf_sdio_bus_sleep+0x104/0x1e0 [brcmfmac])
Apr 25 09:40:44 raspberrypi kernel: [53089.522405] r5:00000000 r4:c37d4c00
Apr 25 09:40:44 raspberrypi kernel: [53089.526811] [] (brcmf_sdio_bus_sleep [brcmfmac]) from [] (brcmf_sdio_dataworker+0x1b8/0x2480 [brcmfmac])
Apr 25 09:40:44 raspberrypi kernel: [53089.535827] r8:c37d4e10 r7:c18eb900 r6:c37d4c00 r5:c3519400 r4:18002000
Apr 25 09:40:44 raspberrypi kernel: [53089.539016] [] (brcmf_sdio_dataworker [brcmfmac]) from [] (process_one_work+0x208/0x4e0)
Apr 25 09:40:44 raspberrypi kernel: [53089.545067] r10:c37d4e14 r9:00000000 r8:00000000 r7:c18eb900 r6:00000040 r5:c41d2ae0
Apr 25 09:40:44 raspberrypi kernel: [53089.551150] r4:c37d4e10
Apr 25 09:40:44 raspberrypi kernel: [53089.554712] [] (process_one_work) from [] (worker_thread+0x34/0x594)
Apr 25 09:40:44 raspberrypi kernel: [53089.562914] r10:c1045200 r9:00000088 r8:c0c19e40 r7:c1045214 r6:c41d2af4 r5:c1045200
Apr 25 09:40:44 raspberrypi kernel: [53089.570326] r4:c41d2ae0
Apr 25 09:40:44 raspberrypi kernel: [53089.574653] [] (worker_thread) from [] (kthread+0x148/0x15c)
Apr 25 09:40:44 raspberrypi kernel: [53089.580626] r10:cc121e88 r9:c41d2ae0 r8:c003dee4 r7:c5352000 r6:00000000 r5:c53ba7e0
Apr 25 09:40:44 raspberrypi kernel: [53089.586262] r4:c51ef2c0 r3:00000000
Apr 25 09:40:44 raspberrypi kernel: [53089.589183] [] (kthread) from [] (ret_from_fork+0x14/0x28)
Apr 25 09:40:44 raspberrypi kernel: [53089.592397] Exception stack(0xc5353fb0 to 0xc5353ff8)
Apr 25 09:40:44 raspberrypi kernel: [53089.596710] 3fa0: 00000000 00000000 00000000 00000000
Apr 25 09:40:44 raspberrypi kernel: [53089.603960] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Apr 25 09:40:44 raspberrypi kernel: [53089.611908] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
Apr 25 09:40:44 raspberrypi kernel: [53089.616485] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c0043700
Apr 25 09:40:44 raspberrypi kernel: [53089.621297] r4:c53ba7e0
Apr 25 09:40:44 raspberrypi kernel: [53089.624324] Code: e1a039a3 e1a03983 e1833002 e5843010 (e5982000)
Apr 25 09:40:44 raspberrypi kernel: [53089.626815] ---[ end trace 43d52116de660cbe ]---

@Krautmaster
Copy link

after half a day with
arm_freq=950
force_turbo=1
over_voltage=4

it seems to be more stable. So far no freeze.

@Esser50K
Copy link

Esser50K commented May 7, 2021

I've also just had these issues when trying to overclock the raspberrypi zero. So far the best experience is keeping everything default.
So arm_freq is 1000 by default. Also over_voltage on the pi0 is 6 by default, I guess anything under that is under_voltaging it.

One can check the defaults on this page: https://www.raspberrypi.org/documentation/configuration/config-txt/overclocking.md

@Krautmaster
Copy link

i think the issue is more likely the turbo mode or frequency switching (maybe even idle) than the overvolt itself.

My freezes are completely gone with
arm_freq=950
force_turbo=1
over_voltage=4

which should be a light undervolt as per the defaults, but compared to stock its 100% stable if i do longer streaming sessions and my PI zero runs 24/7.
That leads to the fact that forcing the turbo might solve it after all.

@julled
Copy link

julled commented May 29, 2021

i am also having this problem when using mavlink-router with a pi zero. With a CM4 based board the issue doesnt exist.

for me

force_turbo=1
over_voltage=4

works to prevent it.

kernel panic:

[11648.304339] 8<--- cut here ---
[11648.310466] Unable to handle kernel paging request at virtual address 6000009b
[11648.320179] pgd = 6f2a4fb3
[11648.325266] [6000009b] *pgd=00000000
[11648.331185] Internal error: Oops: 5 [#1] ARM
[11648.337616] Modules linked in: aes_arm aes_generic cmac bnep hci_uart btbcm bluetooth ecdh_generic ecc libaes 8021q garp stp llc brcmfmac brcmutil sha256_generic libsha256 cdc_ac
m cfg80211 rfkill raspberrypi_hwmon bcm2835_codec(C) snd_bcm2835(C) bcm2835_v4l2(C) bcm2835_isp(C) v4l2_mem2mem bcm2835_mmal_vchiq(C) videobuf2_dma_contig videobuf2_vmalloc videobuf
2_memops snd_pcm videobuf2_v4l2 videobuf2_common snd_timer snd videodev mc vc_sm_cma(C) fixed uio_pdrv_genirq uio ip_tables x_tables ipv6
[11648.401750] CPU: 0 PID: 4306 Comm: mavlink-routerd Tainted: G         C        5.10.17+ #1403
[11648.417653] Hardware name: BCM2835
[11648.425166] PC is at __xfrm_policy_check+0x18/0x6e4
[11648.432602] LR is at ip_protocol_deliver_rcu+0xe4/0x250
[11648.440328] pc : [<c0802920>]    lr : [<c078ab78>]    psr: 60000013
[11648.450498] sp : c29d98b8  ip : c29d9988  fp : c29d9984
[11648.459274] r10: 0000012c  r9 : c29d9adc  r8 : c0cbcae8
[11648.466835] r7 : 00000000  r6 : c0ba6a44  r5 : c29ed180  r4 : c0cc467c
[11648.475700] r3 : 60000093  r2 : 60000093  r1 : 00000000  r0 : 00000000
[11648.484716] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[11648.494220] Control: 00c5387d  Table: 05310008  DAC: 00000055
[11648.502283] Process mavlink-routerd (pid: 4306, stack limit = 0xb68bea8e)
[11648.511465] Stack: (0xc29d98b8 to 0xc29da000)
[11648.518114] 98a0:                                                       c4250424 00000011
[11648.530677] 98c0: c0cbcae8 00000001 c0ba7294 c4aa0c80 c29d98ec c29d98e0 c06f69f4 c01dc6bc
[11648.543533] 98e0: c29d990c c29d98f0 c0013674 c001442c 00000000 c0ba5028 c0ba6a44 c078ac50
[11648.560674] 9900: c29d9944 c29d9910 c00144a0 c0013658 c00144a0 00000000 c078ac50 c29d99b4
[11648.576166] 9920: c0c252d8 c0028028 c0ba6a44 c078ac50 c0cbcae8 c29d9adc c29d996c c29d9948
[11648.592663] 9940: c00f5f64 c00f72b8 000001ff ffffe000 c0ba6a44 00000000 c0cbcae8 c0cc467c
[11648.609758] 9960: c29ed180 c0ba6a44 00000000 c0cbcae8 c29d9adc 0000012c c29d99b4 c29d9988
[11648.628999] 9980: c078ab78 c0802914 00000a98 fa3f2200 c29d99bc c29ed180 c0ba5028 c0cbcae8
[11648.646278] 99a0: c29ed180 00000000 c29d99c4 c29d99b8 c078ad40 c078aaa0 c29d9a04 c29d99c8
[11648.665975] 99c0: c078adcc c078acf0 c005de3c c29d9a8c c0c252d8 c005ddb4 c29d9a30 c078a384
[11648.680787] 99e0: 00000001 fa3f2200 c29ed180 c104a000 c0cbcae8 c29ed180 c29d9a24 c29d9a08
[11648.700955] 9a00: c078a3a0 c078ad58 c0cbcae8 c0ba5028 c104a000 c29ed180 c29d9a64 c29d9a28
[11648.722792] 9a20: c078af14 c078a310 00000000 c0ba5028 c0cd6f68 fa3f2200 c29d9a7c c0ba5028
[11648.741906] 9a40: c104a000 fa3f2200 c0ba5028 c078ae58 c0cd6f68 00000040 c29d9a8c c29d9a68
[11648.762845] 9a60: c071293c c078ae64 00000000 c29ed180 c0ba7328 fa3f2200 c0cd6fb0 00000000
[11648.781717] 9a80: c29d9aa4 c29d9a90 c071299c c07128e4 c0cd6fb0 00000000 c29d9acc c29d9aa8
[11648.802564] 9aa0: c0712b18 c0712988 c0cd6fb0 00000001 00000000 c0cd6f60 00000040 c29d9adc
[11648.818221] 9ac0: c29d9b1c c29d9ad0 c07143e8 c0712ab8 c0c252d8 001150e8 00000000 c29d9adc
[11648.838507] 9ae0: c29d9adc c29d9ae4 c29d9ae4 fa3f2200 c00f5f64 c0cee760 00000004 00000003
[11648.858342] 9b00: ffffe000 0000003a 00000101 00000008 c29d9b6c c29d9b20 c00094b0 c0714294
[11648.876956] 9b20: c29d9b64 c29d9b30 c00144a0 00400100 00000000 001150e7 0000000a 0000000c
[11648.898024] 9b40: c29d9ba0 60000093 ffffe000 00000000 c341c878 0000003a 00000010 c0ba5028
[11648.918352] 9b60: c29d9b84 c29d9b70 c0027f70 c00093a4 000001ff ffffe000 c29d9b9c c29d9b88
[11648.938737] 9b80: c0028084 c0027f20 c29ed180 00000000 c29d9be4 c29d9ba0 c078e288 c0027fb4
[11648.955848] 9ba0: c29d9bcc c29d9bb0 c104a160 c104a000 0100007f fa3f2200 c0ba5028 c29ed180
[11648.974883] 9bc0: c4bd0600 c0cbcae8 c0cbcae8 0000ffff 00000000 c104a000 c29d9c24 c29d9be8
[11648.993073] 9be0: c078f3c8 c078e0ec c0ba5028 c0790ecc 0ca8a7a4 fa3f2200 c29d9c2c c4bd0600
[11649.011799] 9c00: c4bd0600 c29ed180 00000000 c0cbcae8 0ca8a7a4 00000000 c29d9c44 c29d9c28
[11649.032668] 9c20: c078f56c c078f2f8 c29ed180 c0cbcae8 c0ba5028 c4bd0600 c29d9c9c c29d9c48
[11649.053062] 9c40: c0790ef4 c078f544 c29d9c9c 00000000 c0790480 c078dacc c29ed180 c29d9d80
[11649.073067] 9c60: c29d9cac c29d9c70 c0791770 fa3f2200 c2867c00 c29ed180 c0cbcae8 c4bd0600
[11649.090988] 9c80: c4250424 c29d9db0 00000011 c4bd076c c29d9cbc c29d9ca0 c07905b8 c0790e44
[11649.109726] 9ca0: c29ed180 c0cbcae8 c4bd0600 c4250424 c29d9cd4 c29d9cc0 c0791870 c079057c
[11649.127194] 9cc0: c29ed180 00000018 c29d9d04 c29d9cd8 c07c2abc c0791858 fa3f2200 c4bd0600
[11649.145999] 9ce0: c29d9eb0 c29d9db0 00000018 0100007f c29d9d80 c0ba5028 c29d9e5c c29d9d08
[11649.166548] 9d00: c07c458c c07c2990 00000018 00000008 c29d9d58 c29d9d54 c29d9d80 00000040
[11649.187674] 9d20: c29d9d54 c29d9d30 c29d9d54 c0cbcae8 000036eb 00000000 c29d9d58 00000000
[11649.207299] 9d40: c078ddcc 00000011 00000010 00000000 c0013674 00000000 00000000 00000000
[11649.225641] 9d60: 00000000 00000000 0100007f 00000000 00000000 ffff0000 00000000 00000000
[11649.244195] 9d80: 00000000 00000000 00000000 0000ffff 00000018 00000000 ffff0000 00000000
[11649.261351] 9da0: 00000000 00000000 00000000 c00f72b8 00000001 00000001 00000000 00110000
[11649.280491] 9dc0: 00000000 00000000 00000000 00000000 00000000 c00f5f24 0100007f 0100007f
[11649.300695] 9de0: f82a36eb c0562b68 c29d9e94 c29d9df8 c0562b68 c0872f70 c05624b4 c0565f8c
[11649.322579] 9e00: c29d9e1c c29d9e10 c0565f8c c0568b10 c29d9e44 c29d9e20 c055d0d8 c0565f78
[11649.341332] 9e20: c29d9e4c d083d000 01945883 fa3f2200 c52b8c18 c4bd0600 c1f6be00 c1f6be00
[11649.360133] 9e40: 00000040 011f3f24 c29d8000 00000000 c29d9e7c c29d9e60 c07d4164 c07c3d90
[11649.378648] 9e60: c29d9eb0 c1f6be00 c1f6be00 c29d9eb0 c29d9e94 c29d9e80 c06ea770 c07d412c
[11649.394910] 9e80: 00000000 c0ba5028 c29d9f8c c29d9e98 c06ebfe4 c06ea738 c29d9eb8 c1af9480
[11649.413500] 9ea0: 00000000 00000000 011f9008 00000010 c29d9ee4 00000010 00000005 00000000
[11649.433542] 9ec0: 00000000 c29d9eb0 00000000 befc0bc0 00000000 c1af9240 00000000 00000040
[11649.455251] 9ee0: c29d9f94 36eb0002 0100007f 00000000 00000000 c00f61a8 c0008274 fa3f2200
[11649.474568] 9f00: c0013014 00000001 c29d9f34 c29d9f18 00000000 00000000 00000000 011f4e00
[11649.493418] 9f20: 00000000 c53a15a0 c0013674 fa3f2200 00000000 c1af9480 c1af9480 c0ba5028
[11649.511989] 9f40: 011f9008 00000000 00000000 00000000 c29d9f94 c29d9f60 c01f3b6c c01f3388
[11649.528223] 9f60: 00000000 fa3f2200 befc0b7a 011f3f24 00000010 befc0b88 00000122 c00083e4
[11649.546910] 9f80: c29d9fa4 c29d9f90 c06ec054 c06ebf20 011f3f24 00000010 00000000 c29d9fa8
[11649.566825] 9fa0: c0008240 c06ec034 011f3f24 00000010 00000004 011f9008 00000010 00000000
[11649.588551] 9fc0: 011f3f24 00000010 befc0b88 00000122 00000001 00000001 0004c6a0 00000001
[11649.607836] 9fe0: 00000000 befc0ad8 00019dd8 b6d8f764 60000010 00000004 00000000 00000000
[11649.626672] Backtrace: 
[11649.635587] [<c0802908>] (__xfrm_policy_check) from [<c078ab78>] (ip_protocol_deliver_rcu+0xe4/0x250)
[11649.657528]  r10:0000012c r9:c29d9adc r8:c0cbcae8 r7:00000000 r6:c0ba6a44 r5:c29ed180
[11649.675620]  r4:c0cc467c
[11649.684402] [<c078aa94>] (ip_protocol_deliver_rcu) from [<c078ad40>] (ip_local_deliver_finish+0x5c/0x68)
[11649.703659]  r8:00000000 r7:c29ed180 r6:c0cbcae8 r5:c0ba5028 r4:c29ed180
[11649.717057] [<c078ace4>] (ip_local_deliver_finish) from [<c078adcc>] (ip_local_deliver+0x80/0x10c)
[11649.737882] [<c078ad4c>] (ip_local_deliver) from [<c078a3a0>] (ip_rcv_finish+0x9c/0xb8)
[11649.753236]  r7:c29ed180 r6:c0cbcae8 r5:c104a000 r4:c29ed180
[11649.764859] [<c078a304>] (ip_rcv_finish) from [<c078af14>] (ip_rcv+0xbc/0xcc)
[11649.776500]  r7:c29ed180 r6:c104a000 r5:c0ba5028 r4:c0cbcae8
[11649.788675] [<c078ae58>] (ip_rcv) from [<c071293c>] (__netif_receive_skb_one_core+0x64/0x84)
[11649.807600]  r7:00000040 r6:c0cd6f68 r5:c078ae58 r4:c0ba5028
[11649.819729] [<c07128d8>] (__netif_receive_skb_one_core) from [<c071299c>] (__netif_receive_skb+0x20/0x7c)
[11649.837966]  r5:00000000 r4:c0cd6fb0
[11649.847456] [<c071297c>] (__netif_receive_skb) from [<c0712b18>] (process_backlog+0x6c/0x110)
[11649.867632]  r5:00000000 r4:c0cd6fb0
[11649.874381] [<c0712aac>] (process_backlog) from [<c07143e8>] (net_rx_action+0x160/0x414)
[11649.892026]  r9:c29d9adc r8:00000040 r7:c0cd6f60 r6:00000000 r5:00000001 r4:c0cd6fb0
[11649.909276] [<c0714288>] (net_rx_action) from [<c00094b0>] (__do_softirq+0x118/0x3e0)
[11649.926505]  r10:00000008 r9:00000101 r8:0000003a r7:ffffe000 r6:00000003 r5:00000004
[11649.944450]  r4:c0cee760
[11649.953165] [<c0009398>] (__do_softirq) from [<c0027f70>] (do_softirq.part.2+0x5c/0x94)
[11649.970692]  r10:c0ba5028 r9:00000010 r8:0000003a r7:c341c878 r6:00000000 r5:ffffe000
[11649.991097]  r4:60000093
[11649.999266] [<c0027f14>] (do_softirq.part.2) from [<c0028084>] (__local_bh_enable_ip+0xdc/0xfc)
[11650.014490]  r5:ffffe000 r4:000001ff
[11650.023408] [<c0027fa8>] (__local_bh_enable_ip) from [<c078e288>] (ip_finish_output2+0x1a8/0x5e4)
[11650.041709]  r5:00000000 r4:c29ed180
[11650.051303] [<c078e0e0>] (ip_finish_output2) from [<c078f3c8>] (__ip_finish_output+0xdc/0x24c)
[11650.068640]  r10:c104a000 r9:00000000 r8:0000ffff r7:c0cbcae8 r6:c0cbcae8 r5:c4bd0600
[11650.089201]  r4:c29ed180
[11650.096997] [<c078f2ec>] (__ip_finish_output) from [<c078f56c>] (ip_finish_output+0x34/0xb8)
[11650.115332]  r9:00000000 r8:0ca8a7a4 r7:c0cbcae8 r6:00000000 r5:c29ed180 r4:c4bd0600
[11650.134057] [<c078f538>] (ip_finish_output) from [<c0790ef4>] (ip_output+0xbc/0x148)
[11650.148562]  r7:c4bd0600 r6:c0ba5028 r5:c0cbcae8 r4:c29ed180
[11650.159913] [<c0790e38>] (ip_output) from [<c07905b8>] (ip_local_out+0x48/0x4c)
[11650.172329]  r10:c4bd076c r9:00000011 r8:c29d9db0 r7:c4250424 r6:c4bd0600 r5:c0cbcae8
[11650.190915]  r4:c29ed180
[11650.196503] [<c0790570>] (ip_local_out) from [<c0791870>] (ip_send_skb+0x24/0x84)
[11650.213262]  r7:c4250424 r6:c4bd0600 r5:c0cbcae8 r4:c29ed180
[11650.225040] [<c079184c>] (ip_send_skb) from [<c07c2abc>] (udp_send_skb+0x138/0x368)
[11650.239692]  r5:00000018 r4:c29ed180
[11650.249526] [<c07c2984>] (udp_send_skb) from [<c07c458c>] (udp_sendmsg+0x808/0xa6c)
[11650.268527]  r10:c0ba5028 r9:c29d9d80 r8:0100007f r7:00000018 r6:c29d9db0 r5:c29d9eb0
[11650.283228]  r4:c4bd0600 r3:fa3f2200
[11650.292829] [<c07c3d84>] (udp_sendmsg) from [<c07d4164>] (inet_sendmsg+0x44/0x78)
[11650.309386]  r10:00000000 r9:c29d8000 r8:011f3f24 r7:00000040 r6:c1f6be00 r5:c1f6be00
[11650.325930]  r4:c4bd0600
[11650.332592] [<c07d4120>] (inet_sendmsg) from [<c06ea770>] (sock_sendmsg+0x44/0x54)
[11650.350734]  r4:c29d9eb0
[11650.358830] [<c06ea72c>] (sock_sendmsg) from [<c06ebfe4>] (__sys_sendto+0xd0/0x114)
[11650.373387]  r5:c0ba5028 r4:00000000
[11650.382798] [<c06ebf14>] (__sys_sendto) from [<c06ec054>] (sys_sendto+0x2c/0x34)
[11650.401101]  r8:c00083e4 r7:00000122 r6:befc0b88 r5:00000010 r4:011f3f24
[11650.410992] [<c06ec028>] (sys_sendto) from [<c0008240>] (ret_fast_syscall+0x0/0x28)
[11650.429682] Exception stack(0xc29d9fa8 to 0xc29d9ff0)
[11650.439575] 9fa0:                   011f3f24 00000010 00000004 011f9008 00000010 00000000
[11650.458050] 9fc0: 011f3f24 00000010 befc0b88 00000122 00000001 00000001 0004c6a0 00000001
[11650.475550] 9fe0: 00000000 befc0ad8 00019dd8 b6d8f764
[11650.486748] Code: e24cb004 e24dd0a4 e52de004 e8bd4000 (e592c008) 
[11650.498733] ---[ end trace 61df269a54441ea3 ]---
[11650.507285] Kernel panic - not syncing: Fatal exception in interrupt
[11650.519817] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---


@Krautmaster
Copy link

Problem is that most including ne had it without OC at all. Might be a issue with the Turbo

@idarek
Copy link

idarek commented Dec 29, 2021

After reading this thread I'm having good results after underclocking raspberry pi as follows:

/boot/config.txt

arm_freq=600
arm_freq_max=700
arm_freq_min=500

CPU is running at 500000 MHz (half the nominal speed) and I'm going to report back to the seller of the card because this is not working as indicated in the specifications

This solution solved my problem with crashing Pi Zero 2 W

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Wifi Issue Any issues related to wifi
Projects
None yet
Development

No branches or pull requests