From owner-freebsd-current@FreeBSD.ORG Sat Dec 26 04:08:07 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90487106568D for ; Sat, 26 Dec 2009 04:08:07 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from mail-qy0-f176.google.com (mail-qy0-f176.google.com [209.85.221.176]) by mx1.freebsd.org (Postfix) with ESMTP id 3E5B28FC13 for ; Sat, 26 Dec 2009 04:08:07 +0000 (UTC) Received: by qyk6 with SMTP id 6so3881476qyk.3 for ; Fri, 25 Dec 2009 20:08:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent:organization:x-operation-sytem; bh=4mxf6EZdcyJ9OU7U9nVhBcjqZsu7fuxfMigaEK+B3F4=; b=d1keWQPL8AtOQw0bwXW3/Bg3VGNG439vdehhCWdirq6bZRfPmS7WXUMWW9TnVzDKz5 POyNXhZnd/bjbpRgi0QU31tuyRpazuKZa/AZ7121tBuO29LxhqOczQHlSNfOORRv+wBu 9o6QbyRWtBJHSbXV3Qq5xlDYCrnlL53ZJFID8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent:organization:x-operation-sytem; b=s2IQ/SfALaTHnp/qfgIJ0XVNP4xGFShYmWXq4ULAr/f3Rwg2Im8vA3EnW5GWsxpiHw ihZ2D7nieqGKINSoQ9BPNimST/DApweWq2Bc5gVuYT8cb2+p7OxBHp+eMhGgxoVHymA4 iyTObDEDP2Zt2kC0GIg6VyWMJl7fKvbi96r+o= Received: by 10.224.86.220 with SMTP id t28mr6552277qal.43.1261800486421; Fri, 25 Dec 2009 20:08:06 -0800 (PST) Received: from weongyo ([174.35.1.224]) by mx.google.com with ESMTPS id 5sm26398957qwg.28.2009.12.25.20.08.04 (version=SSLv3 cipher=RC4-MD5); Fri, 25 Dec 2009 20:08:05 -0800 (PST) Received: by weongyo (sSMTP sendmail emulation); Fri, 25 Dec 2009 20:08:04 -0800 From: Weongyo Jeong Date: Fri, 25 Dec 2009 20:08:04 -0800 To: David Horn Message-ID: <20091226040804.GC11506@weongyo> Mail-Followup-To: David Horn , current@freebsd.org References: <20091223035331.GA1293@weongyo> <25ff90d60912242110n424a5ccu8e84ee9a4b8b07c7@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <25ff90d60912242110n424a5ccu8e84ee9a4b8b07c7@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD Cc: current@freebsd.org Subject: Re: Call for Test and Review: bwn(4) - another Broadcom Wireless driver X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Weongyo Jeong List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Dec 2009 04:08:07 -0000 On Fri, Dec 25, 2009 at 12:10:43AM -0500, David Horn wrote: > On Tue, Dec 22, 2009 at 10:53 PM, Weongyo Jeong wrote: > > Hello, > > > > Now bwn(4) is available at the public and waiting test and review. ?The > > status of this driver is *alpha* so could make panics, warnings and > > errors. ?Please let me know if you encounter problems. > > > > The following NICs all I have are only tested on the little endian 64bit > > machine and big endian 32bit machine. > > > > ?- Broadcom BCM4306 802.11b/g Wireless > > ?- Broadcom BCM4318 802.11b/g Wireless > > > > I tested basic RX, TX and WPA association as STA mode and checked it > > worked. > > > > As you might know there are still a lot of TODO in the driver so you > > could see some verbose messages during testing so please ignore or let > > me know it makes problems. > > > > == How to build and load == > > > > ?# cd /usr/src/sys > > ?# fetch http://people.freebsd.org/~weongyo/bwn_20091222.tar.gz > > ?# tar xzf bwn_20091222.tar.gz > > ?# cd modules/ssb > > ?# make && make install > > ?# cd ../.. > > ?# cd modules/bwn > > ?# make && make install > > ?# cd somewhere > > ?# fetch http://people.freebsd.org/~weongyo/bwn_ports_20091222.tar.gz > > ?# tar xzf bwn_ports_20091222.tar.gz > > ?# cd sysutils/b43-fwcutter > > ?# make install clean > > ?# cd ../.. > > ?# cd net/bwn-firmware-kmod > > ?# make install clean > > ?# > > ?# kldload ssb > > ?# kldload bwn_v4_ucode > > ?# kldload if_bwn > > > > regards, > > Weongyo Jeong > > I just ran a test of bwn (with additional ssb patch) against a bcm4311 > (b/g) mini pci-e card I had previously used in my Dell laptop. > > Unfortunately, I am getting a reproducible kernel page fault after bwn > attempts to attach. > > pciconf -lv > > none2@pci0:11:0:0: class=0x028000 card=0x00071028 chip=0x431114e4 > rev=0x01 hdr=0x00 > vendor = 'Broadcom Corporation' > device = 'Broadcom Corporation Dell Wireless 1390 WLAN > Mini-PCI Card (BCM4311)' > class = network > > uname -a > > FreeBSD la 9.0-CURRENT FreeBSD 9.0-CURRENT #7 r200926M: Wed Dec 23 > 18:51:11 EST 2009 root@la:/usr/obj/usr/src/sys/DHORN amd64 > > Select data from core.txt: > > Unread portion of the kernel message buffer: > bwn0: firmware version (rev 410 patch 2160 date 0x751a time 0x7c0a) > Kernel page fault with the following non-sleepable locks held: > exclusive sleep mutex bwn0 (network driver) r = 0 (0xffffff0005722610) > locked @ /usr/src/sys/modules/bwn/../../dev/bwn/if_bwn.c:906 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2a > _witness_debugger() at _witness_debugger+0x2e > witness_warn() at witness_warn+0x2c2 > trap() at trap+0x2ce > calltrap() at calltrap+0x8 > --- trap 0xc, rip = 0xffffffff8127e070, rsp = 0xffffff80406d1a40, rbp > = 0xffffff80406d1a80 --- > bwn_dma_setup() at bwn_dma_setup+0x10 > bwn_dma_init() at bwn_dma_init+0x32 > bwn_core_init() at bwn_core_init+0x40f > bwn_init_locked() at bwn_init_locked+0xae > bwn_ioctl() at bwn_ioctl+0xff > taskqueue_run() at taskqueue_run+0x91 > taskqueue_thread_loop() at taskqueue_thread_loop+0x3f > fork_exit() at fork_exit+0x12a > fork_trampoline() at fork_trampoline+0xe > --- trap 0, rip = 0, rsp = 0xffffff80406d1d30, rbp = 0 --- > > > Fatal trap 12: page fault while in kernel mode > cpuid = 1; apic id = 01 > fault virtual address = 0x0 > fault code = supervisor read data, page not present > instruction pointer = 0x20:0xffffffff8127e070 > stack pointer = 0x28:0xffffff80406d1a40 > frame pointer = 0x28:0xffffff80406d1a80 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 0 (bwn0 taskq) > lock order reversal: (Giant after non-sleepable) > 1st 0xffffff0005722610 bwn0 (network driver) @ > /usr/src/sys/modules/bwn/../../dev/bwn/if_bwn.c:906 > 2nd 0xffffffff80c56ec0 Giant (Giant) @ /usr/src/sys/dev/usb/input/ukbd.c:1594 It looks it's a same bug like others but let me give some times because I'll be on vacation until next weeks. I'll post a patch after coming back from holidays. regards, Weongyo Jeong