From: Jingoo Han <jg1.han@samsung.com>
To: 'Phil Edworthy' <phil.edworthy@renesas.com>
Cc: linux-pci@vger.kernel.org, 'Richard Zhu' <r65037@freescale.com>,
'Shawn Guo' <shawn.guo@linaro.org>,
'Mohit Kumar' <mohit.kumar@st.com>,
'Pratyush Anand' <pratyush.anand@st.com>,
'Marek Vasut' <marex@denx.de>,
'Kishon Vijay Abraham I' <kishon@ti.com>,
'Lucas Stach' <l.stach@pengutronix.de>,
'Tim Harvey' <tharvey@gateworks.com>,
'Arnd Bergmann' <arnd@arndb.de>,
'Jingoo Han' <jg1.han@samsung.com>
Subject: Re: [Q] Synopsys PCIe interrupts
Date: Wed, 14 May 2014 09:59:51 +0900 [thread overview]
Message-ID: <001801cf6f0f$cfd4b510$6f7e1f30$%han@samsung.com> (raw)
In-Reply-To: <fd5f29f175b2499e9d972629f1ccd74a@HKXPR06MB168.apcprd06.prod.outlook.com>
On Wednesday, May 14, 2014 1:14 AM, Phil Edworthy wrote:
>
> Hi,
>
> I am currently writing another driver that uses the Synopsys Designware
> PCIe host controller driver.
>
> In general, it all looks good thanks to all involved in this driver.
> One area that I am having a little problem with is the interrupts.
> According to the documentation I have, the module has separate
> interrupts for INTA, INTB, INTC, INTD, MSI, AER, bandwidth management,
> PME (and possibly a couple of others as well).
>
> However, so far it looks like the upstream implementations just use
> a single interrupt for the module, is that correct? I notice that some
> DT bindings include other interrupts that are not part of the Designware
> PCIe controller, but that's not what I'm talking about.
(+cc Mohit Kumar, Pratyush Anand, Marek Vasut, Kishon Vijay Abraham I,
Lucas Stach, Tim Harvey, Arnd Bergmann)
PCIe Interrupt mapping is specific for SoC.
In the case of Exynos, there are three interrupts for
Exynos PCIe; INTx, MSI, PHY Link, respectively as below.
./arch/arm/boot/dts/exynos5440.dtsi
interrupts = <0 20 0>, <0 21 0>, <0 22 0>;
<0 20 0>: PCIe RC0 pulse interrupt,
INTA, INTB, INTC and INTD, etc
<0 21 0>: PCIe RC0 level interrupt,
MSI, etc
<0 22 0>: PCIe RC0 special interrupt,
PHY Link related interrupts, etc
So, there are three lines between GIC and PCIe. Also, IRQ mappings
for other SoCs are different.
For example, the IMX6 maps INTA/B/C/D to ARM GIC IRQ 155/154/153/152
respectively.
Then, how many lines are there between GIC and PCIe in your SoC?
How does your SoC map interrupts to GIC?
>
> In existing implementations, does the hardware just OR
> all these interrupts together?
>
Sorry, I cannot understand; other engineers will answer.
Best regards,
Jingoo Han
> Thanks
> Phil
next prev parent reply other threads:[~2014-05-14 0:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-13 16:14 [Q] Synopsys PCIe interrupts Phil Edworthy
2014-05-14 0:59 ` Jingoo Han [this message]
2014-05-14 4:54 ` Tim Harvey
2014-05-14 8:13 ` Phil Edworthy
2014-05-14 8:41 ` Lucas Stach
2014-05-14 9:13 ` Phil Edworthy
2014-05-14 9:26 ` Arnd Bergmann
2014-05-14 10:01 ` Phil Edworthy
2014-05-22 22:38 ` Karicheri, Muralidharan
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='001801cf6f0f$cfd4b510$6f7e1f30$%han@samsung.com' \
--to=jg1.han@samsung.com \
--cc=arnd@arndb.de \
--cc=kishon@ti.com \
--cc=l.stach@pengutronix.de \
--cc=linux-pci@vger.kernel.org \
--cc=marex@denx.de \
--cc=mohit.kumar@st.com \
--cc=phil.edworthy@renesas.com \
--cc=pratyush.anand@st.com \
--cc=r65037@freescale.com \
--cc=shawn.guo@linaro.org \
--cc=tharvey@gateworks.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