Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jun 2010 10:29:18 -0700
From:      Pyun YongHyeon <pyunyh@gmail.com>
To:        Sergey Perevalov <perevalov84@gmail.com>
Cc:        freebsd-net@freebsd.org, Hans Petter Selasky <hselasky@c2i.net>
Subject:   Re: [axe][ue0] Device send packets but any host in network can not receive any packet from it.
Message-ID:  <20100617172918.GA16885@michelle.cdnetworks.com>
In-Reply-To: <4C19AA3D.6080409@gmail.com>
References:  <20100614211155.GB4257@michelle.cdnetworks.com> <201006150706.03039.hselasky@c2i.net> <20100615194912.GJ4257@michelle.cdnetworks.com> <20100615225227.GL4257@michelle.cdnetworks.com> <4C188D17.7020108@gmail.com> <4C190EC9.50006@gmail.com> <20100616180748.GC12941@michelle.cdnetworks.com> <4C192BA3.80508@gmail.com> <20100616211047.GD12941@michelle.cdnetworks.com> <4C19AA3D.6080409@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 17, 2010 at 09:53:17AM +0500, Sergey Perevalov wrote:
> On 17.06.2010 02:10, Pyun YongHyeon wrote:
> >On Thu, Jun 17, 2010 at 12:53:07AM +0500, Sergey Perevalov wrote:
> >   
> >>On 16.06.2010 23:07, Pyun YongHyeon wrote:
> >>     
> >>>EEPROM data
> >>>       
> >>dmesg:
> >>
> >>ugen4.2:<vendor 0x0b95>  at usbus4
> >>axe0:<vendor 0x0b95 product 0x1780, rev 2.00/0.01, addr 2>  on usbus4
> >>axe0: PHYADDR 0xe0:0x02
> >>axe0: EEPROM data : 0x008c
> >>miibus0:<MII bus>  on axe0
> >>rgephy0:<RTL8169S/8110S/8211B media interface>  PHY 2 on miibus0
> >>rgephy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
> >>1000baseT-FDX, auto
> >>ue0:<USB Ethernet>  on axe0
> >>ue0: Ethernet address: 00:0e:c6:88:09:4e
> >>ue0: link state changed to DOWN
> >>
> >>     
> >Thanks, how about this one?
> >http://people.freebsd.org/~yongari/axe/axe.phy.diff2
> >
> >   
> This one works perfect!!!
> 

Great! Thanks for testing and report!

> laptop# ping -f 192.168.2.6
> PING 192.168.2.6 (192.168.2.6): 56 data bytes
> ........................................................................................................................................................................^C
> --- 192.168.2.6 ping statistics ---
> 539966 packets transmitted, 539797 packets received, 0.0% packet loss
> round-trip min/avg/max/stddev = 0.239/6.314/64.864/5.187 ms
> 
> Thank you very very much for you work!
> Will this patch be integrated in next 8.1 release?
> 

I'm afraid it was too late to make it into 8.1-RELEASE. The patch
reprograms GPIO pins used on AX88178 based controllers and it would 
change basic operation mode of controller. So I think it needs wide
testing on all AX88178 controllers in order not to introduce
regression.
Previously GPIO pins were programmed without regard to PHY models.
I guess stock code was initially written for Marvell PHY in mind.
However different PHYs will require different GPIO configuration.
GPIO configurations are depend on controller design by nature so
different PHYs will require new GPIO configuration. For your case,
RealTek PHY also required special DSP code that takes the PHY out
of power down mode as well as GPIO reconfiguration.

Hans, would you commit the patch to P4? I guess directly committing
to tree will make your work harder.



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