From: Daniel Walker <dwalker@mvista.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org
Subject: Re: [PATCH -rt][RESEND] fix preempt hardirqs on OMAP
Date: Mon, 11 Dec 2006 11:38:28 -0800 [thread overview]
Message-ID: <1165865908.8103.30.camel@imap.mvista.com> (raw)
In-Reply-To: <20061211190554.GA26392@elte.hu>
On Mon, 2006-12-11 at 20:05 +0100, Ingo Molnar wrote:
> * Daniel Walker <dwalker@mvista.com> wrote:
>
> > + /*
> > + * Some boards will disable an interrupt when it
> > + * sets IRQ_PENDING . So we have to remove the flag
> > + * and re-enable to handle it.
> > + */
> > + if (desc->status & IRQ_PENDING) {
> > + desc->status &= ~IRQ_PENDING;
> > + if (desc->chip)
> > + desc->chip->enable(irq);
> > + goto restart;
> > + }
>
> what if the irq got disabled meanwhile? Also, chip->enable is a
> compatibility method, not something we should use in a flow handler.
I don't know how other arches deal with IRQ_PENDING, but ARM (OMAP at
least) disables the IRQ on IRQ_PENDING. The problem is that by threading
the IRQ we take some control away from the low level code, which needs
to be replaced.
I'm open to potentially removing the irq disable()->enable() cycle on
IRQ_PENDING if it's only done on OMAP. My feeling is that it's in other
ARM's which would make that change more invasive, but I haven't actually
researched that.
Daniel
next prev parent reply other threads:[~2006-12-11 19:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-10 16:35 [PATCH -rt][RESEND] fix preempt hardirqs on OMAP Daniel Walker
2006-12-11 19:05 ` Ingo Molnar
2006-12-11 19:38 ` Daniel Walker [this message]
2006-12-11 19:53 ` Tony Lindgren
2006-12-11 19:54 ` Russell King
2006-12-11 19:59 ` Daniel Walker
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=1165865908.8103.30.camel@imap.mvista.com \
--to=dwalker@mvista.com \
--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