Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Stephen Williams <steve@icarus.com>
To: axp-list@redhat.com
Subject: Re: AlphaBIOS Utility programs?
Date: Mon, 09 Nov 1998 17:59:38 -0800	[thread overview]
Message-ID: <199811100159.RAA10218@icarus.com> (raw)
In-Reply-To: Your message of "Mon, 09 Nov 1998 17:48:44 CST." <36477F5C.41C6@paralleldata.com>


> wsb@paralleldata.com said:
> > I've found Adaptec PCI cards do not recognize when a PCI interrupt has
> > been used and will allocate one that a previous card has already
> > taken.

Stephen Williams wrote:
> Um, I don't think so. The allocation of interrupts is done by the BIOS
> or the host operating system, never the card. The card in general has no
> way to know about other resources in the system, or the wiring of the
> slot it is in, etc.


wsb@paralleldata.com said:
> I agree it is something related to the BIOS. My understanding is that
> there are these small routines built into each adapter in some
> interpreted language that the PCI BIOS runs for each card  to set it
> up and that code is what I always figured had the problem. 


wsb@paralleldata.com said:
> Any HW people out there who know how it really works? 

I am a hardware person, well versed in PCI. I also have the PCI standard on
my lap. The "Interrupt pin" is a read-only register that tells the system
which traces (INTA#, INTB#,etc.) can generate interrupts. Almost always
this register contains 1 (INTA# only). The "Interrupt Line" contains the
number we know as the IRQ assigned to the board. I quote from the PCI
standard:

	"The value in this register tells which input of the system
	interrupt controller(s) the device's interrupt pin is connected
	to. The device itself does not use this value, rather it is
	used by device drivers and operating systems."

This is the register that the BIOS fills in. The value written into
this register must account for hardware interrupt routing capabilities
of the system board that contains the PCI device. The BIOS may have
some leeway, but there may be physical constraints too. For example, it
is possible that certain slots of a system are assigned by design to
certain IRQ values. (We have a board that is like that.)


wsb@paralleldata.com said:
> My understanding is that there are these small routines built into
> each adapter in some interpreted language that the PCI BIOS runs for
> each card  to set it up and that code is what I always figured had the
> problem.

The "Expansion ROM" that some PCI devices have (i.e. the Adaptec SCSI
boards) is machine code (usually 8086) that the BIOS executes when it
gets to the board. This may be executed before BAR/IRQ assignment to
do magic card setup, configure the card to a reset value, prompt for a
hardware setup, etc. This is the Control-A magic that you see with
these adaptec devices.

The PCI standard allows for the expansion rom to contain machine code
for different host types, even many at once, for portability. As a
practical matter, though, DEC has given the alpha firmware an 8086
emulator that is used to run the 8086 BIOS in video cards and SCSI
boards.

The expansion ROM cannot assign IRQs, BARS, or any other resource
mapping. That would mess up the BIOS's attempt to arrange things.

Besides, the expansion rom is optional.

wsb@paralleldata.com said:
> The 3940W in particular is nasty because it uses two interrupts.

The "Interrupt Pin" register contains something other then 1? This is
the sort of thing that causes rotten BIOSes to show their odor.
-- 
Steve Williams                "The woods are lovely, dark and deep.
steve@icarus.com              But I have promises to keep,
steve@picturel.com            and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."



  reply	other threads:[~1998-11-10  2:14 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199811092256.OAA08927@icarus.com>
1998-11-09 23:48 ` AlphaBIOS Utility programs? Wes Bauske
1998-11-10  1:59   ` Stephen Williams [this message]
1998-11-10  5:02     ` Wes Bauske
1998-11-10 16:29       ` Stephen Williams
1998-11-10 22:00         ` Philip Blundell
1998-11-11  2:34           ` Wes Bauske
1998-11-11  9:06             ` philb
1998-11-11 10:25               ` Stefan Boresch
1998-11-11 18:48                 ` Wes Bauske
1998-11-12 18:00                 ` Jay.Estabrook
1998-11-13  0:53                   ` Alpha performance/cost numbers? Chris Albertson
1998-11-13  1:06                     ` Bob McElrath
1998-11-16 21:05                       ` Chris Albertson
1998-11-16 21:46                         ` Greg Lindahl
1998-11-16 23:05                           ` Maurice Hilarius
1998-11-17 14:42                             ` module pd.o in multia A. Rodriguez-Gonzalez
1998-11-16 21:56                         ` Alpha performance/cost numbers? Maurice Hilarius
1998-11-13  1:24                     ` Maurice Hilarius
1998-11-13  7:45                       ` Gerhard Schneider
1998-11-11 17:36               ` AlphaBIOS Utility programs? Stephen Williams
1998-11-12 18:18               ` Jay.Estabrook
1998-11-09 11:37 Stefan Boresch
1998-11-09 12:32 ` Stefan Boresch
1998-11-09 19:26   ` Wes Bauske
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