From: Ralf Baechle <ralf@linux-mips.org>
To: Adeel Malik <AdeelM@quartics.com>
Cc: linux-mips@linux-mips.org
Subject: Re: How to request an IRQ for NMI on MIPS Processor
Date: Tue, 4 Nov 2003 14:28:01 +0100 [thread overview]
Message-ID: <20031104132801.GA5297@linux-mips.org> (raw)
In-Reply-To: <10C6C1971DA00C4BB87AC0206E3CA38264F543@1aurora.enabtech>
On Tue, Nov 04, 2003 at 05:58:32PM +0500, Adeel Malik wrote:
> Hi Ralph,
^^
Who is that guy? ;-)
> Thanks for the reply. Yes you are right that NMI isn't meant to
> be used as a regular IRQ of MIPS Processor. But somehow the board designer
> connected the External Interrupt from video capture device to the NMI and
> now I am thinking as how to how implement the Interrupt handler routine for
> the NMI of MIPS processor. Do you think that we need to re-route the Board
> or there may be some patch available describing the implementation of
> Interrupt handler for NMI of MIPS 4Kc.
As I said the NMI goes through the firmware so the way how to handle the
NMI on your specific board is entirely upto the firmware. This is also
why you don't find much code related to NMIs in Linux.
I think it's highly desirable to fix this little hardware problem even
though that is going to involve some cost. To look at things a bit more
from the Linux side:
- NMI may even interrupt a previous NMI. Again that means you'll lose your
previous state, dead.
- NMI means you have to paranoidly check the interrupt code.
Hmm... Here's a little idea. Bits 8 and 9 in the status and cause
registers are for the MIPS sofware interrupt bits which Linux doesn't use
at all. NMI could use those so on return from NMI a normal maskable
interrupt would be triggered. That would minimize the NMI path and
complications that could arise from it's not-maskability.
Ralf
next prev parent reply other threads:[~2003-11-04 13:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-04 12:58 How to request an IRQ for NMI on MIPS Processor Adeel Malik
2003-11-04 13:28 ` Ralf Baechle [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-11-11 5:26 Liu Hongming (Alan)
2003-11-11 5:45 ` Ralf Baechle
2003-11-11 5:21 Adeel Malik
2003-11-11 4:39 Liu Hongming (Alan)
2003-11-11 2:51 Liu Hongming (Alan)
2003-11-11 3:40 ` Ralf Baechle
2003-11-04 11:56 Adeel Malik
2003-11-04 12:30 ` Ralf Baechle
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=20031104132801.GA5297@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=AdeelM@quartics.com \
--cc=linux-mips@linux-mips.org \
/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