Re: OHCI root_port_reset() deadly loop...

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Miller
Date: Monday, October 8, 2007 - 8:16 pm

From: Greg KH <greg@kroah.com>
Date: Mon, 8 Oct 2007 20:10:49 -0700


As coicidence would have it I finally found a recipe for triggering
the issue, and it ties into what you're talking about here.

It happens only if I make sure OHCI gets loaded first and then EHCI
right afterwards.

It seems that indeed it is important for EHCI to get loaded first,
and in-kernel this is ensured by the link ordering.

However, when both OHCI and EHCI are built as modules (or, similarly
I guess, OHCI is built-in and EHCI is modular) there appears to be
nothing in userspace which makes sure EHCI gets loaded first.

When this triggers, in OHCI's root_port_reset(), the port status
register reads 0x111 in that inner-loop and the value never changes.
It stays like this forever.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
OHCI root_port_reset() deadly loop..., David Miller, (Sat Oct 6, 11:53 pm)
Re: OHCI root_port_reset() deadly loop..., David Brownell, (Sun Oct 7, 12:31 am)
Re: OHCI root_port_reset() deadly loop..., David Miller, (Sun Oct 7, 12:51 am)
Re: OHCI root_port_reset() deadly loop..., David Miller, (Mon Oct 8, 4:54 pm)
Re: OHCI root_port_reset() deadly loop..., Greg KH, (Mon Oct 8, 8:10 pm)
Re: OHCI root_port_reset() deadly loop..., David Miller, (Mon Oct 8, 8:16 pm)
Re: OHCI root_port_reset() deadly loop..., David Brownell, (Mon Oct 8, 8:34 pm)
Re: OHCI root_port_reset() deadly loop..., David Miller, (Mon Oct 8, 8:42 pm)
Re: OHCI root_port_reset() deadly loop..., David Brownell, (Mon Oct 8, 9:09 pm)
Re: OHCI root_port_reset() deadly loop..., David Brownell, (Mon Oct 8, 9:36 pm)
Re: OHCI root_port_reset() deadly loop..., Greg KH, (Mon Oct 8, 9:39 pm)
Re: OHCI root_port_reset() deadly loop..., David Miller, (Mon Oct 8, 9:44 pm)
Re: OHCI root_port_reset() deadly loop..., David Miller, (Mon Oct 8, 9:47 pm)
Re: OHCI root_port_reset() deadly loop..., David Brownell, (Mon Oct 8, 10:00 pm)
Re: OHCI root_port_reset() deadly loop..., Benjamin Herrenschmidt, (Mon Oct 8, 10:11 pm)
Re: OHCI root_port_reset() deadly loop..., Benjamin Herrenschmidt, (Mon Oct 8, 10:13 pm)
Re: OHCI root_port_reset() deadly loop..., David Miller, (Mon Oct 8, 10:23 pm)
Re: OHCI root_port_reset() deadly loop..., David Miller, (Mon Oct 8, 10:26 pm)
Re: OHCI root_port_reset() deadly loop..., Greg KH, (Mon Oct 8, 11:06 pm)
Re: OHCI root_port_reset() deadly loop..., Benjamin Herrenschmidt, (Mon Oct 8, 11:37 pm)
Re: OHCI root_port_reset() deadly loop..., Benjamin Herrenschmidt, (Mon Oct 8, 11:43 pm)
Re: OHCI root_port_reset() deadly loop..., David Brownell, (Tue Oct 9, 9:38 am)
Re: OHCI root_port_reset() deadly loop..., David Brownell, (Tue Oct 9, 11:48 am)
Re: OHCI root_port_reset() deadly loop..., David Miller, (Tue Oct 9, 1:41 pm)
Re: OHCI root_port_reset() deadly loop..., Greg KH, (Tue Oct 9, 1:46 pm)
Re: OHCI root_port_reset() deadly loop..., David Brownell, (Tue Oct 9, 2:05 pm)
Re: OHCI root_port_reset() deadly loop..., David Brownell, (Tue Oct 9, 2:09 pm)
Re: [Linux-usb-users] OHCI root_port_reset() deadly loop..., David Brownell, (Tue Oct 16, 11:26 am)