This is the perennial "we have an OHCI interface on a PCMCIA card. We
pull the card. The kernel crashes / hangs / whatever" problem.

[ INFO: inconsistent lock state ] -- details below.

Kernel log:

pccard: card ejected from slot 0
ohci_hcd 0000:02:00.0: remove, state 1
ohci_hcd 0000:02:00.0: roothub graceful disconnect
usb usb6: USB disconnect, address 1
usb 6-1: USB disconnect, address 2
usb 6-1: usb_disable_device nuking all URBs
/daten/src/git/kernel/drivers/usb/host/ohci-dbg.c: UNLINK ce61a140 dev=2 
ep=1in-intr flags=0 len=0/16 stat=-108
ohci_hcd 0000:02:00.0: unlink ed cebc6040 branch 0 [22us.], interval 32
ohci_hcd 0000:02:00.0: shutdown urb ce61a140 pipe 40408280 ep1in-intr
ohci_hcd 0000:02:00.0: device removed!
ohci_hcd 0000:02:00.0: HC died; cleaning up
/daten/src/git/kernel/drivers/usb/host/ohci-dbg.c: RET ce61a140 dev=2 
ep=1in-intr flags=0 len=0/16 stat=-108
/daten/src/git/kernel/drivers/usb/host/ohci-dbg.c: data(0/16): stat:-108
usb 6-1: unregistering interface 6-1:1.0
 usbdev6.2_ep81: ep_device_release called for usbdev6.2_ep81
 usbdev6.2_ep8a: ep_device_release called for usbdev6.2_ep8a
 usbdev6.2_ep0b: ep_device_release called for usbdev6.2_ep0b
option1 ttyUSB10: GSM modem (1-port) converter now disconnected from ttyUSB10
option 6-1:1.0: device disconnected
usb 6-1:1.0: uevent
usb 6-1: unregistering interface 6-1:1.1
 usbdev6.2_ep82: ep_device_release called for usbdev6.2_ep82
 usbdev6.2_ep05: ep_device_release called for usbdev6.2_ep05
option1 ttyUSB11: GSM modem (1-port) converter now disconnected from ttyUSB11
option 6-1:1.1: device disconnected
usb 6-1:1.1: uevent
usb 6-1: unregistering interface 6-1:1.2
 usbdev6.2_ep83: ep_device_release called for usbdev6.2_ep83
 usbdev6.2_ep06: ep_device_release called for usbdev6.2_ep06
option1 ttyUSB12: GSM modem (1-port) converter now disconnected from ttyUSB12
option 6-1:1.2: device disconnected
usb 6-1:1.2: uevent
usb 6-1: unregistering device
 usbdev6.2_ep00: ep_device_release called for usbdev6.2_ep00
usb 6-1: uevent
usb usb6: usb_disable_device nuking all URBs
ohci_hcd 0000:02:00.0: shutdown urb cee330a0 pipe 40408180 ep1in-intr

=================================
[ INFO: inconsistent lock state ]
---------------------------------
inconsistent {in-hardirq-W} -> {hardirq-on-W} usage.
pccardctl/4427 [HC0[0]:SC0[0]:HE1:SE1] takes:
 (hcd_data_lock){++..}, at: [<d0094041>] hcd_endpoint_disable+0x5c/0x19a 
[usbcore]
{in-hardirq-W} state was registered at:
  [<b012ef91>] lock_acquire+0x4a/0x6d
  [<b026d3b3>] _spin_lock_irqsave+0x2c/0x3c
  [<d0093d14>] urb_unlink+0x2e/0x52 [usbcore]
  [<d0093e3b>] usb_hcd_giveback_urb+0x13/0x5d [usbcore]
  [<d00656f2>] uhci_giveback_urb+0x11f/0x146 [uhci_hcd]
  [<d0066311>] uhci_scan_schedule+0x589/0x7ea [uhci_hcd]
  [<d0066b22>] uhci_irq+0x14c/0x162 [uhci_hcd]
  [<d0093c5d>] usb_hcd_irq+0x26/0x54 [usbcore]
  [<b01383f2>] handle_IRQ_event+0x1f/0x4c
  [<b01384b3>] __do_IRQ+0x94/0xef
  [<b0105021>] do_IRQ+0x71/0x84
  [<b0103455>] common_interrupt+0x25/0x2c
  [<b0101794>] cpu_idle+0x61/0x84
  [<b010030b>] rest_init+0x37/0x39
  [<b038f76f>] start_kernel+0x39c/0x3a4
  [<b0100210>] 0xb0100210
irq event stamp: 7505
hardirqs last  enabled at (7505): [<b0119329>] vprintk+0x2b8/0x2f6
hardirqs last disabled at (7504): [<b01190fa>] vprintk+0x89/0x2f6
softirqs last  enabled at (4974): [<b011d223>] __do_softirq+0xe8/0xee
softirqs last disabled at (4965): [<b011d267>] do_softirq+0x3e/0x56

other info that might help us debug this:
2 locks held by pccardctl/4427:
 #0:  (&socket->skt_mutex){--..}, at: [<b026c436>] mutex_lock+0x1c/0x1f
 #1:  (usb_bus_list_lock){--..}, at: [<b026c436>] mutex_lock+0x1c/0x1f

stack backtrace:
 [<b0103c40>] show_trace_log_lvl+0x54/0xfd
 [<b0104d66>] show_trace+0xd/0x10
 [<b0104d80>] dump_stack+0x17/0x1b
 [<b012dd0b>] print_usage_bug+0x1cb/0x1d8
 [<b012dee5>] mark_lock+0x1cd/0x34c
 [<b012e792>] __lock_acquire+0x42e/0x9ab
 [<b012ef91>] lock_acquire+0x4a/0x6d
 [<b026d5ab>] _spin_lock+0x23/0x32
 [<d0094041>] hcd_endpoint_disable+0x5c/0x19a [usbcore]
 [<d0095bac>] usb_disable_endpoint+0x51/0x53 [usbcore]
 [<d009626e>] usb_disable_device+0x62/0x12d [usbcore]
 [<d0091da9>] usb_disconnect+0x96/0x110 [usbcore]
 [<d0093b94>] usb_remove_hcd+0x88/0xe0 [usbcore]
 [<d009bf2d>] usb_hcd_pci_remove+0x18/0x6a [usbcore]
 [<b01afe90>] pci_device_remove+0x19/0x2c
 [<b02010c2>] __device_release_driver+0x63/0x79
 [<b02012ec>] device_release_driver+0x29/0x39
 [<b0200a2d>] bus_remove_device+0x81/0x91
 [<b01ffa56>] device_del+0x10c/0x140
 [<b01ffa95>] device_unregister+0xb/0x15
 [<b01ae015>] pci_remove_bus_device+0x3c/0xdb
 [<b01ae0d1>] pci_remove_behind_bridge+0x1d/0x30
 [<d0105836>] cb_free+0x1a/0x1d [pcmcia_core]
 [<d010279e>] socket_shutdown+0x6e/0xee [pcmcia_core]
 [<d010297a>] socket_remove+0x1d/0x24 [pcmcia_core]
 [<d01029c0>] pcmcia_eject_card+0x3f/0x4d [pcmcia_core]
 [<d0105170>] pccard_store_eject+0x1c/0x24 [pcmcia_core]
 [<b0201827>] class_device_attr_store+0x1d/0x22
 [<b018790c>] sysfs_write_file+0xb1/0xd7
 [<b0154f07>] vfs_write+0xac/0x158
 [<b0155783>] sys_write+0x3b/0x60
 [<b0102935>] sysenter_past_esp+0x56/0x8d
usb usb6: unregistering interface 6-0:1.0
 usbdev6.1_ep81: ep_device_release called for usbdev6.1_ep81
usb 6-0:1.0: uevent
usb usb6: unregistering device
 usbdev6.1_ep00: ep_device_release called for usbdev6.1_ep00
usb usb6: uevent
ohci_hcd 0000:02:00.0: stop operational controller (state 0x00)
ohci_hcd 0000:02:00.0: OHCI controller state
ohci_hcd 0000:02:00.0: OHCI 3.15, NO legacy support registers
ohci_hcd 0000:02:00.0: control 0xffffffff RWE RWC IR HCFS=suspend BLE CLE IE 
PLE CBSR=3
ohci_hcd 0000:02:00.0: cmdstatus 0xffffffff SOC=3 OCR BLF CLF HCR
ohci_hcd 0000:02:00.0: intrstatus 0xffffffff MIE OC RHSC FNO UE RD SF WDH SO
ohci_hcd 0000:02:00.0: intrenable 0xffffffff MIE OC RHSC FNO UE RD SF WDH SO
ohci_hcd 0000:02:00.0: ed_periodcurrent ffffffff
ohci_hcd 0000:02:00.0: ed_controlhead ffffffff
ohci_hcd 0000:02:00.0: ed_controlcurrent ffffffff
ohci_hcd 0000:02:00.0: ed_bulkhead ffffffff
ohci_hcd 0000:02:00.0: ed_bulkcurrent ffffffff
ohci_hcd 0000:02:00.0: donehead ffffffff
ohci_hcd 0000:02:00.0: hcca frame #7ffd
ohci_hcd 0000:02:00.0: USB bus 6 deregistered


-- 
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  [EMAIL PROTECTED]
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
Blessed is he who has reached the point of no return and knows it, for
he shall enjoy living.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to