NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/57187: Panic on Raspberry Pi Zero 2w - offset < dma->udma_block->size failed



>Number:         57187
>Category:       kern
>Synopsis:       Panic on Raspberry Pi Zero 2w - offset < dma->udma_block->size failed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 16 21:00:01 +0000 2023
>Originator:     Jim Spath
>Release:        10.0_BETA
>Organization:
>Environment:
NetBSD aaaa 10.0_BETA NetBSD 10.0_BETA (GENERIC) #0: Fri Jan 13 19:15:32 UTC 2023  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC evbarm

>Description:
I just upgraded this system from 9.99.106 to 10.0_BETA. I did not notice earlier panics but it looks like they became more frequent in November 2022 after installing 9.99.106. Crashes are occurring several times daily now.

Part of /var/log/messages:

Jan 16 05:37:46 aaaa /netbsd: [ 8941.4412333] panic: kernel diagnostic assertion "offset < dma->udma_block->size" failed: file "/usr/src/sys/dev/usb/usb_mem.c", line 389 offset 16384 vs 16384
...
Jan 16 05:37:46 aaaa /netbsd: [ 8941.4412333] Skipping crash dump on recursive panic
Jan 16 05:37:46 aaaa /netbsd: [ 8941.4412333] panic: lock error: Mutex: mutex_vector_enter,516: assertion failed: !cpu_intr_p(): lock 0x90d7087c cpu 0 lwp 0x90af8040
Jan 16 05:37:46 aaaa /netbsd: [ 8941.4412333] cpu0: Begin traceback...
Jan 16 05:37:46 aaaa /netbsd: [ 8941.4412333] 0x80c9d95c: netbsd:db_panic+0x14
...
Jan 16 05:37:46 aaaa /netbsd: [ 8941.4412333] 0x80c9dcd4: netbsd:usb_dmaaddr+0x128
Jan 16 05:37:46 aaaa /netbsd: [ 8941.4412333] 0x80c9dd1c: netbsd:dwc2_assign_and_init_hc+0x2b8
Jan 16 05:37:46 aaaa /netbsd: [ 8941.4412333] 0x80c9dd54: netbsd:dwc2_hcd_select_transactions+0x164
Jan 16 05:37:46 aaaa /netbsd: [ 8941.4412333] 0x80c9dd74: netbsd:dwc2_release_channel+0x190
Jan 16 05:37:46 aaaa /netbsd: [ 8941.4412333] 0x80c9ddcc: netbsd:dwc2_handle_hcd_intr+0xcec
Jan 16 05:37:46 aaaa /netbsd: [ 8941.4412333] 0x80c9ddf4: netbsd:dwc2_intr+0xe8
Jan 16 05:37:46 aaaa /netbsd: [ 8941.4412333] 0x80c9de0c: netbsd:bcm2835_icu_intr+0x28
Jan 16 05:37:46 aaaa /netbsd: [ 8941.4412333] 0x80c9de5c: netbsd:pic_dispatch+0x54
Jan 16 05:37:46 aaaa /netbsd: [ 8941.4412333] 0x80c9dee4: netbsd:pic_do_pending_ints+0x434
Jan 16 05:37:46 aaaa /netbsd: [ 8941.4412333] 0x80c9df4c: netbsd:irq_idle_entry+0x38
Jan 16 05:37:46 aaaa /netbsd: [ 8941.4412333] 0x80c9dfac: netbsd:idle_loop+0x1b8
Jan 16 05:37:46 aaaa /netbsd: [ 8941.4412333] cpu0: End traceback...
Jan 16 05:37:46 aaaa /netbsd: [ 8941.4412333] rebooting...


As the content suggests a USB area, the Pi02W has these peripherals:

Onboard USB/dwc:
dwctwo0: Core Release: 2.80a (snpsid=4f54280a)
uhub0 at usb0: NetBSD (0x0000) DWC2 root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1

External USB hub (4 port/micro-USB):
uhub1 at uhub0 port 1: vendor 1a40 (0x1a40) USB 2.0 Hub (0x0101), class 9/0, rev 2.00/1.11, addr 2

Ethernet adapter on USB:
ure0 at uhub1 port 4
ure0: Realtek (0x0bda) USB 10/100/1000 LAN (0x8153), rev 2.10/31.00, addr 4
ure0: RTL8153 unknown ver 6010

Also keyboard and mouse on USB.



>How-To-Repeat:
Happens without warning.
>Fix:
Not known.



Home | Main Index | Thread Index | Old Index