BUG in 2.6.26-rc8 interrupt handling

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>, <linux-usb@...>
Cc: ext Alan Stern <stern@...>
Date: Saturday, June 28, 2008 - 3:34 pm

Hi,

[I'm not subscribed to this list, so please CC: me]

[Subject has been changed, please read the rest of the thread for all 
the details]

On my AthlonXP single CPU laptop I experience random lockups when I 
access the external USB harddrive with kernels >2.6.23. The problem 
doesn't appear with 2.6.23.

Debugging revealed that a routine was called twice that takes a 
spinlock. But this actually shouldn't happen, because the function 
should only be invoked with interrupts disabled. A little more debugging 
revealed that apparently sometimes interrupts are enabled when the USB 
HCD interrupt handlers are called, although they are registered with 
IRQF_DISABLED.

With the attached patch ontop of 2.6.26-rc8 I get these messages:

kernel: USB_HCD_IRQ interrupts disabled 14206 enabled 6289
kernel: USB_HCD_IRQ interrupts disabled 14761 enabled 6290
kernel: USB_HCD_IRQ interrupts disabled 14761 enabled 6291

I also attached the contents from /proc/interrupts from the machine.

Any ideas what could be wrong or any suggestions in which direction I 
should continue debugging?

Regards,

	Stefan

---
Stefan Becker   Nokia-TP/Salo            Senior Specialist, EE SW
E-Mail: Stefan.Becker@nokia.com          SMS: 4871554@???.??
Office: +358-7180-71554                  FAX: +358-7180-44751
GSM   : +358-50-4871554
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
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)