Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #1790 (new defect)

Opened 7 years ago

Last modified 6 years ago

AR5418 connections freeze on heavy transfers

Reported by: javier.sixto@gmail.com Assigned to:
Priority: major Milestone:
Component: madwifi: other Version: trunk
Keywords: AR5418 heavy freeze transfer download Cc:
Patch is attached: 0 Pending:

Description

Hello,

I'm using last madwifi trunk version on a fresh new Zepto Z-Pro card, AR5418. WEP and WPA connections works fine. But on heavy downloads/uploads, taking all bandwith (aprox 1Mb/s), the wifi connection freeze. I Wait about 1 to 5 minutes, and it goes up again.

Here is my config

Linux 2.6.22-14-generic #1 SMP Thu Jan 31 23:33:13 UTC 2008 x86_64 GNU/Linux

lspci:
02:00.0 Network controller: Atheros Communications, Inc. AR5418 802.11a/b/g/n Wireless PCI Express Adapter (rev 01)
        Subsystem: Atheros Communications, Inc. Unknown device 3072
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at f0000000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: [40] Power Management version 2
        Capabilities: [50] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
        Capabilities: [60] Express Legacy Endpoint IRQ 0
        Capabilities: [90] MSI-X: Enable- Mask- TabSize=1


modprobe ath_pci:
[ 1555.757723] ath_pci: svn r3349
[ 1555.757963] ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 16 (level, low) -> IRQ 16
[ 1555.757988] PCI: Setting latency timer of device 0000:02:00.0 to 64
[ 1555.899417] MadWifi: ath_attach: Switching rfkill capability off
[ 1555.899489] MadWifi: ath_attach: Switching per-packet transmit power control off
[ 1555.899828] wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
[ 1555.899834] wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
[ 1555.899837] wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
[ 1555.899843] wifi0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
[ 1555.899848] wifi0: turboG rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
[ 1555.899853] wifi0: H/W encryption support: WEP AES AES_CCM TKIP
[ 1555.899858] wifi0: ath_announce: Use hw queue 1 for WME_AC_BE traffic
[ 1555.899860] wifi0: ath_announce: Use hw queue 0 for WME_AC_BK traffic
[ 1555.899861] wifi0: ath_announce: Use hw queue 2 for WME_AC_VI traffic
[ 1555.899863] wifi0: ath_announce: Use hw queue 3 for WME_AC_VO traffic
[ 1555.899865] wifi0: ath_announce: Use hw queue 8 for CAB traffic
[ 1555.899867] wifi0: ath_announce: Use hw queue 9 for beacons
[ 1555.900035] ath_pci: wifi0: Atheros 5418: mem=0xf0000000, irq=16

I get some errors using athdebug 0xFFFFFFFF this one very ofen:

Feb 14 21:04:18 bifidus kernel: [ 2628.081000] wifi0: ath_uapsd_processtriggers: TSF error: bf_tsf=  ca828509 sc_last_tsf=  ca837fda

And this, just before connection goes up again :

Feb 14 21:04:34 bifidus kernel: [ 2637.148634] wifi0: ath_draintxq: Beacon queue txbuf is 0x0.
Feb 14 21:04:34 bifidus kernel: [ 2637.148648] wifi0: ath_tx_stopdma: TX queue [0] 0x0, link 0000000000000000
Feb 14 21:04:34 bifidus kernel: [ 2637.148663] wifi0: ath_tx_stopdma: TX queue [1] 0x751a06c0, link ffff8100751a2d00
Feb 14 21:04:34 bifidus kernel: [ 2637.148677] wifi0: ath_tx_stopdma: TX queue [2] 0x0, link 0000000000000000
Feb 14 21:04:34 bifidus kernel: [ 2637.148691] wifi0: ath_tx_stopdma: TX queue [3] 0x0, link 0000000000000000
Feb 14 21:04:34 bifidus kernel: [ 2637.148706] wifi0: ath_tx_stopdma: TX queue [4] 0x0, link 0000000000000000
Feb 14 21:04:34 bifidus kernel: [ 2637.148720] wifi0: ath_tx_stopdma: TX queue [7] 0x0, link 0000000000000000
Feb 14 21:04:34 bifidus kernel: [ 2637.148734] wifi0: ath_tx_stopdma: TX queue [8] 0x0, link 0000000000000000
Feb 14 21:04:34 bifidus kernel: [ 2637.148896] wifi0: ath_return_txbuf_locked_debug: Restarting queue.
Feb 14 21:04:34 bifidus kernel: [ 2637.152456] wifi0: ath_stoprecv: receive queue buffer 0x4731b480, link ffff81004731b420
Feb 14 21:04:34 bifidus kernel: [ 2637.155589] wifi0: ath_tx_processq: TX queue: 1 (0x751a2dc0), link: ffff8100751a2e80
Feb 14 21:04:34 bifidus kernel: [ 2637.156413] wifi0: ath_tx_processq: TX queue: 1 (0x751a2e80), link: ffff8100751a2e80

