Date: Sun, 4 Nov 2001 14:26:19 EST From: Master589095296@aol.com To: freebsd-stable@freebsd.org Subject: Network performance issue between half and full duplex Message-ID: <f8.12092e71.2916f05b@aol.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hello,
I have been experiancing a problem with 4.4 stable 10-29-2001. I'm
using a Netgear FA-312 which uses the sis driver. This card is also used in
the two Microshaft Windblows 98 machines as well. When in full duplex and
when transfering files >60KB, the connection slows and then quits. This
happens with both FTP and NFS. The two Winblows boxes when connected to FBSD
boxes also experiance the same problem, but are ok when talking to each
other. The drivers in both the FBSD boxes and Windows boxes and the switch
show that full duplex mode is in effect. I have rolled ports and cables and
the problem stays with the FBSD machines. Also note that I did not have this
problem under 4.2. I have switched everything to half duplex mode and it
seems to be working correctly. I have narrowed it down to one of two things:
1) It is a problem with the switch.
2) It is a problem with the sis driver.
One more interesting thing to note. The following peice of source code does
not appear in 4.2, but it is present in 4.4:
static void sis_reset(sc)
struct sis_softc *sc;
{
register int i;
SIS_SETBIT(sc, SIS_CSR, SIS_CSR_RESET);
for (i = 0; i < SIS_TIMEOUT; i++) {
if (!(CSR_READ_4(sc, SIS_CSR) & SIS_CSR_RESET))
break;
}
if (i == SIS_TIMEOUT)
printf("sis%d: reset never completed\n", sc->sis_unit);
/* Wait a little while for the chip to get its brains in order. */
DELAY(1000);
/*
* If this is a NetSemi chip, make sure to clear
* PME mode.
*/
if (sc->sis_type == SIS_TYPE_83815) {
CSR_WRITE_4(sc, NS_CLKRUN, NS_CLKRUN_PMESTS);
CSR_WRITE_4(sc, NS_CLKRUN, 0);
}
return;
}
Anyone have any idea what PME mode is?
Dan.
[-- Attachment #2 --]
<HTML><FONT FACE=arial,helvetica><FONT SIZE=2>Hello,
<BR>
<BR> I have been experiancing a problem with 4.4 stable 10-29-2001. I'm using a Netgear FA-312 which uses the sis driver. This card is also used in the two Microshaft Windblows 98 machines as well. When in full duplex and when transfering files >60KB, the connection slows and then quits. This happens with both FTP and NFS. The two Winblows boxes when connected to FBSD boxes also experiance the same problem, but are ok when talking to each other. The drivers in both the FBSD boxes and Windows boxes and the switch show that full duplex mode is in effect. I have rolled ports and cables and the problem stays with the FBSD machines. Also note that I did not have this problem under 4.2. I have switched everything to half duplex mode and it seems to be working correctly. I have narrowed it down to one of two things:
<BR>
<BR>1) It is a problem with the switch.
<BR>2) It is a problem with the sis driver.
<BR>
<BR>One more interesting thing to note. The following peice of source code does not appear in 4.2, but it is present in 4.4:
<BR>
<BR>static void sis_reset(sc)
<BR> struct sis_softc *sc;
<BR>{
<BR> register int i;
<BR>
<BR> SIS_SETBIT(sc, SIS_CSR, SIS_CSR_RESET);
<BR>
<BR> for (i = 0; i < SIS_TIMEOUT; i++) {
<BR> if (!(CSR_READ_4(sc, SIS_CSR) & SIS_CSR_RESET))
<BR> break;
<BR> }
<BR>
<BR> if (i == SIS_TIMEOUT)
<BR> printf("sis%d: reset never completed\n", sc->sis_unit);
<BR>
<BR> /* Wait a little while for the chip to get its brains in order. */
<BR> DELAY(1000);
<BR>
<BR> /*
<BR> * If this is a NetSemi chip, make sure to clear
<BR> * PME mode.
<BR> */
<BR> if (sc->sis_type == SIS_TYPE_83815) {
<BR> CSR_WRITE_4(sc, NS_CLKRUN, NS_CLKRUN_PMESTS);
<BR> CSR_WRITE_4(sc, NS_CLKRUN, 0);
<BR> }
<BR>
<BR> return;
<BR>}
<BR>
<BR>
<BR>Anyone have any idea what PME mode is?
<BR>
<BR>Dan.
<BR></FONT></HTML>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f8.12092e71.2916f05b>
