Re: USB OOPS 2.6.25-rc2-git1

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Stern
Date: Thursday, February 21, 2008 - 9:15 am

On Wed, 20 Feb 2008, David Brownell wrote:


The following comment refers to the "Timer routine either sets" below, 
right?


Correct on both counts.  I had forgotten that the watchdog routine 
clears STS_IAA.


Okay, so this isn't as bad as it seemed.  I don't have a copy of your 
most recent patch, but it seems clear that the watchdog routine must:

	First remove the circumstances that would cause the controller 
	to set IAA.  I guess that means clearing IAAD; it's not
	entirely clear from the spec whether this will do what we 
	want.

	Then clear IAA (if it happens to be set).

This is the only way to avoid the race, and I know that my original
version of the routine does these steps in the wrong order (if at all).  
That should be fixed.  Given sufficiently bizarre hardware we can't be
certain that things won't still go wrong on occasion, but this is the
best we can do for now -- weird hardware can be handled as it arises.

The other change to make (which you have already anticipated) is to 
guard against ehci->reclaim == NULL in end_unlink_async().  There's no 
real need for a warning or stack dump; it should just return silently 
when this happens.  If there is a warning, maybe it should be placed at 
the site of the caller (for example, in ehci_irq() when STS_IAA is 
detected).

Alan Stern

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
USB OOPS 2.6.25-rc2-git1, Andre Tomt, (Tue Feb 19, 8:19 am)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Tue Feb 19, 11:49 am)
Re: USB OOPS 2.6.25-rc2-git1, Alan Stern, (Tue Feb 19, 12:31 pm)
Re: USB OOPS 2.6.25-rc2-git1, Andre Tomt, (Tue Feb 19, 2:58 pm)
Re: USB OOPS 2.6.25-rc2-git1, David Miller, (Tue Feb 19, 3:24 pm)
Re: USB OOPS 2.6.25-rc2-git1, Andre Tomt, (Tue Feb 19, 3:28 pm)
Re: USB OOPS 2.6.25-rc2-git1, Andre Tomt, (Tue Feb 19, 4:04 pm)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Tue Feb 19, 5:19 pm)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Tue Feb 19, 5:32 pm)
Re: USB OOPS 2.6.25-rc2-git1, David Miller, (Tue Feb 19, 6:40 pm)
Re: USB OOPS 2.6.25-rc2-git1, Alan Stern, (Wed Feb 20, 9:10 am)
Re: USB OOPS 2.6.25-rc2-git1, Andre Tomt, (Wed Feb 20, 1:33 pm)
Re: USB OOPS 2.6.25-rc2-git1, Alan Stern, (Wed Feb 20, 2:16 pm)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Wed Feb 20, 2:24 pm)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Wed Feb 20, 2:56 pm)
Re: USB OOPS 2.6.25-rc2-git1, Alan Stern, (Wed Feb 20, 3:33 pm)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Wed Feb 20, 3:54 pm)
Re: USB OOPS 2.6.25-rc2-git1, Andre Tomt, (Wed Feb 20, 5:25 pm)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Wed Feb 20, 5:53 pm)
Re: USB OOPS 2.6.25-rc2-git1, Alan Stern, (Thu Feb 21, 8:56 am)
Re: USB OOPS 2.6.25-rc2-git1, Alan Stern, (Thu Feb 21, 9:15 am)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Mon Feb 25, 2:13 am)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Tue Mar 4, 9:15 pm)
Re: USB OOPS 2.6.25-rc2-git1, Alan Stern, (Wed Mar 5, 10:04 am)
Re: USB OOPS 2.6.25-rc2-git1, David Brownell, (Wed Mar 5, 10:39 am)