From owner-freebsd-current@FreeBSD.ORG Tue Mar 2 19:09:11 2010 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 99DB7106566C; Tue, 2 Mar 2010 19:09:11 +0000 (UTC) (envelope-from miki.bsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id 00EA98FC1A; Tue, 2 Mar 2010 19:09:10 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id e21so4630fga.13 for ; Tue, 02 Mar 2010 11:09:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=O250jpyW4ef93Fuam8I1bIYMPK9G4KT4A+03i3lz2uo=; b=hVFVAR8rloUf6Kkhl3GMK/ox7pSNjXNxpnZ/+IHGrUtto8d63dPDtTeACjQZQfNzZG NHr32JbDW7QlE5CyQGm2jpX8wxMRf88qOXlN+M7kqEfI5mFx4bb9ZnrRHR4W4d3+64F5 tMHwNU6/uEKFSS0pDbeyj7cxFHkbNxsMIDS4s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=D1UCe8+3awQJOH1gyp8YuCJMF8wYnw+iTixgXjeJ+FNdylkuVMjHRkKaVryZ8CcF+3 gS3wrni/CgrJwyPoy7ssj1TMBcSMlWgNNaEizoGPF9Rn1b6IeRYkYn/eME5tOhxhy9+c 14tqW5XnAC1XMlUdjxVcfiOJ2nuCbYmWC3Pz8= MIME-Version: 1.0 Received: by 10.239.185.14 with SMTP id a14mr624960hbh.24.1267556935964; Tue, 02 Mar 2010 11:08:55 -0800 (PST) In-Reply-To: <20100301201254.GG1295@weongyo> References: <20091223035331.GA1293@weongyo> <4b31cb29.9413f30a.5f4a.ffff8382@mx.google.com> <20100226005115.GP14937@weongyo> <261c29701002281145v357d86edl822f032e6e09a7fc@mail.gmail.com> <20100301201254.GG1295@weongyo> Date: Tue, 2 Mar 2010 20:08:55 +0100 Message-ID: <261c29701003021108w1e6e3bbascf17102a3256e339@mail.gmail.com> From: Miki To: Weongyo Jeong , current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: 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 List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2010 19:09:11 -0000 2010/3/1 Weongyo Jeong : > On Sun, Feb 28, 2010 at 08:45:32PM +0100, Miki wrote: >> Hi, >> >> Thanks for the work ! >> >> I have some problems here when I try to create a wlan interface : >> bwn_v4_ucode5: could not load firmware image, error 2 >> bwn0: the fw file(bwn_v4_ucode5) not found > > Did you try to UP the interface withload loading bwn_v4_ucode.ko? =A0If > yes currently bwn(4) doesn't automatically load firmware module so you > need to do it by hand. > > =A0# kldload bwn_v4_ucode OK I have loaded bwn_v4_ucode before if_bwn and it works, my bad, I should have read the man page more carefully. > > The patch for this is ready to commit and it'll be happened soon. > >> I have installed bwn-firmware-kmod from ports but the only files I have = in >> /boot/modules are bwn_v4_lp_ucode.ko and bwn_v4_ucode.ko. So I tried to >> copy bwn_v4_ucode to bwn_v4_ucode5 and it seems to work : wlan0 is >> created, I can associate to an open Access Point and obtain a DHCP lease= . >> But if I try to do some network IO (browsing the web) the interface hang >> (I cannot obtain a lease anymore). > > I have a exact same device like you have but I didn't encounter this > issue. > > Are there any messages from bwn(4) when you the interface becomes hang? > One more question, after the interface hang, does the system be hang > also? I have no messages in the log (appart bwn0: need multicast update callback)= . In fact it's not a hang, it happens only with the AP that permits me to have a web access. I have another AP (sitting next to me) and I don't have the same behavior : I can have and renew my dhcp lease multiple times and configure the AP with= its web interface. With the "buggy" AP I can have a dhcp lease only once and no= thing more. If I destroy and recreate the wlan interface the same thing happens. I have no such a problem with if_bwi and this AP. > > One thing you can do is that trying the device with PIO mode not DMA > mode using the following tunable variable: > > =A0hw.bwn.usedma > > Its default value is 1 to enable DMA operation so if you set it 0, PIO > mode would be used and could see the message like below: > > =A0bwn0: PIO > > Could you please test with it? > Setting hw.bwn.usedma=3D0 in loader.conf make no differences by the way, I need to switch from if_bwn to if_bwi to make some test and post the results here, but I have this error message : firmware_register: cannot register image bwi_v3_b0g0initvals5, firmware table full! is this normal ? Thanks for your help !