USB problems
Vladimir Grebenschikov
vova at fbsd.ru
Sun Jul 3 00:27:11 GMT 2005
В пт, 31/12/2004 в 05:05 -1000, Randy Bush пишет:
> possibly related?
>
> just so you know, on a thinkpad t41 with any current in the last
> few weeks, i kernel panic on boot if a usb device is not plugged
> in. turning off acpi also allows boot. see
>
> <http://rip.psg.com/~randy/041215.crash>
>
> i can help debug if anyone is on the trail
I have also problems with USB on recent current (previous was few weeks
old).
It panics on each boot:
Fatal trap 12: page fault while in kernel mode
fault virtual address = 0x1ff0383
fault code = supervisor write, page not present
instruction pointer = 0x8:0xc07bc886
stack pointer = 0x10:0xe6923a8c
frame pointer = 0x10:0xe6923a90
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 477 (usbd)
[thread pid 477 tid 100078 ]
Stopped at usb_get_next_event+0x6e: movl %eax,0x184(%edx)
db> trace
Tracing pid 477 tid 100078 td 0xc212bb80
usb_get_next_event(1ff01ff,1ff01ff,1ff01ff,1ff01ff,1ff01ff) at
usb_get_next_event+0x6e
usbread(c1a60200,e6923c7c,10,7000000,0) at usbread+0x43
devfs_read_f(c1d3f264,e6923c7c,c1977c80,0,c212bb80) at devfs_read_f+0xd4
dofileread(c212bb80,c1d3f264,7,bfbfeb50,180) at dofileread+0x7e
read(c212bb80,e6923d14,c,c212bb80,7) at read+0x6b
syscall(2f,2f,2f,7,7) at syscall+0x300
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (3, FreeBSD ELF32, read), eip = 0x280cbc17, esp =
0xbfbfeb2c, ebp = 0xbfbfecd8 ---
db> ps
pid proc uid ppid pgrp flag stat wmesg wchan cmd
514 c212a3f0 0 1 48 0000002 [LOCK Giant c2019040] hcsecd
512 c212a000 65534 1 512 0000100 [SLPQ select 0xc06b8d04][SLP]
sdpd
477 c212a5e8 0 472 48 0004002 [CPU 0] usbd
472 c1a475e8 0 48 48 0000002 [SLPQ wait 0xc1a475e8][SLP] sh
...
db> trace 514
Tracing pid 514 tid 100079 td 0xc212bcf0
sched_switch(c212bcf0,0,1,7066308c,418ddef8) at sched_switch+0x170
mi_switch(1,0,c05238cd,c19939a4,c1d65484) at mi_switch+0x1d9
turnstile_wait(c06b2ae0,c212bb80,0,bfbfe000,e69b9cbc) at turnstile_wait
+0x350
_mtx_lock_sleep(c06b2ae0,c212bcf0,0,0,0) at _mtx_lock_sleep+0xb4
vm_fault(c1993960,bfbfe000,2,8,e69b9cfc) at vm_fault+0x211
trap_pfault(e69b9d48,1,bfbfeb4c,e69b9d34,bfbfeb4c) at trap_pfault+0x13b
trap(2f,2f,2f,0,bfbfeb60) at trap+0x21a
calltrap() at calltrap+0x5
--- trap 0xc, eip = 0x280cc601, esp = 0xbfbfeb50, ebp = 0xbfbfebb8 ---
db>
==================================================================
I have found way how to workaround panic.
If I turn on USB dongle while boot (after usb bus detected) it boots ok.
But If I boot with turned off USB dongle - it panics, same If I boot
with turned on USB dongle. (also it is same with usb mice or keyboard).
I have allways turned on umass on-board card reader.
There is my usual list of USB devides:
# usbdevs -v
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00
port 1 powered
port 2 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00
port 1 powered
port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00
port 1 powered
port 2 addr 2: full speed, power 100 mA, config 1, UGX(0x3003), ALPS(0x044e), rev 7.81
Controller /dev/usb3:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x0000), rev 1.00
port 1 powered
port 2 powered
port 3 powered
port 4 powered
port 5 addr 2: high speed, self powered, config 1, USB Memory Stick Slot(0x014d), Sony(0x054c), rev 1.10
port 6 powered
#
Last "good" kernel dated Dec 9 2004. (or near this date).
As I notice it allways panics when some process gets Giant, (usually it
is bluetooth process)
Looks like it is USB problem, but probably it is bluetooth related. I am
not sure.
I can provide more details.
> randy
--
Vladimir B. Grebenchikov
vova at fbsd.ru
_______________________________________________
freebsd-current at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
More information about the freebsd-bluetooth
mailing list