linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* "OpenPIC versus EPIC" in MPC8240 !
@ 2001-11-01 10:13 Sarnath  Kannan
  2001-11-01 17:13 ` Dan Malek
  0 siblings, 1 reply; 9+ messages in thread
From: Sarnath  Kannan @ 2001-11-01 10:13 UTC (permalink / raw)
  To: linuxppc-embedded


Dear reader,
 I am trying to enable interrupts on the sandpoint X2
board hosting MPC8240, in Mode 1.

I decided to use OPenPIC code (openpic.c) for EPIC,
as the  MPC8240 manual claims that EPIC is an OpenPIC standard. But I find some disparities between  the way EPIC's registers are organised and the way OpenPIC data
structures are declared.( openpic_defs.h )

According the OpenPIC data structure,
 "OpenPIC_Source" resides at offset 0x50000
 whereas the EPIC ( section 11 of MPC8240 manual)
says the it resides at 0x50200 ( See page 11-5)
 So, there is absolutely no gaurantee that
openPIC code would work for EPIC, Am i right ?

One more, If some1 could give me a clear picture
of interrupt routing on sandpoint board, it would
be very useful.
  From what i read, I have understood the following
Please correct me if I am wrong.

 1. The INTA ( used by Function  0 of Winbond -
    PCI/ISA bridge) is connected to IRQ0 of EPIC.

 2. The PCI interrupts (INTx) are  connected to the
    remaining PINs of EPIC in some order. ( I dont
    know which order they are connected )

Any help would be appreciated. Meanwhile, I am
reading the sandpoint manual also..( This one, I add
inorder to avoid replies like "RTFM")

Thanks for any help guys

Sarnath


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Re: "OpenPIC versus EPIC" in MPC8240 !
@ 2001-11-07 14:11 Sarnath  Kannan
  2001-11-11 23:56 ` ashish anand
  0 siblings, 1 reply; 9+ messages in thread
From: Sarnath  Kannan @ 2001-11-07 14:11 UTC (permalink / raw)
  To: Dan Malek; +Cc: linuxppc-embedded


> It's not magic, just a bad software hack.  We tell the
> openpic that it has interrupts from 16 to 32, not from
> zero.  OpenPIC interrupt 16 matches EPIC interrupt zero.
   16-32 ? NumSources of OpenPIC = 24. It should be
either (0-23) or (16-40). 16-32 is noWhere.

> The interrupts zero to 15 are given to the 8259.
> The problem with this method is we can't get to some
> of the other EPIC features, but we are discussing
> alternatives.
>
  Its not a "HACK" dan. Its a bug. Just verify
the register layout of OpenPIC and EPIC. You
will find that "openpic_init" is populating
reserved memory areas of EPIC. No wonder, we get
bogus interrupts. You can verify this in the code.
  Moreover Had the code really wanted seperation
of vector spaces of OpenPIC and EPIC, it should have
called "openpic_init" with
"offset value = "NUM_8259_INTERRUPTS"

sarnath


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Re: "OpenPIC versus EPIC" in MPC8240 !
@ 2001-11-12  8:41 Sarnath  Kannan
  2001-11-12 16:41 ` Dan Malek
  0 siblings, 1 reply; 9+ messages in thread
From: Sarnath  Kannan @ 2001-11-12  8:41 UTC (permalink / raw)
  To: ashish anand; +Cc: linuxppc-embedded


Hi Ashish,
  what I felt was, populating reserved areas
is a bug. Thats what I accentuated. Moreover
I has said that this could be a __possible__
cause for getting bogus interrupts. I would
say there is 80% possibility.
 Moreover if u can read the EPIC manual,
u can notice that IVPR and SVPR both start
at  offset 0x50200. ( So the IVPR space is
not a continous 24 entries. It is actually
overalapped and discontinous )
 The EPIC manual clearly says "EPIC" is __adopted__
from OpenPIC specification . It never says it
conforms to the OpenPIC spec.
  I have no idea of hurting people. But if a bug
is pointed out, there is no harm in accepting it.

  lets put an end to this topic. I no more
want to discuss anything about this.

Good Luck
Sarnath


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: "OpenPIC versus EPIC" in MPC8240 !
@ 2001-11-13  6:42 James F Dougherty
  2001-11-13  7:17 ` Dag Nygren
  0 siblings, 1 reply; 9+ messages in thread
From: James F Dougherty @ 2001-11-13  6:42 UTC (permalink / raw)
  To: dan, dag, jfd; +Cc: sparc64, ashisha, linuxppc-embedded, dag


I've been watching this thread for quite some
time now. I spoke with Dan about adding some
changes to this code last summer. I ran into
some issues with OpenPIC as well on our MPC8240
platform.


If you guys would like to forward me your changes,
I can merge your changes into mine (or see if they
are relevant) and give you an interim release.

Might I ask, could you describe the architecture
of your MPC8240 IRQ mapping and IO devices?


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2001-11-13  7:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-01 10:13 "OpenPIC versus EPIC" in MPC8240 ! Sarnath  Kannan
2001-11-01 17:13 ` Dan Malek
  -- strict thread matches above, loose matches on Subject: below --
2001-11-07 14:11 Sarnath  Kannan
2001-11-11 23:56 ` ashish anand
2001-11-12  8:41 Sarnath  Kannan
2001-11-12 16:41 ` Dan Malek
2001-11-12 16:51   ` Dag Nygren
2001-11-12 16:58     ` Dan Malek
2001-11-12 18:00       ` Dag Nygren
2001-11-13  6:42 James F Dougherty
2001-11-13  7:17 ` 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).