From owner-freebsd-usb@FreeBSD.ORG Thu Feb 12 17:17:36 2009 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 5E8C21065793 for ; Thu, 12 Feb 2009 17:17:36 +0000 (UTC) (envelope-from tamaru@myn.rcast.u-tokyo.ac.jp) Received: from mail0.ecc.u-tokyo.ac.jp (mail0.ecc.u-tokyo.ac.jp [133.11.45.132]) by mx1.freebsd.org (Postfix) with ESMTP id 9942D8FC14 for ; Thu, 12 Feb 2009 17:17:35 +0000 (UTC) (envelope-from tamaru@myn.rcast.u-tokyo.ac.jp) Received: from mhs003.ecc.u-tokyo.ac.jp (mhs003.ecc.u-tokyo.ac.jp [133.11.70.163]) by mail0.ecc.u-tokyo.ac.jp (Postfix) with ESMTP id 0D07C1BE800C for ; Fri, 13 Feb 2009 02:17:34 +0900 (JST) Received: from amulet.amuletic.net (124.155.55.252 [124.155.55.252]) by mhs003.ecc.u-tokyo.ac.jp (SpamBlock.pstn.b 3.4.102) with ESMTP id for ; Fri, 13 Feb 2009 02:17:15 +0900 Date: Fri, 13 Feb 2009 02:17:16 +0900 Message-ID: From: Hiroharu Tamaru To: pyunyh@gmail.com In-Reply-To: References: <200902110954.37659.hselasky@c2i.net> <200902111657.38129.hselasky@c2i.net> <20090212023723.GA6313@michelle.cdnetworks.co.kr> <20090212034251.GB6313@michelle.cdnetworks.co.kr> <20090212043033.GC6313@michelle.cdnetworks.co.kr> User-Agent: User-Agent: Wanderlust/2.14.0 (Africa) Emacs/21.3 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-IP: 124.155.55.252 X-FROM-DOMAIN: myn.rcast.u-tokyo.ac.jp X-FROM-EMAIL: tamaru@myn.rcast.u-tokyo.ac.jp Cc: thompsa@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB2: [was: umass not detected correctly, axe not transmitting] AXE problems 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: Thu, 12 Feb 2009 17:17:37 -0000 Hi, I'm back with the results. And to make it short, everything works now. Thank you, Hans and Pyun, and all others who looked into this for me. Some notes inline: At Thu, 12 Feb 2009 13:37:51 +0900, Hiroharu Tamaru wrote: > At Thu, 12 Feb 2009 13:30:33 +0900, Pyun YongHyeon wrote: > > [1 ] > > On Thu, Feb 12, 2009 at 12:59:13PM +0900, Hiroharu Tamaru wrote: > > > I've just sent another message before reading this. > > > > > > At Thu, 12 Feb 2009 12:42:51 +0900, Pyun YongHyeon wrote: > > > > On Thu, Feb 12, 2009 at 11:37:23AM +0900, Pyun YongHyeon wrote: > > > > > On Thu, Feb 12, 2009 at 01:51:47AM +0900, Hiroharu Tamaru wrote: > > > > > > > > > > > > At Wed, 11 Feb 2009 16:57:36 +0100, Hans Petter Selasky wrote: > > > > > > > > > > ugen3.3: at usbus3 > > > > > > > > > > axe0: on usbus3 > > > > > > > > > > axe0: PHYADDR 0xe0:0x18 > > > > > > > > > > miibus0: on axe0 > > > > > > > > > > ciphy0: PHY 24 on miibus0 > > > > > > > > > > ciphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > > > > > > > > > > 1000baseT-FDX, auto ue0: on axe0 > > > > > > > > > > ue0: Ethernet address: 00:90:cc:xx:xx:xx > > > > > > > > > > ue0: link state changed to DOWN > > > > > > > > > > ue0: link state changed to UP > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Turn on debugging: > > > > > > > > > > > > > > > > > > sysctl hw.usb2.axe.debug=15 > > > > > > > > > > > > > > > > > > And repeat test. > > > > > > > > > > > > > > > > with hw.usb2.axe.debug=15, I have: > > > > > > > > > > > > > > > > ugen3.3: at usbus3 (disconnected) > > > > > > > > pid 3244 (dhclient), uid 65: exited on signal 11 > > > > > > > > ugen3.3: at usbus3 > > > > > > > > axe0: on usbus3 > > > > > > > > axe0: PHYADDR 0xe0:0x18 > > > > > > > > miibus0: on axe0 > > > > > > > > ciphy0: PHY 24 on miibus0 > > > > > > > > ciphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > > > > > > > > 1000baseT-FDX, auto ue0: on axe0 > > > > > > > > ue0: Ethernet address: 00:90:cc:f7:bc:2e > > > > > > > > ue0: link state changed to DOWN > > > > > > > > ue0: link state changed to UP > > > > > > > > > > > > > > > > > > > > > > > The hardware is a PLANEX GU-1000T ethernet adapter. > > > > > > > > > > > > > > > > > > > > > > > I have the same USB controller and latest CURRENT works. > > > > > > > > > > axe0: on usbus1 > > > > > axe0: PHYADDR 0xe0:0x18 > > > > > miibus2: on axe0 > > > > > ciphy0: PHY 24 on miibus2 > > > > > ciphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto > > > > > ue0: on axe0 > > > > > ue0: Ethernet address: 00:90:cc:ef:b9:f6 > > > > > ue0: link state changed to DOWN > > > > > > > > > > I manually loaded necessary kernel modules as my kernel does not > > > > > have any USB device entries. The only regression since I tried USB2 > > > > > axe(4) was failure of symbol resolving of link_elf in > > > > > usb2_ethernet.ko module. Attached simple patch seems to fix that. > > > > > > > > > > To Hans, > > > > > I think MODULE_DEPEND should come first before any reference to > > > > > the module in usb2_ethernet.c. Since mii_phy_probe live in > > > > > miibus(4) I added it too. > > > > > > > > > > > > > Hans, I managed to track down Hiroharu's issue in axe(4). It seems > > > > Andrew removed link handling code that ensures correct state of > > > > established link in r188412. > > > > I believe we have to revert changes made in axe_cfg_mii_statchg() > > > > and axe_tick(). I have no idea what was happend in P4, you > > > > checked in the link handling code I submitted. > > > > > > Thanks for looking into this. > > > > > > So, can I just be waiting for a patch to test, or a CVS > > > revision of files to revert to? > > > > > > Meanwhile, I'll bring the userland to the latest current, as > > > I mentioned on the other mail. > > > > > > > Ok, try this one after installword. Attached one restores previous > > link handle code. Note, it was just compile tested. > > Thanks, will do. Could take half a day or so building the world and > all on this host, though. > I'll be back with the results. OK, the patch usb2_ethernet.patch2 in <20090212043033.GC6313@michelle.cdnetworks.co.kr> worked, and now the ue0/AXE interface is working fine. Though I have only tested in 100BaseTX/full-duplex mode, ping -f over a 100Mbps switch run without any packet loss (sysctl net.inet.icmp.icmplim=0, of course), and the interface statics shows no errors too: Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll ue0 1500 00:90:cc:xx:xx:xx 32634 0 32192 0 0 ue0 1500 192.168.1.0 192.168.1.3 32553 - 32190 - - Also, At Thu, 12 Feb 2009 12:51:00 +0900, Hiroharu Tamaru wrote: > I also have em0/em1 interfaces, and I am switching with ue0 > when I test AXE. > > It turned out that although I 'ifconfig em0 inet delete > down' those unused interfaces, the arp table entries remain. > 'arp -nda' shows 'delete: cannot locate 192.168.1.1' and the > like for every entry in the table, and they are infact not > deleted. Deletion fails both when em0 is up and down. This symptom was solved after I have brought my userland in sync with the kernel. So here I am, with all my USB2 problems solved! Thank you all for this quick assistance! And finally, I'd appreciate if you could send me or the list the 'commit done' message on this ethernet patch and the mountroot delay patch, so that I can mark to forget about patching the kernel as I cvsup it. Thanks. Hiroharu