Re: Via-Rhine driver update breaks it on Alpha

Donald Becker (becker@cesdis1.gsfc.nasa.gov)
Mon, 19 Jul 1999 17:52:22 -0400 (EDT)


On Mon, 19 Jul 1999, Michal Jaegermann wrote:

> Recently I was working with 2.2.10-ac10 on DP264 alpha with Via-Rhine
> ethernet card. It turned out that an update to its driver had the
> following unfortunate effect:
>
> via-rhine.c:v1.01 2/27/99 Written by Donald Becker
> http://cesdis.gsfc.nasa.gov/linux/drivers/via-rhine.html
> eth0: VIA VT3043 Rhine at 0xa802000, ff:ff:ff:ff:ff:ff, IRQ 23.
....
> via-rhine.c:v1.00 9/5/98 Written by Donald Becker
> http://cesdis.gsfc.nasa.gov/linux/drivers/via-rhine.html
> eth0: VIA VT3043 Rhine at 0x9800, 00:50:ba:a1:a0:78, IRQ 23.

It's a known problem: most of the Rhine chips don't work in PCI memory mode.
I didn't know about this issue earlier, so the v1.01 driver uses
I/O mode for the x86 and memory mapped mode for other architectures.

[[ Hmmm, I should have caught the clue when I ported this driver to the
PowerPC and I had to use I/O mode. ]]

The work-around is to use -DVIA_USE_IO when compiling the module.
This will be the default for all architectures in future versions:
ftp://cesdis.gsfc.nasa.gov/pub/linux/drivers/test/via-rhine.c

Donald Becker becker@cesdis.gsfc.nasa.gov
USRA-CESDIS, Center of Excellence in Space Data and Information Sciences.
Code 930.5, Goddard Space Flight Center, Greenbelt, MD. 20771
301-286-0882 http://cesdis.gsfc.nasa.gov/people/becker/whoiam.html

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/