linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Ran Shalit <ranshalit@gmail.com>
To: Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: use interrupt without clearing ?
Date: Tue, 13 Oct 2015 00:14:52 +0300	[thread overview]
Message-ID: <CAJ2oMhJeo=T3r_rG-dBATxZiC36XBnzxoiD+fnLu37QpoGmcpg@mail.gmail.com> (raw)
In-Reply-To: <1444618435.7194.2.camel@ellerman.id.au>

On Mon, Oct 12, 2015 at 5:53 AM, Michael Ellerman <mpe@ellerman.id.au> wrote:
> On Sun, 2015-10-11 at 15:13 +0300, Ran Shalit wrote:
>> Hello,
>>
>> Is it possible to register an interrupt (in linux), without using the
>> automatic clear of interrupt.
>> I need this just for testing.
>
> Hi Ran,
>
> You need to give us much more info than that before anyone will be able to
> answer your question. Linux runs on lots of different powerpc machines, so
> without knowing what hardware you're talking about it's impossible to
> answer.
>
> cheers
>
>

Hi,

The interrupt for external IRQ.
It is configured in device tree as following:


intc4@0{
compatible = "intc4";
 #address-cells = <1>;
 #size-cells = <0>;
 reg = <0 0x1000>;
 interrupts = <20 0x8> ;
 interrupt-parent = <&ipic>;
};

It works OK (with normal clearing of interrupt), but we need to
implement a testing requirement as following (startup BIT  testing):

1. an interrupt is given - and not being cleared automatically
2. need to validate that there is a pending interrupt
3. and then we can clear the interrupt and restore the mechnism to its
normal usage (automatic cleari of interrupt)

Regards,
Ran

      reply	other threads:[~2015-10-12 21:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-11 12:13 use interrupt without clearing ? Ran Shalit
2015-10-12  2:53 ` Michael Ellerman
2015-10-12 21:14   ` Ran Shalit [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='CAJ2oMhJeo=T3r_rG-dBATxZiC36XBnzxoiD+fnLu37QpoGmcpg@mail.gmail.com' \
    --to=ranshalit@gmail.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mpe@ellerman.id.au \
    /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;
as well as URLs for NNTP newsgroup(s).