Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: jestabro@amt.tay1.dec.com <jestabro@amt.tay1.dec.com>
Subject: Re: 3com 3C509B Ethernet Controllers
Date: Tue, 06 Aug 1996 13:03:08 -0400	[thread overview]
Message-ID: <199608061703.NAA30859@linux03.amt.tay1.dec.com> (raw)
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

       reply	other threads:[~1996-08-06 17:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <32070387.4A87@superlink.net>
1996-08-06 17:03 ` jestabro [this message]
1996-08-06  8:34 3com 3C509B Ethernet Controllers Uncle George
  -- strict thread matches above, loose matches on Subject: below --
1996-08-05 15:51 Maurice Hilarius
1996-08-05  7:28 Johan Sarkinen
1996-08-01 19:19 sp0t the w0nder slug
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