From owner-freebsd-drivers@FreeBSD.ORG Mon Nov 23 20:25:08 2009 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41A3110656A9 for ; Mon, 23 Nov 2009 20:25:08 +0000 (UTC) (envelope-from obrien654j@gmail.com) Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by mx1.freebsd.org (Postfix) with ESMTP id C824A8FC16 for ; Mon, 23 Nov 2009 20:25:07 +0000 (UTC) Received: by fxm10 with SMTP id 10so3276327fxm.14 for ; Mon, 23 Nov 2009 12:25:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=uGSfCwPAbBj3r5/z6H4t/GwaGy5fhvQG5dXQq2nFrlo=; b=MY1rmNkO47h/pYxvOh8CiY3mRk8Cv5lMQaZBkM5j5OobgenLgiTq06O+hsNSEfajMW pSG00oR1AveyNjPLcAGwAHrH8ReBiDQ1UzwBuDYk0J8z746joJJOxcHkw8WR9RqIYriR d5rPnbEeqAPrISpAVwDgfnHpN7l0H3ShipVFc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=YLJZYMESlX5TxcQ7UFusm7CWfmoP2WbLdOctbGP3FCqF7IyVxs4zgPoCwek6Be+cWe sdBmTP4Vi0fb+O5joKDYUK/xF8XEoTAl6tTTBS63CpfnoTFDmTtCncFgbXckix3j065f xtgig/T8EpDnJO9MWWTV14TkM7idhn3FGuzt4= Received: by 10.103.80.36 with SMTP id h36mr2409189mul.18.1259007905597; Mon, 23 Nov 2009 12:25:05 -0800 (PST) Received: from archimedes ([74.83.26.11]) by mx.google.com with ESMTPS id j9sm174781mue.59.2009.11.23.12.25.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 23 Nov 2009 12:25:04 -0800 (PST) Date: Mon, 23 Nov 2009 15:30:08 -0500 From: Jeremy O'Brien To: John Baldwin Message-ID: <20091123203008.GA26284@archimedes> References: <20091122175555.GA15539@minifree.wright.edu> <200911231001.51082.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200911231001.51082.jhb@freebsd.org> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: freebsd-drivers@freebsd.org Subject: Re: Cisco Aironet MPI350 Fix X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2009 20:25:08 -0000 On Mon, Nov 23, 2009 at 10:01:50AM -0500, John Baldwin wrote: > On Sunday 22 November 2009 12:55:55 pm Jeremy O'Brien wrote: > > Hello, > > > > I have a Cisco Aironet MPI350 PCI card in my Thinkpad X31, and on a > > fresh install of FreeBSD 8.0-RC3, the card did not work. Also, it caused > > my system to freeze up for a few seconds about once a minute as the > > driver spit out "an0: device timeout" messages so long as the interface > > was up. I researched the issue, and found the following fix already in > > dragonflybsd's tree: > > > > > http://gitweb.dragonflybsd.org/dragonfly.git/commit/7a2a04db44efafea257db883ae3eb5e4ebf2ece9 > > > > I modified the patch and applied it to FreeBSD's kernel (trivial), and > > am happy to report that my card is now working flawlessly. Could someone > > possibly review this patch and integrate it into the source tree so that > > others may benefit from it as well? > > > > The patch is based off of 8.0-RC3's code, but applies to the latest code > > as well without modification. > > Can you try this version? The IFF_DRV_OACTIVE bits don't look correct to me > so I've left them out. I also changed the driver to use bus_*() vs > bus_space_*(). > > -- > John Baldwin In my initial tests, my card is not working. This is on my university network, so I will try again on my home network and report back the results. As a side note, it takes about thirty minutes for me to rebuild my kernel. I'm using make buildkernel everytime. Is there a faster method of recompiling?