The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>
Subject: Re: [PATCH v2] genirq: spurious irq detection for threaded irqs
Date: Mon, 8 Mar 2010 10:01:39 +0100	[thread overview]
Message-ID: <20100308090139.GA27502@pengutronix.de> (raw)
In-Reply-To: <alpine.LFD.2.00.1003052102580.2014@localhost.localdomain>

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@pengutronix.de>
> > Cc: Thomas Gleixner <tglx@linutronix.de>
> > Cc: Ingo Molnar <mingo@elte.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/  |

      reply	other threads:[~2010-03-08  9:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-04 10:30 [PATCH] genirq: spurious irq detection for threaded irqs Uwe Kleine-König
2010-03-04 22:26 ` Thomas Gleixner
2010-03-05  7:58   ` Uwe Kleine-König
2010-03-05 15:18   ` [PATCH v2] " Uwe Kleine-König
2010-03-05 20:16     ` Thomas Gleixner
2010-03-08  9:01       ` Uwe Kleine-König [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100308090139.GA27502@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox