From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199608061703.NAA30859@linux03.amt.tay1.dec.com> Date: Tue, 06 Aug 1996 13:03:08 -0400 From: jestabro@amt.tay1.dec.com Subject: Re: 3com 3C509B Ethernet Controllers In-Reply-To: <32070387.4A87@superlink.net> >>> Uncle George said: > > The interrupt setting for the card is somewhat harder to do. My 3c509b is > set at 10 ( as are all of my 3c509 cards ). Although the 3c509b driver is > happy, and apparently does the setup correctly, my noname with the ARC/NT > console, continuously interrupts, rendering a frozen system. I had traced > this disabaling feature to the alpha/bios32 routines. This has not been > fixed in 3.0.3/alpha/linux, nor in the 2.0.8 version of linux ( you should > note that the has been enhanced/modified, but the offending pair of I/O > calls are still there, although not in the same location!) *Sigh*... I knew someone was going to find this before I could get a patch in... :-( NONAME (and UDB and AVANTI and XL) route PCI interrupts through the PIC, and are able to use only the four IRQ's 9, 10, 11, and 15. The ARC console (and perhaps SRM as well) will set the edge/level trigger flags to *level* for those 4 interrupts, assuming (many times correctly) that those will always be PCI interrupts, *not* ISA. The code in arch/alpha/kernel/bios32.c:sio_fixup() reads the current settings of edge/level, and *sets* the appropriate bits for each PCI device it *finds*, however *not* resetting the bits for those it *doesn't* find. It needs to be be changed to clear all four of those bits, and then set the ones for devices it finds. Historically, we started off clearing *all* the edge/level trigger bits to 0, ie edge trigger, and then set only the ones for the PCI devices we found. Then we found that the UDB, unlike all the others, had its serial ports set to use *level* triggered interrupts (don't ask why). So that we didn't have to ask if the platform was UDB or NONAME and just let NONAME work for both, the solution we came up with was to read the original edge/level settings and then set appropriately for PCI devices found; this would preserve the serial ports' level bits, as set by the ARC console on the UDB, and it would all "just work". Right... :-( Hopefully this will make it's way into 2.0.12... --Jay++ ------------------------------------------------------------------------------- American Non Sequitur Society: we don't make sense, but we do like pizza... Jay A Estabrook Alpha Migration Tools - LINUX Project Digital Equipment Corp. (508) 952-4202 or (DTN) 227-4202 151 Taylor Street - TAY1-2 enet: jestabro@amt.tay1.dec.com Littleton, MA 01460-1407 decnet: tallis::jestabro ------------------------------------------------------------------------------- -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null