From: Jay Estabrook <Jay.Estabrook@compaq.com>
To: axp-list@redhat.com
Subject: Re: Linux Driver
Date: Wed, 8 Nov 2000 23:34:50 -0500 [thread overview]
Message-ID: <20001108233450.C3021@linux04.mro.cpqcorp.net> (raw)
In-Reply-To: <20001103165005.C17210@ellpspace.math.ualberta.ca>; from michal@ellpspace.math.ualberta.ca on Fri, Nov 03, 2000 at 04:50:05PM -0700
On Fri, Nov 03, 2000 at 04:50:05PM -0700, Michal Jaegermann wrote:
> On Fri, Nov 03, 2000 at 04:24:02PM -0700, Maurice Hilarius wrote:
> > I remember watching Michal making dark mutterings about some of the
> > Soundblaster PCI cards last year. Essentially they "assumed" that PCI would
> > only use 16 bit addressing space..
>
> I think that you are thinking about four bits for interrupts thus
> making only 0 to 15 available. (Did one ever heard about a computer
> with such weird IRQ assignments like these?
> ............
> 20: 144686 sym53c8xx
> 44: 351038 eth0
>:-)
A little background:
Most Intel-based motherboards (and some of the older Alphas) were
built to support only 16 interrupts: the legacy ISA (junk IO) ones,
plus any PCI slots present also have their interrupts mapped somewhere
into those 16 levels. Some newer Intel-based mobos, and most Alphas,
have additional interrupt controller bits beyond 16, that are mapped
however the mobo designers wanted.
Now, IIRC, the PCI spec says that a "slot" can have one of 4 different
interrupts (INTA, INTB, etc), and the PIN register in the card's
config space indicates which one is being used. This is NOT
programmable, it is set by the card design. Nearly all cards use INTA,
but multi-function boards, or cards with PCI-PCI bridges, may actually
use more than 1.
On most Alphas, the PCI interrupt routing typically passes all 4 of
the possible interrupts from a PCI "slot" to the interrupt summary
register. So, for a 4-PCI-slot mobo, you get 16 additional interrupts
after the 16 legacy ones. So often you see cards in adjacent slots
assigned interrupts that are 4 levels apart (but it really depends
on the mapping of slot/INTx pairs to bits in the summary register).
With multiple peer PCI buses (as on DS20/ES40/XP1000/UP2000 but not
DS10), the number of interrupts grows. In fact, for the WILDFIRE
support in the 2.4.x kernels, the maximum number of interrupts has
grown to 2048! Yes, that's right, 2K. Largest config has 8 "quads" (4
CPUs and up to 8 PCI buses per quad); each pair of PCI buses has 8
(2x4) slots (32 interrupts), plus one set of the 16 legacy
interrupts. Yes, that's only 48 per bus pair, we kept 16 spares so
that a bus pair's interrupts would occupy a single 64-bit summary
register (and the interrupts are actually numbered/wired for 0-15 and
32-63:-).
> Sound cards are infamous for cutting PCI spec corners. Such card which
> got IRQ 37 will think that is really on 5. Oops! Other devices seems to
> be quite a bit better in this respect.
No, the cards themselves pay no attention to what's in their IRQ
register, that's entirely a software convention (putting the interrupt
number in there). SRM console does it so that the Tru64 kernel doesn't
have to have all those funky "irq_map" tables that the Linux kernel
Alpha support has... ;-}
WRT cost-cutting, IIRC, the 1370/1371 sound chips were limited in the
addresses that they could DMA from/to; Alpha support typically will
provide them with a DMA address above 1GB, which those cards can't
handle (not enough bits in their address registers).
--Jay++
-----------------------------------------------------------------------------
Jay A Estabrook Alpha Engineering - LINUX Project
Compaq Computer Corp. - MRO1-2/K20 (508) 467-2080
200 Forest Street, Marlboro MA 01752 Jay.Estabrook@compaq.com
-----------------------------------------------------------------------------
next prev parent reply other threads:[~2000-11-09 4:35 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-01 22:02 Linux Driver Tom Heibel
2000-11-02 0:35 ` Maurice Hilarius
2000-11-02 10:24 ` compiling pgplot library Dybczynski
2000-11-02 15:41 ` Compaq QVision 1024/E smo9
2000-11-02 17:59 ` David Woodhouse
2000-11-02 18:25 ` Christopher C. Chimelis
2000-11-02 18:43 ` Jay Estabrook
2000-11-02 15:44 ` additional info smo9
2000-11-03 20:54 ` Linux Driver Tom Heibel
2000-11-03 21:28 ` Alvin Starr
2000-11-03 22:03 ` Maurice Hilarius
[not found] ` <Pine.OSF.4.05.10011031622480.1373-100000@caesar.iplink.net >
2000-11-03 22:16 ` Maurice Hilarius
2000-11-03 23:06 ` Alvin Starr
[not found] ` <Pine.OSF.4.05.10011031743390.1373-100000@caesar.iplink.net >
2000-11-03 23:24 ` Maurice Hilarius
2000-11-03 23:50 ` Michal Jaegermann
2000-11-03 19:35 ` IRQ's (was Re: Linux Driver) W Bauske
2000-11-04 2:20 ` Michal Jaegermann
2000-11-04 6:51 ` Maurice Hilarius
2000-11-04 8:31 ` W Bauske
2000-11-04 13:12 ` Rich Payne
2000-11-09 3:56 ` Jay Estabrook
2000-11-09 6:17 ` Paul Jakma
2000-11-09 15:26 ` Jay Estabrook
2000-11-04 17:10 ` Michal Jaegermann
2000-11-09 4:34 ` Jay Estabrook [this message]
2000-11-03 23:28 ` Linux Driver Michal Jaegermann
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox