From owner-freebsd-sparc64@FreeBSD.ORG Sat Jul 10 03:06:21 2004 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA3D116A4CE for ; Sat, 10 Jul 2004 03:06:21 +0000 (GMT) Received: from ns.kt-is.co.kr (ns.kt-is.co.kr [211.218.149.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D27543D39 for ; Sat, 10 Jul 2004 03:06:21 +0000 (GMT) (envelope-from yongari@kt-is.co.kr) Received: from michelle.kt-is.co.kr (ns2.kt-is.co.kr [220.76.118.193]) (authenticated bits=128) by ns.kt-is.co.kr (8.12.10/8.12.10) with ESMTP id i6A31VAh053260 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sat, 10 Jul 2004 12:01:31 +0900 (KST) Received: from michelle.kt-is.co.kr (localhost.kt-is.co.kr [127.0.0.1]) i6A35Xhq019156 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 10 Jul 2004 12:05:33 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Received: (from yongari@localhost) by michelle.kt-is.co.kr (8.12.10/8.12.10/Submit) id i6A35Xtu019155 for freebsd-sparc64@hub.freebsd.org; Sat, 10 Jul 2004 12:05:33 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Date: Sat, 10 Jul 2004 12:05:33 +0900 From: Pyun YongHyeon To: freebsd-sparc64@hub.freebsd.org Message-ID: <20040710030533.GA18894@kt-is.co.kr> References: <200407091626.i69GQ910083555@www.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200407091626.i69GQ910083555@www.freebsd.org> User-Agent: Mutt/1.4.1i X-Filter-Version: 1.11a (ns.kt-is.co.kr) Subject: Re: sparc64/68869: netcard: Unexpect packet size, drop packet. X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: yongari@kt-is.co.kr List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jul 2004 03:06:21 -0000 On Fri, Jul 09, 2004 at 04:26:09PM +0000, Magicloud wrote: ... > > >Number: 68869 > >Category: sparc64 > >Synopsis: netcard: Unexpect packet size, drop packet. > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-sparc64 > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Fri Jul 09 16:30:28 GMT 2004 > >Closed-Date: > >Last-Modified: > >Originator: Magicloud > >Release: 5.2.1 > >Organization: > >Environment: > FreeBSD Sun.teda.nankai.edu.cn 5.2.1-RELEASE-p8 FreeBSD 5.2.1-RELEASE-p8 #2: Fri Jul 9 16:14:19 CST 2004 root@Sun.teda.nankai.edu.cn:/usr/obj/usr/src/sys/GENERIC sparc64 > >Description: > I have a ftp server (pure-ftpd) on the machine without speed limit, and the machine is in a 100M LAN. When file transfering, randomly, console reported that the netcard drop the packet for unexpect packet size. > >How-To-Repeat: > Randomly. Sometime, even if a lot of file transfer, there is nothing happened. While sometime, when I check the log, a lot of error in it. And in daily mail, before the ftp was used heavily, there were tens of IErrs, while after, there are thousands of. > >Fix: > I use current on another machine which has the same problem when use 5.2.1, and ... I think, the problem does not occur till now. I had the same problem on my Ultra2 which runs -CURRENT. The real cause of the problem seems to be the lack of auto-negotiation capability of hme(4). According to the commit logs from Marius, hme(4) with DP83840A PHY has the problem. I fixed the problem by reviving commented code. Activate "mii_mediachg(sc->sc_mii);" statement located at line 822 of sys/dev/hme/if_hme.c(rev. 1.27) if your system is NOT "Netra t1 100". If your system is "Netra t1 100", your best bet would be half-duplex with some kind force mechanism. Hope this helps. Regards, Pyun YongHyeon -- Pyun YongHyeon