From: Marc Zyngier <marc.zyngier@arm.com>
To: valmiki <valmikibow@gmail.com>,
linux-pci <linux-pci@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: Bjorn Helgaas <helgaas@kernel.org>
Subject: Re: Why two irq chips for MSI
Date: Wed, 21 Mar 2018 17:25:25 +0000 [thread overview]
Message-ID: <adf13928-d1da-e8af-5b32-efc199ac6ba9@arm.com> (raw)
In-Reply-To: <81eb7191-1c5c-ad27-2714-9563e4ef7c68@gmail.com>
On 21/03/18 17:12, valmiki wrote:
> Hi,
>
> In most of the RP drivers, why two irq chips are being used for MSI ?
>
> One at irq_domain_set_info (which uses irq_compose_msi_msg and
> irq_set_affinity methods) and another being registered with struct
> msi_domain_info (which uses irq_mask/irq_unmask methods).
>
> When will each chip be used w.r.t to virq ?
A simple way to think of it is that you have two pieces of HW involved:
an end-point that generates an interrupt, and a controller that receives it.
Transpose this to the kernel view of things: one chip implements the PCI
MSI, with the PCI semantics attached to it (how to program the
payload/doorbell into the end-point, for example). The other implements
the MSI controller part of it, talking to the HW that deals with the
interrupt.
Does it makes sense? Admittedly, this is not always that simple, but
that the general approach.
Thanks,
M.
--
Jazz is not dead. It just smells funny...
next prev parent reply other threads:[~2018-03-21 17:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-21 17:12 valmiki
2018-03-21 17:25 ` Marc Zyngier [this message]
2018-03-21 17:38 ` valmiki
2018-03-21 18:05 ` Marc Zyngier
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=adf13928-d1da-e8af-5b32-efc199ac6ba9@arm.com \
--to=marc.zyngier@arm.com \
--cc=helgaas@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=valmikibow@gmail.com \
/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
all inboxes | Powered by JetHome®