From owner-freebsd-current@FreeBSD.ORG Fri Feb 9 14:36:19 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 36F2816A402 for ; Fri, 9 Feb 2007 14:36:19 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id BEA2513C481 for ; Fri, 9 Feb 2007 14:36:18 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so737233uge for ; Fri, 09 Feb 2007 06:36:17 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qOx97DCB2OE859BgBFVe3wUVA1x1YiLcpnppuZEEfUDefmeH52cReB7IZSVtUjdI6VYXt1rOLTftIhwJV/psi1hqURbqGlgT58thFCu6u+b7wF9LQdFvY2lcEVLuWWiIuztBQT4yUb8ybE9Xq2BBtKMpIOyaCaUgR9pX/mtghh4= Received: by 10.82.118.2 with SMTP id q2mr1303161buc.1171031777265; Fri, 09 Feb 2007 06:36:17 -0800 (PST) Received: by 10.82.186.2 with HTTP; Fri, 9 Feb 2007 06:36:17 -0800 (PST) Message-ID: <790a9fff0702090636o289fd03bia61697ef2bb8688f@mail.gmail.com> Date: Fri, 9 Feb 2007 08:36:17 -0600 From: "Scot Hetzel" To: "Kip Macy" In-Reply-To: <20070208231833.F15257@demos.bsdclusters.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070207201342.GA66964@twoflower.idi.ntnu.no> <20070207142711.V6583@demos.bsdclusters.com> <790a9fff0702082129o75e51b0fo8f2ace4cb623a905@mail.gmail.com> <20070208231833.F15257@demos.bsdclusters.com> Cc: freebsd-current@freebsd.org Subject: Re: Broadcom Wireless card X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Feb 2007 14:36:19 -0000 On 2/9/07, Kip Macy wrote: > On Thu, 8 Feb 2007, Scot Hetzel wrote: > > On 2/7/07, Kip Macy wrote: > >> > >> I can't comment on the mini-pci version, but NDIS works just fine with > >> the cardbus version. It would be interesting to figure out where ndis is > >> falling short. > >> > >> -Kip > > > > I'm also seeing a kernel panic when trying to load a newer version of > > the Broadcom driver on my HP dv8135nr system. > > > > This driver (for the HP dv8135nr) works: > > > > Broadcom BCM43xx 802.11 Network Adapter Driver (4.40.19.0) > > ftp://ftp.hp.com/pub/softpaq/sp33001-33500/sp33008.exe > > > > This driver (for the HP dv6110us) causes a kernel page fault with > > non-sleepable locks held: > > > > Broadcom BCM43xx 802.11 Network Adapter Driver (4.100.15.5) > > ftp://ftp.hp.com/pub/softpaq/sp34001-34500/sp34152.exe > > Thanks for the pointer, the "fpudna in kernel mode" may be the real > issue - it means that floating point is being used which is very > strange. If I can't reproduce, it would be helpful if you would apply > the kgdb patch I'm about to send along and give me an updated > backtrace. > I get this "fpudna in kernel mode" with the older driver, and it never caused the kernel to crash. The patch doesn't apply for my system since I'm using FreeBSD/amd64. But I did use the patch as a guide to modify trgt_amd64.c. I just had to do the following: - add intrframe to the kgdb_frame_cache structure - copy code which sets intrframe in kgdb_trgt_frame_cache() from trgt_i386.c to trgt_amd64.c - change "*addrp = cache->sp + ofs;" to "*addrp = cache->sp + ofs + (cache->intrframe ? 8 : 4);" in kgdb_trgt_trapframe_prev_register The only thing this change did on my system was for it to print frames 1 -10 (frames 11 - 22 were missing) as shown in the previous backtrace. It also displayed "Previous frame inner to this frame (corrupt stack?)" as the last line before the "(kgdb)" prompt. > > > > Note: This driver has my adapter listed in the bcmwl5.inf file. > > > > FreeBSD hp010 7.0-CURRENT FreeBSD 7.0-CURRENT #5: Thu Feb 8 17:14:40 CST > > 2007 > > swhetzel@hp010:/usr/src/7x/sys-p4/amd64/compile/GENERIC.debug amd64 > > Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.