Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 2009 12:42:51 +0900
From:      Pyun YongHyeon <pyunyh@gmail.com>
To:        Hiroharu Tamaru <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
Message-ID:  <20090212034251.GB6313@michelle.cdnetworks.co.kr>
In-Reply-To: <20090212023723.GA6313@michelle.cdnetworks.co.kr>
References:  <sa64oz1lacr.wl%tamaru@myn.rcast.u-tokyo.ac.jp> <200902110954.37659.hselasky@c2i.net> <sa6y6wdjbts.wl%tamaru@myn.rcast.u-tokyo.ac.jp> <200902111657.38129.hselasky@c2i.net> <sa6vdrgkjbw.wl%tamaru@myn.rcast.u-tokyo.ac.jp> <20090212023723.GA6313@michelle.cdnetworks.co.kr>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <ASIX Electronics> at usbus3
> > > > > > axe0: <ASIX Electronics AX88178, rev 2.00/0.01, addr 3> on usbus3
> > > > > > axe0: PHYADDR 0xe0:0x18
> > > > > > miibus0: <MII bus> on axe0
> > > > > > ciphy0: <Cicada VSC8211 10/100/1000TX PHY> PHY 24 on miibus0
> > > > > > ciphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
> > > > > > 1000baseT-FDX, auto ue0: <USB Ethernet> 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: <ASIX Electronics> at usbus3 (disconnected)
> > > > pid 3244 (dhclient), uid 65: exited on signal 11
> > > > ugen3.3: <ASIX Electronics> at usbus3
> > > > axe0: <ASIX Electronics AX88178, rev 2.00/0.01, addr 3> on usbus3
> > > > axe0: PHYADDR 0xe0:0x18
> > > > miibus0: <MII bus> on axe0
> > > > ciphy0: <Cicada VSC8211 10/100/1000TX PHY> PHY 24 on miibus0
> > > > ciphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
> > > > 1000baseT-FDX, auto ue0: <USB Ethernet> 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: <ASIX Electronics AX88178, rev 2.00/0.01, addr 4> on usbus1
> axe0: PHYADDR 0xe0:0x18
> miibus2: <MII bus> on axe0
> ciphy0: <Cicada VSC8211 10/100/1000TX PHY> PHY 24 on miibus2
> ciphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
> ue0: <USB Ethernet> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090212034251.GB6313>