Date: Fri, 27 Apr 2007 12:01:16 GMT From: Mark Willson<mark@hydrus.org.uk> To: freebsd-gnats-submit@FreeBSD.org Subject: i386/112179: sis driver for natsemi DP83815D autonegotiate failure Message-ID: <200704271201.l3RC1GPk074150@www.freebsd.org> Resent-Message-ID: <200704271210.l3RCA9TO037845@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 112179
>Category: i386
>Synopsis: sis driver for natsemi DP83815D autonegotiate failure
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-i386
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Apr 27 12:10:08 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Mark Willson
>Release: 6.2 Release
>Organization:
>Environment:
FreeBSD crimson 6.2-RELEASE FreeBSD 6.2-RELEASE #23: Fri Apr 27 12:24:50 BST 2007 mark@crimson:/usr/obj/usr/src/sys/CRIMSON i386
>Description:
The if_sis.c driver for the Natsemi DP38315D chip fails to autonegotiate properly on a 100baseTX link if the connection breaks for less than 4 seconds. Ethernet cable is around 5m in length (short cable fix invoked).
The patch below fixes the problem for me.
>How-To-Repeat:
Run sis0 in 100baseTX mode. Disconnect ethernet cable for less than 4 seconds. On reconnection, short cable fix reg is 0, and sis0 interface is non-functional.
>Fix:
Apply the following patch to sys/pci/if_sis.c
--- if_sis.c.orig Fri Apr 27 12:41:14 2007
+++ if_sis.c Fri Apr 27 12:41:32 2007
@@ -1909,7 +1909,7 @@
if (sc->sis_type == SIS_TYPE_83815 && sc->sis_srr <= NS_SRR_15D) {
CSR_WRITE_4(sc, NS_PHY_PAGE, 0x0001);
CSR_WRITE_4(sc, NS_PHY_CR, 0x189C);
- if (sc->sis_srr == NS_SRR_15C) {
+ if (sc->sis_srr <= NS_SRR_15D) {
/* set val for c2 */
CSR_WRITE_4(sc, NS_PHY_TDATA, 0x0000);
/* load/kill c2 */
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704271201.l3RC1GPk074150>
