From owner-freebsd-usb@FreeBSD.ORG Sat Mar 27 02:32:02 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 916B81065676 for ; Sat, 27 Mar 2010 02:32:02 +0000 (UTC) (envelope-from matheusber@gmail.com) Received: from mail-yw0-f171.google.com (mail-yw0-f171.google.com [209.85.211.171]) by mx1.freebsd.org (Postfix) with ESMTP id 2BF8E8FC18 for ; Sat, 27 Mar 2010 02:32:01 +0000 (UTC) Received: by ywh1 with SMTP id 1so4267496ywh.3 for ; Fri, 26 Mar 2010 19:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:received :message-id:in-reply-to:references:date:subject:from:to:cc :user-agent:mime-version:content-type:content-transfer-encoding :x-priority:importance; bh=dCKyOrb8LY7bYIuBW4aiXaau1KWuoh7tnkYDTqa7bOE=; b=AhYXpvgR0unSL/Vxj3LoMDFF1fz3z5uAcyZDGpnPGUOQ4c0E2Z681REaVCfR4cApSm AZF2QLSXhQJfliHrVLk0m0TO/m9xsyDnFfrxVRr98xNSwOw2fwfF55loSv/caPCPFjJR 8Amb5bsw0ggDrBatmHPi7H7UHg53B3Jlg9LvQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:in-reply-to:references:date:subject:from:to:cc :user-agent:mime-version:content-type:content-transfer-encoding :x-priority:importance; b=YksEmmWeax3QjaJsxRaCeESSkyTSEssNtU2R2Gp0Sdrl0SjBKm9m5b9abVJmyigs5D 1/HxE88WruzP7x+jOB7Ehv0TDUcKK3V7ZnoX6++MUNE5il4lApzV4nkjYfD0EJv1PlMY EIz7xltBkLLGpgeIMGhpJkOYI1CUHmvExONpE= Received: by 10.151.130.11 with SMTP id h11mr2219315ybn.234.1269657120218; Fri, 26 Mar 2010 19:32:00 -0700 (PDT) Received: from cygnus.homeunix.com ([189.71.112.4]) by mx.google.com with ESMTPS id 16sm969298gxk.9.2010.03.26.19.31.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 26 Mar 2010 19:31:58 -0700 (PDT) Sender: Nenhum_de_Nos Received: by cygnus.homeunix.com (Postfix, from userid 80) id BFE04B8A1E; Fri, 26 Mar 2010 23:31:50 -0300 (BRT) Received: from 189.71.66.48 (SquirrelMail authenticated user matheus) by cygnus.homeunix.com with HTTP; Fri, 26 Mar 2010 23:31:50 -0300 (BRT) Message-ID: <4f4516c4a748aacfbd62cad9691afb90.squirrel@cygnus.homeunix.com> In-Reply-To: <20100327021954.GY1278@michelle.cdnetworks.com> References: <20100324214230.GT1278@michelle.cdnetworks.com> <20100324215827.GU1278@michelle.cdnetworks.com> <20100324231833.GX1278@michelle.cdnetworks.com> <35a626b67a1556071f4c76498214581d.squirrel@cygnus.homeunix.com> <20100325173556.GA1278@michelle.cdnetworks.com> <20100326003150.GI1278@michelle.cdnetworks.com> <20100326195012.GS1278@michelle.cdnetworks.com> <6672a5444e755931f93f58f7b2df28c4.squirrel@cygnus.homeunix.com> <20100327021954.GY1278@michelle.cdnetworks.com> Date: Fri, 26 Mar 2010 23:31:50 -0300 (BRT) From: "Nenhum_de_Nos" To: pyunyh@gmail.com User-Agent: SquirrelMail/1.4.15 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-usb@freebsd.org Subject: Re: 10Mbps+ throughput usb based ethernet recommendation X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2010 02:32:02 -0000 On Fri, March 26, 2010 23:19, Pyun YongHyeon wrote: > On Fri, Mar 26, 2010 at 11:03:50PM -0300, Nenhum_de_Nos wrote: >> >> On Fri, March 26, 2010 16:50, Pyun YongHyeon wrote: >> > On Thu, Mar 25, 2010 at 09:57:22PM -0300, Nenhum_de_Nos wrote: >> > >> > [...] >> > >> >> >> miibus1: on axe0 >> >> >> ukphy0: PHY 1 on miibus1 >> >> >> ukphy0: XXX ID1 = 0x7949, ID2 = 0x7949 >> >> > >> >> > This value looks garbage. >> >> >> >> :( >> >> >> >> >> ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, >> 1000baseSX, >> >> >> 1000baseT, 1000baseT-FDX, auto >> >> > >> >> > And this time, ukphy(4) also thinks your PHY supports 1000baseSX. >> >> > Of course it's wrong because PHY is copper type. >> >> > By chance, are you using Belkin F5D5055 USB controller? I remember >> >> > another user also reported similar issue. >> >> >> >> yes. I have two of them. >> >> >> > >> > Ok, would you try attached patch and check whether the patch prints >> > some error messages on your console? I guess some commands are >> > timed out here. >> >> ugen1.3: at usbus1 >> axe0: on usbus1 >> axe0: PHYADDR 0xe0:0x01 >> miibus1: on axe0 >> ukphy0: PHY 1 on miibus1 >> ukphy0: XXX ID1 = 0x0282, ID2 = 0xf012 >> ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, >> 1000baseT-FDX, auto >> ue0: on axe0 >> ue0: Ethernet address: xx.xx.xx.xx.xx.xx >> ue0: link state changed to DOWN >> ue0: link state changed to UP >> ue0: link state changed to DOWN >> ue0: link state changed to UP >> ue0: link state changed to DOWN >> ue0: link state changed to UP >> wlan0: link state changed to UP >> ue0: link state changed to DOWN >> ue0: link state changed to UP >> vboxnet0: Ethernet address: 0a:00:27:00:00:00 >> nfe0: promiscuous mode enabled >> wlan0: link state changed to DOWN >> wlan0: link state changed to UP >> ue0: link state changed to DOWN >> ue0: link state changed to UP >> wlan0: link state changed to DOWN >> wlan0: link state changed to UP >> ue0: link state changed to DOWN >> ue0: link state changed to UP >> wlan0: link state changed to DOWN >> wlan0: link state changed to UP >> ue0: link state changed to DOWN >> ue0: link state changed to UP >> wlan0: link state changed to DOWN >> wlan0: link state changed to UP >> nfe0: link state changed to UP >> wlan0: link state changed to DOWN >> wlan0: link state changed to UP >> wlan0: link state changed to DOWN >> wlan0: link state changed to UP >> wlan0: link state changed to DOWN >> wlan0: link state changed to UP >> nfe0: link state changed to DOWN >> ue0: link state changed to DOWN >> nfe0: link state changed to UP >> ue0: link state changed to UP >> wlan0: link state changed to DOWN >> wlan0: link state changed to UP >> nfe0: tx v2 error 0x6100 > ^^^^^^^^^^^^^^^^^^^^^^^^ > It seems you have nfe(4) Tx issues here. You may want to check > negotiated speed/duplex is correct against switch. If you have > manual media configuration instead of auto, nuke that > configuration. nfe(4) has a long standing issue when manual media > configuration is used. I'm linking my nfe0 from notebook, bridged in a vbox freebsd machine, and the usb nic. the media is auto (not manually changed since boot) on both ue0 (native freebsd), nfe0 native and em0 (guest freebsd). >> arp: xx:xx:xx:xx:xx:xx:xx is using my IP address 10.1.1.1 on ue0! >> wlan0: link state changed to DOWN >> wlan0: link state changed to UP >> wlan0: link state changed to DOWN >> wlan0: link state changed to UP >> wlan0: link state changed to DOWN >> wlan0: link state changed to UP >> wlan0: link state changed to DOWN >> wlan0: link state changed to UP >> >> so far, just this after plugging the usb nic. tested iperf and the >> behavior was the same, but nothing in logs. >> >> just noticed this: >> >> ukphy0: XXX ID1 = 0x0282, ID2 = 0xf012 >> >> this is not the same as the other mail. I think is the same adapter (as >> I >> have two), but this should change with the nic change ? >> >> I changed and got this: >> >> miibus1: on axe0 >> ukphy0: PHY 1 on miibus1 >> ukphy0: XXX ID1 = 0x0282, ID2 = 0xf012 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > This is *NOT* bogus value. It's Agere Systems' ET1011 gigabit PHY. > FreeBSD has truephy(4) for Agere Systems' PHY but it does not have > support code for the model yet. so I can think that's the issue, right ? >> ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, >> 1000baseT-FDX, auto >> ue0: on axe0 >> ue0: Ethernet address: xxxxxxxxxxxxxx >> ue0: link state changed to DOWN >> >> so it didn't now. other thing is that not every time it works: >> > > Yeah, that is real issue here. I guess there should be some magic > to wakeup the PHY from deep sleep state. I'll see what can be done. ok, great it was found :) let me know if I can help in anything :) matheus -- We will call you cygnus, The God of balance you shall be A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? http://en.wikipedia.org/wiki/Posting_style