Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Mar 2005 18:16:29 +0100
From:      Dominique Goncalves <dominique.goncalves@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   Panic with umass device with EHCI enabled
Message-ID:  <7daacbbe05032309163bd3c5ee@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
------=_Part_8534_29741825.1111598189021
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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@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."

------=_Part_8534_29741825.1111598189021
Content-Type: text/plain; name=dmesg_current.txt; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="dmesg_current.txt"

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@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



------=_Part_8534_29741825.1111598189021
Content-Type: application/octet-stream; name=VENUS
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="VENUS"

#
# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#    http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ../../conf/NOTES and NOTES files.
# If you are in doubt as to the purpose or necessity of a line, check first
# in NOTES.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.426 2005/03/18 15:23:59 murray Exp $

machine		i386
cpu		I686_CPU
ident		VENUS	

# To statically compile in device wiring instead of /boot/device.hints
#hints		"GENERIC.hints"		# Default places to look for devices.

makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols

#options 	SCHED_ULE		# ULE scheduler
options 	SCHED_4BSD		# 4BSD scheduler
options 	PREEMPTION		# Enable kernel thread preemption
options 	INET			# InterNETworking
options 	INET6			# IPv6 communications protocols
options 	FFS			# Berkeley Fast Filesystem
options 	SOFTUPDATES		# Enable FFS soft updates support
options 	UFS_ACL			# Support for access control lists
options 	UFS_DIRHASH		# Improve performance on big directories
options 	MD_ROOT			# MD is a potential root device
options 	NFSCLIENT		# Network Filesystem Client
options 	NFSSERVER		# Network Filesystem Server
options 	NFS_ROOT		# NFS usable as /, requires NFSCLIENT
options 	MSDOSFS			# MSDOS Filesystem
options 	CD9660			# ISO 9660 Filesystem
options 	PROCFS			# Process filesystem (requires PSEUDOFS)
options 	PSEUDOFS		# Pseudo-filesystem framework
options 	GEOM_GPT		# GUID Partition Tables.
options 	COMPAT_43		# Compatible with BSD 4.3 [KEEP THIS!]
options 	COMPAT_FREEBSD4		# Compatible with FreeBSD4
options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
options 	KTRACE			# ktrace(1) support
options 	SYSVSHM			# SYSV-style shared memory
options 	SYSVMSG			# SYSV-style message queues
options 	SYSVSEM			# SYSV-style semaphores
options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	AHC_REG_PRETTY_PRINT	# Print register bitfields in debug
					# output.  Adds ~128k to driver.
options 	AHD_REG_PRETTY_PRINT	# Print register bitfields in debug
					# output.  Adds ~215k to driver.
options 	ADAPTIVE_GIANT		# Giant mutex is adaptive.

# Debugging for use in -current
options 	KDB			# Enable kernel debugger support.
options 	DDB			# Support DDB.
options 	GDB			# Support remote GDB.
options 	INVARIANTS		# Enable calls of extra sanity checking
options 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
options 	WITNESS			# Enable checks to detect deadlocks and cycles
options 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed

# Bus support.  Do not remove isa, even if you have no isa slots
device		isa
device		eisa
device		pci

# Floppy drives
device		fdc

# ATA and ATAPI devices
device		ata
device		atadisk		# ATA disk drives
device		ataraid		# ATA RAID drives
device		atapicd		# ATAPI CDROM drives
device		atapifd		# ATAPI floppy drives
device		atapist		# ATAPI tape drives
options 	ATA_STATIC_ID	# Static device numbering

# SCSI peripherals
device		scbus		# SCSI bus (required for SCSI)
device		ch		# SCSI media changers
device		da		# Direct Access (disks)
device		sa		# Sequential Access (tape etc)
device		cd		# CD
device		pass		# Passthrough device (direct SCSI access)
device		ses		# SCSI Environmental Services (and SAF-TE)

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc		# AT keyboard controller
device		atkbd		# AT keyboard
device		psm		# PS/2 mouse

device		vga		# VGA video card driver

device		splash		# Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device		sc

# Enable this for the pcvt (VT220 compatible) console driver
#device		vt
#options 	XSERVER		# support for X server on a vt console
#options 	FAT_CURSOR	# start with block cursor

device		agp		# support several AGP chipsets

# Floating point support - do not disable.
device		npx

# Power management support (see NOTES for more options)
#device		apm
# Add suspend/resume support for the i8254.
device		pmtimer

# Serial (COM) ports
device		sio		# 8250, 16[45]50 based serial ports

# Parallel port
device		ppc
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		plip		# TCP/IP over parallel
device		ppi		# Parallel port interface device
#device		vpo		# Requires scbus and da

# If you've got a "dumb" serial or parallel PCI card that is
# supported by the puc(4) glue driver, uncomment the following
# line to enable it (connects to the sio and/or ppc drivers):
#device		puc

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device		miibus		# MII bus support
device		rl		# RealTek 8129/8139

# Pseudo devices.
device		loop		# Network loopback
device		mem		# Memory and kernel memory devices
device		io		# I/O device
device		random		# Entropy device
device		ether		# Ethernet support
device		sl		# Kernel SLIP
device		ppp		# Kernel PPP
device		tun		# Packet tunnel.
device		pty		# Pseudo-ttys (telnet etc)
device		md		# Memory "disks"
device		gif		# IPv6 and IPv4 tunneling
device		faith		# IPv6-to-IPv4 relaying (translation)

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device		bpf		# Berkeley packet filter

# USB support
device		uhci		# UHCI PCI->USB interface
device		ohci		# OHCI PCI->USB interface
device		ehci		# EHCI PCI->USB interface (USB 2.0)
device		usb		# USB Bus (required)
#device		udbp		# USB Double Bulk Pipe devices
device		ugen		# Generic
device		uhid		# "Human Interface Devices"
device		ukbd		# Keyboard
device		ulpt		# Printer
device		umass		# Disks/Mass storage - Requires scbus and da
device		ums		# Mouse
device		urio		# Diamond Rio 500 MP3 player
device		uscanner	# Scanners


------=_Part_8534_29741825.1111598189021--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7daacbbe05032309163bd3c5ee>