Re: Problem with new bwn driver on -CURRENT

From: Weongyo Jeong <weongyo.jeong_at_gmail.com>
Date: Mon, 1 Mar 2010 15:37:06 -0800
On Sun, Feb 28, 2010 at 03:24:28PM -0500, Joe Marcus Clarke wrote:
> I was extremely pleased to see this driver, so I could get off of the
> flaky NDIS version.  I have a Dell Vostra 2510 with a LP bwn mini-PCI
> card.  I have set if_bwn_load="YES" in /boot/loader.conf.  I also have
> bwn_v4_lp_ucode_load="YES" set.
> 
> The firmware and driver loads.  However, if_bwn doesn't attach to the
> card.  Once the OS is fully booted, I kldunload if_bwn, then reload it,
> and the driver attaches just fine.

This issue is reported by some people and I'm looking codes.

> Once it is attached, however, I can
> pass traffic just fine, but I get a large number of these messages on
> the console, and the traffic rate is not what it was with the NDIS
> driver:

Could you please elaborate the traffic rate?  You mean the traffic rate
is lower or higher than NDIS driver?

> 
> bwn0: out of bounds of the square-root table (-770884)
> bwn0: out of bounds of the square-root table (-225625)
> bwn0: out of bounds of the square-root table (-240100)

Patch is attached with email and it'll fix this message.  Could you
please test with it?

Was it successful to associate with AP?

> When I boot with verbose mode, I only see the siba driver attach to the
> card:
> 
> siba_bwn0: <Broadcom BCM4312 802.11b/g Wireless> mem 0xf4000000-0xf4003fff irq 19 at device 0.0 on pci6
> 
> My pciconf output is:
> 
> siba_bwn0_at_pci0:6:0:0:   class=0x028000 card=0x000b1028 chip=0x431514e4 rev=0x01 hdr=0x00
>     vendor     = 'Broadcom Corporation'
>     device     = 'Broadcom Wireless b/g (BCM4315/BCM22062000)'
>     class      = network
> 
> When the driver does attach, I see:
> 
> bwn0 on siba_bwn0
> bwn0: WLAN (chipid 0x4312 rev 15) PHY (analog 6 type 5 rev 1) RADIO (manuf 0x17f
> bwn0: DMA (64 bits)
> bwn0: MSI count : 1
> siba_bwn0: attempting to allocate 1 MSI vectors (1 supported)
> msi: routing MSI IRQ 258 to local APIC 1 vector 54
> siba_bwn0: using IRQ 258 for MSI
> bwn0: Using 1 MSI messages
> bwn0: [MPSAFE]
> bwn0: [FILTER]
> bwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
> bwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36M
> bps 48Mbps 54Mbps
> wlan0: bpf attached
> wlan0: bpf attached
> 
> Am I missing anything to get this to attach at boot time?  Thanks.

Maybe nothing.  It looks there's a bug to attach bwn on boot time.

One thing FYI is that bwn(4)'s LP implementation has some problems to
calibrate TX so sometimes TX speed could be unstable and fluctuate.

regards,
Weongyo Jeong

Received on Mon Mar 01 2010 - 22:37:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:01 UTC