Kernel lockup when unplugging device from hub

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(Please CC me, I'm not subscribed)

Hi all,

I've been having some problems with my USB setup, which used to be working
before. I think trouble started when I enabled CONFIG_USB_EHCI_TT_NEWSCHED to
get enough bandwidth for my new USB sound card, though things worked properly
at first. I changed a few other things in my setup (new kernel, new USB hub),
and now things are breaking. The good news is that it's completely
reproducible.

Right now, I'm running 2.6.31-rc4. I have an USB 2.0 hub connected. When I
plug in my wireless keyboard receiver into the hub, things half work (I'm
seeing "drivers/hid/usbhid/hid-core.c: can't reset device,
0000:00:13.2-1.1.3/input0, status -32" sometimes, though this seems dependent
on the output port used). As soon as I unplug my device, I get:
 WARNING: at drivers/usb/host/ehci-hcd.c:906 ehci_urb_dequeue+0x1e1/0x200
          [ehci_hcd]()
(See below for the full trace). After this warning, the machine locks up
(sysreq still works, but the console seems locked up). This happens reliably
with two different hubs I've tried. I'll have a go with other devices later
on. Connecting the keyboard receiver directly to the machine works fine.


I have been trying to get a bit more info, but not very succesful as of yet.
I've enabled USB debugging, but that doesn't give me much more output (or
should I look in debugfs?). I've tried running the stacktrace through
ksymoops, but I'm not so sure that's needed (I read that 2.6 doesn't use
ksymoops, but also that it used to be in the kernel tree, and that 2.6 doesn't
have /proc/ksyms, but /proc/kallsyms, but ksymoops doesn't like kallsyms...)

I'm willing to invest some time debugging this, but I'm at a loss on where to
start. I'll try turning off CONFIG_USB_EHCI_TT_NEWSCHED again, to see if that
removes the problem, but other suggestions are very welcome!

Gr.

Matthijs

Jul 23 11:49:15 xanthe kernel: [  181.563056] ------------[ cut here ]------------
Jul 23 11:49:15 xanthe kernel: [  181.566212] WARNING: at drivers/usb/host/ehci-hcd.c:906 ehci_urb_dequeue+0x1e1/0x200 [ehci_hcd]()
Jul 23 11:49:15 xanthe kernel: [  181.567039] Hardware name: MS-1013
Jul 23 11:49:15 xanthe kernel: [  181.567039] Modules linked in: usbhid hid radeon drm bnep sco rfcomm l2cap bluetooth ipt_MASQUERADE iptable_nat nf_nat xt_tcpudp nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 af_packet iptable_filter ip_tables x_tables fuse snd_atiixp snd_atiixp_modem snd_ac97_codec ac97_bus snd_pcm_oss snd_mixer_oss rt2500pci rt2x00pci snd_pcm rt2x00lib pcmcia snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer input_polldev snd_seq_device msi_laptop mac80211 cfg80211 rfkill snd yenta_socket rsrc_nonstatic eeprom_93cx6 psmouse pcmcia_core serio_raw pcspkr soundcore snd_page_alloc rtc_cmos rtc_core rtc_lib evdev dm_mirror dm_region_hash dm_log dm_snapshot dm_mod ide_cd_mod cdrom ide_gd_mod ohci_hcd sdhci_pci sdhci atiixp mmc_core ehci_hcd ide_core 8139too mii usbcore unix
Jul 23 11:49:15 xanthe kernel: [  181.567039] Pid: 516, comm: khubd Tainted: G       A   2.6.31-rc4 #2
Jul 23 11:49:15 xanthe kernel: [  181.567039] Call Trace:
Jul 23 11:49:15 xanthe kernel: [  181.567039]  [<ffffffffa00790a1>] ? ehci_urb_dequeue+0x1e1/0x200 [ehci_hcd]
Jul 23 11:49:15 xanthe kernel: [  181.567039]  [<ffffffffa00790a1>] ? ehci_urb_dequeue+0x1e1/0x200 [ehci_hcd]
Jul 23 11:49:15 xanthe kernel: [  181.567039]  [<ffffffff81034574>] ? warn_slowpath_common+0x74/0xd0
Jul 23 11:49:15 xanthe kernel: [  181.567039]  [<ffffffffa00790a1>] ? ehci_urb_dequeue+0x1e1/0x200 [ehci_hcd]
Jul 23 11:49:15 xanthe kernel: [  181.567039]  [<ffffffffa0015545>] ? usb_hcd_flush_endpoint+0x125/0x220 [usbcore]
Jul 23 11:49:15 xanthe kernel: [  181.567039]  [<ffffffffa0017ec4>] ? usb_disable_endpoint+0x54/0xa0 [usbcore]
Jul 23 11:49:15 xanthe kernel: [  181.567039]  [<ffffffffa0017f47>] ? usb_disable_device+0x37/0x200 [usbcore]
Jul 23 11:49:15 xanthe kernel: [  181.567039]  [<ffffffffa0011248>] ? usb_disconnect+0xd8/0x210 [usbcore]
Jul 23 11:49:15 xanthe kernel: [  181.567039]  [<ffffffffa0012b2a>] ? hub_thread+0x3fa/0x17a0 [usbcore]
Jul 23 11:49:15 xanthe kernel: [  181.567039]  [<ffffffffa0012730>] ? hub_thread+0x0/0x17a0 [usbcore]
Jul 23 11:49:15 xanthe kernel: [  181.567039]  [<ffffffff8100a666>] ? __switch_to+0x16/0x280
Jul 23 11:49:15 xanthe kernel: [  181.567039]  [<ffffffff8104a710>] ? autoremove_wake_function+0x0/0x30
Jul 23 11:49:15 xanthe kernel: [  181.567039]  [<ffffffffa0012730>] ? hub_thread+0x0/0x17a0 [usbcore]
Jul 23 11:49:15 xanthe kernel: [  181.567039]  [<ffffffffa0012730>] ? hub_thread+0x0/0x17a0 [usbcore]
Jul 23 11:49:15 xanthe kernel: [  181.567039]  [<ffffffff8104a416>] ? kthread+0x96/0xa0
Jul 23 11:49:15 xanthe kernel: [  181.567039]  [<ffffffff81030325>] ? finish_task_switch+0x35/0xb0
Jul 23 11:49:15 xanthe kernel: [  181.567039]  [<ffffffff8100ca8a>] ? child_rip+0xa/0x20
Jul 23 11:49:15 xanthe kernel: [  181.567039]  [<ffffffff8104a380>] ? kthread+0x0/0xa0
Jul 23 11:49:15 xanthe kernel: [  181.567039]  [<ffffffff8100ca80>] ? child_rip+0x0/0x20
Jul 23 11:49:15 xanthe kernel: [  181.567039] ---[ end trace eb8607e1c2d37214 ]---

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux