lkml.org 
[lkml]   [2008]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [REGRESSION] 2.6.24/25: random lockups when accessing external USB harddrive
    On Sat, 28 Jun 2008, Stefan Becker wrote:

    > Second try, slightly different tack: no dump_stack() in the _irq()
    > functions, but disabled/enabled indication. Plus debugging code added in
    > usb_hcd_add() to see the interrupt registration. Again too much data was
    > printed for the bug to appear.
    >
    > Looking at the collected data it looks like
    >
    > - ehci_irq() is always entered with interrupts enabled (WRONG).
    >
    > - uhci_irq() is entered sometimes with either interrupts enabled
    > (WRONG) or disabled (OK).
    >
    > But both interrupts are registered with IRQF_DISABLED...

    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



    \
     
     \ /
      Last update: 2008-06-28 18:55    [W:0.027 / U:0.128 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site