From owner-freebsd-current@FreeBSD.ORG Tue Oct 30 02:26:32 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25ECD16A41A for ; Tue, 30 Oct 2007 02:26:32 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mx1.freebsd.org (Postfix) with ESMTP id E0D9E13C49D for ; Tue, 30 Oct 2007 02:26:31 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so2377298waf for ; Mon, 29 Oct 2007 19:26:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=JEGgeVixaD5Me8z0wnqjeHYt4aKUOOhAq4dEGOWVXQs=; b=cVlvFeRnboVC4ax6iQj8FqpXlJEtOfiVsrg6wn22+nBzZs47mjX72wtk2YnzXR2TNgfhXqfTzcpUEsiAitchKNZfSc2ji1Y5CSC2kaXKpLB3xw8WmUMk0cCd7IyzoMl5FDVKn3WGuJ+CTzVxuiVr0OXK735g1ME1Qkn7F+QjobA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=FRHEy05EfUxByLJZIVITJp7KfDcpnj+m0pFvnaoVHaKN38acKz7azhIXzfaArhjtyuMMJF+65Cb2KdYWGtLYkG+sv78naVQoowkl69NnNIP8ujbpdGBDCrd+7buuTGoqx2ONr0Hv0q/tXmODKgawmqJnH5fZKIbbvqv/ofqeyxI= Received: by 10.114.38.2 with SMTP id l2mr1272532wal.1193709505430; Mon, 29 Oct 2007 18:58:25 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id j21sm14475335wah.2007.10.29.18.58.21 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Oct 2007 18:58:23 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id l9U1wGYW038402 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 30 Oct 2007 10:58:16 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id l9U1wGcO038401; Tue, 30 Oct 2007 10:58:16 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Tue, 30 Oct 2007 10:58:16 +0900 From: Pyun YongHyeon To: Joe Marcus Clarke Message-ID: <20071030015816.GD37693@cdnetworks.co.kr> References: <20070213000922.GA62412@cdnetworks.co.kr> <1171327083.98536.5.camel@shumai.marcuscom.com> <20070213044746.GC62412@cdnetworks.co.kr> <1171344897.98536.14.camel@shumai.marcuscom.com> <20070213054802.GD62412@cdnetworks.co.kr> <45D355D9.5000805@FreeBSD.org> <20070215055918.GA4319@cdnetworks.co.kr> <45D9F303.1030302@FreeBSD.org> <20070220012443.GB912@cdnetworks.co.kr> <45DB40A5.8000406@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="VrqPEDrXMn8OVzN4" Content-Disposition: inline In-Reply-To: <45DB40A5.8000406@FreeBSD.org> User-Agent: Mutt/1.4.2.1i Cc: current@FreeBSD.org Subject: Re: Constant stream of errors on msk0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2007 02:26:32 -0000 --VrqPEDrXMn8OVzN4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Feb 20, 2007 at 01:40:37PM -0500, Joe Marcus Clarke wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Pyun YongHyeon wrote: > > > > > Does the other GigE work without issues on Cisco 6500? > > I haven't tried this card on another gigE switch. However, the same > switch port on the same switch did not exhibit these problems with the > myk driver under 6.X. At least as far as I know my desk port was not > moved in the IDF. > > > > > The msk(4) can have a bug with autonegotiation but I've never seen > > negotiation mismatches on msk(4). Whilst writing the driver I've > > checked speed/link negotiation against gigabit switch and directly > > connected GigE and I found nothing unusual. Of course, that does > > not necessarily mean msk(4) is perfect for link negotiation. > > > > Because you've said myk(4) works well on Cisco 6500 I have to > > diagnose the issue. When setting the link manually on gigabit > > environments, nomally one side should be master and the other the > > slave so how about forcing master bit on msk(4) side? > > > > #ifconfig msk0 media 1000baseTX mediaopt full-duplex link0 > > ^^^^^ > > This does not help. I tried 1000BaseTX/full, 100BaseTX/full, and > 100BaseTX/half. All three exhibited the same problem with constantly > incrementing input errors. > Hi, Are you still interesting in fixing autonegotiation issue on msk(4) at 1000bps? If so please try attached patch and let me know result. -- Regards, Pyun YongHyeon --VrqPEDrXMn8OVzN4 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="e1000phy.aneg.patch" Index: e1000phy.c =================================================================== RCS file: /home/ncvs/src/sys/dev/mii/e1000phy.c,v retrieving revision 1.19 diff -u -r1.19 e1000phy.c --- e1000phy.c 29 Oct 2007 05:50:22 -0000 1.19 +++ e1000phy.c 30 Oct 2007 01:56:55 -0000 @@ -397,8 +397,10 @@ /* * Only used for autonegotiation. */ - if (IFM_SUBTYPE(ife->ifm_media) != IFM_AUTO) + if (IFM_SUBTYPE(ife->ifm_media) != IFM_AUTO) { + sc->mii_ticks = 0; break; + } /* * check for link. @@ -411,6 +413,8 @@ } /* Announce link loss right after it happens. */ + if (sc->mii_ticks++ == 0) + break; if (sc->mii_ticks <= sc->mii_anegticks) return (0); --VrqPEDrXMn8OVzN4--