From owner-freebsd-net@FreeBSD.ORG Wed May 4 17:05:51 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 E253D106567B for ; Wed, 4 May 2011 17:05:51 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-px0-f176.google.com (mail-px0-f176.google.com [209.85.212.176]) by mx1.freebsd.org (Postfix) with ESMTP id B3B848FC18 for ; Wed, 4 May 2011 17:05:51 +0000 (UTC) Received: by pxi11 with SMTP id 11so968741pxi.7 for ; Wed, 04 May 2011 10:05:51 -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=gG0q3LExZCMdBj1+8YZ8U0iLrQ6WQNMwSOACmN1kZls=; b=YzetaDsDqvHotsBTrmh5ZFBliXA+T+yRZoWw5ruUOYXcHs3OgKFhjv51gUsWFsrrcd KB/JiMAVKr5uuqOD3uqZq9Opu4Jh8K2vK1LYVK79xDfSgPc0thNmAUS8wVoS5zYJhO6T TjuqzvENIoiTNCrT6jHTcqb9Nl8zE0E5HGytk= 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=Fn7TJ8F+ULRky9Gus/i1msI16TPlLICRGlH1Ga52vFVQDMrhJ1YZAhEctKZ8m9sNei XQlmg2BKbzqQ2Zrylx4+EkpjqZjy99Iqm7QnXsddbgehCR1fG0qzjKJU9pg03WxcgxVt 7IZEHxwxErqJB1RwQrc6LVF32hIl3LQ1zpv5I= Received: by 10.143.96.29 with SMTP id y29mr704499wfl.130.1304528751229; Wed, 04 May 2011 10:05:51 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id q5sm841948pbp.65.2011.05.04.10.05.47 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 May 2011 10:05:49 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Wed, 04 May 2011 10:05:05 -0700 From: YongHyeon PYUN Date: Wed, 4 May 2011 10:05:05 -0700 To: Paul Thornton Message-ID: <20110504170505.GA9362@michelle.cdnetworks.com> References: <4DADD913.5010208@prt.org> <20110419220907.GD1637@michelle.cdnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110419220907.GD1637@michelle.cdnetworks.com> 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, 04 May 2011 17:05:52 -0000 On Tue, Apr 19, 2011 at 03:09:07PM -0700, YongHyeon PYUN wrote: > On Tue, Apr 19, 2011 at 07:48:51PM +0100, Paul Thornton wrote: > > Hi, > > > > The bge driver doesn't support this chipset yet and I was wondering if > > anyone has looked at implementing it. > > > > NetBSD looks like it has support for it. Now I may be wrong here, but > > it appears that the BCM57765 is similar to other devices based on the > > NetBSD if_bge.c source version 1.194. > > > > I've tried applying the NetBSD changes to the FreeBSD bge source but I > > don't know enough about the hardware and the code is different enough > > that I haven't made it very far. I can get a patched 8.2 kernel to > > detect the device, complain that the ASIC is unknown, read the MAC > > address correctly and determine there is link but as soon as you attempt > > to ifconfig up the interface the machine locks up. > > > > I'm happy to try and port this over but need a nudge in the right > > direction from someone who knows the code. > > > > 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. > Also it would good to see the output of "pciconf -lcbv" and dmesg > after applying the patch. FYI: Committed to HEAD(r221445).