From owner-freebsd-current@FreeBSD.ORG Tue Jun 3 01:00:09 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 37D711065678 for ; Tue, 3 Jun 2008 01:00:09 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.229]) by mx1.freebsd.org (Postfix) with ESMTP id E64148FC2C for ; Tue, 3 Jun 2008 01:00:08 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1374631rvf.43 for ; Mon, 02 Jun 2008 18:00:08 -0700 (PDT) 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=oOCbO5i9vcOqaaS1O8RrpqD9AvzsMGDSwEGf5abo5ps=; b=OWUprKE5GVZSxUnnWzbM9i2oKffwRQCHWdM5phk/tegy8qTHoly/1GIrEZiv7F8rA1vTyrbPshWs4KfQFeIsD56VsQlxCi+2dVlcdD20+KXs87HcN6QiMD9Z5VcT+WSPEMUnNlDEPmUv/n64KUmhsoI4RjhX5Z6ERVr8mmIQCEI= 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=xCa63LzVDYgAoLcImC6WT/tvkplB4fMwjmd4fYqtxP1Cl94q4TfAk+VgucJmiHe4DOzI9891cWnsY78PzIx3QH5QLm/TAVTwJOF2duWqoH+pUIfuktbId2ljoa7ibyAA9bG5YtfJXD1jUruLoSSeM9rIm1ltd1ILNlOEsRGkRgE= Received: by 10.141.68.5 with SMTP id v5mr5372860rvk.179.1212454808646; Mon, 02 Jun 2008 18:00:08 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id k2sm7037134rvb.4.2008.06.02.18.00.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 02 Jun 2008 18:00:06 -0700 (PDT) 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 m53101l7087954 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 3 Jun 2008 10:00:01 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m53101rG087953; Tue, 3 Jun 2008 10:00:01 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Tue, 3 Jun 2008 10:00:01 +0900 From: Pyun YongHyeon To: Norikatsu Shigemura Message-ID: <20080603010001.GA87699@cdnetworks.co.kr> References: <20080602034630.eb07fe5c.nork@FreeBSD.org> <20080602003948.GA83841@cdnetworks.co.kr> <20080603011316.7736c782.nork@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="gKMricLos+KVdGMg" Content-Disposition: inline In-Reply-To: <20080603011316.7736c782.nork@FreeBSD.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@FreeBSD.org, Bill Paul , Sam Leffler Subject: Re: axe(4) doesn't work (patch to replace obsolete if_watchdog interface) 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: Tue, 03 Jun 2008 01:00:09 -0000 --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jun 03, 2008 at 01:13:16AM +0900, Norikatsu Shigemura wrote: > Hi sam and yongari! > > On Mon, 2 Jun 2008 09:39:48 +0900 > Pyun YongHyeon wrote: > > > ukphy0: PHY 0 on miibus0 > > > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseSX, 1000baseT, 1000baseT-FDX, auto > > > I'm not familiar with USB but this looks like PHY driver problem or > > mishandling of link state change in axe(4). > > Because axe(4) uses ukphy(4), a generic PHY driver, it would be > > even better if you can show me the verbosed boot messages related > > with axe(4)/ukphy(4) or "devinfo -rv | grep oui". > > Thanks for your pointed out! I didn't notice PHY problem. > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > axe0: on uhub1 > axe0: AX88178, bufsz 4096, boundary 512 > miibus1: on axe0 > ukphy0: PHY 0 on miibus1 > ukphy0: OUI 0x1e525e, model 0x0014, rev. 9 ^^^^^^^^^^^^ This OUI does not exist in IEEE OUI database so I vaguely guess this one comes from broken MII_OUI macro implementation in FreeBSD. Because PHY vendors also made the same mistake as FreeBSD this hasn't been much problem so far. Would you apply the following patch and let me know the output of ukphy(4)? > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseSX, 1000baseT, 1000baseT-FDX, auto > axe0: bpf attached > axe0: Ethernet address: 00:90:cc:ef:b9:f6 > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > ukphy0 pnpinfo oui=0x1e525e model=0x14 rev=0x9 at phyno=0 > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- Regards, Pyun YongHyeon --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ukphy.id.patch" --- sys/dev/mii/ukphy.c.orig 2007-01-20 09:52:29.000000000 +0900 +++ sys/dev/mii/ukphy.c 2008-06-03 09:51:28.000000000 +0900 @@ -159,6 +159,11 @@ mii_phy_add_media(sc); printf("\n"); +#if 1 + device_printf(dev, "IDR1 = 0x%04x, IDR2 = 0x%04x\n", + PHY_READ(sc, MII_PHYIDR1), PHY_READ(sc, MII_PHYIDR2)); +#endif + MIIBUS_MEDIAINIT(sc->mii_dev); mii_phy_setmedia(sc); --gKMricLos+KVdGMg--