NetBSD Problem Report #52339
From www@NetBSD.org Mon Jun 26 03:35:05 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 7166E7A176
for <gnats-bugs@gnats.NetBSD.org>; Mon, 26 Jun 2017 03:35:05 +0000 (UTC)
Message-Id: <20170626033503.DF7137A290@mollari.NetBSD.org>
Date: Mon, 26 Jun 2017 03:35:03 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: urtw(4) causes panic on BeagleBone Black
X-Send-Pr-Version: www-1.0
>Number: 52339
>Category: port-evbarm
>Synopsis: urtw(4) causes panic on BeagleBone Black
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: skrll
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jun 26 03:40:00 +0000 2017
>Closed-Date: Sat Feb 20 21:14:45 +0000 2021
>Last-Modified: Sat Feb 20 21:14:45 +0000 2021
>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:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: port-evbarm-maintainer->skrll
Responsible-Changed-By: skrll@NetBSD.org
Responsible-Changed-When: Fri, 03 Nov 2017 15:57:39 +0000
Responsible-Changed-Why:
Take
State-Changed-From-To: open->feedback
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Sat, 20 Feb 2021 09:09:19 +0000
State-Changed-Why:
Is this still a problem with latest GENERIC kernel?
State-Changed-From-To: feedback->closed
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Sat, 20 Feb 2021 21:14:45 +0000
State-Changed-Why:
Closed at sevan's request
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.