* EPIC Initizn
@ 2001-11-07 14:35 Sarnath Kannan
2001-11-07 14:48 ` Dag Nygren
0 siblings, 1 reply; 2+ messages in thread
From: Sarnath Kannan @ 2001-11-07 14:35 UTC (permalink / raw)
To: linuxppc-embedded
Dear Reader,
I m trying to enable linux on a sandpoint X2 board.,
hosting MPC8240. EPIC is proving to be a great pain for
me.
I have initialized the EPIC to generate vectors
from 16-40 and the 8259 generates vector from 0-15.
s6 is down and 8259 is connected to IRQ1 of EPIC.
All interrupts are LevelTriggered
and have -ve polarity. ( I have changed 8259 initz,
so that 8259 generates LEVEL triggered interrupts
just like the PCI devices ). The "get_irq" functin
has also been properly written. ( check for cascade
etc..)
I had setup the IRQ in pci_dev structure according
to their slot/pin configuration.
I am trying to NFS mount the ROOT file system.
The linux code is able to identify the NE2K ethernet
card sitting on PCI bus and is able to talk with it.
But my problem is that I am not getting interrupts.
( I verified by putting a printk in the ei_interrupt
code )
Another puzzling fact is that, if I program IRQ 16
( used by the NE2k driver. Card slot num 16,
and hence connected to IRQ0 of EPIC ) of the EPIC for
+ve polarity & Level Triggered , I get non-stop
continous interrupts which just freeze the CPU.
I am using the OpenPIC code, with slight modifns
(modifns invovle chaning the OpenPIC data structure
to reflect the EPIC register layout.. added a PADding..
Another one is, I had changed OpenPIC init so that
it initializes for 16-40 ( 16 inclusive ). )
I just checked Mvista code. The "disable_IRQ" and
"enable_IRQ" OpenPIC functions have been slightly changed
to suit LEVEL triggered interrupt handling,
May I know the necessity of the change ? My code
doesnt work even after incorporating this fundaa
into mine.
Am I missing something ??
Any help would be greatly appreciated.
Sincerely
Sarnath
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: EPIC Initizn
2001-11-07 14:35 EPIC Initizn Sarnath Kannan
@ 2001-11-07 14:48 ` Dag Nygren
0 siblings, 0 replies; 2+ messages in thread
From: Dag Nygren @ 2001-11-07 14:48 UTC (permalink / raw)
To: Sarnath Kannan; +Cc: linuxppc-embedded, dag
> The linux code is able to identify the NE2K ethernet
> card sitting on PCI bus and is able to talk with it.
> But my problem is that I am not getting interrupts.
> ( I verified by putting a printk in the ei_interrupt
> code )
> Another puzzling fact is that, if I program IRQ 16
> ( used by the NE2k driver. Card slot num 16,
> and hence connected to IRQ0 of EPIC ) of the EPIC for
> +ve polarity & Level Triggered , I get non-stop
> continous interrupts which just freeze the CPU.
> I am using the OpenPIC code, with slight modifns
> (modifns invovle chaning the OpenPIC data structure
> to reflect the EPIC register layout.. added a PADding..
> Another one is, I had changed OpenPIC init so that
> it initializes for 16-40 ( 16 inclusive ). )
>
> I just checked Mvista code. The "disable_IRQ" and
> "enable_IRQ" OpenPIC functions have been slightly changed
> to suit LEVEL triggered interrupt handling,
> May I know the necessity of the change ? My code
> doesnt work even after incorporating this fundaa
> into mine.
>
> Am I missing something ??
> Any help would be greatly appreciated.
Try the EPCI stuff in my VG4 port, posted earlier today.
Works fine for me. (I had the same problems you are listing)
BRGDS
Dag
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-11-07 14:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-07 14:35 EPIC Initizn Sarnath Kannan
2001-11-07 14:48 ` Dag Nygren
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).