tulip V90k
Robert G. Brown
rgb@phy.duke.edu
Sun Feb 7 08:16:36 1999
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--60306615-1062255700-918393388=:27370
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Fri, 5 Feb 1999, Douglas Eadline wrote:
> I tried tulip version 90k today with the following results:
>
> 1. Using a Lite On (netGear)
>
> Boots OK, but bad performance
>
> 2. Using KTI 221TX (DEC 21143) NIC
>
>
> Feb 5 11:34:28 coyote4 kernel: tulip.c:v0.90k 2/1/99
> becker@cesdis.gsfc.nasa.gov
> Feb 5 11:34:28 coyote4 kernel: eth0: Digital DS21143 Tulip rev 65 at
> 0xec00, EEPROM not present, 00 4c 69 6e 75 79, IRQ 0.
>
> Previously .90f worked with this card
>
> 3. Using 21140 Netgear NIC
>
> It recognized the NIC at boot, but would not work. If I
> did an "ifdown, rmmod tulip, insmod tulip, ifup", it works OK.
Doug, try my infamous "probe the PCI_BASE_ADDRESS" patch (attached for
0.89H) to see if it fixes this. I recently noted (the hard way, of
course) that as of 0.89H it is still necessary for a number of our
systems here with genuine 21140's (the old KNE-100's) in dual PPros.
Don swears that probing the ioport to ensure writability should not be
necessary and of course he is right, but this patch has worked for
everyone who has tried it and at the very least makes the
insmod/rmmod/insmod ritual unnecessary by basically incorporating it
into the driver.
rgb
Robert G. Brown http://www.phy.duke.edu/~rgb/
Duke University Dept. of Physics, Box 90305
Durham, N.C. 27708-0305
Phone: 1-919-660-2567 Fax: 919-660-2525 email:rgb@phy.duke.edu
--60306615-1062255700-918393388=:27370
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="tulip.ioport.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.3.96.990207081628.27370D@ganesh.phy.duke.edu>
Content-Description: patch to probe ioport for writability
LS0tIHR1bGlwLmMtMC44OUgJTW9uIEphbiAxMSAwNzo1OToyMSAxOTk5DQor
KysgdHVsaXA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