From owner-freebsd-usb@FreeBSD.ORG Thu Feb 12 03:40:16 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 874B8106564A; Thu, 12 Feb 2009 03:40:16 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.235]) by mx1.freebsd.org (Postfix) with ESMTP id 48DE78FC0C; Thu, 12 Feb 2009 03:40:15 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id f6so172913rvb.43 for ; Wed, 11 Feb 2009 19:40:15 -0800 (PST) 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=fq3X87m3k8THwWmXvVNo1a3Af4HKLMbkzIL546hWpIg=; b=Bm7CFXi3lCt2yGAJ5+4y4uRngG5SL+KQoR57hZCQ43qiqqigo9gqQQABcqf+h7RVP9 4FjVkgG5QnTebv/LJG/L247gpVb0FmuAK5B1Cck/bUltLBOn0lXggyBErvqIC9cazFoL oTPy1FzFIQyBFbL6CFz7U4mrq0HmX73ZYEAAE= 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=ILb/ysc42YbdDYu85nMO4jCqO3Sco2gOF7JUOlf3yGH9gM+9AxMlDArVvXZGqeKIwO SqxFqUkLXBm0XV2RZ0WHHNYuC4dlqnSd4LGvlweHS9BmqEHfCx3JS8ks7zaf2NoXZof0 nFtkvZInRDD6zqx8lYcmtWIrjP8gbWKUIo9gU= Received: by 10.140.202.12 with SMTP id z12mr242216rvf.183.1234410015757; Wed, 11 Feb 2009 19:40:15 -0800 (PST) Received: from michelle.cdnetworks.co.kr ([114.111.62.249]) by mx.google.com with ESMTPS id c20sm744194rvf.1.2009.02.11.19.40.13 (version=SSLv3 cipher=RC4-MD5); Wed, 11 Feb 2009 19:40:14 -0800 (PST) Received: by michelle.cdnetworks.co.kr (sSMTP sendmail emulation); Thu, 12 Feb 2009 12:42:51 +0900 From: Pyun YongHyeon Date: Thu, 12 Feb 2009 12:42:51 +0900 To: Hiroharu Tamaru Message-ID: <20090212034251.GB6313@michelle.cdnetworks.co.kr> References: <200902110954.37659.hselasky@c2i.net> <200902111657.38129.hselasky@c2i.net> <20090212023723.GA6313@michelle.cdnetworks.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090212023723.GA6313@michelle.cdnetworks.co.kr> User-Agent: Mutt/1.4.2.3i 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 Reply-To: pyunyh@gmail.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2009 03:40:16 -0000 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.