* Support for multiple MSI interrupts on MPC8377
@ 2011-11-02 21:02 Giffel, Brad
2011-11-03 3:51 ` Michael Ellerman
0 siblings, 1 reply; 4+ messages in thread
From: Giffel, Brad @ 2011-11-02 21:02 UTC (permalink / raw)
To: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 598 bytes --]
I'm working a project using a Spartan 6 FPGA with a PCIe interface and
MSI interrupts. I want to use multiple MSI interrupts (MSI-X is not
supported in the FPGA PCIe core) but the current Linux distribution
(3.0.8) prevents that (lines 23 to 25 in arch/powerpc/kernel/msi.c).
What's the story here? Is the code in place but not tested? I tried
commenting out those lines but a request_irq() called failed for the
second interrupt requested. Am I wasting my time here? Should I
re-architect to use a single MSI interrupt?
Thanks,
- Brad
[-- Attachment #2: Type: text/html, Size: 2583 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Support for multiple MSI interrupts on MPC8377
2011-11-02 21:02 Support for multiple MSI interrupts on MPC8377 Giffel, Brad
@ 2011-11-03 3:51 ` Michael Ellerman
2011-11-03 12:19 ` Giffel, Brad
2011-11-04 14:00 ` Matthew Wilcox
0 siblings, 2 replies; 4+ messages in thread
From: Michael Ellerman @ 2011-11-03 3:51 UTC (permalink / raw)
To: Giffel, Brad; +Cc: linuxppc-dev, Matthew Wilcox
[-- Attachment #1: Type: text/plain, Size: 929 bytes --]
On Wed, 2011-11-02 at 16:02 -0500, Giffel, Brad wrote:
> I’m working a project using a Spartan 6 FPGA with a PCIe interface and
> MSI interrupts. I want to use multiple MSI interrupts (MSI-X is not
> supported in the FPGA PCIe core) but the current Linux distribution
> (3.0.8) prevents that (lines 23 to 25 in arch/powerpc/kernel/msi.c).
>
>
>
> What’s the story here? Is the code in place but not tested? I tried
> commenting out those lines but a request_irq() called failed for the
> second interrupt requested. Am I wasting my time here? Should I
> re-architect to use a single MSI interrupt?
The short and easy answer is you should use a single MSI interrupt.
There is some code in place to support multiple MSI, but only in the
generic code (drivers/pci/msi.c), and I'm not sure if it's complete.
There is no arch support, for any arch AFAIK, and certainly not for
powerpc.
cheers
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Support for multiple MSI interrupts on MPC8377
2011-11-03 3:51 ` Michael Ellerman
@ 2011-11-03 12:19 ` Giffel, Brad
2011-11-04 14:00 ` Matthew Wilcox
1 sibling, 0 replies; 4+ messages in thread
From: Giffel, Brad @ 2011-11-03 12:19 UTC (permalink / raw)
To: linuxppc-dev
A single MSI interrupt it is then.
Thanks,
- Brad
-----Original Message-----
From: Michael Ellerman [mailto:michael@ellerman.id.au]=20
Sent: Wednesday, November 02, 2011 10:51 PM
To: Giffel, Brad
Cc: linuxppc-dev@lists.ozlabs.org; Matthew Wilcox
Subject: Re: Support for multiple MSI interrupts on MPC8377
On Wed, 2011-11-02 at 16:02 -0500, Giffel, Brad wrote:
> I'm working a project using a Spartan 6 FPGA with a PCIe interface and
> MSI interrupts. I want to use multiple MSI interrupts (MSI-X is not
> supported in the FPGA PCIe core) but the current Linux distribution
> (3.0.8) prevents that (lines 23 to 25 in arch/powerpc/kernel/msi.c).
>=20
> =20
>=20
> What's the story here? Is the code in place but not tested? I tried
> commenting out those lines but a request_irq() called failed for the
> second interrupt requested. Am I wasting my time here? Should I
> re-architect to use a single MSI interrupt?
The short and easy answer is you should use a single MSI interrupt.
There is some code in place to support multiple MSI, but only in the
generic code (drivers/pci/msi.c), and I'm not sure if it's complete.
There is no arch support, for any arch AFAIK, and certainly not for
powerpc.
cheers
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Support for multiple MSI interrupts on MPC8377
2011-11-03 3:51 ` Michael Ellerman
2011-11-03 12:19 ` Giffel, Brad
@ 2011-11-04 14:00 ` Matthew Wilcox
1 sibling, 0 replies; 4+ messages in thread
From: Matthew Wilcox @ 2011-11-04 14:00 UTC (permalink / raw)
To: Michael Ellerman; +Cc: linuxppc-dev, Giffel, Brad
On Thu, Nov 03, 2011 at 02:51:22PM +1100, Michael Ellerman wrote:
> There is some code in place to support multiple MSI, but only in the
> generic code (drivers/pci/msi.c), and I'm not sure if it's complete.
> There is no arch support, for any arch AFAIK, and certainly not for
> powerpc.
I think there's an ARM or MIPS architecture that implements support for
it ... the x86 support was never merged.
--
Matthew Wilcox Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-11-04 14:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-02 21:02 Support for multiple MSI interrupts on MPC8377 Giffel, Brad
2011-11-03 3:51 ` Michael Ellerman
2011-11-03 12:19 ` Giffel, Brad
2011-11-04 14:00 ` Matthew Wilcox
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).