[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20100308090139.GA27502@pengutronix.de>
Date: Mon, 8 Mar 2010 10:01:39 +0100
From: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...e.hu>
Subject: Re: [PATCH v2] genirq: spurious irq detection for threaded irqs
Hey Thomas,
On Fri, Mar 05, 2010 at 09:16:53PM +0100, Thomas Gleixner wrote:
> On Fri, 5 Mar 2010, Uwe Kleine-König wrote:
>
> > For threaded irqs the top half returns IRQ_WAKE_THREAD. Don't treat
> > that value like IRQ_HANDLED for the spurious check. Instead check the
> > return value of the threaded handler to be able to detect stuck irqs
> > that only have threaded handlers and no top half that can detect the
> > problem.
> >
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
> > Cc: Thomas Gleixner <tglx@...utronix.de>
> > Cc: Ingo Molnar <mingo@...e.hu>
> > ---
> > Hello,
> >
> > changed since v1:
> >
> > - use note_interrupt for the threaded handler's return value, getting rid of
> > note_threaded_interrupt. The only downside is that a threaded handler
> > returning IRQ_WAKE_THREAD remains uncatched now.
>
> Well that's easy to fix.
>
> > + if (!noirqdebug)
> > + note_interrupt(action->irq, desc, action_ret);
>
> note_interrupt(action->irq, desc,
> action_ret & ~IRQ_WAKE_THREAD);
Hmmm, this makes IRQ_WAKE_THREAD be noted as IRQ_NONE.
If this is intended it IMHO deserves a comment. Something like:
/*
* The threaded handler must return IRQ_NONE or IRQ_HANDLED.
* As IRQ_WAKE_THREAD is handled special by note_interrupt
* report it as IRQ_NONE.
*/
Well and with that approach (IRQ_WAKE_THREAD | IRQ_HANDLED) is handled
as IRQ_HANDLED, but I think I start wasting time.
Actually I don't care what we do here, should I resend with action_ret &
~IRQ_WAKE_THREAD and the comment?
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists