1
linux/drivers/net/wireless/ath/ath9k
Luis R. Rodriguez f4709fdf68 ath9k: Fix maximum tx fifo settings for single stream devices
Atheros single stream AR9285 and AR9271 have half the PCU TX FIFO
buffer size of that of dual stream devices. Dual stream devices
have a max PCU TX FIFO size of 8 KB while single stream devices
have 4 KB. Single stream devices have an issue though and require
hardware only to use half of the amount of its capable PCU TX FIFO
size, 2 KB and this requires a change in software.

Technically a change would not have been required (except for frame
burst considerations of 128 bytes) if these devices would have been
able to use the full 4 KB of the PCU TX FIFO size but our systems
engineers recommend 2 KB to be used only. We enforce this through
software by reducing the max frame triggger level to 2 KB.

Fixing the max frame trigger level should then have a few benefits:

  * The PER will now be adjusted as designed for underruns when the
    max trigger level is reached. This should help alleviate the
    bus as the rate control algorithm chooses a slower rate which
    should ensure frames are transmitted properly under high system
    bus load.

  * The poll we use on our TX queues should now trigger and work
    as designed for single stream devices. The hardware passes
    data from each TX queue on the PCU TX FIFO queue respecting each
    queue's priority. The new trigger level ensures this seeding of
    the PCU TX FIFO queue occurs as designed which could mean avoiding
    false resets and actually reseting hw correctly when a TX queue
    is indeed stuck.

  * Some undocumented / unsupported behaviour could have been triggered
    when the max trigger level level was being set to 4 KB on single
    stream devices. Its not clear what this issue was to me yet.

Cc: Kyungwan Nam <kyungwan.nam@atheros.com>
Cc: Bennyam Malavazi <bennyam.malavazi@atheros.com>
Cc: Stephen Chen <stephen.chen@atheros.com>
Cc: Shan Palanisamy <shan.palanisamy@atheros.com>
Cc: Paul Shaw <paul.shaw@atheros.com>
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-11-28 15:04:52 -05:00
..
ahb.c
ani.c
ani.h
ath9k.h ath9k: fix processing of TX PS null data frames 2009-11-28 15:04:49 -05:00
beacon.c ath9k: properly use the mac80211 rate control api 2009-11-28 15:04:24 -05:00
btcoex.c
btcoex.h
calib.c
calib.h
common.c ath9k: Proper padding/unpadding for the TX/RX path. 2009-11-28 15:04:50 -05:00
common.h ath9k: Proper padding/unpadding for the TX/RX path. 2009-11-28 15:04:50 -05:00
debug.c ath9k: properly use the mac80211 rate control api 2009-11-28 15:04:24 -05:00
debug.h ath9k: properly use the mac80211 rate control api 2009-11-28 15:04:24 -05:00
eeprom_4k.c
eeprom_9287.c
eeprom_def.c
eeprom.c
eeprom.h
hw.c ath9k: Fix maximum tx fifo settings for single stream devices 2009-11-28 15:04:52 -05:00
hw.h ath9k: Fix maximum tx fifo settings for single stream devices 2009-11-28 15:04:52 -05:00
initvals.h
Kconfig
mac.c ath9k: Fix maximum tx fifo settings for single stream devices 2009-11-28 15:04:52 -05:00
mac.h ath9k: Fix maximum tx fifo settings for single stream devices 2009-11-28 15:04:52 -05:00
main.c ath9k: Proper padding/unpadding for the TX/RX path. 2009-11-28 15:04:50 -05:00
Makefile
pci.c
phy.c ath9k: Remove a few unused functions 2009-11-18 17:09:12 -05:00
phy.h ath9k: Remove a few unused functions 2009-11-18 17:09:12 -05:00
rc.c ath9k: Fix maximum tx fifo settings for single stream devices 2009-11-28 15:04:52 -05:00
rc.h ath9k: clean up rc rate table 2009-11-28 15:04:25 -05:00
recv.c
reg.h ath9k: fix processing of TX PS null data frames 2009-11-28 15:04:49 -05:00
virtual.c ath9k: get rid of tx_info_priv 2009-11-18 17:09:11 -05:00
xmit.c ath9k: Proper padding/unpadding for the TX/RX path. 2009-11-28 15:04:50 -05:00