From owner-freebsd-net@FreeBSD.ORG Thu Jun 17 17:30:02 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5F3A106564A for ; Thu, 17 Jun 2010 17:30:02 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 81DC78FC18 for ; Thu, 17 Jun 2010 17:30:02 +0000 (UTC) Received: by gyh20 with SMTP id 20so205783gyh.13 for ; Thu, 17 Jun 2010 10:30:01 -0700 (PDT) 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=qs+tgD53u/cNxWXFCxunef4a7XBl11gdQag5bNsyh5w=; b=YmvpqnanGGsd0glNyTbgGHzJ6iP+zwkyF/o2P+L2BYcAv9uKIVQp1yr37dG3r77wV4 4S0zIw9/L5+0Tu9OzaDm4Wx79OrBFNK4Yw84a37LxWJb4c17tHNnXe4/hDjIM/Vns07R fSGfD9NFiwJ+9AYnnsIv1FLtPhiqtV3Q44lWU= 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=g8CVdOO+O3S54bFHX3hHyHcridGr++n/G8eVETehmep2HsA+wDQjf7gabt2KCxjWX+ BDtmZYm9zSAPFK0wwTPKuDrA8MfofUQOZTmb/Ok6iTmNM0cIiyFa2FcHjYelg+xmRndf RllVHcihzLw1lLOyU6t/HkBwELrXGFF3ViaG8= Received: by 10.151.1.36 with SMTP id d36mr12609769ybi.1.1276795800862; Thu, 17 Jun 2010 10:30:00 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id d9sm3462835ibl.4.2010.06.17.10.29.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 17 Jun 2010 10:29:58 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 17 Jun 2010 10:29:18 -0700 From: Pyun YongHyeon Date: Thu, 17 Jun 2010 10:29:18 -0700 To: Sergey Perevalov Message-ID: <20100617172918.GA16885@michelle.cdnetworks.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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C19AA3D.6080409@gmail.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org, Hans Petter Selasky Subject: Re: [axe][ue0] Device send packets but any host in network can not receive any packet from it. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jun 2010 17:30:03 -0000 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: at usbus4 > >>axe0: on usbus4 > >>axe0: PHYADDR 0xe0:0x02 > >>axe0: EEPROM data : 0x008c > >>miibus0: on axe0 > >>rgephy0: PHY 2 on miibus0 > >>rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > >>1000baseT-FDX, auto > >>ue0: 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.