From owner-freebsd-stable@FreeBSD.ORG Mon Mar 9 07:13:01 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94DC0106572E for ; Mon, 9 Mar 2009 07:13:01 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.231]) by mx1.freebsd.org (Postfix) with ESMTP id 60DD18FC1A for ; Mon, 9 Mar 2009 07:13:01 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id f6so1664702rvb.43 for ; Mon, 09 Mar 2009 00:13:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=vChAynVQF7YHnbYkeYmgkKJSxQIVeOUKHFjSJr/sxYs=; b=u6uA6Y35j8hvFhdbufCWl00RYOZ5i0CU65vt8SYqwHfXzTDe6bq3lJzSwzbXkQm/J0 sLIef//Lkj9N2Ylzkg8sEn5fqwqR3ECVS8hM57Etc7mgqho5xT3oROBz057j+K4PeXg0 gicsAH6mX+4Okm+VA1mygm/dMaOy7at1hUE7E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=k7VyR4wdbWrOIgM0kw+QH3RLBy4e4OJ/iD+KRIb7eWK1tbtvbKZSUD1K1N462Tn9ho kmOipCOGH2mbMO6YHaEfpZJ2xc82WZu8iIfcBkGKeVPCLTfugOcRFvZkDpL5G/t2ykHP J1JLNNEjRExPkmB7cVAD+MfSmPOW6Td/fz0VM= Received: by 10.141.50.11 with SMTP id c11mr2921814rvk.45.1236582781167; Mon, 09 Mar 2009 00:13:01 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ([114.111.62.249]) by mx.google.com with ESMTPS id k2sm13415871rvb.4.2009.03.09.00.12.58 (version=SSLv3 cipher=RC4-MD5); Mon, 09 Mar 2009 00:13:00 -0700 (PDT) Received: by michelle.cdnetworks.co.kr (sSMTP sendmail emulation); Mon, 9 Mar 2009 16:11:10 +0900 From: Pyun YongHyeon Date: Mon, 9 Mar 2009 16:11:10 +0900 To: David Ehrmann Message-ID: <20090309071110.GJ5039@michelle.cdnetworks.co.kr> References: <49B355FA.2090906@gmail.com> <20090308081550.GC1531@michelle.cdnetworks.co.kr> <49B45E92.1080607@gmail.com> <20090309005857.GE5039@michelle.cdnetworks.co.kr> <49B4BDA9.302@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49B4BDA9.302@gmail.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-stable@freebsd.org Subject: Re: vge0 not autonegotiating to 1000baseTX full duplex in 7.1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Mar 2009 07:13:01 -0000 On Sun, Mar 08, 2009 at 11:56:41PM -0700, David Ehrmann wrote: > Pyun YongHyeon wrote: > >On Sun, Mar 08, 2009 at 05:10:58PM -0700, David Ehrmann wrote: > > > >>Pyun YongHyeon wrote: > >> > >>>On Sat, Mar 07, 2009 at 09:22:02PM -0800, David Ehrmann wrote: > >>> > >>> > >>>>It's been reported before, but I haven't seen anything new. vge > >>>>devices > >>>> > >>>Because I don't have access to the hardware it looks like hard to > >>>fix. > >>> > >>> > >>> > >>>>won't autonegotiate to gigabit speeds, and if I set the media to > >>>>1000baseTX, ifconfig reports "no carrier." This was with two different > >>>>interfaces on the other end, one a switch, the other another computer > >>>>(but not a vge one). > >>>> > >>>>Any ideas? > >>>> > >>>> > >>>Would you show me the output of dmesg?(Only vge(4) related one) > >>>Also show me the output of "devinfo -rv | grep phy". > >>> > >>> > >>dmesg: > >> > >>vge0: port 0xe800-0xe8ff mem > >>0xfeaffc00-0xfeaf > >>fcff irq 28 at device 0.0 on pci3 > >>vge0: Reserved 0x100 bytes for rid 0x14 type 3 at 0xfeaffc00 > >>miibus0: on vge0 > >>ip1000phy0: PHY 22 on miibus0 > >>ip1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, > >>1000bas > >>eTX-FDX, auto > >>vge0: WARNING: using obsoleted if_watchdog interface > >>vge0: bpf attached > >>vge0: Ethernet address: 00:40:63:xx:xx:xx > >>ioapic1: routing intpin 4 (PCI IRQ 28) to vector 49 > >>vge0: [MPSAFE] > >>vge0: [ITHREAD] > >> > >> > >>devinfo -rv | grep phy > >> ip1000phy0 pnpinfo oui=0x90c3 model=0x19 rev=0x0 at > >> phyno=22 > >> ukphy0 pnpinfo oui=0x4063 model=0x32 rev=0xa at phyno=1 > >> > >> > > > >Would you try attached patch? Due to lack of hardware access I > >don't know whether it helps or not(Just compilation tested). > > > I have no idea how you did it, Hmm... it was just a guess and this time I was lucky. :-) > but the patch seems to have worked. Glad to hear that. > ifconfig reports 1000baseTX, and I can nc zeros at more than 50 MB/s. > > Is this patch "stable?" Should it break any existing functionality? As you might guess, only you can say "how stable" for this patch. > What was the problem that it fixed? Will it be in the next 7.x I guess newer IC Plus PHYs require correct next page bit so I just read the autonegotiation advertisement register to cache the next page capability. All other changes are to use mii_phy_add_media() KPI which will remove duplicated codes in phy drivers. > release? 8.0? > Yes, I'll commit the patch soon and make sure to MFC to 7-stable. > Here's the link to the bug id for it: > http://www.freebsd.org/cgi/query-pr.cgi?pr=130846 > Ok, I'll handle the PR. > Thank you! No problem. Thanks for testing!