* AlphaBIOS Utility programs?
@ 1998-11-09 11:37 Stefan Boresch
1998-11-09 12:32 ` Stefan Boresch
0 siblings, 1 reply; 15+ messages in thread
From: Stefan Boresch @ 1998-11-09 11:37 UTC (permalink / raw)
To: axp-list
Are there any (utility) programs around that allow one to see what the
AlphaBIOS (5.62-1a,5.66-1 on an LX) actually stores in its NVRAM.
Removing the battery just resets the clock.
I still have this machine that dies at the beginning of Milo with
pyxis_machine_check: not expected, which from my reading of the
sources happens since something unexpected happens during the
IRQ initialization. On an Intel PC, I would think that two cards
are sitting on the same interrupt; usually, there are utility programs
that allow one to check and/or change the PCI arrangements. Does
anything similar exist for the AlphaBIOS?
Anyone having any other ideas? In principle, a new motherboard should
be ordered; it will just be interesting whether we still get an LX.
(The vendor unfortunately isn't too helpful. Since they only support
NT, the suggest that I install NT to check out the hardware...) :-(
Thanks,
Stefan Boresch
Institute for Theoretical Chemistry phone: -43-1-427752715
University of Vienna FAX: -43-1-427752790
Waehringerstr. 17 -43-1-4028525
A-1090 Vienna, Austria
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: AlphaBIOS Utility programs?
1998-11-09 11:37 AlphaBIOS Utility programs? Stefan Boresch
@ 1998-11-09 12:32 ` Stefan Boresch
1998-11-09 19:26 ` Wes Bauske
0 siblings, 1 reply; 15+ messages in thread
From: Stefan Boresch @ 1998-11-09 12:32 UTC (permalink / raw)
To: axp-list
Sorry for this follow-up:
> Are there any (utility) programs around that allow one to see what the
> AlphaBIOS (5.62-1a,5.66-1 on an LX) actually stores in its NVRAM.
> Removing the battery just resets the clock.
By looking more closely, and comparing to an Intel machine, I have the
following piece of add. information. Apparently, the SCSI controller
(AHA 2940U, and yes, it worked for 4 months without problems) gets IRQ
8 (I/O Port Address) assigned on the malfunctioning LX. This is what
the SCSI BIOS after hitting Ctrl-A reports. This looks very fishy to
me (my LX manual says that IRQ 8 is reserved...?)
Any suggestions (or do I have to assume that my PCI system is bad...?)
Stefan Boresch
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: AlphaBIOS Utility programs?
1998-11-09 12:32 ` Stefan Boresch
@ 1998-11-09 19:26 ` Wes Bauske
0 siblings, 0 replies; 15+ messages in thread
From: Wes Bauske @ 1998-11-09 19:26 UTC (permalink / raw)
To: axp-list
Stefan Boresch wrote:
>
> Sorry for this follow-up:
>
> > Are there any (utility) programs around that allow one to see what the
> > AlphaBIOS (5.62-1a,5.66-1 on an LX) actually stores in its NVRAM.
> > Removing the battery just resets the clock.
>
> By looking more closely, and comparing to an Intel machine, I have the
> following piece of add. information. Apparently, the SCSI controller
> (AHA 2940U, and yes, it worked for 4 months without problems) gets IRQ
> 8 (I/O Port Address) assigned on the malfunctioning LX. This is what
> the SCSI BIOS after hitting Ctrl-A reports. This looks very fishy to
> me (my LX manual says that IRQ 8 is reserved...?)
>
> Any suggestions (or do I have to assume that my PCI system is bad...?)
>
> Stefan Boresch
>
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. The fix for me, has
been to always place the Adaptec 1st in the PCI bus so
it has no competition. "It's a feature, not a bug...".
Doesn't matter whether it is Intel or Alpha as I've
seen it on both.
Of course if your kernel has interrupt sharing enabled,
it should still run. Just wouldn't want two high interrupt
devices competing for the same interrupt. A network
card and SCSI card come to mind as ones not to put on
the same interrupt, particularly if you do lots of NFS
from that system.
YMMV
Wes
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: AlphaBIOS Utility programs?
[not found] <199811092256.OAA08927@icarus.com>
@ 1998-11-09 23:48 ` Wes Bauske
1998-11-10 1:59 ` Stephen Williams
0 siblings, 1 reply; 15+ messages in thread
From: Wes Bauske @ 1998-11-09 23:48 UTC (permalink / raw)
To: axp-list
Stephen Williams wrote:
>
> 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.
>
> 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.
>
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.
The OS could probably move things around by writing to
the adapter's registers though.
If you have an Adaptec card, put it last and see what happens.
I always get conflicts with my network card. The 3940W in
particular is nasty because it uses two interrupts...
Any HW people out there who know how it really works?
--
Regards,
Wes
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: AlphaBIOS Utility programs?
1998-11-09 23:48 ` Wes Bauske
@ 1998-11-10 1:59 ` Stephen Williams
1998-11-10 5:02 ` Wes Bauske
0 siblings, 1 reply; 15+ messages in thread
From: Stephen Williams @ 1998-11-10 1:59 UTC (permalink / raw)
To: axp-list
> 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."
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: AlphaBIOS Utility programs?
1998-11-10 1:59 ` Stephen Williams
@ 1998-11-10 5:02 ` Wes Bauske
1998-11-10 16:29 ` Stephen Williams
0 siblings, 1 reply; 15+ messages in thread
From: Wes Bauske @ 1998-11-10 5:02 UTC (permalink / raw)
To: axp-list
Stephen Williams wrote:
>
> 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.)
>
OK. It has something to do with that "leeway" you're describing.
> 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.
Hmm.. Sounds like what I was trying to describe.
>
> 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.
>
It's optional on 2940/2940UW/3940W??
Don't think so.
Definitely none on my tulip 10/100 card though.
> 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.
Guaranteed the 3940W uses multiple IRQ's. I see it when Win3.1 starts
up in my other partition. Also /proc/pci says:
Bus 2, device 5, function 0:
SCSI storage controller: Adaptec AIC-7872 (rev 3).
Medium devsel. Fast back-to-back capable. IRQ 11. Master Capable. Latency=64. Min
Gnt=8.Max Lat=8.
I/O at 0xd400.
Non-prefetchable 32 bit memory at 0xfdafe000.
Bus 2, device 4, function 0:
SCSI storage controller: Adaptec AIC-7872 (rev 3).
Medium devsel. Fast back-to-back capable. IRQ 9. Master Capable. Latency=64. Min
Gnt=8.Max Lat=8.
I/O at 0xd800.
Non-prefetchable 32 bit memory at 0xfdaff000.
And I only have ONE Adaptec card in this system.
How many cards have you got that do that??
Wes
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: AlphaBIOS Utility programs?
1998-11-10 5:02 ` Wes Bauske
@ 1998-11-10 16:29 ` Stephen Williams
1998-11-10 22:00 ` Philip Blundell
0 siblings, 1 reply; 15+ messages in thread
From: Stephen Williams @ 1998-11-10 16:29 UTC (permalink / raw)
To: axp-list
> 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:
> It's optional on 2940/2940UW/3940W?? Don't think so.
No, I meant a PCI design is not required to provide one. However, a specific
design *is* allowed to require the EROM be run to make it whole. This is
fairly common with video cards and devices that support being boot from.
wsb@paralleldata.com said:
> Guaranteed the 3940W uses multiple IRQ's. I see it when Win3.1 starts
> up in my other partition.
I believe it. The standard allows for it. That is what the "interrupt pin"
register is for. A device can also have multiple function units.
Bus 2, device 5, function 0:
SCSI storage controller: Adaptec AIC-7872 (rev 3).
Medium devsel. Fast back-to-back capable. IRQ 11. Master Capable. Latency=64. Min
Gnt=8.Max Lat=8.
I/O at 0xd400.
Non-prefetchable 32 bit memory at 0xfdafe000.
Bus 2, device 4, function 0:
SCSI storage controller: Adaptec AIC-7872 (rev 3).
Medium devsel. Fast back-to-back capable. IRQ 9. Master Capable. Latency=64. Min
Gnt=8.Max Lat=8.
I/O at 0xd800.
Non-prefetchable 32 bit memory at 0xfdaff000.
I would love to see the output of "lspci -vx" on your system. There is
something highly funky here. A single card is not supposed to have more
than 1 device number. (It can have 8 *function* units, but only 1 device.)
Are you sure there is not another AIC7872 on your motherboard?
--
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."
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: AlphaBIOS Utility programs?
1998-11-10 16:29 ` Stephen Williams
@ 1998-11-10 22:00 ` Philip Blundell
1998-11-11 2:34 ` Wes Bauske
0 siblings, 1 reply; 15+ messages in thread
From: Philip Blundell @ 1998-11-10 22:00 UTC (permalink / raw)
To: Stephen Williams; +Cc: axp-list
Stephen Williams wrote:
>I would love to see the output of "lspci -vx" on your system. There is
>something highly funky here. A single card is not supposed to have more
>than 1 device number. (It can have 8 *function* units, but only 1 device.)
The Adaptec multi-channel cards have a PCI-PCI bridge on, and several SCSI
chips sitting behind it.
p.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: AlphaBIOS Utility programs?
1998-11-10 22:00 ` Philip Blundell
@ 1998-11-11 2:34 ` Wes Bauske
1998-11-11 9:06 ` philb
0 siblings, 1 reply; 15+ messages in thread
From: Wes Bauske @ 1998-11-11 2:34 UTC (permalink / raw)
To: axp-list
Philip Blundell wrote:
>
> Stephen Williams wrote:
>
> >I would love to see the output of "lspci -vx" on your system. There is
> >something highly funky here. A single card is not supposed to have more
> >than 1 device number. (It can have 8 *function* units, but only 1 device.)
>
> The Adaptec multi-channel cards have a PCI-PCI bridge on, and several SCSI
> chips sitting behind it.
>
> p.
OK. That explains this device I think:
Bus 0, device 1, function 0:
PCI bridge: Intel Unknown device (rev 2).
Vendor id=8086. Device id=7191.
Medium devsel. Master Capable. Latency=64. Min Gnt=128.
Non-prefetchable 32 bit memory at 0x40010100.
Non-prefetchable 32 bit memory at 0x22a0c0c0.
Non-prefetchable 32 bit memory at 0xfd90fd90.
Non-prefetchable 32 bit memory at 0xf460f460.
Then it makes me wonder how IRQ's are handled across
PCI-PCI bridges. I know this card is a pain in the butt
to get working because it's use of IRQ's conflicts with
the slots on the motherboard. That's part of what I was
saying before. I assume when a bridge is used, you have
no choice except to share IRQ's since the PCI bus has
only 4 IRQ's??
Wes
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: AlphaBIOS Utility programs?
1998-11-11 2:34 ` Wes Bauske
@ 1998-11-11 9:06 ` philb
1998-11-11 10:25 ` Stefan Boresch
` (2 more replies)
0 siblings, 3 replies; 15+ messages in thread
From: philb @ 1998-11-11 9:06 UTC (permalink / raw)
To: axp-list
>OK. That explains this device I think:
>
> Bus 0, device 1, function 0:
> PCI bridge: Intel Unknown device (rev 2).
> Vendor id=8086. Device id=7191.
> Medium devsel. Master Capable. Latency=64. Min Gnt=128.
> Non-prefetchable 32 bit memory at 0x40010100.
> Non-prefetchable 32 bit memory at 0x22a0c0c0.
> Non-prefetchable 32 bit memory at 0xfd90fd90.
> Non-prefetchable 32 bit memory at 0xf460f460.
Those BAR values look bogus to me, as a matter of passing interest.
>Then it makes me wonder how IRQ's are handled across
>PCI-PCI bridges. I know this card is a pain in the butt
>to get working because it's use of IRQ's conflicts with
>the slots on the motherboard. That's part of what I was
>saying before. I assume when a bridge is used, you have
>no choice except to share IRQ's since the PCI bus has
>only 4 IRQ's??
How IRQs are handled in a PCI system is left up to the discretion of the
board designer to quite a large extent. Each PCI *slot* has four IRQ pins
(INTA..INTD) but the bus itself doesn't enforce any IRQ policy. Usually the
way things work is that there are four IRQ lines on the bus itself and the INT
lines from each slot attach to this in a rotating arrangement (which means
that with up to four devices each using only one interrupt, each one will get
a different line). But it would be equally valid for all four INT pins from
every slot to be just connected to a single interrupt line, or for every INT
pin to have its own input into the system IRQ controller, or any other
combination you could think of.
When a PCI/PCI bridge is involved, especially on an add-in card, yes it
usually combines however many IRQ inputs it accepts from the devices behind it
and just presents a single interrupt request to the primary bus. But if the
bridge was integrated directly onto the motherboard this might not be the case
- the interrupts could just go round the side of the bridge and straight into
the IRQ controller.
p.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: AlphaBIOS Utility programs?
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-11 17:36 ` Stephen Williams
1998-11-12 18:18 ` Jay.Estabrook
2 siblings, 2 replies; 15+ messages in thread
From: Stefan Boresch @ 1998-11-11 10:25 UTC (permalink / raw)
To: axp-list
Hm, as the poster who started this thread, I am still curious as to my
original question. Is there any utility that at least let's me see
what's going on interrupt wise in the PCI bus?
For those who made suggestions concerning the Adaptec 2940U I tried to
move cards around, but the depending on the arrangement, the machine
either hangs with 'Calibrating delay loop...' or the
'pyxis_machine_check: not expected' error at about the same time
during the milo startup.
Regardless of the slot, the Adaptec (from it's BIOS) claims to sit on
IRQ 8 (for what this is worth).
I tend more and more towards the theory that something is broken and
that the IRQ mess is only a symptom (of broken hardware) not the cause
in itself... :-(
Thanks,
Stefan
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: AlphaBIOS Utility programs?
1998-11-11 9:06 ` philb
1998-11-11 10:25 ` Stefan Boresch
@ 1998-11-11 17:36 ` Stephen Williams
1998-11-12 18:18 ` Jay.Estabrook
2 siblings, 0 replies; 15+ messages in thread
From: Stephen Williams @ 1998-11-11 17:36 UTC (permalink / raw)
To: axp-list
> Bus 0, device 1, function 0:
> PCI bridge: Intel Unknown device (rev 2).
> Vendor id=8086. Device id=7191.
> Medium devsel. Master Capable. Latency=64. Min Gnt=128.
> Non-prefetchable 32 bit memory at 0x40010100.
> Non-prefetchable 32 bit memory at 0x22a0c0c0.
> Non-prefetchable 32 bit memory at 0xfd90fd90.
> Non-prefetchable 32 bit memory at 0xf460f460.
philb@gnu.org said:
> Those BAR values look bogus to me, as a matter of passing interest.
They are. /proc/pci does not cope properly with PCI-to-PCI bridges, which
have mapping registers in place of the first few BARs. The 2.1 stuff,
and the lspci command, would properly handle this.
--
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."
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: AlphaBIOS Utility programs?
1998-11-11 10:25 ` Stefan Boresch
@ 1998-11-11 18:48 ` Wes Bauske
1998-11-12 18:00 ` Jay.Estabrook
1 sibling, 0 replies; 15+ messages in thread
From: Wes Bauske @ 1998-11-11 18:48 UTC (permalink / raw)
To: axp-list
Stefan Boresch wrote:
>
> Hm, as the poster who started this thread, I am still curious as to my
> original question. Is there any utility that at least let's me see
> what's going on interrupt wise in the PCI bus?
>
How about WinNT, if you have a CDROM of it, or can borrow one
to check it out. Always good to have two different OS's complain
about things before considering swapping HW.
> For those who made suggestions concerning the Adaptec 2940U I tried to
> move cards around, but the depending on the arrangement, the machine
> either hangs with 'Calibrating delay loop...' or the
> 'pyxis_machine_check: not expected' error at about the same time
> during the milo startup.
>
My Adaptec shows the following on a PC164:
Bus 0, device 9, function 0:
SCSI storage controller: Adaptec AIC-7881U (rev 0).
Medium devsel. Fast back-to-back capable. IRQ 19. Master Capable. Latency=32. Min
Gnt=8.Max Lat=8.
I/O at 0x8800.
Non-prefetchable 32 bit memory at 0x9000000.
> Regardless of the slot, the Adaptec (from it's BIOS) claims to sit on
> IRQ 8 (for what this is worth).
>
> I tend more and more towards the theory that something is broken and
> that the IRQ mess is only a symptom (of broken hardware) not the cause
> in itself... :-(
>
Good luck.
Wes
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: AlphaBIOS Utility programs?
1998-11-11 10:25 ` Stefan Boresch
1998-11-11 18:48 ` Wes Bauske
@ 1998-11-12 18:00 ` Jay.Estabrook
1 sibling, 0 replies; 15+ messages in thread
From: Jay.Estabrook @ 1998-11-12 18:00 UTC (permalink / raw)
To: axp-list
>>> Stefan Boresch said:
>
> Regardless of the slot, the Adaptec (from it's BIOS) claims to sit on
> IRQ 8 (for what this is worth).
As mentioned before, what gets put into the "Interrupt Line" register
is used only by system software; the card doesn't care.
On most Alphas, we have both the normal 16 ISA PIC interrupts, as well as
a number of additional PCI interrupts (number dependent on the platform).
For a PCI card, the "Interrupt Line" probably indicates a PCI interrupt
rather than an ISA one, so there should be no conflict with other devices.
Note that for almost all ALpha platforms, the values set by the consoles
(either ARC, AlphaBIOS, or SRM) are different from the values that MILO or
the LINUX kernel set, simply because the numbering schemes of the system
software are different.
--Jay++
-----------------------------------------------------------------------------
American Non Sequitur Society: we don't make sense, but we do like pizza...
Jay A Estabrook Alpha Motherboards - LINUX Project
Compaq Computer Corp. (508) 841-3241 or (DTN) 237-3241
334 South Street, Shrewsbury, MA 01545 Jay.Estabrook@digital.com
-----------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: AlphaBIOS Utility programs?
1998-11-11 9:06 ` philb
1998-11-11 10:25 ` Stefan Boresch
1998-11-11 17:36 ` Stephen Williams
@ 1998-11-12 18:18 ` Jay.Estabrook
2 siblings, 0 replies; 15+ messages in thread
From: Jay.Estabrook @ 1998-11-12 18:18 UTC (permalink / raw)
To: axp-list
>>> philb@gnu.org said:
>
> How IRQs are handled in a PCI system is left up to the discretion of the
> board designer to quite a large extent. Each PCI *slot* has four IRQ pins
> (INTA..INTD) but the bus itself doesn't enforce any IRQ policy. Usually the
> way things work is that there are four IRQ lines on the bus itself and the
> INT lines from each slot attach to this in a rotating arrangement (which
> means that with up to four devices each using only one interrupt, each one
> will get a different line). But it would be equally valid for all four INT
> pins from every slot to be just connected to a single interrupt line, or for
> every INT pin to have its own input into the system IRQ controller, or any
> other combination you could think of.
On most Alphas, especially the newer ones, it is the case that all slots
on the *primary* PCI bus have 4 independent IRQ inputs to the IRQ controller.
Note that I mean here "option" slots, ie where a PCI card can be installed,
rather than a builtin device, which is normally hardwired to a single IRQ.
> When a PCI/PCI bridge is involved, especially on an add-in card, yes it
> usually combines however many IRQ inputs it accepts from the devices behind
> it and just presents a single interrupt request to the primary bus.
PCI boards I've seen which use the DEC PCI-PCI bridges (2105x, 2115x)
usually present 4 IRQs (one for each of INTA...INTD in the slot in which the
bridge appears). In addition, there is an "IRQ swizzle" for devices which
appear behind the bridge, such that if you have multiple devices all saying
they want INTA, they'll actually come through the bridge wanting separate
IRQs (the INTA... INTD of the bridge's slot) so that sharing isn't needed.
More details can be found in the bridge chip docs, found now via the
intel.com website... ;-}
> But if
> the bridge was integrated directly onto the motherboard this might not be
> the case - the interrupts could just go round the side of the bridge and
> straight in to the IRQ controller.
Yes, this also is true of the Alpha platforms with builtin bridges, like
MIATA, NORITAKE (true 1000A), RUFFIAN/UX, and MONET.
For more details, examine the arch/alpha/kernel/bios32.c code in the area
of "layout_dev()" and any of the "xxx_fixup()" routines... ;-}
--Jay++
-----------------------------------------------------------------------------
American Non Sequitur Society: we don't make sense, but we do like pizza...
Jay A Estabrook Alpha Motherboards - LINUX Project
Compaq Computer Corp. (508) 841-3241 or (DTN) 237-3241
334 South Street, Shrewsbury, MA 01545 Jay.Estabrook@digital.com
-----------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~1998-11-12 18:18 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-09 11:37 AlphaBIOS Utility programs? Stefan Boresch
1998-11-09 12:32 ` Stefan Boresch
1998-11-09 19:26 ` Wes Bauske
[not found] <199811092256.OAA08927@icarus.com>
1998-11-09 23:48 ` Wes Bauske
1998-11-10 1:59 ` Stephen Williams
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-11 17:36 ` Stephen Williams
1998-11-12 18:18 ` Jay.Estabrook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox