From owner-freebsd-current@FreeBSD.ORG Thu Jan 17 01:40:28 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4018216A420 for ; Thu, 17 Jan 2008 01:40:28 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.235]) by mx1.freebsd.org (Postfix) with ESMTP id E773A13C45D for ; Thu, 17 Jan 2008 01:40:27 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so362779nzf.13 for ; Wed, 16 Jan 2008 17:40:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=lX7AcUW13s+Jlwl+XDRpRCDb8+dlV8j5xcZozsZn930=; b=RaHv3bdK3CsBoM9FGjZFGDssgkqxhYmN4HrUDF8tRCilp8aMZhbxTAzjYJtc9ygZF4owEGhS4F5MDy6d7cwHP0HCKgckQbX7Zg1l2/cdGOkcyuabJCPC8jLrPfD2COTDew9Tc//NB4qnGcljumPow6WI6yS1oH90ovAqKPT/vvE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=awFXAax1gTyEuESgLC2cvruV5TI5LNna+5f/e2CrLmM54JCv+AdCXkjv7t26w+Uxs71WHR+aGtkHAvoFnxIz4u21pPS5qg23bs7Kl2Xd/aIHJs/kpESAaxPslF7sX+mklpZx3fKdEURzWp7SNMCGB4+GI23G20bu7izGXU4q45E= Received: by 10.114.161.11 with SMTP id j11mr1691085wae.127.1200534026174; Wed, 16 Jan 2008 17:40:26 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id k39sm3213773wah.4.2008.01.16.17.40.23 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Jan 2008 17:40:25 -0800 (PST) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id m0H1eJkf089236 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 17 Jan 2008 10:40:19 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m0H1eDuJ089235; Thu, 17 Jan 2008 10:40:13 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Thu, 17 Jan 2008 10:40:13 +0900 From: Pyun YongHyeon To: Chris Poulsen Message-ID: <20080117014013.GA89210@cdnetworks.co.kr> References: <476EE604.2070809@nesluop.dk> <20071225234723.GA1018@cdnetworks.co.kr> <4772D649.3010001@nesluop.dk> <20071227002252.GE1018@cdnetworks.co.kr> <20080116012154.GB84758@cdnetworks.co.kr> <478E7DF3.4080908@nesluop.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <478E7DF3.4080908@nesluop.dk> User-Agent: Mutt/1.4.2.1i Cc: kevlo@freebsd.org, FreeBSD Current Subject: Re: Problem with nfe stability and throughput X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2008 01:40:28 -0000 On Wed, Jan 16, 2008 at 10:58:11PM +0100, Chris Poulsen wrote: > Hi, > > Pyun YongHyeon wrote: > > > >Based on hardware information from Linux l1 driver I wrote a simple > >PHY driver. You can get the diff at the following URL. > >Would you give it spin? > > > >http://people.freebsd.org/~yongari/atphy.diff > > > >Note, I don't have the hardware so don't know whether it works or > >not. Just compile tested. I also have no PHY hardware information > >so the model name in the driver may not reflect real name. > > > > > Thank you for your reply. I tried building a new kernel with your patch > and loaded nfe0 instead of the old rl0 I'm currently using. It came up > nicely with the following entries in dmesg: > > ata3: on atapci0 > ata3: [ITHREAD] > nfe0: port 0xc880-0xc887 mem > 0xdfefc000-0xdfefcfff,0xdfefe400-0xdfefe4ff,0xdfefe0 > 00-0xdfefe00f irq 23 at device 10.0 on pci0 > miibus0: on nfe0 > atphy0: PHY 1 on miibus0 > atphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto > nfe0: Ethernet address: 00:1d:60:6d:73:ec > nfe0: [FILTER] > nfe0: [FILTER] > nfe0: [FILTER] > nfe0: [FILTER] > nfe0: [FILTER] > nfe0: [FILTER] > nfe0: [FILTER] > nfe0: [FILTER] > pcib2: at device 11.0 on pci0 > pci2: on pcib2 > > Things seemed to work, so I decided to try and transfer a couple of big > files to it using ftp. First file went really well, transfer finished > reporting a transfer speed of 7.68 megabyte/sec - a performance that > seems ok, taking my network equipment into account ;) > Good, it looks like a step forward to right direction. I didn't even think atphy(4) can establish a valid link. > After transferring the file, the ftp client said "entering passive mode" > preparing for the next file and then things froze up. (Well only the > network.) The M2N-VM machine stopped responding to ping, ssh, ftp. I > could not find anything in /var/log/messages, I tried pulling the > interface down and up, but it didn't bring it back to life. > Would you show me the output of "ifconfig nfe0"? > What do you need me to do, in order to get some usable info about what > is going on? > What about changing /usr/src/sys/dev/mii/atphy.c as the following? >From atphy.c, line number 174: 171 /* 172 * Reset the PHY so all changes take effect. 173 */ 174 if (IFM_SUBTYPE(ife->ifm_media) != IFM_AUTO) { 175 bmcr = PHY_READ(sc, MII_BMCR); 176 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_RESET); 177 } 178 break; To: 171 /* 172 * Reset the PHY so all changes take effect. 173 */ 174 bmcr = PHY_READ(sc, MII_BMCR); 175 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_RESET); 176 break; As you know, no public documentation for the phy is available so it would take long time to find a clue to support the hardware. Please don't give up and lets try possible (still guessing) combinations. -- Regards, Pyun YongHyeon