linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Sarnath  Kannan" <sparc64@rediffmail.com>
To: linuxppc-embedded@lists.linuxppc.org
Subject: EPIC Initizn
Date: 7 Nov 2001 14:35:57 -0000	[thread overview]
Message-ID: <20011107143557.14912.qmail@mailweb32.rediffmail.com> (raw)


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/

             reply	other threads:[~2001-11-07 14:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-07 14:35 Sarnath  Kannan [this message]
2001-11-07 14:48 ` EPIC Initizn Dag Nygren

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=20011107143557.14912.qmail@mailweb32.rediffmail.com \
    --to=sparc64@rediffmail.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /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;
as well as URLs for NNTP newsgroup(s).