From owner-freebsd-current@FreeBSD.ORG Sat Mar 28 09:59:15 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49D8B1065672 for ; Sat, 28 Mar 2009 09:59:15 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from mail-bw0-f164.google.com (mail-bw0-f164.google.com [209.85.218.164]) by mx1.freebsd.org (Postfix) with ESMTP id 9D39A8FC13 for ; Sat, 28 Mar 2009 09:59:14 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: by bwz8 with SMTP id 8so1234819bwz.43 for ; Sat, 28 Mar 2009 02:59:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=tlKoY969T9SEfdA9wYoqbBuN9Sp+VZlhStClmkmh5Xs=; b=FAg/GH9gAeAENolTuSK0CCaWcqaJoZNhP6V1Z1eJDD7UH9/s7UHrySy4zUUir7yLgS 2cBGdBmDR6GR1z0p2onxN636MCo5n1O0BhJfkQvJbkLNQ9Yqw+XPyAYyh3IEIwqQyNYX QQXy7Jq8woyqUchPrYdGTFrAQ3gHPlE0asf6M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ZqAHaZEBMi7RJAGMMMSR2NpYcXr4ViBgkxK7venvBISe+mhT1U+oEozjceYzn3Y9wn mgh1Q8oNvUEz8HxVD9v9CfkQYk73je9vQP+7KSOFqSBYyR+8ZfYcyquPlkD5lEOdnhMn rtQHSE3j/7CeE5hI/K6HFw2c5X8DBsPj5/4CA= MIME-Version: 1.0 Received: by 10.223.108.196 with SMTP id g4mr2371905fap.36.1238234353302; Sat, 28 Mar 2009 02:59:13 -0700 (PDT) In-Reply-To: <20090328080924.GD99923@michelle.cdnetworks.co.kr> References: <75656435-49E2-457A-9CFE-8706CD44916E@gmail.com> <20090328080924.GD99923@michelle.cdnetworks.co.kr> Date: Sat, 28 Mar 2009 11:59:13 +0200 Message-ID: <2e77fc10903280259s5a761cacs398b88649a2367fe@mail.gmail.com> From: Niki Denev To: pyunyh@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: axe(4) (Belkin F5D5055) problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 09:59:15 -0000 2009/3/28 Pyun YongHyeon : > On Fri, Mar 27, 2009 at 09:14:06PM +0200, Nikolay Denev wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Hello, >> >> I'm running -current from 23.03.09 and I'm experiencing some axe(4) >> problems. >> Basically the network connection works but when some more serious >> traffic hits the >> interface (i.e. torrent download) it then dies, ifconfig down/up >> does not help, only replugging of the adapter. >> >> I've tried running with hw.usb2.axe.debug=3D15 and the output was many >> lines of: >> >> =A0 =A0axe_bulk_write_callback:853: transfer complete >> >> then a pause of several seconds and the kernel begins to print : >> >> =A0 =A0axe_bulk_write_callback:925: transfer error, USB_ERR_TIMEOUT >> >> Another strange thing that I noticed is that, while the interface >> seems to be >> connected and working, if I type many times ifconfig ue0 consecutively >> most of the time it would show different settings for the auto >> negotiated link. >> I.e. it would cycle between 100baseTX-FDX, 1000baseT-FDX, no carrier, >> 100BaseT-FDX hw-loopback and 1000BaseT-FDX hw-loopback. >> >> The switch does not seem to register link flaps. >> > > axe(4) requires exact link state/speed information from mii(4) to > reprogram controller to resolved speed/duplex. In this case > ukphy(4) seems to report fake link state/speed to axe(4). > >> The kernel messages for the interface are : >> >> =A0 =A0ugen2.5: at usbus2 >> =A0 =A0axe0: on usbus= 2 >> =A0 =A0axe0: PHYADDR 0xe0:0x01 >> =A0 =A0miibus0: on axe0 >> =A0 =A0ukphy0: PHY 1 on miibus0 >> =A0 =A0ukphy0: =A010baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, >> 1000baseT, 1000baseT-FDX, auto >> =A0 =A0ue0: on axe0 >> =A0 =A0ue0: Ethernet address: 00:11:50:xx:xx:xx >> >> devinfo -vr | grep phy >> ukphy0 pnpinfo oui=3D0xa0bc model=3D0x1 rev=3D0x2 at phyno=3D1 >> > > This looks like Agere systems ET110C TruePHY. Would you try > attached patch? Because truephy(4) pokes some undocumented PHY > registers on PHY reset I'm not sure this model also requires that > magic to make it work though. > Hi Pyun, Thanks for the patch. With it the PHY is now detected as truephy. The only thing that i notice is that if the media status changes displayed = with ifconfig are less frequent, and I mostly see 1000baseT-FDX and 100baseT-HDX The packet loss is still there, and the interface again stops to work after some time. Regards, Niki Denev