* Regarding MPC8540 IRQ Issue
@ 2007-06-16 9:27 sudheer
2007-06-17 0:16 ` Bhupender Saharan
0 siblings, 1 reply; 4+ messages in thread
From: sudheer @ 2007-06-16 9:27 UTC (permalink / raw)
To: linuxppc-embedded
Hello All
I am working on MPC8540 board placing it in the PCI slot of the x86 system.
After system bootup , i could see the powerpc board detected and pci
config space configured.
But i could not find any IRQ assigned for it.
SetUp:
Host: x86 System- Linux-2.6.9
HOST PCI Slot is 64-bit, 66MHz
Agent: MPC8540 Board.
Here is dump of "lspci -vx " for this device.
04:03.0 Power PC: Motorola MPC8540 (rev 20) (prog-if 01)
Flags: bus master, 66Mhz, fast devsel, latency 64
Memory at dee00000 (32-bit, non-prefetchable) [size=1M]
Capabilities: [60] #00 [0000]
00: 57 10 08 00 46 01 b0 00 20 01 20 0b 00 40 00 00
10: 00 00 e0 de 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 60 00 00 00 00 00 00 00 00 00 00 00
From the above dump - IRQ Pin & Line of config space shows zeroes.
I tried writing a small module and probing for IRQ generating a message
interrupt. Though i could see in the 8540 message status register that
interrupt is generated, i could not get any IRQ when i do the probe. For
this trial, i have configured the PIC message enable register, message
vector/priority and destination registers, processor current task
priority register (CPTR).
Can anyone give me some suggestions to try out.
Thanks
Sudheer
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Regarding MPC8540 IRQ Issue
2007-06-16 9:27 Regarding MPC8540 IRQ Issue sudheer
@ 2007-06-17 0:16 ` Bhupender Saharan
2007-06-18 14:37 ` sudheer
0 siblings, 1 reply; 4+ messages in thread
From: Bhupender Saharan @ 2007-06-17 0:16 UTC (permalink / raw)
To: sudheer; +Cc: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 2156 bytes --]
Hi Sudhir,
>From the PCI dump it looks like IRQ PIN register is 0. During enumeration
when BIOS sees that IRQ PIN register is 0, it would not allocate any
interrupt for this card and that's why you are seeing IRQ Line register also
as 0 value.
We need to do some work around for this.
IN the driver you need to register for all the pci vectors( INTA,B,C and
D). You would be called for any interrupt happening on the bus. you have to
check if the interrupt is for you and then claim it otherwise return that
interrupt is not for you.
Regards
Bhupi
On 6/16/07, sudheer <urwithsudheer@gmail.com> wrote:
>
> Hello All
>
> I am working on MPC8540 board placing it in the PCI slot of the x86
> system.
> After system bootup , i could see the powerpc board detected and pci
> config space configured.
> But i could not find any IRQ assigned for it.
>
> SetUp:
> Host: x86 System- Linux-2.6.9
> HOST PCI Slot is 64-bit, 66MHz
> Agent: MPC8540 Board.
>
> Here is dump of "lspci -vx " for this device.
>
> 04:03.0 Power PC: Motorola MPC8540 (rev 20) (prog-if 01)
> Flags: bus master, 66Mhz, fast devsel, latency 64
> Memory at dee00000 (32-bit, non-prefetchable) [size=1M]
> Capabilities: [60] #00 [0000]
> 00: 57 10 08 00 46 01 b0 00 20 01 20 0b 00 40 00 00
> 10: 00 00 e0 de 00 00 00 00 00 00 00 00 00 00 00 00
> 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 30: 00 00 00 00 60 00 00 00 00 00 00 00 00 00 00 00
>
> From the above dump - IRQ Pin & Line of config space shows zeroes.
>
> I tried writing a small module and probing for IRQ generating a message
> interrupt. Though i could see in the 8540 message status register that
> interrupt is generated, i could not get any IRQ when i do the probe. For
> this trial, i have configured the PIC message enable register, message
> vector/priority and destination registers, processor current task
> priority register (CPTR).
>
> Can anyone give me some suggestions to try out.
>
> Thanks
> Sudheer
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
[-- Attachment #2: Type: text/html, Size: 2793 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Regarding MPC8540 IRQ Issue
2007-06-17 0:16 ` Bhupender Saharan
@ 2007-06-18 14:37 ` sudheer
2007-06-18 22:18 ` Bhupender Saharan
0 siblings, 1 reply; 4+ messages in thread
From: sudheer @ 2007-06-18 14:37 UTC (permalink / raw)
To: Bhupender Saharan; +Cc: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 2734 bytes --]
Hi Bhupi
Thanks for the response.
I tried with all the free irqs as per /proc/interrupts in request_irq
function one in each trial. But in none of them it jumped to interrupt
handler.
Please let me know whether this is the one you said to try or anything
else. ?
Thanks
Sudheer
Bhupender Saharan wrote:
> Hi Sudhir,
>
> From the PCI dump it looks like IRQ PIN register is 0. During
> enumeration when BIOS sees that IRQ PIN register is 0, it would not
> allocate any interrupt for this card and that's why you are seeing IRQ
> Line register also as 0 value.
>
> We need to do some work around for this.
>
> IN the driver you need to register for all the pci vectors( INTA,B,C
> and D). You would be called for any interrupt happening on the bus.
> you have to check if the interrupt is for you and then claim it
> otherwise return that interrupt is not for you.
>
>
> Regards
> Bhupi
>
>
> On 6/16/07, *sudheer* <urwithsudheer@gmail.com
> <mailto:urwithsudheer@gmail.com>> wrote:
>
> Hello All
>
> I am working on MPC8540 board placing it in the PCI slot of the
> x86 system.
> After system bootup , i could see the powerpc board detected and pci
> config space configured.
> But i could not find any IRQ assigned for it.
>
> SetUp:
> Host: x86 System- Linux-2.6.9
> HOST PCI Slot is 64-bit, 66MHz
> Agent: MPC8540 Board.
>
> Here is dump of "lspci -vx " for this device.
>
> 04:03.0 Power PC: Motorola MPC8540 (rev 20) (prog-if 01)
> Flags: bus master, 66Mhz, fast devsel, latency 64
> Memory at dee00000 (32-bit, non-prefetchable) [size=1M]
> Capabilities: [60] #00 [0000]
> 00: 57 10 08 00 46 01 b0 00 20 01 20 0b 00 40 00 00
> 10: 00 00 e0 de 00 00 00 00 00 00 00 00 00 00 00 00
> 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 30: 00 00 00 00 60 00 00 00 00 00 00 00 00 00 00 00
>
> From the above dump - IRQ Pin & Line of config space shows zeroes.
>
> I tried writing a small module and probing for IRQ generating a
> message
> interrupt. Though i could see in the 8540 message status register that
> interrupt is generated, i could not get any IRQ when i do the
> probe. For
> this trial, i have configured the PIC message enable register,
> message
> vector/priority and destination registers, processor current task
> priority register (CPTR).
>
> Can anyone give me some suggestions to try out.
>
> Thanks
> Sudheer
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org <mailto:Linuxppc-embedded@ozlabs.org>
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
>
[-- Attachment #2: Type: text/html, Size: 3621 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Regarding MPC8540 IRQ Issue
2007-06-18 14:37 ` sudheer
@ 2007-06-18 22:18 ` Bhupender Saharan
0 siblings, 0 replies; 4+ messages in thread
From: Bhupender Saharan @ 2007-06-18 22:18 UTC (permalink / raw)
To: sudheer; +Cc: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 2807 bytes --]
Hi Sudhir,
You got a try all the interrupt vecrots corressponding to INTA, INTB, INTC
and INTD, Not the free interrupts.
Bhupi
On 6/18/07, sudheer <urwithsudheer@gmail.com> wrote:
>
> Hi Bhupi
> Thanks for the response.
> I tried with all the free irqs as per /proc/interrupts in request_irq
> function one in each trial. But in none of them it jumped to interrupt
> handler.
> Please let me know whether this is the one you said to try or anything
> else. ?
>
> Thanks
> Sudheer
>
> Bhupender Saharan wrote:
>
> Hi Sudhir,
>
> >From the PCI dump it looks like IRQ PIN register is 0. During enumeration
> when BIOS sees that IRQ PIN register is 0, it would not allocate any
> interrupt for this card and that's why you are seeing IRQ Line register also
> as 0 value.
>
> We need to do some work around for this.
>
> IN the driver you need to register for all the pci vectors( INTA,B,C and
> D). You would be called for any interrupt happening on the bus. you have to
> check if the interrupt is for you and then claim it otherwise return that
> interrupt is not for you.
>
>
> Regards
> Bhupi
>
>
> On 6/16/07, sudheer <urwithsudheer@gmail.com> wrote:
> >
> > Hello All
> >
> > I am working on MPC8540 board placing it in the PCI slot of the x86
> > system.
> > After system bootup , i could see the powerpc board detected and pci
> > config space configured.
> > But i could not find any IRQ assigned for it.
> >
> > SetUp:
> > Host: x86 System- Linux-2.6.9
> > HOST PCI Slot is 64-bit, 66MHz
> > Agent: MPC8540 Board.
> >
> > Here is dump of "lspci -vx " for this device.
> >
> > 04:03.0 Power PC: Motorola MPC8540 (rev 20) (prog-if 01)
> > Flags: bus master, 66Mhz, fast devsel, latency 64
> > Memory at dee00000 (32-bit, non-prefetchable) [size=1M]
> > Capabilities: [60] #00 [0000]
> > 00: 57 10 08 00 46 01 b0 00 20 01 20 0b 00 40 00 00
> > 10: 00 00 e0 de 00 00 00 00 00 00 00 00 00 00 00 00
> > 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> > 30: 00 00 00 00 60 00 00 00 00 00 00 00 00 00 00 00
> >
> > >From the above dump - IRQ Pin & Line of config space shows zeroes.
> >
> > I tried writing a small module and probing for IRQ generating a message
> > interrupt. Though i could see in the 8540 message status register that
> > interrupt is generated, i could not get any IRQ when i do the probe. For
> >
> > this trial, i have configured the PIC message enable register, message
> > vector/priority and destination registers, processor current task
> > priority register (CPTR).
> >
> > Can anyone give me some suggestions to try out.
> >
> > Thanks
> > Sudheer
> >
> > _______________________________________________
> > Linuxppc-embedded mailing list
> > Linuxppc-embedded@ozlabs.org
> > https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> >
>
>
>
[-- Attachment #2: Type: text/html, Size: 4259 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-06-18 22:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-16 9:27 Regarding MPC8540 IRQ Issue sudheer
2007-06-17 0:16 ` Bhupender Saharan
2007-06-18 14:37 ` sudheer
2007-06-18 22:18 ` Bhupender Saharan
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).