On Tue, 22 Jul 2003, Matthew Dharm wrote:

> What do the UHCI suspend_hc and wakeup_hc messages mean?
> 
> I'm working with someone on debugging a usb-storage problem he's having,
> and he gets his system into a state where it generates these messages over
> and over again, once every few seconds.  It doesn't look right to me, but I
> really don't know for sure....

Amazing!  I too have seen that phenomenon occur several times in the past, 
but it wasn't until just this past weekend that I was able to identify the 
cause.

The messages mean just what they say; the HC is getting suspended and
woken up alternately, over and over.  The cause is something blocking the
khubd thread -- most likely the disconnect() routine in the driver for the
only USB device connected to that controller, which the user has just
unplugged or turned off.

What happens is that khubd first calls disconnect() and only afterwards
finishes resetting the controller's state.  Since the thread is blocked,
the controller never gets fully reset and as a result it generates
spurious wakeup interrupts.  The HC driver obediently wakes up the
controller, but then sees that there aren't any devices actually connected
and so suspends it again.  Repeat ad infinitum...

I submitted a stopgap patch on Monday:

<http://sourceforge.net/mailarchive/forum.php?thread_id=2806563&forum_id=5398> 

It hasn't been accepted yet.  It will prevent this oscillating on-and-off
behavior, but it won't fix the real problem which lies in the offending 
driver.

Alan Stern



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to