On Wed, 2004-07-07 at 14:10, Alan Stern wrote: > > This shows that some thread has locked the usb_all_devices_rwsem but > didn't unlock it. Kind of hard to tell where that occurred, though. Did > you apply that short patch I sent out yesterday? It's included in the > patch below. >
Yes, I had already applied the 1 liner you sent yesterday. > This patch will print a lot of extra information related to that rwsem in > the system log. Probably everything we need will be in the part of the > log corresponding to when the usbhid module is loaded. > Here is the relevant log output: USB Universal Host Controller Interface driver v2.2 ACPI: PCI interrupt 0000:00:04.2[D] -> GSI 9 (level, low) -> IRQ 9 uhci_hcd 0000:00:04.2: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller uhci_hcd 0000:00:04.2: irq 9, io base 0000d400 uhci_hcd 0000:00:04.2: new USB bus registered, assigned bus number 1 uhci_hcd 0000:00:04.2: detected 2 ports usb_lock_device: udev=f7fdea00 count=0 [<c025037a>] usb_lock_device+0x3a/0x60 [<c02553ad>] usb_register_root_hub+0xdd/0x150 [<f896d803>] uhci_start+0x563/0x750 [uhci_hcd] [<c02551df>] usb_register_bus+0x10f/0x140 [<c025a946>] usb_hcd_pci_probe+0x2a6/0x5b0 [<c01dadd2>] pci_device_probe_static+0x52/0x70 [<c01dae2b>] __pci_device_probe+0x3b/0x50 [<c01dae6c>] pci_device_probe+0x2c/0x50 [<c0216e8f>] bus_match+0x3f/0x70 [<c0216fb9>] driver_attach+0x59/0x90 [<c0217371>] bus_add_driver+0x91/0xb0 [<c021791f>] driver_register+0x2f/0x40 [<c01db0ec>] pci_register_driver+0x5c/0x90 [<f89330c9>] uhci_hcd_init+0xc9/0x131 [uhci_hcd] [<c012ff24>] sys_init_module+0x114/0x230 [<c0104035>] sysenter_past_esp+0x52/0x71 usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: default language 0x0409 usb usb1: Product: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller usb usb1: Manufacturer: Linux 2.6.7-mm6 uhci_hcd usb usb1: SerialNumber: 0000:00:04.2 usb usb1: hotplug usb usb1: adding 1-0:1.0 (config #1, interface 0) usb 1-0:1.0: hotplug hub 1-0:1.0: usb_probe_interface hub 1-0:1.0: usb_probe_interface - got id hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected hub 1-0:1.0: standalone hub hub 1-0:1.0: no power switching (usb 1.0) hub 1-0:1.0: individual port over-current protection hub 1-0:1.0: power on to power good time: 2ms hub 1-0:1.0: local power source is good usb_unlock_device: udev=f7fdea00 count=1 ACPI: PCI interrupt 0000:00:04.3[D] -> GSI 9 (level, low) -> IRQ 9 uhci_hcd 0000:00:04.3: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#2) uhci_hcd 0000:00:04.3: irq 9, io base 0000d000 uhci_hcd 0000:00:04.3: new USB bus registered, assigned bus number 2 uhci_hcd 0000:00:04.3: detected 2 ports usb_lock_device: udev=f7fd2800 count=0 [<c025037a>] usb_lock_device+0x3a/0x60 [<c02553ad>] usb_register_root_hub+0xdd/0x150 [<f896d803>] uhci_start+0x563/0x750 [uhci_hcd] [<c02551df>] usb_register_bus+0x10f/0x140 [<c025a946>] usb_hcd_pci_probe+0x2a6/0x5b0 [<c01dadd2>] pci_device_probe_static+0x52/0x70 [<c01dae2b>] __pci_device_probe+0x3b/0x50 [<c01dae6c>] pci_device_probe+0x2c/0x50 [<c0216e8f>] bus_match+0x3f/0x70 [<c0216fb9>] driver_attach+0x59/0x90 [<c0217371>] bus_add_driver+0x91/0xb0 [<c021791f>] driver_register+0x2f/0x40 [<c01db0ec>] pci_register_driver+0x5c/0x90 [<f89330c9>] uhci_hcd_init+0xc9/0x131 [uhci_hcd] [<c012ff24>] sys_init_module+0x114/0x230 [<c0104035>] sysenter_past_esp+0x52/0x71 usb usb2: new device strings: Mfr=3, Product=2, SerialNumber=1 usb usb2: default language 0x0409 usb usb2: Product: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#2) usb usb2: Manufacturer: Linux 2.6.7-mm6 uhci_hcd usb usb2: SerialNumber: 0000:00:04.3 usb usb2: hotplug usb usb2: adding 2-0:1.0 (config #1, interface 0) usb 2-0:1.0: hotplug usb_lock_device: udev=f7fdea00 count=1 [<c025037a>] usb_lock_device+0x3a/0x60 [<c02539c4>] hub_events+0x64/0x4d0 [<c0253e65>] hub_thread+0x35/0x130 [<c0117a00>] autoremove_wake_function+0x0/0x60 [<c0103f5e>] ret_from_fork+0x6/0x14 [<c0117a00>] autoremove_wake_function+0x0/0x60 [<c0253e30>] hub_thread+0x0/0x130 [<c0102291>] kernel_thread_helper+0x5/0x14 uhci_hcd 0000:00:04.2: port 1 portsc 008a hub 1-0:1.0: port 1, status 0100, change 0003, 12 Mb/s hub 2-0:1.0: usb_probe_interface hub 2-0:1.0: usb_probe_interface - got id hub 2-0:1.0: USB hub found hub 2-0:1.0: 2 ports detected hub 2-0:1.0: standalone hub hub 2-0:1.0: no power switching (usb 1.0) hub 2-0:1.0: individual port over-current protection hub 2-0:1.0: power on to power good time: 2ms hub 2-0:1.0: local power source is good usb_unlock_device: udev=f7fd2800 count=2 hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100 uhci_hcd 0000:00:04.2: port 2 portsc 01ab hub 1-0:1.0: port 2, status 0301, change 0003, 1.5 Mb/s hub 1-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x301 usb 1-2: new low speed USB device using address 2 usb_lock_device: udev=f7fd4800 count=1 [<c025037a>] usb_lock_device+0x3a/0x60 [<c0253654>] hub_port_connect_change+0x1d4/0x4e0 [<c0253d9f>] hub_events+0x43f/0x4d0 [<c0253e65>] hub_thread+0x35/0x130 [<c0117a00>] autoremove_wake_function+0x0/0x60 [<c0103f5e>] ret_from_fork+0x6/0x14 [<c0117a00>] autoremove_wake_function+0x0/0x60 [<c0253e30>] hub_thread+0x0/0x130 [<c0102291>] kernel_thread_helper+0x5/0x14 usb 1-2: skipped 1 descriptor after interface usb 1-2: new device strings: Mfr=1, Product=2, SerialNumber=0 usb 1-2: default language 0x0409 usb 1-2: Product: Microsoft Wheel Mouse Optical usb 1-2: Manufacturer: Microsoft usb 1-2: hotplug usb 1-2: adding 1-2:1.0 (config #1, interface 0) usb 1-2:1.0: hotplug usb_unlock_device: udev=f7fd4800 count=2 usb_unlock_device: udev=f7fdea00 count=1 usb_lock_device: udev=f7fdea00 count=0 [<c025037a>] usb_lock_device+0x3a/0x60 [<c02539c4>] hub_events+0x64/0x4d0 [<c0253e65>] hub_thread+0x35/0x130 [<c0117a00>] autoremove_wake_function+0x0/0x60 [<c0103f5e>] ret_from_fork+0x6/0x14 [<c0117a00>] autoremove_wake_function+0x0/0x60 [<c0253e30>] hub_thread+0x0/0x130 [<c0102291>] kernel_thread_helper+0x5/0x14 usb_unlock_device: udev=f7fdea00 count=1 usb_lock_device: udev=f7fd2800 count=0 [<c025037a>] usb_lock_device+0x3a/0x60 [<c02539c4>] hub_events+0x64/0x4d0 [<c0253e65>] hub_thread+0x35/0x130 [<c0117a00>] autoremove_wake_function+0x0/0x60 [<c0103f5e>] ret_from_fork+0x6/0x14 [<c0117a00>] autoremove_wake_function+0x0/0x60 [<c0253e30>] hub_thread+0x0/0x130 [<c0102291>] kernel_thread_helper+0x5/0x14 uhci_hcd 0000:00:04.3: port 1 portsc 008a hub 2-0:1.0: port 1, status 0100, change 0003, 12 Mb/s usb_lock_all_devices: count=1 hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100 uhci_hcd 0000:00:04.3: port 2 portsc 009b hub 2-0:1.0: port 2, status 0101, change 0003, 12 Mb/s hub 2-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x101 usb 2-2: new full speed USB device using address 2 usb_lock_device: udev=f7fd4200 count=ffff0001 [<c025037a>] usb_lock_device+0x3a/0x60 [<c0253654>] hub_port_connect_change+0x1d4/0x4e0 [<c0253d9f>] hub_events+0x43f/0x4d0 [<c0253e65>] hub_thread+0x35/0x130 [<c0117a00>] autoremove_wake_function+0x0/0x60 [<c0103f5e>] ret_from_fork+0x6/0x14 [<c0117a00>] autoremove_wake_function+0x0/0x60 [<c0253e30>] hub_thread+0x0/0x130 [<c0102291>] kernel_thread_helper+0x5/0x14 Jesse -- Jesse Stockall <[EMAIL PROTECTED]> ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel