Panic with umass device with EHCI enabled

Dominique Goncalves dominique.goncalves at gmail.com
Wed Mar 23 09:16:31 PST 2005


HI,

I'm running a  FreeBSD 6.0-CURRENT with a kernel and world build on 22
march 2005,
# uname -a
FreeBSD venus 6.0-CURRENT FreeBSD 6.0-CURRENT #4: Tue Mar 22 18:11:22
CET 2005     dom at venus:/usr/obj/usr/src/sys/VENUS  i386

When I unplug my usb key on usb2 controller, I have a panic kernel.
====
umass0: at uhub3 port 2 (addr 2) disconnected
(da0:umass-sim0:0:0:0): lost device

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xdeadc116
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xc043982f
stack pointer           = 0x10:0xcc9d2cdc
frame pointer           = 0x10:0xcc9d2cf4
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         = 31 (swi2: cambio)
[thread pid 31 tid 100023 ]
Stopped at      camisr+0x12b:   decl    0x38(%eax)
db> trace
Tracing pid 31 tid 100023 td 0xc150d730
camisr(c06c4574) at camisr+0x12b
ithread_loop(c14e0c00,cc9d2d48,c14e0c00,c04d8ae4,0) at ithread_loop+0x120
fork_exit(c04d8ae4,c14e0c00,cc9d2d48) at fork_exit+0xa4
fork_trampoline() at fork_trampoline+0x8
--- trap 0x1, eip = 0, esp = 0xcc9d2d7c, ebp = 0 ---
db>
===

The dmesg and kernel config is attached.
Any help will be greatly appreciated. (please say me if you need more
information with step by step please, I'm not a developper :)

Regards
-- 
There's this old saying: "Give a man a fish, feed him for a day. Teach
a man to fish, feed him for life."
-------------- next part --------------
Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 6.0-CURRENT #4: Tue Mar 22 18:11:22 CET 2005
    dom at venus:/usr/obj/usr/src/sys/VENUS
WARNING: WITNESS option enabled, expect reduced performance.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 2.00GHz (2000.15-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf24  Stepping = 4
  Features=0x3febfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM>
real memory  = 268369920 (255 MB)
avail memory = 253313024 (241 MB)
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <AMIINT SiS645XX> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU (3 Cx states)> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci_link0: <ACPI PCI Link LNKA> irq 11 on acpi0
pci_link1: <ACPI PCI Link LNKB> irq 0 on acpi0
pci_link2: <ACPI PCI Link LNKC> irq 10 on acpi0
pci_link3: <ACPI PCI Link LNKD> irq 0 on acpi0
pci_link4: <ACPI PCI Link LNKE> irq 11 on acpi0
pci_link5: <ACPI PCI Link LNKF> irq 10 on acpi0
pci_link6: <ACPI PCI Link LNKG> irq 10 on acpi0
pci_link7: <ACPI PCI Link LNKH> irq 12 on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <SiS 645DX host to AGP bridge> mem 0xe0000000-0xe3ffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 2.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <SiS 962/963 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 2.5 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pcm0: <SiS 7012> port 0xdc00-0xdcff,0xd800-0xd87f irq 10 at device 2.7 on pci0
pcm0: [GIANT-LOCKED]
pcm0: <Avance Logic ALC650 AC97 Codec>
ohci0: <SiS 5571 USB controller> mem 0xdfffc000-0xdfffcfff irq 11 at device 3.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: <SiS 5571 USB controller> on ohci0
usb0: USB revision 1.0
uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ohci1: <SiS 5571 USB controller> mem 0xdfffe000-0xdfffefff irq 10 at device 3.1 on pci0
ohci1: [GIANT-LOCKED]
usb1: OHCI version 1.0, legacy support
usb1: <SiS 5571 USB controller> on ohci1
usb1: USB revision 1.0
uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ohci2: <SiS 5571 USB controller> mem 0xdffff000-0xdfffffff irq 10 at device 3.2 on pci0
ohci2: [GIANT-LOCKED]
usb2: OHCI version 1.0, legacy support
usb2: <SiS 5571 USB controller> on ohci2
usb2: USB revision 1.0
uhub2: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xdfffd000-0xdfffdfff irq 12 at device 3.3 on pci0
ehci0: [GIANT-LOCKED]
usb3: EHCI version 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: <EHCI (generic) USB 2.0 controller> on ehci0
usb3: USB revision 2.0
uhub3: SiS EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
rl0: <RealTek 8139 10/100BaseTX> port 0xd400-0xd4ff mem 0xdfffbf00-0xdfffbfff irq 11 at device 9.0 on pci0
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:50:ba:b8:90:da
rl1: <RealTek 8139 10/100BaseTX> port 0xd000-0xd0ff mem 0xdfffbe00-0xdfffbeff irq 10 at device 11.0 on pci0
miibus1: <MII bus> on rl1
rlphy1: <RealTek internal media interface> on miibus1
rlphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl1: Ethernet address: 00:10:dc:82:9b:d2
fdc0: <floppy drive controller> port 0x3f2-0x3f3,0x3f4-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A, console
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0: <Standard parallel printer port> port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xccfff,0xcd000-0xcf7ff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 2000151172 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 57241MB <ST360012A/3.30> [116301/16/63] at ata0-master UDMA100
ad1: 57241MB <ST360015A/3.33> [116301/16/63] at ata0-slave UDMA100
acd0: DVDROM <HL-DT-STDVD-ROM GDR8161B/0100> at ata1-master UDMA33
acd1: CDRW <HL-DT-ST GCE-8481B/1.00> at ata1-slave UDMA33
Trying to mount root from ufs:/dev/ad1s2a
ums0: Logitech USB Mouse, rev 1.10/6.10, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
WARNING:  was not properly dismounted
lock order reversal
 1st 0xc174b81c rtentry (rtentry) @ /usr/src/sys/netinet/if_ether.c:445
 2nd 0xc15aff00 rl0 (network driver) @ /usr/src/sys/pci/if_rl.c:1444
KDB: stack backtrace:
kdb_backtrace(0,ffffffff,c06dc050,c06dac50,c06a4de8) at kdb_backtrace+0x29
witness_checkorder(c15aff00,9,c06807c0,5a4) at witness_checkorder+0x54c
_mtx_lock_flags(c15aff00,0,c06807c0,5a4,c15af800) at _mtx_lock_flags+0x5b
rl_start(c15af800) at rl_start+0x22
if_start(c15af800) at if_start+0x7b
ether_output_frame(c15af800,c169e200,1,ffffffff,0) at ether_output_frame+0x1d9
ether_output(c15af800,c169e200,d0a84a48,0,2) at ether_output+0x384
arprequest(c15af800,c17110c8,c172f8f4,c15d90ab) at arprequest+0xd8
arpresolve(c15af800,c174b840,c169e300,c172f8f0,d0a84ab8) at arpresolve+0x29c
ether_output(c15af800,c169e300,c172f8f0,c174b840,c1711000) at ether_output+0x66
ip_output(c169e300,0,d0a84b10,0,0) at ip_output+0x6fc
udp_output(c17497bc,c169e300,0,0,c16ab8a0) at udp_output+0x4ad
udp_send(c1747a60,0,c169e300,0,0) at udp_send+0x1a
sosend(c1747a60,0,d0a84c4c,c169e300,0) at sosend+0x5e7
kern_sendit(c16ab8a0,4,d0a84ccc,0,0) at kern_sendit+0x104
sendit(c16ab8a0,4,d0a84ccc,0,807b023) at sendit+0x163
sendto(c16ab8a0,d0a84d14,6,1,216) at sendto+0x4d
syscall(2f,2f,2f,0,281477a4) at syscall+0x213
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (133, FreeBSD ELF32, sendto), eip = 0x280c965b, esp = 0xbfbfdc9c, ebp = 0xbfbfdcc8 ---
drm0: <ATI Radeon If R250 9000> port 0xa800-0xa8ff mem 0xd0000000-0xd7ffffff,0xdfef0000-0xdfefffff irq 11 at device 0.0 on pci1
info: [drm] AGP at 0xe0000000 64MB
info: [drm] Initialized radeon 1.11.0 20020828 on minor 0
info: [drm] Loading R200 Microcode
rl1: link state changed to DOWN
umass0: vendor 0x05e3 USB Storage, rev 2.00/1.25, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <Generic STORAGE DEVICE 1.25> Removable Direct Access SCSI-0 device 
da0: 40.000MB/s transfers
da0: 125MB (256000 512 byte sectors: 64H 32S/T 125C)
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x10, scsi status == 0x0


-------------- next part --------------
A non-text attachment was scrubbed...
Name: VENUS
Type: application/octet-stream
Size: 6360 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20050323/c405a0aa/VENUS.obj


More information about the freebsd-current mailing list