athstats : doing a simple loop ping :

   input   output altrate   short    long xretry crcerr  crypt  phyerr rssi rate
  113672     3814       0       0     108      1   2293      0       0   53   0M
      93        2       0       0       0      0      2      0       0   53   0M
      91        2       0       0       0      0      2      0       0   53   0M
      88        2       0       0       0      0      3      0       0   54   0M
      71        2       0       0       0      0      2      0       0   54   0M
      78        2       0       0       0      0      2      0       0   55   0M
      86        2       0       0       0      0      2      0       0   55   0M
      86        2       0       0       0      0      4      0       0   54   0M
      80        2       0       0       0      0      6      0       0   54   0M
      88        2       0       0       0      0      2      0       0   54   0M

athstats on heavy download:

   input   output altrate   short    long xretry crcerr  crypt  phyerr rssi rate
  118207     3915       0       0     111      1   2425      0       0   51   0M
      89        2       0       0       0      0      2      0       0   52   0M
      96        2       0       0       0      0      6      0       0   53   0M
      94        2       0       0       0      0      2      0       0   53   0M
start 95        2       0       0       0      0      0      0       0   52   0M
     400      189       0       0      11      0      6      0       0   54   0M
     113       13       0       0       0      0      4      0       0   54   0M
freeze
      93        1       0       0       0      0      3      0       0   54   0M
      95        0       0       0       0      0      4      0       0   54   0M
      96        1       0       0       0      0      0      0       0   54   0M


Is there any other thing i can test do be more precise? I use "wicd" to managed networks, but gnome-network-manager works identically. Using "iwpriv ath0 bgscan 0", doesn't change anything . I wonder why there is about 100 packets input/s at anytime, when ath0 is up (associated or not)? Is it normal ? Network Monitor report 10K/s... This is visible on my athstats.

Change History

(follow-up: ↓ 2 ) 02/14/08 21:43:40 changed by jkarlson

This is probably the ~known SMP problem, if you want you could drop SMP support and see if it helps.

(in reply to: ↑ 1 ) 02/14/08 21:51:31 changed by anonymous

Replying to jkarlson:

This is probably the ~known SMP problem, if you want you could drop SMP support and see if it helps.

No, he has already "r3349"!

02/14/08 21:56:40 changed by jkarlson

some manpage change?

Madwifi never worked properly for me at least up to very most recent snapshot symptoms may vary. Never actually bothered to find out if it actually was the SMP.

02/18/08 23:02:25 changed by javier.sixto@gmail.com <javyer>

Hello , What is the simple way to drop SMP support ?

03/12/08 17:00:37 changed by adolfotregosa

well, i'm having the same problem. I notice this when playing videos. The video just stops and the mouse cursor starts to "freeze" when moving around. Have to restart. Tested it on fedora 8 and ubuntu using kernel 2.6.24.

06/04/08 13:20:52 changed by SirStone

Hola, i have a Znote6324W (Zepto) mountig this wireless card. Madwifi drivers works perfectly if i'm only browsing internet but when I start downloading with multiple connections (emule) or playing in a mmorpg(World of Warcraft) the wirless card often freezes and the only thing i can do is restart the system (Arch Linux), and sometimes when rebooted the wirless card is still freezed (the system neither recognize it), and i must reboot once more. I tryed using WindowsXP and the card freezes there too in the same way (got drivers from Zepto's website) Does anyone have any good new for me?

06/04/08 14:18:12 changed by javier.sixto@gmail.com

Hello SirStone?,

I had worked arround this problem using ndsiwrapper and windows XP 32bits driver, with Ubuntu 32bits. I think that whats happening with your wifi card is more related to an hardware problem...