From owner-freebsd-current@FreeBSD.ORG Fri Feb 22 01:13:24 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 C27B5AB8; Fri, 22 Feb 2013 01:13:24 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by mx1.freebsd.org (Postfix) with ESMTP id 7AF55A8E; Fri, 22 Feb 2013 01:13:24 +0000 (UTC) Received: by mail-pa0-f46.google.com with SMTP id kp14so147942pab.5 for ; Thu, 21 Feb 2013 17:13:18 -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=7XLsMRYts+59iBthZK1C0a4Bgmummymz14aoW6HaQXU=; b=AYuhPZAIj8FTeegHUv7GxPuusrcLUQriLWyh/h9F6/YZILiITaPUJ+DiXDpv2yUOzU yRzcmFXMBqBMiaEIXun4O3glVNiieSNcc1jb5n89rQ5/hSeQ4GkqqkrTh2/uehyPSDZW 5MWwjrMBtk5YpzuYbOnRs3BOGjLZLIGhu/MN98JAK53trD01Wi9mAJI9AbjPrVxFO3qs iejjb6/ZhvGdUXP0RypEw5e4jjlcA3K18D9sc5iaG5cYWPVDM/1FTD1rUZ6YDpgFx4lW Pr0OseseQtBVHX10Sr6Y+YNPad5nlta3bjk73VUmVPRxrhsJg0G+1pmkEdb8GE+ws486 VnQA== X-Received: by 10.68.7.106 with SMTP id i10mr266663pba.43.1361495598266; Thu, 21 Feb 2013 17:13:18 -0800 (PST) Received: from pyunyh@gmail.com (lpe4.p59-icn.cdngp.net. [114.111.62.249]) by mx.google.com with ESMTPS id o5sm894358pay.5.2013.02.21.17.13.14 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 21 Feb 2013 17:13:17 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Fri, 22 Feb 2013 10:13:08 +0900 From: YongHyeon PYUN Date: Fri, 22 Feb 2013 10:13:08 +0900 To: Alexey Dokuchaev Subject: Re: ale(4) cannot negotiate as GigE Message-ID: <20130222011308.GA3259@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> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline In-Reply-To: <20130221124344.GA93056@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: Fri, 22 Feb 2013 01:13:24 -0000 --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Feb 21, 2013 at 12:43:44PM +0000, Alexey Dokuchaev wrote: > On Thu, Feb 21, 2013 at 05:33:35PM +0900, YongHyeon PYUN wrote: > > On Wed, Feb 20, 2013 at 06:08:53AM +0000, Alexey Dokuchaev wrote: > > > $ dmesg | egrep ale\|atphy > > > ale0: port 0xcc00-0xcc7f mem 0xfe9c0000-0xfe9fffff irq 17 at device 0.0 on pci2 > > > ale0: 960 Tx FIFO, 1024 Rx FIFO > > > ale0: Using 1 MSI messages. > > > ale0: 4GB boundary crossed, switching to 32bit DMA addressing mode. > > > miibus0: on ale0 > > > atphy0: PHY 0 on miibus0 > > > atphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow > > > > > > $ devinfo -rv | grep atphy > > > atphy0 pnpinfo oui=0xc82e model=0x1 rev=0x9 at phyno=0 > > > > Hmm, it's still not clear whether the controller is Gigabit or not. > > Could you try attached patch and let me the output? > > ale_flags = 0x00000040 Thanks for the info. Indeed, your controller is AR8121 Gigabit etherent(L1E). I guess the PHY initialization is not complete. Would you try attached patch? > > ./danfe --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ale.pr.diff2" Index: sys/dev/ale/if_ale.c =================================================================== --- sys/dev/ale/if_ale.c (revision 246937) +++ sys/dev/ale/if_ale.c (working copy) @@ -406,11 +406,11 @@ CSR_WRITE_2(sc, ALE_GPHY_CTRL, GPHY_CTRL_HIB_EN | GPHY_CTRL_HIB_PULSE | GPHY_CTRL_SEL_ANA_RESET | GPHY_CTRL_PHY_PLL_ON); - DELAY(1000); + DELAY(2000); CSR_WRITE_2(sc, ALE_GPHY_CTRL, GPHY_CTRL_EXT_RESET | GPHY_CTRL_HIB_EN | GPHY_CTRL_HIB_PULSE | GPHY_CTRL_SEL_ANA_RESET | GPHY_CTRL_PHY_PLL_ON); - DELAY(1000); + DELAY(2000); #define ATPHY_DBG_ADDR 0x1D #define ATPHY_DBG_DATA 0x1E --UlVJffcvxoiEqYs2--