From owner-freebsd-current@FreeBSD.ORG Thu Feb 21 12:32:16 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 7E96233C; Thu, 21 Feb 2013 12:32:16 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-da0-f45.google.com (mail-da0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id BFB25A86; Thu, 21 Feb 2013 12:32:15 +0000 (UTC) Received: by mail-da0-f45.google.com with SMTP id v40so598255dad.4 for ; Thu, 21 Feb 2013 04:32:09 -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=TN7qinlqIdggKmAPkJpBigiMw7NOiibUIFKx/hlJWMI=; b=pBK+h5gnceSMXqfSZewZWARh9gmfUlfCscnPByFi9GYCB50F/zR4SC1szcQ8iOA4Sy EJcoOcUvL4mXljq8noIVw5p71713VTyWemsQbRn7o1OB3GO8EQMJOGIZ1GSK/WS8LTdC 3DF3NWP1iEjZ+J6mtezgLjolzoxmfswjaMbWCF5+9FtWOr8J3U/aDQMox+5XCuI+khdM FoVvREXMqvCGx1MbB/idU7PuzjYda4waPBvXRvzf6TmpIPqoTn4vlRc5W1TT91Y0JCWM Egiz7Ynq/1qXyLEIQ9ERZR6BWSMk2b7thoiWImjdJqd9Ut3Dg2FZhFb5IPSrgTbrc63h b7Gw== X-Received: by 10.68.227.202 with SMTP id sc10mr53788982pbc.109.1361435626165; Thu, 21 Feb 2013 00:33:46 -0800 (PST) Received: from pyunyh@gmail.com (lpe4.p59-icn.cdngp.net. [114.111.62.249]) by mx.google.com with ESMTPS id a4sm114276901paw.21.2013.02.21.00.33.42 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 21 Feb 2013 00:33:44 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 21 Feb 2013 17:33:35 +0900 From: YongHyeon PYUN Date: Thu, 21 Feb 2013 17:33:35 +0900 To: Alexey Dokuchaev Subject: Re: ale(4) cannot negotiate as GigE Message-ID: <20130221083335.GA3226@michelle.cdnetworks.com> References: <20130219082302.GA86501@FreeBSD.org> <20130220043739.GA1469@michelle.cdnetworks.com> <20130220060853.GA83110@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="8t9RHnE3ZwKMSgU+" Content-Disposition: inline In-Reply-To: <20130220060853.GA83110@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: Thu, 21 Feb 2013 12:32:16 -0000 --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Feb 20, 2013 at 06:08:53AM +0000, Alexey Dokuchaev wrote: > On Wed, Feb 20, 2013 at 01:37:39PM +0900, YongHyeon PYUN wrote: > > On Tue, Feb 19, 2013 at 08:23:02AM +0000, Alexey Dokuchaev wrote: > > > ale0@pci0:2:0:0: class=0x020000 card=0x82261043 chip=0x10261969 > > > rev=0xb0 hdr=0x00 > > > vendor = 'Atheros Communications Inc.' > > > device = 'AR8121/AR8113/AR8114 Gigabit or Fast Ethernet' > > > class = network > > > subclass = ethernet > > > > > > According the the specs, it should be GigE. [...] > > > > There is a fast etherenet version(L2E) so I'm not sure what you > > have. Could you show me dmesg output(ale(4) & atphy(4) only) and > > "devinfo -rv | grep atphy"? > > $ 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? > > > > I'm not sure why it happens; maybe it's somehow related to a handful of > > > those "ale0: link state changed to DOWN/UP" flip-flops I see in dmesg(8), > > > before it can finally obtain DHCP lease? > > > > That's normal when you initiate auto-negotiation with dhclient. > > Yes, I've already seen your lengthy explanation [1], thanks! > > > > I remember these adapters had problems in the past, like infamous > > > "Corrupted MAC on input" disconnect messages, but I don't recall that I > > > could not use it in GigE mode. [...] > > > > If you still see the "Corrupted MAC on input" message, let me know. > > No, those are long gone now (hopefully; at least I haven't seen them for a > while). > > ./danfe > > [1] http://lists.freebsd.org/pipermail/freebsd-net/2009-January/020662.html --8t9RHnE3ZwKMSgU+ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="ale.pr.diff" Index: sys/dev/ale/if_ale.c =================================================================== --- sys/dev/ale/if_ale.c (revision 246937) +++ sys/dev/ale/if_ale.c (working copy) @@ -497,6 +497,9 @@ ale_attach(device_t dev) sc->ale_flags |= ALE_FLAG_FASTETHER; } } +#if 1 + printf("ale_flags = 0x%08x\n", sc->ale_flags); +#endif /* * All known controllers seems to require 4 bytes alignment * of Tx buffers to make Tx checksum offload with custom --8t9RHnE3ZwKMSgU+--