Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1551016

Re: Need clarity on PCIe MSI interrupt in device tree

From valmiki <valmikibow@gmail.com>
Newsgroups linux.kernel
Subject Re: Need clarity on PCIe MSI interrupt in device tree
Date 2017-01-04 18:40 +0100
Message-ID <sVXHA-7LF-41@gated-at.bofh.it> (permalink)
References <sVKhk-7mf-11@gated-at.bofh.it> <sVQG6-3e8-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Thanks Mark

On 1/4/2017 3:35 PM, Mark Rutland wrote:
> On Wed, Jan 04, 2017 at 08:47:43AM +0530, valmiki wrote:
>> Hi,
>
> Hi,
>
>> I have confusion on MSI interrupt flags in PCIe documetation.
>>
>> MSI interrupts are edge triggered, but i see some controllers use
>> Ex:tegra <0 99 0x4>, here interrupt flags show 0x4 which means level
>> sensitive as per include/dt-bindings/interrupt-controller/irq.h.
>
> As Marc says, this isn't actually a description of an MSI, but rather
> the interrupt generated by the interrupt controller, which is often (but
> not always) built into PCIe host controllers.
>
> This looks something like:
>
> +--------+        +-----------------+            +----------+
> |        |        +----------+      |~~msi~irq~~>|          |
> | Device |==MSI==>| MSI ctrl | PCIe |            | IRQ ctrl |~~~> CPU
> |        |        +----------+      |~~intx~irq~>|          |
> +--------+        +-----------------+            +----------+
>
> Each PCIe device sends MSIs to the MSI controller. In response to this,
> the MSI controller raises a wired interrupt, which is named "msi" in the
> DT binding because it is the interrupt generated by the MSI controller,
> and the PCIe controller may raise several distinct interrupts which all
> need names.
>
>> May i know why is it like this, why MSI depicted as level sensitive
>> in device tree.
>
> As above, the interrupt from the MSI controller to the interrupt
> controller is level sensitive, but this is not the case for the actual
> MSIs.
>
> Thanks,
> Mark.
>

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Need clarity on PCIe MSI interrupt in device tree valmiki <valmikibow@gmail.com> - 2017-01-04 04:20 +0100
  Re: Need clarity on PCIe MSI interrupt in device tree Marc Zyngier <marc.zyngier@arm.com> - 2017-01-04 09:30 +0100
    Re: Need clarity on PCIe MSI interrupt in device tree valmiki <valmikibow@gmail.com> - 2017-01-04 18:30 +0100
  Re: Need clarity on PCIe MSI interrupt in device tree Mark Rutland <mark.rutland@arm.com> - 2017-01-04 11:10 +0100
    Re: Need clarity on PCIe MSI interrupt in device tree valmiki <valmikibow@gmail.com> - 2017-01-04 18:40 +0100
  Need clarity on MSI handling in RC driver valmiki <valmikibow@gmail.com> - 2017-01-04 18:40 +0100
    Re: Need clarity on MSI handling in RC driver Marc Zyngier <marc.zyngier@arm.com> - 2017-01-04 18:50 +0100
      Re: Need clarity on MSI handling in RC driver valmiki <valmikibow@gmail.com> - 2017-01-06 03:40 +0100

csiph-web