On Sun, 19 Jun 2005 [EMAIL PROTECTED] wrote: > Sorry, my message was a bit confusing/incomplete. > uhci-hcd loaded -> freeze on plug > uhci-hcd not loaded -> no freeze > > > > If you do > > > > rmmod uhci-hcd > > plug in device > > modprobe uhci-hcd > > > > does your system hang? > > No. > I can then mount the device, use it, umount, unplug, every is ok. > But it hangs if I plug again (since the module has been loaded). > > > > It happens with any kind of USB device : camera, MP3 player, ... > > > It happens with 2.6 kernels (I didn't test them all, but 2.6.0, 2.6.8, > > 2.6.11.x, > > > 2.6.12 do). > > > It DOES NOT happen with 2.4 kernels (with the same hardware configuration > > and > > > USB devices).
The 2.4 kernels include two different UHCI drivers: usb-uhci and uhci. Have you tried using both of them? As far as I know, uhci is extremely similar to 2.6.0's uhci-hcd. If your system doesn't hang with 2.4/uhci but it does hang with 2.6.0/uhci-hcd, that's a good indication the problem lies somewhere other than in the UHCI driver. > > Have you turned off the BIOS settings for Legacy USB support? > > Yes. Is it correct ? That's correct; it should be turned off. > > If you turn on USB verbose debugging in the kernel configuration > > (CONFIG_USB_DEBUG) and rebuild the USB drivers, does anything show up in > > the log or on the screen (use Alt-SysRq-9 to see all log messages on a > > text-mode console) when you plug in a device? What debugging messages > > appear in the log when uhci-hcd is first loaded? > > If uhci-hcd is loaded, no message on terminal, nothing found in the logs after > reboot. > > If uhci-hcd is not loaded, no message on plug. > On modprobe uhci-hcd : > > Jun 19 00:48:17 grimmy kernel: USB Universal Host Controller Interface driver > v2.2 > Jun 19 00:48:17 grimmy kernel: PCI: Found IRQ 10 for device 0000:00:07.2 > Jun 19 00:48:17 grimmy kernel: PCI: Sharing IRQ 10 with 0000:00:07.3 > Jun 19 00:48:17 grimmy kernel: uhci_hcd 0000:00:07.2: VIA Technologies, Inc. > VT82xxxxx UHCI USB 1.1 Controller > Jun 19 00:48:17 grimmy kernel: uhci_hcd 0000:00:07.2: new USB bus registered, > assigned bus number 1 > Jun 19 00:48:17 grimmy kernel: uhci_hcd 0000:00:07.2: irq 10, io base > 0x0000d400 > Jun 19 00:48:17 grimmy kernel: uhci_hcd 0000:00:07.2: detected 2 ports > Jun 19 00:48:17 grimmy kernel: usb usb1: default language 0x0409 > Jun 19 00:48:17 grimmy kernel: usb usb1: new device strings: Mfr=3, Product=2, > SerialNumber=1 > Jun 19 00:48:17 grimmy kernel: usb usb1: Product: VIA Technologies, Inc. > VT82xxxxx UHCI USB 1.1 Controller > Jun 19 00:48:17 grimmy kernel: usb usb1: Manufacturer: Linux 2.6.12 uhci_hcd > Jun 19 00:48:17 grimmy kernel: usb usb1: SerialNumber: 0000:00:07.2 > Jun 19 00:48:17 grimmy kernel: usb usb1: hotplug > Jun 19 00:48:17 grimmy kernel: usb usb1: adding 1-0:1.0 (config #1, interface > 0) > Jun 19 00:48:17 grimmy kernel: usb 1-0:1.0: hotplug > Jun 19 00:48:17 grimmy kernel: hub 1-0:1.0: usb_probe_interface > Jun 19 00:48:17 grimmy kernel: hub 1-0:1.0: usb_probe_interface - got id > Jun 19 00:48:17 grimmy kernel: hub 1-0:1.0: USB hub found > Jun 19 00:48:17 grimmy kernel: hub 1-0:1.0: 2 ports detected > Jun 19 00:48:17 grimmy kernel: hub 1-0:1.0: standalone hub > Jun 19 00:48:17 grimmy kernel: hub 1-0:1.0: no power switching (usb 1.0) > Jun 19 00:48:17 grimmy kernel: hub 1-0:1.0: individual port over-current > protection > Jun 19 00:48:17 grimmy kernel: hub 1-0:1.0: power on to power good time: 2ms > Jun 19 00:48:17 grimmy kernel: hub 1-0:1.0: local power source is good > Jun 19 00:48:17 grimmy kernel: hub 1-0:1.0: state 5 ports 2 chg 0000 evt 0000 > Jun 19 00:48:17 grimmy kernel: uhci_hcd 0000:00:07.2: port 1 portsc 018a,00 > Jun 19 00:48:17 grimmy kernel: hub 1-0:1.0: port 1, status 0300, change 0003, > 1.5 Mb/s > Jun 19 00:48:17 grimmy kernel: PCI: Found IRQ 10 for device 0000:00:07.3 > Jun 19 00:48:17 grimmy kernel: PCI: Sharing IRQ 10 with 0000:00:07.2 > Jun 19 00:48:17 grimmy kernel: uhci_hcd 0000:00:07.3: VIA Technologies, Inc. > VT82xxxxx UHCI USB 1.1 Controller (#2) > Jun 19 00:48:17 grimmy kernel: uhci_hcd 0000:00:07.3: new USB bus registered, > assigned bus number 2 > Jun 19 00:48:17 grimmy kernel: uhci_hcd 0000:00:07.3: irq 10, io base > 0x0000d800 > Jun 19 00:48:17 grimmy kernel: uhci_hcd 0000:00:07.3: detected 2 ports > Jun 19 00:48:17 grimmy kernel: usb usb2: default language 0x0409 > Jun 19 00:48:17 grimmy kernel: usb usb2: new device strings: Mfr=3, Product=2, > SerialNumber=1 > Jun 19 00:48:17 grimmy kernel: usb usb2: Product: VIA Technologies, Inc. > VT82xxxxx UHCI USB 1.1 Controller (#2) > Jun 19 00:48:17 grimmy kernel: usb usb2: Manufacturer: Linux 2.6.12 uhci_hcd > Jun 19 00:48:17 grimmy kernel: usb usb2: SerialNumber: 0000:00:07.3 > Jun 19 00:48:17 grimmy kernel: usb usb2: hotplug > Jun 19 00:48:17 grimmy kernel: usb usb2: adding 2-0:1.0 (config #1, interface > 0) > Jun 19 00:48:17 grimmy kernel: usb 2-0:1.0: hotplug > Jun 19 00:48:17 grimmy kernel: hub 2-0:1.0: usb_probe_interface > Jun 19 00:48:17 grimmy kernel: hub 2-0:1.0: usb_probe_interface - got id > Jun 19 00:48:17 grimmy kernel: hub 2-0:1.0: USB hub found > Jun 19 00:48:17 grimmy kernel: hub 2-0:1.0: 2 ports detected > Jun 19 00:48:17 grimmy kernel: hub 2-0:1.0: standalone hub > Jun 19 00:48:17 grimmy kernel: hub 2-0:1.0: no power switching (usb 1.0) > Jun 19 00:48:17 grimmy kernel: hub 2-0:1.0: individual port over-current > protection > Jun 19 00:48:17 grimmy kernel: hub 2-0:1.0: power on to power good time: 2ms > Jun 19 00:48:17 grimmy kernel: hub 2-0:1.0: local power source is good > Jun 19 00:48:17 grimmy kernel: hub 1-0:1.0: debounce: port 1: total 100ms > stable > 100ms status 0x300 > Jun 19 00:48:17 grimmy kernel: uhci_hcd 0000:00:07.2: port 2 portsc 009b,00 > Jun 19 00:48:17 grimmy kernel: hub 1-0:1.0: port 2, status 0101, change 0003, > 12 > Mb/s > Jun 19 00:48:17 grimmy kernel: hub 1-0:1.0: debounce: port 2: total 100ms > stable > 100ms status 0x101 > Jun 19 00:48:17 grimmy kernel: usb 1-2: new full speed USB device using > uhci_hcd > and address 2 > Jun 19 00:48:17 grimmy usb.agent[2755]: usbcore: already loaded > Jun 19 00:48:17 grimmy kernel: usb 1-2: ep0 maxpacket = 8 > Jun 19 00:48:17 grimmy kernel: usb 1-2: default language 0x0409 > Jun 19 00:48:18 grimmy kernel: usb 1-2: new device strings: Mfr=1, Product=2, > SerialNumber=0 > Jun 19 00:48:18 grimmy kernel: usb 1-2: Product: USB Dual-mode Camera > Jun 19 00:48:18 grimmy kernel: usb 1-2: Manufacturer: STMicroelectronics > Jun 19 00:48:18 grimmy kernel: usb 1-2: hotplug > Jun 19 00:48:18 grimmy kernel: usb 1-2: adding 1-2:1.0 (config #1, interface > 0) > Jun 19 00:48:18 grimmy kernel: usb 1-2:1.0: hotplug > Jun 19 00:48:18 grimmy kernel: hub 2-0:1.0: state 5 ports 2 chg 0000 evt 0006 > Jun 19 00:48:18 grimmy kernel: uhci_hcd 0000:00:07.3: port 1 portsc 018a,00 > Jun 19 00:48:18 grimmy kernel: hub 2-0:1.0: port 1, status 0300, change 0003, > 1.5 Mb/s > Jun 19 00:48:18 grimmy kernel: hub 2-0:1.0: debounce: port 1: total 100ms > stable > 100ms status 0x300 > Jun 19 00:48:18 grimmy kernel: uhci_hcd 0000:00:07.3: port 2 portsc 018a,00 > Jun 19 00:48:18 grimmy kernel: hub 2-0:1.0: port 2, status 0300, change 0003, > 1.5 Mb/s > Jun 19 00:48:18 grimmy usb.agent[2785]: usbcore: already loaded > Jun 19 00:48:18 grimmy kernel: hub 2-0:1.0: debounce: port 2: total 100ms > stable > 100ms status 0x300 > Jun 19 00:48:18 grimmy kernel: hub 1-0:1.0: state 5 ports 2 chg 0000 evt 0004 > Jun 19 00:48:18 grimmy kernel: Linux video capture interface: v1.00 > Jun 19 00:48:18 grimmy kernel: stv680 1-2:1.0: usb_probe_interface > Jun 19 00:48:18 grimmy kernel: stv680 1-2:1.0: usb_probe_interface - got id > Jun 19 00:48:18 grimmy kernel: drivers/usb/media/stv680.c: [stv680_probe:1377] > STV(i): STV0680 camera found. > Jun 19 00:48:18 grimmy kernel: drivers/usb/media/stv680.c: [stv680_probe:1415] > STV(i): registered new video device: video0 > Jun 19 00:48:18 grimmy kernel: usbcore: registered new driver stv680 > Jun 19 00:48:18 grimmy kernel: drivers/usb/media/stv680.c: > [usb_stv680_init:1493] STV(i): usb camera driver version v0.25 registering > Jun 19 00:48:18 grimmy kernel: drivers/usb/media/stv680.c: STV0680 USB Camera > Driver v0.25 > Jun 19 00:48:18 grimmy usb.agent[2845]: stv680: loaded successfully > Jun 19 00:48:18 grimmy udev[2900]: creating device node '/dev/video0' > Jun 19 00:48:19 grimmy kernel: uhci_hcd 0000:00:07.3: suspend_hc > > > On unplug : > > Jun 19 00:48:33 grimmy kernel: hub 1-0:1.0: state 5 ports 2 chg 0000 evt 0004 > Jun 19 00:48:33 grimmy kernel: uhci_hcd 0000:00:07.2: port 2 portsc 008a,00 > Jun 19 00:48:33 grimmy kernel: hub 1-0:1.0: port 2, status 0100, change 0003, > 12 > Mb/s > Jun 19 00:48:33 grimmy kernel: usb 1-2: USB disconnect, address 2 > Jun 19 00:48:33 grimmy kernel: usb 1-2: usb_disable_device nuking all URBs > Jun 19 00:48:33 grimmy kernel: usb 1-2: unregistering interface 1-2:1.0 > Jun 19 00:48:33 grimmy kernel: drivers/usb/media/stv680.c: > [usb_stv680_remove_disconnected:1448] STV(i): STV0680 disconnected > Jun 19 00:48:33 grimmy kernel: usb 1-2:1.0: hotplug > Jun 19 00:48:33 grimmy kernel: usb 1-2: unregistering device > Jun 19 00:48:33 grimmy kernel: usb 1-2: hotplug > Jun 19 00:48:33 grimmy udev[2911]: removing device node '/dev/video0' > Jun 19 00:48:33 grimmy kernel: hub 1-0:1.0: debounce: port 2: total 100ms > stable > 100ms status 0x100 > Jun 19 00:48:34 grimmy kernel: uhci_hcd 0000:00:07.2: suspend_hc That all looks right. I can't see anything wrong with it. I don't know what could be causing your problem. Do you want to try a diagnostic patch to see if the uhci-hcd interrupt routine gets called when you plug in a device? Can you buy a PCI USB card and use it instead of the USB controller on your motherboard? It might allow you to bypass this problem, and it will also give you USB 2.0 capability. Alan Stern ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel