public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: tglx@linutronix.de (Thomas Gleixner)
To: linux-arm-kernel@lists.infradead.org
Subject: Design of interrupt controller driver
Date: Sun, 4 Jun 2017 15:55:46 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.20.1706041551530.2813@nanos> (raw)
In-Reply-To: <8bce8bdd-5801-f0c3-ada3-e1c68acc8913@free.fr>

On Sat, 3 Jun 2017, Mason wrote:
> 1) The interrupt router has 128 inputs and 24 outputs.
> Therefore, several devices have to share an output line.
> I believe they *must* be of the same interrupt type?
> In the limit, we could use
> - 1 output line for level high
> - 1 output line for level low
> - 1 output line for edge rising
> - 1 output line for edge falling
> Is that correct?

No. You CANNOT share edge type interrupts, simply because it might be
impossible to figure out which device fired the interrupt.

> As for the DMA interrupt, the HW designers consider it
> a level interrupt. When the engine is busy processing
> a command, the interrupt signal is low; when the engine's
> command queue is empty, the interrupt signal is high.
> Thus, there is no risk of "missing a pulse". But maz
> has stated twice that the relevant *event* is the
> transition from "busy" to "idle", which makes this
> an edge (rising) interrupt. However, it doesn't have
> the problem described in 2)  The interrupt signal
> will remain high, so there is no risk of "missing"
> a pulse. So they can be grouped. Is that correct?

That depends on the DMA controller. If you can disable the interrupt line
at the DMA device level, then you can use that scheme. If not, you'll get
an interrupt storm as long as the DAM engine is idle.

Thanks,

	tglx

  parent reply	other threads:[~2017-06-04 13:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-03 16:49 Design of interrupt controller driver Mason
2017-06-03 18:20 ` Mason
2017-06-04 13:55 ` Thomas Gleixner [this message]
2017-06-04 17:18   ` Mason
2017-06-04 20:13     ` Thomas Gleixner
2017-06-04 23:40       ` Mason
2017-06-05  8:23         ` Thomas Gleixner
2017-06-05 11:57           ` Mason
2017-06-06  7:39             ` Thomas Gleixner
2017-06-06  9:35               ` Mason
2017-06-06 10:29                 ` Thomas Gleixner

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=alpine.DEB.2.20.1706041551530.2813@nanos \
    --to=tglx@linutronix.de \
    --cc=linux-arm-kernel@lists.infradead.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