Re: [REGRESSION] 2.6.24/25: random lockups when accessing external USB harddrive

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Stefan Becker <Stefan.Becker@...>
Cc: <linux-kernel@...>, <linux-usb@...>
Date: Saturday, June 28, 2008 - 12:53 pm

On Sat, 28 Jun 2008, Stefan Becker wrote:


It certainly looks like you've found a flaw in the core kernel.  Or 
else a subtle hardware flaw in your CPU...

Just to be certain, take out all your new code and instead add a simple 
test at the start of usb_hcd_irq() in hcd.c.  That routine is the 
registered handler for USB interrupts.  If interrupts are ever enabled 
at that spot, then something is badly wrong.

You might also keep track of the total number of each type of call, so
whenever you find interrupts are enabled, you can print out something
like this:

	usb_hcd_irq(): interrupts disabled %d, enabled %d

where the two values are the numbers of times the routine has been 
called with interrupts off or on, respectively.  You don't have to run 
this for a long time; since the test code should _never_ trigger, any 
output at all will indicate a real problem.

When you get that, change the Subject of your email to make it more 
noticeable.  A line like:

	BUG in 2.6.26-rc8 interrupt handling!

should draw people's attention.  :-)  Include a description of the 
problem and a copy of /proc/interrupts.

Alan Stern

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

Messages in current thread:
Re: [REGRESSION] 2.6.24/25: random lockups when accessing ex..., Alan Stern, (Sat Jun 28, 12:53 pm)
BUG in 2.6.26-rc8 interrupt handling, Becker Stefan (Nokia-D/Salo)..., (Sat Jun 28, 3:34 pm)
Re: BUG in 2.6.26-rc8 interrupt handling, David Brownell, (Sat Jun 28, 3:51 pm)
PATCH: 2.6.26-rc8: Fix IRQF_DISABLED for shared interrupts, Stefan Becker, (Sun Jun 29, 10:57 am)
Re: [PATCH] USB: fix interrupt disabling for HCDs with share..., Leonardo Chiquitto, (Tue Jul 1, 10:19 am)
Re: PATCH: 2.6.26-rc8: Fix IRQF_DISABLED for shared interrupts, Henrique de Moraes Holschuh..., (Mon Jun 30, 10:28 am)