From owner-freebsd-net@FreeBSD.ORG Wed Apr 20 17:21:29 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 275FC1065675 for ; Wed, 20 Apr 2011 17:21:29 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id ECD5C8FC12 for ; Wed, 20 Apr 2011 17:21:28 +0000 (UTC) Received: by pwj8 with SMTP id 8so625511pwj.13 for ; Wed, 20 Apr 2011 10:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:date:to:cc:subject:message-id:reply-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=AgB08RmAuML2FDobjMHaciTqp+ACdt+GELjdVE2WKzk=; b=LaB4cfpGeFp2XDl9c8LfylbsrOLLdXxPj+jj2iAs3RnizMUwv7lytIO9FD6c1SowTi pRpclf5ac+cOtXZdw3RT0wX5u5DnUpGZYNmZpoBic96L7Hs0W+0BAQ9MqLihGD+UlKSV e4mt3CaQkkZaighJ5nyjWdpEYztz15kSOfLRY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=qXSPtLYaeSrG8Dt9UEQV6EPK90brRz1yTAqYhHkdVhSXRdn4TNz2Xq8e+Dz5/muMgJ 8mp3jDwnHwOVfTCt9C2tu/lc0Hcn8PsayudLwCAV6pVf2ZeP3YSesYuhUr5DqxAcmkEr cNspOwCHkxh8vs+oFbtBRgk6cWtZpratVrOqg= Received: by 10.142.43.16 with SMTP id q16mr4109614wfq.364.1303320088612; Wed, 20 Apr 2011 10:21:28 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id j2sm741001pbg.60.2011.04.20.10.21.26 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Apr 2011 10:21:27 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Wed, 20 Apr 2011 10:20:37 -0700 From: YongHyeon PYUN Date: Wed, 20 Apr 2011 10:20:37 -0700 To: Paul Thornton Message-ID: <20110420172037.GB8566@michelle.cdnetworks.com> References: <4DADD913.5010208@prt.org> <20110419220907.GD1637@michelle.cdnetworks.com> <4DAEBB67.7070303@prt.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DAEBB67.7070303@prt.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org Subject: Re: Broadcom BCM57765 support? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2011 17:21:29 -0000 On Wed, Apr 20, 2011 at 11:54:31AM +0100, Paul Thornton wrote: > On 19/04/2011 23:09, YongHyeon PYUN wrote: > > Here is experimental patch for BCM57765 family controllers. I > > don't have these controllers so the patch was not tested at all > > except compile. Recent Broadcom controllers like BCM57765 support > > EEE(Energy Efficient Ethernet) feature but it is not yet supported > > by the patch. > > Many thanks for this patch. > > The patch wouldn't apply cleanly to either the 8.2-release source or to > the latest if_bge / if_bgereg so I had to do it manually; but that > wasn't too much of a problem. What revision should I have tried to > apply the patch to? > The patch was generated against latest HEAD. > Things are not fully working yet after the patch is applied though. > > The current state is that the device is recognised, MAC address detected > OK, link state detected OK; you can ifconfig up the interface without a > problem. However, I'm seeing "bge0: watchdog timeout -- resetting" > messages shortly after attempting to ping something on the LAN. The > machine being pinged doesn't show up in the ARP cache. > > Looking at the switch that its connected to, I see the mac address > learned on the port, and the received packet and byte counts > incrementing with no errors so I believe that the machine is > successfully transmitting frames but not able to receive them properly. > The switch stats show that the switch is transmitting frames to the > machine. > > > Also it would good to see the output of "pciconf -lcbv" and dmesg > > after applying the patch. > > The machine in question is a 2010 Mac Mini (model rev A1347) - this has > a number of "features" that make FreeBSD an interesting challenge. The > kernel I'm using is a normal 8.2-GENERIC with another very minor tweak > to stop the Nvidia MCP89 ata controller from being used in SATA mode > (this doesn't work - Linux has a workaround based on using UDMA). > Hmm, NVIDIA controller again. See my other posting to this thread. > Attached is a dmesg, pciconf, and the output of sysctl -a dev.bge.0 > after the patch was applied. > > If there is any other debugging information I need to get to help please > let me know. Once we have this working I'll willingly give it some > thorough proper testing. > > Thanks again, > > Paul.