Re: 2.3.51 tulip broken

From: Andrzej Krzysztofowicz (ankry@pg.gda.pl)
Date: Tue Mar 14 2000 - 12:21:07 EST


> i am having trouble with my tulip card. it's a 21041 but the driver
> sends it through a 21143 pathway. i don't know if the 21041
> is similar to the 21143 but it sure isn't working for me.

Current tulip version does not work with 21041 :(
This is the reason why Alan put two tulip drivers into 2.2.15pre.
 
> Linux Tulip driver version 0.9.4 (Feb 28, 2000)
> eth0: Digital DS21140 Tulip rev 18 at 0xfc00, 00:00:F8:03:71:09, IRQ 10.
> eth0: EEPROM default media type Autosense.
> eth0: Index #0 - Media 10baseT (#0) described by a 21140 non-MII (0) block.
> eth0: Index #1 - Media 100baseTx (#3) described by a 21140 non-MII (0) block.
> eth0: Index #2 - Media 100baseTx-FD (#5) described by a 21140 non-MII (0) block
> .
> eth0: Index #3 - Media 10baseT-FD (#4) described by a 21140 non-MII (0) block.
> eth1: Digital DC21041 Tulip rev 17 at 0xf080, 00:00:F8:05:BE:2F, IRQ 15.
> eth1: 21041 Media table, default media 0000 (10baseT).
> eth1: 21041 media #0, 10baseT.
> eth1: 21041 media #4, 10baseT-FD.
> eth1: 21143 10baseT link beat good.
> ^^^^^
> WTF??

IMHO, the problem is not here. The driver goes for both cards (21041/21143)
through the same code but number is hardcoded here.

The following patch helps me (partially) to get 21041 work with new tulip:
***********************************************************************
--- drivers/net/tulip/tulip_core.c.old Tue Mar 14 18:12:18 2000
+++ drivers/net/tulip/tulip_core.c Tue Mar 14 18:13:36 2000
@@ -175,8 +175,8 @@
 u8 t21040_csr13[] = {2,0x0C,8,4, 4,0,0,0, 0,0,0,0, 4,0,0,0};
 
 /* 21041 transceiver register settings: 10-T, 10-2, AUI, 10-T, 10T-FD*/
-u16 t21041_csr13[] = { 0xEF01, 0xEF09, 0xEF09, 0xEF01, 0xEF09, };
-u16 t21041_csr14[] = { 0xFFFF, 0xF7FD, 0xF7FD, 0x7F3F, 0x7F3D, };
+u16 t21041_csr13[] = { 0xEF05, 0xEF09, 0xEF09, 0xEF01, 0xEF09, };
+u16 t21041_csr14[] = { 0x7F3F, 0xF7FD, 0xF7FD, 0x7F3F, 0x7F3D, };
 u16 t21041_csr15[] = { 0x0008, 0x0006, 0x000E, 0x0008, 0x0008, };
 
 
************************************************************************
This is reversed code from old tulip and works only until link is lost
for the first time.

I was trying to debug the problem (but I have no time to do it now) and
found that tulip problems are probably related to media autodetection
code. Unfortunately, Donald Becker's drivers generally do not allow
setting media manually and disabling autodetection totally :(((

> i've got one card that works fine, but the second has trouble. i have
> the same problem with tulip 0.91g, 0.91x and 0.9.2 (part of 2.3.46).
>
> tulip 0.91 (no letter) does work. the venerable 0.89h works too.
> however, it has a strange feature of repeating the media #0 10baseT line.
>
> from linux-2.2.14
>
> tulip.c:v0.89H 5/23/98 becker@cesdis.gsfc.nasa.gov
> eth0: Digital DS21140 Tulip at 0xfc00, 00 00 f8 03 71 09, IRQ 10.
> eth0: EEPROM default media type Autosense.
> eth0: Index #0 - Media 10baseT (#0) described by a 21140 non-MII (0) block.
> eth0: Index #1 - Media 100baseTx (#3) described by a 21140 non-MII (0) block.
> eth0: Index #2 - Media 100baseTx-FD (#5) described by a 21140 non-MII (0) block.
> eth0: Index #3 - Media 10baseT-FD (#4) described by a 21140 non-MII (0) block.
> eth1: Digital DC21041 Tulip at 0xf080, 21041 mode, 00 00 f8 05 be 2f, IRQ 15.
> eth1:21041 Media information at 65, default media 0000 (10baseT).
> eth1: 21041 media #0, 10baseT.
> eth1: 21041 media #0, 10baseT.
>
> ^^^
> why the repeat?
>
> btw i have had this problem for a while, but i haven't many other
> posts about 21041 trouble. one guy on the tulip list reported the
> same problem with 0.91e.
>
> is this because
> 1) everyone else's 21041 works just fine,
> or
> 2) no one else has a 21041 tulip ethernet card?

Maybe because Jeff Garzik have no 21041 based tulip card :->

Jeff, what do you think of putting two tulip drivers into 2.3/2.4 ?
Or do you believe that problems with 21041 will be fixed before 2.4 ?

Andrzej

--
=======================================================================
  Andrzej M. Krzysztofowicz               ankry@mif.pg.gda.pl
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Technical University of Gdansk

- 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/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:29 EST