NetBSD-Bugs archive

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

port-evbarm/52339: urtw(4) causes panic on BeagleBone Black



>Number:         52339
>Category:       port-evbarm
>Synopsis:       urtw(4) causes panic on BeagleBone Black
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-evbarm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 26 03:40:00 +0000 2017
>Originator:     Sevan Janiyan
>Release:        NetBSD-HEAD
>Organization:
>Environment:
NetBSD 8.99.1 (BEAGLEBONE) #0: Mon Jun 26 04:14:37 BST 2017
>Description:
Building a a kernel for BeagleBone Black using the BEAGLEBONE config with urtw(4) support results in a panic when wifi adapter is attached to system.

urtw0: at uhub1 port 1 (addr 2) disconnected

uvm_fault(0x80bb9070, 77d92000, 1) -> e
Fatal kernel mode data abort: 'Translation Fault (S)'
trapframe: 0x9fe2fe20
FSR=00000005, FAR=77d93a9c, spsr=20000013
r0 =00000000, r1 =00000000, r2 =9fe510a0, r3 =77d93a9c
r4 =00000004, r5 =9fd9ea00, r6 =807b18d8, r7 =9c3910b8
r8 =00000000, r9 =807da66c, r10=807b18fc, r11=9fe2feac
r12=9fe35788, ssp=9fe2fe70, slr=8056eadc, pc =8033ae8c

Stopped in pid 0.17 (system) at netbsd:usbd_transfer+0x6c4:     ldr     r3, [r3]

db> ps
PID    LID S CPU     FLAGS       STRUCT LWP *               NAME WAIT
79       1 3   0        80           9f7bb940                 sh ttyraw
650      1 3   0        80           9fda8300              login wait
813      1 3   0        80           9df93120               cron nanoslp
541      1 3   0        80           9f7bbc00              inetd kqueue
728      1 3   0        80           9f7ba080               qmgr kqueue
707      1 3   0        80           9df933e0             pickup kqueue
659      1 3   0        80           9df93960             master kqueue
503      1 3   0        80           9f7ba600               sshd select
501      1 3   0        80           9f7ba8c0               ntpd nanoslp
460      1 2   0   1000000           9df93c20               ntpd
415      1 2   0         0           9f7bae40            devpubd
240      1 2   0         0           9f7bb680            syslogd
190      1 2   0         0           9f7bb3c0              mdnsd
180      1 2   0         0           9f7bb100             dhcpcd
1        1 3   0        80           9fda8880               init wait
0       48 3   0       200           9fce5be0            physiod physiod
0       47 3   0       200           9fce53a0           aiodoned aiodoned
0       46 3   0       200           9fce5660            ioflush syncer
0       45 3   0       200           9fce5920           pgdaemon pgdaemon
0       42 3   0       200           9fe50860          cryptoret crypto_w
0       41 3   0       200           9fe50b20               usb1 usbdly
0       40 3   0       200           9fda8040               usb0 usbevt
0       37 3   0       200           9fda85c0            npfgc-0 npfgccv
0       36 3   0       200           9fda8b40            rt_free rt_free
0       35 3   0       200           9fda8e00              unpgc unpgc
0       34 3   0       200           9fe505a0    key_timehandler key_timehandler

0       33 3   0       200           9fe502e0    icmp6_wqinput/0 icmp6_wqinput
0       32 3   0       200           9fe50020          nd6_timer nd6_timer
0       31 3   0       200           9fda9bc0     icmp_wqinput/0 icmp_wqinput
0       30 3   0       200           9fda9900           rt_timer rt_timer
0       29 3   0       200           9fda9640        vmem_rehash vmem_rehash
0       28 3   0       200           9fda90c0             sdmmc1 mmctaskq
0       27 3   0       200           9fda9380             sdmmc0 sdhcedma
0       18 3   0       200           9fe50de0               iic0 iicintr
0    >  17 7   0       200           9fe510a0         usbtask-dr
0       16 3   0       200           9fe51360         usbtask-hc usbtsk
0       15 3   0       200           9fe51620             sysmon smtaskq
0       14 3   0       200           9fe518e0         pmfsuspend pmfsuspend
0       13 3   0       200           9fe51ba0           pmfevent pmfevent
0       12 3   0       200           9ff20000         sopendfree sopendfr
0       11 3   0       200           9ff202c0           nfssilly nfssilly
0       10 3   0       200           9ff20580            cachegc cachegc
0        9 3   0       200           9ff20840             vdrain vdrain
0        8 3   0       200           9ff20b00          modunload mod_unld
0        7 3   0       200           9ff20dc0            xcall/0 xcall
0        6 1   0       200           9ff21080          softser/0
0        5 1   0       200           9ff21340          softclk/0
0        4 1   0       200           9ff21600          softbio/0
0        3 1   0       200           9ff218c0          softnet/0
0        2 1   0       201           9ff21b80             idle/0
0        1 3   0       200           807ddb40            swapper uvm

db> bt
0x9fe2feac: netbsd:usbd_transfer+0xc
0x9fe2ff04: netbsd:usbd_do_request_flags+0xc0
0x9fe2ff1c: netbsd:usbd_do_request+0x20
0x9fe2ff34: netbsd:urtw_read32_c+0x54
0x9fe2ff54: netbsd:urtw_set_chan+0x50
0x9fe2ff6c: netbsd:urtw_task+0x48
0x9fe2ffac: netbsd:usb_task_thread+0x15c
>How-To-Repeat:
1) Build new kernel with following patch
Index: sys/arch/evbarm/conf/BEAGLEBONE
===================================================================
RCS file: /cvsroot/src/sys/arch/evbarm/conf/BEAGLEBONE,v
retrieving revision 1.42
diff -u -r1.42 BEAGLEBONE
--- sys/arch/evbarm/conf/BEAGLEBONE     9 May 2017 01:57:04 -0000       1.42
+++ sys/arch/evbarm/conf/BEAGLEBONE     26 Jun 2017 03:33:50 -0000
@@ -213,6 +213,18 @@

 axe*           at uhub? port ? configuration ? interface ?

+# USB 802.11 adapters
+athn*  at uhub? port ?         # Atheros AR9002U
+atu*   at uhub? port ?         # Atmel at76c50x 802.11b
+otus*  at uhub? port ?         # Atheros AR9001U
+ural*  at uhub? port ?         # Ralink Technology RT2500USB 802.11a/b/g
+rum*   at uhub? port ?         # Ralink Technology RT2501/RT2601 802.11a/b/g
+run*   at uhub? port ?         # Ralink Technology RT(2[78]|30)00 802.11a/b/g/n
+urtw*  at uhub? port ?         # Realtek RTL8187/RTL8187B 802.11b/g
+urtwn*         at uhub? port ?         # Realtek RTL8188CU/RTL8192CU 802.11b/g/n
+zyd*   at uhub? port ?         # Zydas ZD1211
+
+
 # Ethernet
 cpsw*          at obio2 addr 0x4a100000 size 0x8000 intrbase 40
 ukphy*         at mii?

2) Attach urtw(4) device to BeagleBone Black with the new kernel booted
>Fix:



Home | Main Index | Thread Index | Old Index