2008-08-25 19:56:39

by Michael Büsch

[permalink] [raw]
Subject: [PATCH RFC/RFT] b43: Improve TX power recalculation under load

This patch improves the recalculation of the TX attenuations
for improved scaling of the TX power under load.
This should improve (reduce) the time it takes the RC algorithm
to find the best transmission rate.
It should also improve the scaling of the attenuations to changed
environment (moving laptop, roaming, etc...)

This patch is experimental, but please test it a lot.
Please test performance and throughput of the wireless link (iperf, wget, ...)


The patch is available here:
http://bu3sch.de/patches/wireless-testing/20080825-2146/patches/004-b43-NEW-rewrite-txpower-adjusting.patch

It _requires_ this patch to be applied _first_:
http://bu3sch.de/patches/wireless-testing/20080825-2146/patches/003-b43-phy-ops.patch

The patches apply to wireless-testing.git:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-testing.git

Thanks for supporting development of b43.

--
Greetings Michael.


2008-08-25 22:09:36

by Ehud Gavron

[permalink] [raw]
Subject: Re: [PATCH RFC/RFT] b43: Improve TX power recalculation under load

Michael Buesch wrote:
> On Monday 25 August 2008 21:54:18 Michael Buesch wrote:
>
>> The patch is available here:
>> http://bu3sch.de/patches/wireless-testing/20080825-2146/patches/004-b43-NEW-rewrite-txpower-adjusting.patch
>>
>
> Here's an updated version with a major bug fixed:
> http://bu3sch.de/patches/wireless-testing/20080825-2227/patches/004-b43-NEW-rewrite-txpower-adjusting.patch
>
>
iperf, wget, speedtest.net, and sftp all show similar performance.

Ehud
0c:00.0 Network controller: Broadcom Corporation BCM4311 802.11b/g WLAN
(rev 01)
Subsystem: Dell Wireless 1390 WLAN Mini-Card
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at ecffc000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [40] Power Management version 2
Capabilities: [58] Message Signalled Interrupts: Mask- 64bit-
Queue=0/0 Enable-
Capabilities: [d0] Express Legacy Endpoint IRQ 0
Capabilities: [100] Advanced Error Reporting
Capabilities: [13c] Virtual Channel

root@egdell:~# uname -a
Linux egdell 2.6.27-rc3-20080825-wl #1 SMP Mon Aug 25 14:08:15 MST 2008
x86_64 GNU/Linux
root@egdell:~# dmesg | grep b43
b43-pci-bridge 0000:0c:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
b43-pci-bridge 0000:0c:00.0: setting latency timer to 64
b43-phy0: Broadcom 4311 WLAN found
b43-phy0 debug: Found PHY: Analog 4, Type 2, Revision 8
b43-phy0 debug: Found Radio: Manuf 0x17F, Version 0x2050, Revision 2
input: b43-phy0 as /class/input/input8
firmware: requesting b43/ucode5.fw
firmware: requesting b43/pcm5.fw
firmware: requesting b43/b0g0initvals5.fw
firmware: requesting b43/b0g0bsinitvals5.fw
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0 debug: Chip initialized
b43-phy0 debug: 32-bit DMA initialized
Registered led device: b43-phy0::tx
Registered led device: b43-phy0::rx
Registered led device: b43-phy0::radio
b43-phy0 debug: Wireless interface started
b43-phy0 debug: Adding Interface type 2
b43-phy0: Radio turned on by software
b43-phy0 debug: Using hardware based encryption for keyidx: 0, mac:
ff:ff:ff:ff:ff:ff
b43-phy0 debug: Disabling hardware based encryption for keyidx: 0, mac:
ff:ff:ff:ff:ff:ff
b43-phy0 debug: Removing Interface type 2
b43-phy0 debug: Wireless interface stopped
b43-phy0 debug: DMA-32 rx_ring: Used slots 32/64, Failed frames 0/0 =
0.0%, Average tries 0.00
b43-phy0 debug: DMA-32 tx_ring_AC_BK: Used slots 0/128, Failed frames
0/0 = 0.0%, Average tries 0.00
b43-phy0 debug: DMA-32 tx_ring_AC_BE: Used slots 128/128, Failed frames
42/41538 = 0.1%, Average tries 1.24
b43-phy0 debug: DMA-32 tx_ring_AC_VI: Used slots 0/128, Failed frames
0/0 = 0.0%, Average tries 0.00
b43-phy0 debug: DMA-32 tx_ring_AC_VO: Used slots 2/128, Failed frames
0/86 = 0.0%, Average tries 1.00
b43-phy0 debug: DMA-32 tx_ring_mcast: Used slots 0/128, Failed frames
0/0 = 0.0%, Average tries 0.00
input: b43-phy0 as /class/input/input9
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0 debug: Chip initialized
b43-phy0 debug: 32-bit DMA initialized
Registered led device: b43-phy0::tx
Registered led device: b43-phy0::rx
Registered led device: b43-phy0::radio
b43-phy0 debug: Wireless interface started
b43-phy0 debug: Adding Interface type 2
b43-phy0 debug: Using hardware based encryption for keyidx: 0, mac:
ff:ff:ff:ff:ff:ff


Attachments:
smime.p7s (3.22 kB)
S/MIME Cryptographic Signature