* MPC8555 PCI interrupts are not coming
@ 2006-08-24 12:52 Parav Pandit
2006-08-25 16:08 ` Andy Fleming
0 siblings, 1 reply; 2+ messages in thread
From: Parav Pandit @ 2006-08-24 12:52 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1024 bytes --]
Hi,
Can someone give light on PCI interrupts routing to the OS from the openPIC?
Basically I am able to talk to PCI end device connected on MPC8555 board in 2.6.13 but not getting interrupts reported by my device.
When I read the INTERRUPT_LINE byte, it comes as 0. pdev->irq is also reporting 0.
Due to that request_irq() fails. But now I request for IRQ line 8 + openPIC offset.
Handler gets registered but still not getting the interrupts. (PCI interrupt line is 8,9 in case of MPC8555).
Can anyone please guide me, what are the different things need be configure in the platform code to receive the PCI interrupts in the driver?
I don't understand the pci_irq_table, and what it should represent?
Currrently no one is writing the INTERRUPT LINE value in the config space.
In which function I should configure that value? pcibios_fixup??
Regards,
Parav Pandit
---------------------------------
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail.
[-- Attachment #2: Type: text/html, Size: 1338 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: MPC8555 PCI interrupts are not coming
2006-08-24 12:52 MPC8555 PCI interrupts are not coming Parav Pandit
@ 2006-08-25 16:08 ` Andy Fleming
0 siblings, 0 replies; 2+ messages in thread
From: Andy Fleming @ 2006-08-25 16:08 UTC (permalink / raw)
To: Parav Pandit; +Cc: linuxppc-embedded
On Aug 24, 2006, at 07:52, Parav Pandit wrote:
> Hi,
>
> Can someone give light on PCI interrupts routing to the OS from the
> openPIC?
The routing depends on your board. On the CDS board, PCI interrupts
are mapped to ext[0-3]. On the ADS, they are mapped to ext[1-4].
There are four PCI interrupts (A,B,C,D), and they are usually
swizzled so that different slots have a different mapping (this way,
two cards in different slots which use interrupt A don't conflict).
>
> Basically I am able to talk to PCI end device connected on MPC8555
> board in 2.6.13 but not getting interrupts reported by my device.
>
> When I read the INTERRUPT_LINE byte, it comes as 0. pdev->irq is
> also reporting 0.
> Due to that request_irq() fails. But now I request for IRQ line 8 +
> openPIC offset.
> Handler gets registered but still not getting the interrupts. (PCI
> interrupt line is 8,9 in case of MPC8555).
When are you trying to read the interrupt_line byte? In 2.6.13, you
need to have an IRQ mapping function, which takes the idsel reported
by the slot, and converts it to the interrupt number for the PIC.
That code also writes the INTERRUPT_LINE byte.
>
> Can anyone please guide me, what are the different things need be
> configure in the platform code to receive the PCI interrupts in the
> driver?
>
> I don't understand the pci_irq_table, and what it should represent?
> Currrently no one is writing the INTERRUPT LINE value in the config
> space.
> In which function I should configure that value? pcibios_fixup??
>
> Regards,
> Parav Pandit
>
>
> Do you Yahoo!?
> Get on board. You're invited to try the new Yahoo! Mail.
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-08-25 16:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-24 12:52 MPC8555 PCI interrupts are not coming Parav Pandit
2006-08-25 16:08 ` Andy Fleming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox