From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 14668 invoked from network); 10 Nov 1998 02:14:40 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 10 Nov 1998 02:14:40 -0000 Received: from icarus.com (root@icarus.icarus.com [205.158.226.54]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id UAA01872 for ; Mon, 9 Nov 1998 20:59:45 -0500 Received: from icarus (steve@localhost [127.0.0.1]) by icarus.com (8.8.7/8.8.5) with ESMTP id RAA10218 for ; Mon, 9 Nov 1998 17:59:39 -0800 Message-Id: <199811100159.RAA10218@icarus.com> X-Mailer: exmh version 2.0.2 To: axp-list@redhat.com Subject: Re: AlphaBIOS Utility programs? In-Reply-To: Your message of "Mon, 09 Nov 1998 17:48:44 CST." <36477F5C.41C6@paralleldata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 09 Nov 1998 17:59:38 -0800 From: Stephen Williams > 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."