From: Ralf Baechle <ralf@linux-mips.org>
To: Stanislaw Skowronek <sskowron@ET.PUT.Poznan.PL>
Cc: linux-mips@linux-mips.org
Subject: Re: IOC3 interrupt management
Date: Thu, 13 May 2004 02:14:05 +0200 [thread overview]
Message-ID: <20040513001405.GC18513@linux-mips.org> (raw)
In-Reply-To: <Pine.GSO.4.10.10405111949550.8069-100000@helios.et.put.poznan.pl>
On Tue, May 11, 2004 at 07:56:40PM +0200, Stanislaw Skowronek wrote:
> Well, there is a problem _again_. This time it's a purely conceptual one.
>
> The IOC3 on Octanes (maybe on Onyx2es, too) controls the Ethernet,
> keyboard, mouse, serial and parallel ports and SGI alone knows what else.
>
> It is also tied to (at least) two bridge interrupts. One is used solely
> for Ethernet, and the other one is used for all the SuperIO stuff.
>
> Well, I'm an educated man (when it comes to Octane internals, that is)
> and I know that the first interrupt is 2 and the other is 4, and that they
> map to IRQ10 and IRQ12, respectively. But how should the poor kernel know
> about such arcanes? There is not a word in the IOC3 registers about this
> weird connection so the PCI drivers don't know about it at all.
>
> Now this is not a problem - I could simply assume that all IOC3s will have
> another IRQ at irq_num+2. But, MENET of course is build of four IOC3s and
> is definitely arranged in some other way. And what about the single IOC3
> cards? Do they have the other IRQ at all, or don't they allow using
> SuperIO?
PCI only permits INTA that is a single interrupt for normal devices. In
good old tradition of violating the PCI spec the IOC3 has two interrupt
pins. IP27 and IOC3 cards INTA and INTB are wired together, so we're back
to PCI compliance, no problem ...
So, Octane is different ... I suggest you treat ethernet as a normal PCI
device - the Linux PCI code doesn't know how to handle anything else. Then
in ioc3-eth.c itself you can register the serial interface with 8250.c
and using the appropriate interrupt number. Everything along the lines of
MENET - but of course different ;-)
Ralf
next prev parent reply other threads:[~2004-05-13 0:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-11 17:56 IOC3 interrupt management Stanislaw Skowronek
2004-05-13 0:14 ` Ralf Baechle [this message]
2004-05-13 13:25 ` Jan-Benedict Glaw
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=20040513001405.GC18513@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=linux-mips@linux-mips.org \
--cc=sskowron@ET.PUT.Poznan.PL \
/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