From owner-freebsd-current@FreeBSD.ORG Wed Jan 16 01:27:38 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 35B1316A421 for ; Wed, 16 Jan 2008 01:27:38 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176]) by mx1.freebsd.org (Postfix) with ESMTP id E708F13C46E for ; Wed, 16 Jan 2008 01:27:37 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so111986waf.3 for ; Tue, 15 Jan 2008 17:27:37 -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=hlQmzcYUDw6LbPxE2dwEpdxN/MNxPNBbl5q25lB1DD8=; b=Gv9LOgRanLA1MdlcKa9EFpVchdIff/F+AryM6AahnwMGmSrBg5N2WxpgD+kIXBw9k0pTVsADAnIfONzhrwinhoyeQySc9gKFJDjFPMagDVHK3bSbHxR+6AclEvxGqWSibmsZbdrI0JKuKKcZuXoyv6vvL9sQR5BLdrRn2uiZjnQ= 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=qCEiXLbIDSxITJmvnVGv7XT6CDJ9194XYH3U0Ud+7zYxrYcJgUVPYTsGd+/22ZWMJDJP/vMvD1CV8NaeQzeUOJN2zAQ46wWCm2+hvq3m+C2c7aK8wDTteR4NHMeYMF9nD92e4jghSbmciNwkiKEsguZiYU5EvXKcCX8+Fjss+cg= Received: by 10.115.55.1 with SMTP id h1mr197729wak.69.1200446857671; Tue, 15 Jan 2008 17:27:37 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id j7sm424084wah.23.2008.01.15.17.27.34 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Jan 2008 17:27:36 -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 m0G1LurQ085111 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Jan 2008 10:21:56 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m0G1LsfN085110; Wed, 16 Jan 2008 10:21:54 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Wed, 16 Jan 2008 10:21:54 +0900 From: Pyun YongHyeon To: Chris Poulsen Message-ID: <20080116012154.GB84758@cdnetworks.co.kr> References: <476EE604.2070809@nesluop.dk> <20071225234723.GA1018@cdnetworks.co.kr> <4772D649.3010001@nesluop.dk> <20071227002252.GE1018@cdnetworks.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071227002252.GE1018@cdnetworks.co.kr> 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: Wed, 16 Jan 2008 01:27:38 -0000 On Thu, Dec 27, 2007 at 09:22:52AM +0900, To Chris Poulsen wrote: > On Wed, Dec 26, 2007 at 11:31:37PM +0100, Chris Poulsen wrote: > > Hi, > > > > Pyun YongHyeon wrote: > > >On Sun, Dec 23, 2007 at 11:49:40PM +0100, Chris Poulsen wrote: > > > > Hi, > > > > > > > > I've installed CURRENT on an asus m2n-vm. My network config is giving > > > me > problems. > > > > > > > My dmesg contains: > > > > > > > > ata3: [ITHREAD] > > > > nfe0: port 0xd880-0xd887 mem > > > > 0xdfffc000-0xdfffcfff,0xdfffe400-0xdfffe4ff,0 > > > > xdfffe000-0xdfffe00f irq 23 at device 10.0 on pci0 > > > > miibus0: on nfe0 > > > > ukphy0: PHY 1 on miibus0 > > > ^^^^^^ > > >It seems that ukphy(4) was picked up to serve your PHY hardware. > > >I guess ukphy(4) is not right phy driver for the hardware as it could > > >result in non-working driver. Would you show me the ukphy(4) output of > > >verbosed boot message?(In verbosed boot mode, ukphy(4) may have printed > > >OUI/model number of the PHY hardware.) > > > > > > > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, > > > auto > > > > nfe0: Ethernet address: 00:1d:60:6d:73:ec > > > > > > > > A verbose boot log contains the following: > > ... > > ata3: [ITHREAD] > > nfe0: port 0xd880-0xd887 mem > > 0xdfffc000-0xdfffcfff,0xdfffe400-0xdfffe4ff,0xdfffe000-0xdfffe00f irq 23 > > at device 10.0 on pci0 > > nfe0: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xdfffc000 > > nfe0: attempting to allocate 8 MSI vectors (8 supported) > > msi: routing MSI IRQ 256 to vector 56 > > msi: routing MSI IRQ 257 to vector 57 > > msi: routing MSI IRQ 258 to vector 58 > > msi: routing MSI IRQ 259 to vector 59 > > msi: routing MSI IRQ 260 to vector 60 > > msi: routing MSI IRQ 261 to vector 61 > > msi: routing MSI IRQ 262 to vector 62 > > msi: routing MSI IRQ 263 to vector 63 > > nfe0: using IRQs 256-263 for MSI > > nfe0: Using 8 MSI messages > > miibus0: on nfe0 > > ukphy0: PHY 1 on miibus0 > > ukphy0: OUI 0x001374, model 0x0001, rev. 6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ > According to IEEE stanards OUI database the manufacturer is Atheros > Communications. Since Atheros acquired Attansic Technology I guess > the phy originated from Attansic Technology. ATM there is no phy > driver for FreeBSD and the vendor didn't release publicly available > datasheets to developers. AFAIK kevlo is working on Attansic driver > so I guess he may have more information for this phy hardware(CCed). > 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. -- Regards, Pyun YongHyeon