From owner-freebsd-i386@FreeBSD.ORG Fri Apr 27 12:10:09 2007 Return-Path: X-Original-To: freebsd-i386@hub.freebsd.org Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 60CA616A408 for ; Fri, 27 Apr 2007 12:10:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 2D29513C487 for ; Fri, 27 Apr 2007 12:10:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l3RCA9Q0037846 for ; Fri, 27 Apr 2007 12:10:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l3RCA9TO037845; Fri, 27 Apr 2007 12:10:09 GMT (envelope-from gnats) Resent-Date: Fri, 27 Apr 2007 12:10:09 GMT Resent-Message-Id: <200704271210.l3RCA9TO037845@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mark Willson Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A34B916A406 for ; Fri, 27 Apr 2007 12:06:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 96D4113C459 for ; Fri, 27 Apr 2007 12:06:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l3RC6HC0074759 for ; Fri, 27 Apr 2007 12:06:17 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l3RC1GPk074150; Fri, 27 Apr 2007 12:01:16 GMT (envelope-from nobody) Message-Id: <200704271201.l3RC1GPk074150@www.freebsd.org> Date: Fri, 27 Apr 2007 12:01:16 GMT From: Mark Willson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: i386/112179: sis driver for natsemi DP83815D autonegotiate failure X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2007 12:10:09 -0000 >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: