From owner-freebsd-current@FreeBSD.ORG Mon Mar 4 00:50:57 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CF2C5339; Mon, 4 Mar 2013 00:50:57 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by mx1.freebsd.org (Postfix) with ESMTP id A220C132; Mon, 4 Mar 2013 00:50:57 +0000 (UTC) Received: by mail-pb0-f49.google.com with SMTP id xa12so2752742pbc.36 for ; Sun, 03 Mar 2013 16:50:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:date:to:cc:subject:message-id:reply-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=Bs2Y0WxD/vQFCDCdxwJZpCXy3R4bk1P2k4BR6gCT68E=; b=s8IfYgTRD3uqX56/8bbqIOyzKENRuA/yHOAHh7cLqVc2hWZgAj0qxcPH56/wnoP/YH UIE5b1kBkuH4SqxliHqSvCZriB4EFaLC5Zvq3QM/YIu/UCiCZw4jESLW4UxvyRehkEfL Vd+0pp6J0qR7yZcRdSeUVOAZYaFB1hlsIvQv09uDhg+KuH6hKvQ/W04XA5qHAOJ7rC3N 7xj4oiJ8hc97n0/DErWImrq+x/JhTkDpc8GFejL2qgUaN+3Mg4poF4SCWWgtsBpzOnfH PLhLSfxW7Nx3qfRD0Wo/0iIBcbnEUzcNA9Tru4jx3v4GZ3tdXOx8bJGtcc3BD1Wb+vwL GmHw== X-Received: by 10.68.204.234 with SMTP id lb10mr25539544pbc.64.1362358251294; Sun, 03 Mar 2013 16:50:51 -0800 (PST) Received: from pyunyh@gmail.com (lpe4.p59-icn.cdngp.net. [114.111.62.249]) by mx.google.com with ESMTPS id u10sm21713972pax.14.2013.03.03.16.50.47 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 03 Mar 2013 16:50:50 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Mon, 04 Mar 2013 09:50:44 +0900 From: YongHyeon PYUN Date: Mon, 4 Mar 2013 09:50:44 +0900 To: Alexey Dokuchaev Subject: Re: ale(4) cannot negotiate as GigE Message-ID: <20130304005044.GA4589@michelle.cdnetworks.com> References: <20130219082302.GA86501@FreeBSD.org> <20130220043739.GA1469@michelle.cdnetworks.com> <20130220060853.GA83110@FreeBSD.org> <20130221083335.GA3226@michelle.cdnetworks.com> <20130221124344.GA93056@FreeBSD.org> <20130222011308.GA3259@michelle.cdnetworks.com> <20130222015607.GC66767@FreeBSD.org> <20130225082344.GC1426@michelle.cdnetworks.com> <20130303095330.GA57026@FreeBSD.org> <20130303120010.GA84560@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline In-Reply-To: <20130303120010.GA84560@FreeBSD.org> User-Agent: Mutt/1.4.2.3i Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Mon, 04 Mar 2013 00:50:57 -0000 --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Mar 03, 2013 at 12:00:10PM +0000, Alexey Dokuchaev wrote: > On Sun, Mar 03, 2013 at 09:53:30AM +0000, Alexey Dokuchaev wrote: > > However, after reboot ale0 come up at 1000baseT , with patched > > driver (longer delays in ale_phy_reset()). I've reverted this change and > > rebooted again, but it again come up as GigE. > > Alas, after "make kernel", link come up as 100mbps again, playing with > delays and rebooting (several times) did not make it GigE. I'm not sure > what's actually affecting it. :-( Would you try attached patch? > > ./danfe --OXfL5xGRrasGEqWY Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="atphy.diff" Index: sys/dev/mii/atphy.c =================================================================== --- sys/dev/mii/atphy.c (revision 247382) +++ sys/dev/mii/atphy.c (working copy) @@ -287,9 +287,11 @@ atphy_reset(struct mii_softc *sc) uint32_t reg; int i; +#if 0 /* Take PHY out of power down mode. */ PHY_WRITE(sc, 29, 0x29); PHY_WRITE(sc, 30, 0); +#endif reg = PHY_READ(sc, ATPHY_SCR); /* Enable automatic crossover. */ --OXfL5xGRrasGEqWY--