linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: PROBLEM: Network hanging - Tulip driver with Netgear (Lite-On)
@ 2001-02-26 10:32 Manfred Spraul
  2001-02-26 20:10 ` Jeff Garzik
  0 siblings, 1 reply; 14+ messages in thread
From: Manfred Spraul @ 2001-02-26 10:32 UTC (permalink / raw)
  To: pat, linux-kernel, jgarzik, Alan

I think I found the bug:

Someone (Jeff?) removed the line

	tp->advertising[phy_idx++] = reg4;

from tulip/tulip_core.c

pnic_check_duplex uses that variable :-(

There are 2 workarounds:

* change pnic_check_duplex:
s/tp->advertising[0]/tp->mii_advertise/g

* remove the new mii_advertise variable and replace it with
'tp->advertising[i]'.

Jeff, is it really a good idea to have one global mii_advertise
variable? If someone builds a card with multiple transceivers, then
they'll probably support different medias.

--
	Manfred

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: PROBLEM: Network hanging - Tulip driver with Netgear (Lite-On)
@ 2001-02-27  6:31 Pat Verner
  0 siblings, 0 replies; 14+ messages in thread
From: Pat Verner @ 2001-02-27  6:31 UTC (permalink / raw)
  To: Manfred Spraul, Jeff Garzik; +Cc: linux-kernel, Alan

Later, for what its worth:
Up to now, I have only had one of the network cards active, and connected 
to the hub.  I have just connected a second card to the hub, with an 
additional IP address.  After running IPTRAF, it hung after about 5 
minutes, after which BOTH network cards stopped responding.
=Pat
----------------
Good morning all.

First thing this morning I applied Jeff's patch, as below.  Started off 
well, ran for about 20 minutes (and 40 MBytes) before hanging.

Reversed out Jeff's change and applied Manfred's patch to the same lines in 
pnic.c.  Ran for about 15 minutes (28 Mbytes) before hanging.  It is still 
early, and the network is still quiet, so the volume of data received is 
still low, but the hanging problem is unfortunately still there.

=Pat

At 09:58 PM 26/02/2001 +0100, Manfred Spraul wrote:
>Jeff Garzik wrote:
> > Pat, Manfred, in pnic_check_duplex, make this change:
> > > -        negotiated = mii_reg5 & tp->advertising[0];
> > > +        negotiated = mii_reg5 & tulip_mdio_read(dev, tp->phys[0], 4);
> >
>The changed fixed the problem.
>
> >
> > Manfred Spraul wrote:
> > >
> > > I think I found the bug:
> > >
> > > Someone (Jeff?) removed the line
> > >
> > >         tp->advertising[phy_idx++] = reg4;
> > >
> > > from tulip/tulip_core.c
> > >
> > > pnic_check_duplex uses that variable :-(
> > >
> > > There are 2 workarounds:
> > >
> > > * change pnic_check_duplex:
> > > s/tp->advertising[0]/tp->mii_advertise/g
> > >
> > > * remove the new mii_advertise variable and replace it with
> > > 'tp->advertising[i]'.
> >
> > mii_advertise is what MII is currently advertising on the current
> > media.  tp->advertising is per-phy, on the other hand.
> >
>
>Could you double check the code in tulip_core.c, around line 1450?
>IMHO it's bogus.
>
>1) if the network card contains multiple mii's, then the the advertised
>value of all mii's is changed to the advertised value of the first mii.
>
>2) the new driver starts with the current advertised value, the previous
>driver recalculated the value from mii_status
>
>[ mii_status = tulip_mdio_read(dev,phy,1); ]
>
>- reg4 = ((mii_status>>6)& tp->to_advertise) | 1;
>
>That could trigger 2 problems:
>* I tested with 'options=11', and the new driver announces '100baseT4'
>support, but the PHY doesn't support 100baseT4.
>* If the mii is incorrectly initialized, then a wrong advertised value
>is not corrected.
>
>--
>         Manfred

--
Pat Verner				E-Mail:  pat@isis.co.za
           Isis Information Systems (Pty) Ltd
           PO Box 281, Irene, 0062, South Africa
Phone: +27-12-667-1411	      	Fax: +27-12-667-3800


^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: PROBLEM: Network hanging - Tulip driver with Netgear (Lite-On)
@ 2001-02-26  7:45 Pat Verner
  0 siblings, 0 replies; 14+ messages in thread
From: Pat Verner @ 2001-02-26  7:45 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

26 Feb 2001:
Rebuilt the kernel to version 2.4.2-ac4, to include the latest tulip patches.

The performance is better,  but it is still not quite right; this time it 
received just over 48 MBytes before hanging :-(

Using a 3C590B card on Friday, I ran IPTRAF for about 6 hours, and several 
GBytes of data with no problems at all.  Unfortunately I have only one such 
card available, and our suppliers are quoting mid-March for delivery.
=Pat


At 10:42 AM 22/02/2001 +0000, Alan Cox wrote:
> > three Netgear NICs and am experiencing considerable trouble with the=20
> > combination:
> >
> > Kernel 2.4.[01]:        ifconfig shows that the card see's traffic on t=
> > he=20
> > network, but does not transmit anything (no response to ping).
>
>Use a current 2.4.*-ac. Jeff and co fixed this we think.
>
>Alan

--
Pat Verner				E-Mail:  pat@isis.co.za
           Isis Information Systems (Pty) Ltd
           PO Box 281, Irene, 0062, South Africa
Phone: +27-12-667-1411	      	Fax: +27-12-667-3800


^ permalink raw reply	[flat|nested] 14+ messages in thread
* PROBLEM: Network hanging - Tulip driver with Netgear (Lite-On) NIC
@ 2001-02-22  7:56 Pat Verner
  2001-02-22 10:42 ` PROBLEM: Network hanging - Tulip driver with Netgear (Lite-On) Alan Cox
  2001-02-22 12:42 ` Pat Verner
  0 siblings, 2 replies; 14+ messages in thread
From: Pat Verner @ 2001-02-22  7:56 UTC (permalink / raw)
  To: linux-kernel

1.      Network hanging - Tulip driver with Netgear (Lite-On) NIC

2.      I am trying to prepare a new firewall host with a Pentium III and 
three Netgear NICs and am experiencing considerable trouble with the 
combination:

Kernel 2.4.[01]:        ifconfig shows that the card see's traffic on the 
network, but does not transmit anything (no response to ping).

Kernel 2.2.16:  appears to work, but only for a short while.  In 
particular, running IPTRAF, with the card in promiscuous mode, will work 
for 2 - 5 minutes, then the card will hang.  The ONLY recovery that I have 
found is too reboot the machine.

Using the kernel 2.2.16, I have tried various combinations:
·       I have removed all but one of the NICs; no change.
·       I have changed the version of the tulip driver:  I have tried 
0.89H, 0.91g, and 0.91g-ppc with similar results on all drivers.

3.      Keywords:  modules, networking, tulip drivers

4.      Kernel Version : 2.2.16 / 2.4.1

5.      .

6.      Environment:

Hardware : ASUS P3W-E motherboard;   Netgear FA310DX (LC82C169C)  NIC

Software:

--Versions installed: (if some fields are empty or looks
--unusual then possibly you have very old versions)
Linux newgate 2.2.16 #2 Tue Feb 20 08:40:04 SAST 2001 i686 unknown
Kernel modules         2.4.1
Gnu C                  egcs-2.91.66
Binutils               2.9.1.0.25
Linux C Library        2.1.3
Dynamic linker         ldd: version 1.9.9
Procps                 2.0.6
Mount                  2.10l
Net-tools              1.55
Kbd                    command
Sh-utils               2.0
Modules Loaded         tulip bsd_comp ppp slhc

-- cat /proc/cpuinfo :
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model   : 8
model name      : Pentium III (Coppermine)
stepping        : 1
cpu MHz : 655.850
cache size      : 256 KB
fdiv_bug        : no
hlt_bug : no
sep_bug : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 3
wp              : yes
flags   : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat 
pse36 pn mmx fxsr xmm
bogomips        : 1307.44

7.      I am currently running a similar configuration on an older Pentium 
166 MHz, with three Netgear cards, as my present firewall host - Linux 
2.2.16 + ipchains, and experience no problems with this combination.

I am at a total loss as to what steps to try next.  Any advice / comments 
would be appreciated.

Regards
=Pat



--
Pat Verner				E-Mail:  pat@isis.co.za
           Isis Information Systems (Pty) Ltd
           PO Box 281, Irene, 0062, South Africa
Phone: +27-12-667-1411	      	Fax: +27-12-667-3800


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2001-03-02 23:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-26 10:32 PROBLEM: Network hanging - Tulip driver with Netgear (Lite-On) Manfred Spraul
2001-02-26 20:10 ` Jeff Garzik
2001-02-26 20:58   ` Manfred Spraul
2001-03-02 21:15     ` Jeff Garzik
2001-03-02 21:03       ` I/O problem with sustained writes Collectively Unconscious
2001-03-02 23:57         ` Andrew Morton
2001-03-02 22:20       ` PROBLEM: Network hanging - Tulip driver with Netgear (Lite-On) Manfred Spraul
2001-03-02 22:48         ` Donald Becker
2001-02-27  6:16   ` Pat Verner
  -- strict thread matches above, loose matches on Subject: below --
2001-02-27  6:31 Pat Verner
2001-02-26  7:45 Pat Verner
2001-02-22  7:56 PROBLEM: Network hanging - Tulip driver with Netgear (Lite-On) NIC Pat Verner
2001-02-22 10:42 ` PROBLEM: Network hanging - Tulip driver with Netgear (Lite-On) Alan Cox
2001-02-22 20:12   ` Jeff Garzik
2001-02-22 12:42 ` Pat Verner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).