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 #2297 (new defect)

Opened 13 years ago

Last modified 10 years ago

NETDEV WATCHDOG: wifi0 (ath_pci): transmit timed out

Reported by: sjensen@versanet.de Assigned to:
Priority: minor Milestone:
Component: madwifi: driver Version: trunk
Keywords: watchdog transmit timed out Cc:
Patch is attached: 0 Pending: 0

Description

I got "NETDEV WATCHDOG: wifi0 (ath_pci): transmit timed out" in dmesg, after a few "Stuck beacons".

wifi0: ath_bstuck_tasklet: Stuck beacon; resetting (beacon miss count: 11)
wifi0: ath_bstuck_tasklet: Stuck beacon; resetting (beacon miss count: 11)
wifi0: ath_bstuck_tasklet: Stuck beacon; resetting (beacon miss count: 11)
wifi0: ath_bstuck_tasklet: Stuck beacon; resetting (beacon miss count: 11)
------------[ cut here ]------------
WARNING: at net/sched/sch_generic.c:219 dev_watchdog+0xfe/0x15d()
Hardware name: System Product Name
NETDEV WATCHDOG: wifi0 (ath_pci): transmit timed out
Modules linked in: sha256_generic aes_x86_64 aes_generic cbc dm_crypt crypto_blkcipher wlan_ccmp xt_multiport sit tunnel4 wlan_tkip wlan_xauth it87 hwmon_vid wlan_wep tun capidrv isdn slhc capi capifs ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_netbios_ns nf_conntrack_ftp nf_conntrack_irc nf_conntrack_sip ip6t_REJECT nf_conntrack_ipv6 ip6table_filter ip6_tables ipv6 cpufreq_ondemand powernow_k8 freq_table dm_multipath raid0 kvm_amd kvm uinput wlan_scan_ap ath_rate_sample ath_pci snd_hda_intel wlan snd_seq_dummy ath_hal snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device i2c_piix4 atl1 mii snd_pcm_oss b1pci k8temp ppdev b1dma hwmon snd_mixer_oss snd_pcm parport_pc parport snd_timer snd_page_alloc snd_hwdep b1 kernelcapi shpchp snd soundcore floppy ata_generic pata_acpi pata_atiixp ext4 jbd2 crc16 radeon drm i2c_algo_bit i2c_core [last unloaded: scsi_wait_scan]
Pid: 0, comm: swapper Not tainted 2.6.27.24-170.2.68.fc10.x86_64 #1

Call Trace:
 <IRQ>  [<ffffffff81041723>] warn_slowpath+0xac/0xd5
 [<ffffffff81333aec>] ? _spin_unlock_irqrestore+0x27/0x3e
 [<ffffffff81059bca>] ? sched_clock_cpu+0x10f/0x120
 [<ffffffff813338f2>] ? _spin_lock+0x9/0xc
 [<ffffffff812b8d2b>] dev_watchdog+0xfe/0x15d
 [<ffffffff8104adff>] ? internal_add_timer+0xb9/0xbb
 [<ffffffff8104aeb1>] ? cascade+0x68/0x81
 [<ffffffff812b8c2d>] ? dev_watchdog+0x0/0x15d
 [<ffffffff8104b066>] run_timer_softirq+0x19c/0x222
 [<ffffffff8105cef2>] ? clockevents_program_event+0x73/0x7c
 [<ffffffff81046c2a>] __do_softirq+0x7e/0x10c
 [<ffffffff81011bfc>] call_softirq+0x1c/0x28
 [<ffffffff81012e02>] do_softirq+0x4d/0xb0
 [<ffffffff810467ff>] irq_exit+0x4e/0x9d
 [<ffffffff81020a12>] smp_apic_timer_interrupt+0x8f/0xa8
 [<ffffffff81011408>] apic_timer_interrupt+0x88/0x90
 <EOI>  [<ffffffff81025706>] ? native_safe_halt+0x6/0x8
 [<ffffffff810172ff>] ? need_resched+0x1e/0x28
 [<ffffffff810173e4>] ? default_idle+0x2a/0x4c
 [<ffffffff81017534>] ? c1e_idle+0x120/0x127
 [<ffffffff81336a04>] ? atomic_notifier_call_chain+0x13/0x15
 [<ffffffff8100f2a7>] ? cpu_idle+0xb2/0x10b
 [<ffffffff8132e34b>] ? start_secondary+0x16e/0x173

---[ end trace db412395680a824e ]---
wifi0: ath_bstuck_tasklet: Stuck beacon; resetting (beacon miss count: 11)
wifi0: ath_bstuck_tasklet: Stuck beacon; resetting (beacon miss count: 11)
wifi0: ath_bstuck_tasklet: Stuck beacon; resetting (beacon miss count: 11)

I use

$ modinfo ath_pci

filename:       /lib/modules/2.6.27.24-170.2.68.fc10.x86_64/net/ath_pci.ko
license:        Dual BSD/GPL
version:        svn r4029
description:    Support for Atheros 802.11 wireless LAN cards.
author:         Errno Consulting, Sam Leffler
srcversion:     6A819368BC5E7985CFF843F

I'm running my card in master mode and with hostapd. Works mostly good. To prevent the "Stuck beacon things" i have this in my interface description, which works fine. I don't see much "Stuck beacons":

IWPRIV="bgscan 0 mode 3 turbo 0 burst 1 protmode 0 rssi11a 11 rssi11b 11 rssi11g 11 bmiss 50 bintval 500"

Hardware is:

04:09.0 Ethernet controller: Atheros Communications Inc. AR5413 802.11abg NIC (rev 01)

best regards

Change History

08/29/09 14:50:38 changed by ciekawy@gmail.com

I can confirm this on madwifi-0.9.5 r4082 FC11 kernel 2.6.29.6-217.2.16

# modinfo ath_pci 
filename:       /lib/modules/2.6.29.6-217.2.16.fc11.x86_64/updates/net/ath_pci.ko
license:        Dual BSD/GPL
version:        trunk
description:    Support for Atheros 802.11 wireless LAN cards.
author:         Errno Consulting, Sam Leffler
srcversion:     5C442B6590A9B92219AC384
depends:        ath_hal,wlan
vermagic:       2.6.29.6-217.2.16.fc11.x86_64 SMP mod_unload 
parm:           beacon_cal:int
parm:           countrycode:Override default country code.  Default is 0. (int)
parm:           maxvaps:Maximum VAPs.  Default is 4. (int)
parm:           outdoor:Enable/disable outdoor use.  Default is 0. (int)
parm:           xchanmode:Enable/disable extended channel mode. (int)
parm:           rfkill:Enable/disable RFKILL capability.  Default is 0. (int)
parm:           hal_tpc:Disables manual per-packet transmit power control and lets this be managed by the HAL.  Default is OFF. (int)
parm:           autocreate:Create ath device in [sta|ap|wds|adhoc|ahdemo|monitor] mode. defaults to sta, use 'none' to disable (charp)
parm:           ratectl:Rate control algorithm [amrr|minstrel|onoe|sample], defaults to 'sample' (charp)
parm:           intmit:Enable interference mitigation by default.  Default is 0. (int)
parm:           ath_debug:Load-time driver debug output enable (int)
parm:           ieee80211_debug:Load-time 802.11 debug output enable (int)

Hardware:

01:02.0 Ethernet controller: Atheros Communications Inc. Atheros AR5001X+ Wireless Network Adapter (rev 01)

09/17/09 23:47:20 changed by ppingxu@tranzeo.com

How about if you try to disable beacon calibration? (start ath_pci with a parameter 'beacon_cal=0')

10/12/09 21:03:12 changed by nenad@vtkom.com

It seems that this appears on AP node depending on client usage scenario; I have 4 similar AP setups, all with same hardware and OS and driver versions, but it happens only on some of them:

wifi0: ath_bstuck_tasklet: Stuck beacon; resetting (beacon miss count: 11)
wifi0: ath_bstuck_tasklet: Stuck beacon; resetting (beacon miss count: 11)
wifi0: ath_rxorn_tasklet: Receive FIFO overrun; resetting.
wifi0: ath_rxorn_tasklet: Receive FIFO overrun; resetting.
wifi0: ath_rxorn_tasklet: Receive FIFO overrun; resetting.
------------[ cut here ]------------
WARNING: at net/sched/sch_generic.c:219 dev_watchdog+0xd3/0x124()
Hardware name: System Name
NETDEV WATCHDOG: wifi0 (ath_pci): transmit timed out
Modules linked in: ipv6 wlan_wep wlan_scan_sta bridge stp wlan_scan_ap ext2 dm_multipath wmi video output rfkill input
_polldev sbs sbshc pci_slot container lp ath_rate_sample ath_pci via686a hwmon wlan ath_hal i2c_viapro ne2k_pci 8390 i
2c_core parport_pc parport pcspkr jffs2 mtdblock mtd_blkdevs block2mtd mtd sata_via sata_uli sata_sis sata_sil sata_nv
 sata_mv ata_generic pata_acpi pata_via pata_sis pata_mpiix pata_marvell pata_jmicron pata_cs5536 pata_cs5535 pata_cs5
530 pata_cs5520 pata_atiixp pata_amd pata_ali crc_ccitt crc16 zlib_deflate
Pid: 0, comm: swapper Not tainted 2.6.27.21-170.2.56.commuth.2.i586 #1
 [<c0426459>] warn_slowpath+0x6c/0x94
 [<c0429f00>] ? _local_bh_enable_ip+0x69/0xb4
 [<c061c4e9>] ? dev_queue_xmit+0x361/0x380
 [<c89e222e>] ? ieee80211_ref_node+0x57/0x61 [wlan]
 [<c89e6365>] ? ieee80211_parent_queue_xmit+0x38/0x41 [wlan]
 [<c89e737c>] ? ieee80211_hardstart+0x2ef/0x339 [wlan]
 [<c0460950>] ? trace_hardirqs_on+0x8/0x1c
 [<c0429f3e>] ? _local_bh_enable_ip+0xa7/0xb4
 [<c0429f60>] ? local_bh_enable+0xb/0xd
 [<c061c4e9>] ? dev_queue_xmit+0x361/0x380
 [<c0460950>] ? trace_hardirqs_on+0x8/0x1c
 [<c06281b8>] dev_watchdog+0xd3/0x124
 [<c0460950>] ? trace_hardirqs_on+0x8/0x1c
 [<c042e062>] ? mod_timer+0x30/0x34
 [<c06280e5>] ? dev_watchdog+0x0/0x124
 [<c042dadb>] run_timer_softirq+0x101/0x16a
 [<c06280e5>] ? dev_watchdog+0x0/0x124
 [<c042a2fb>] __do_softirq+0x4b/0x94
 [<c042a2b0>] ? __do_softirq+0x0/0x94
 [<c0405f08>] do_softirq+0x66/0xc7
 [<c0458d56>] ? handle_level_irq+0x0/0x78
 [<c042a225>] irq_exit+0x37/0x72
 [<c0405e8c>] do_IRQ+0xd1/0xe7
 [<c0404aa8>] common_interrupt+0x28/0x30
 [<c054f52d>] ? acpi_idle_enter_simple+0x111/0x146
 [<c05fed6a>] cpuidle_idle_call+0x52/0x84
 [<c040250b>] cpu_idle+0x57/0x7d
 [<c067b2c8>] rest_init+0x48/0x4a
 =======================
---[ end trace 4b24bffcc49b61b3 ]---
wifi0: ath_rxorn_tasklet: Receive FIFO overrun; resetting.
wifi0: ath_rxorn_tasklet: Receive FIFO overrun; resetting.

More interesting, it seems that it is not something that happens only to madwifi - it happens to lot of other network drivers, see for example bug 475138 on bugzilla.redhat.com Even more problems are reported with tg3, e1000, ... GigE adapters. All of them running on kernel 2.6.27.something

02/21/10 04:41:33 changed by zaterio@gmail.com

On debian squeeze i have similar behavior:

[91658.816018] ------------[ cut here ]------------
[91658.816028] WARNING: at /build/buildd-linux-2.6_2.6.32-5-amd64-9RvY2G/linux-2.6-2.6.32/debian/build/source_amd64_none/net/sched/sch_generic.c:261 dev_watchdog+0xe2/0x194()
[91658.816032] Hardware name: A13G
[91658.816034] NETDEV WATCHDOG: wifi0 (ath_pci): transmit queue 0 timed out
[91658.816036] Modules linked in: sha1_generic arc4 ecb ppp_mppe ppp_async crc_ccitt ppp_generic slhc ipt_MASQUERADE iptable_mangle iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 iptable_filter ip_tables x_tables wlan_wep ext4 jbd2 crc16 loop wlan_scan_ap ath_rate_sample snd_hda_codec_realtek ath_pci wlan snd_hda_intel edac_core edac_mce_amd snd_hda_codec ath_hal i2c_nforce2 k8temp snd_hwdep i2c_core parport_pc evdev serio_raw snd_pcm parport snd_timer snd soundcore snd_page_alloc pcspkr psmouse processor ext3 jbd mbcache sg sd_mod crc_t10dif sr_mod ide_cd_mod cdrom ata_generic ide_pci_generic ohci_hcd sata_nv libata amd74xx ehci_hcd floppy button scsi_mod ide_core forcedeth usbcore nls_base thermal fan thermal_sys [last unloaded: scsi_wait_scan]
[91658.816088] Pid: 0, comm: swapper Not tainted 2.6.32-trunk-amd64 #1
[91658.816090] Call Trace:
[91658.816092]  <IRQ>  [<ffffffff8124eeee>] ? dev_watchdog+0xe2/0x194
[91658.816098]  [<ffffffff8124eeee>] ? dev_watchdog+0xe2/0x194
[91658.816102]  [<ffffffff8104dc34>] ? warn_slowpath_common+0x77/0xa3
[91658.816105]  [<ffffffff8124ee0c>] ? dev_watchdog+0x0/0x194
[91658.816108]  [<ffffffff8104dcbc>] ? warn_slowpath_fmt+0x51/0x59
[91658.816113]  [<ffffffff81041115>] ? select_task_rq_fair+0x4f3/0x8bc
[91658.816116]  [<ffffffff8124ede0>] ? netif_tx_lock+0x3d/0x69
[91658.816119]  [<ffffffff8123a42f>] ? netdev_drivername+0x3b/0x40
[91658.816122]  [<ffffffff8124eeee>] ? dev_watchdog+0xe2/0x194
[91658.816126]  [<ffffffff810170da>] ? native_sched_clock+0x2e/0x66
[91658.816131]  [<ffffffff8105a249>] ? run_timer_softirq+0x1c9/0x268
[91658.816135]  [<ffffffff810539ca>] ? __do_softirq+0xdd/0x19f
[91658.816139]  [<ffffffff8106fa83>] ? tick_dev_program_event+0x2d/0x95
[91658.816143]  [<ffffffff81011c6c>] ? call_softirq+0x1c/0x30
[91658.816146]  [<ffffffff810138c3>] ? do_softirq+0x3f/0x7c
[91658.816149]  [<ffffffff81053839>] ? irq_exit+0x36/0x76
[91658.816153]  [<ffffffff810258d7>] ? smp_apic_timer_interrupt+0x87/0x95
[91658.816156]  [<ffffffff81011633>] ? apic_timer_interrupt+0x13/0x20
[91658.816158]  <EOI>  [<ffffffff8102c55c>] ? native_safe_halt+0x2/0x3
[91658.816165]  [<ffffffff81017d0d>] ? default_idle+0x34/0x51
[91658.816168]  [<ffffffff810180ee>] ? c1e_idle+0xf5/0xfb
[91658.816172]  [<ffffffff8100fe6f>] ? cpu_idle+0xa2/0xda
[91658.816176]  [<ffffffff814ce140>] ? early_idt_handler+0x0/0x71
[91658.816180]  [<ffffffff814cecd7>] ? start_kernel+0x3d0/0x3dc
[91658.816183]  [<ffffffff814ce3b7>] ? x86_64_start_kernel+0xf9/0x106
[91658.816185] ---[ end trace 3ed0b21e2361907a ]---
root@zlinux:/disco# uname -a
Linux zlinux 2.6.32-trunk-amd64 #1 SMP Sun Jan 10 22:40:40 UTC 2010 x86_64 GNU/Linux
root@zlinux:/disco# lspci |grep -i Atheros
01:05.0 Ethernet controller: Atheros Communications Inc. AR2413 802.11bg NIC (rev 01)
root@zlinux:/disco# iwconfig ath0
ath0      IEEE 802.11g  ESSID:"XXXX"  
          Mode:Master  Frequency:2.462 GHz  Access Point: 00:1D:0F:B7:1C:07   
          Bit Rate:0 kb/s   Tx-Power:17 dBm   Sensitivity=1/1  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:XXXXXXXXXXX   Security mode:restricted
          Power Management:off
          Link Quality=0/70  Signal level=-96 dBm  Noise level=-96 dBm
          Rx invalid nwid:48158  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
root@zlinux:/disco# modinfo ath_pci
filename:       /lib/modules/2.6.32-trunk-amd64/net/ath_pci.ko
license:        Dual BSD/GPL
version:        svn r4118 (trunk)
description:    Support for Atheros 802.11 wireless LAN cards.
author:         Errno Consulting, Sam Leffler
srcversion:     CEAF62748A6F85FD51A2DE9
alias:          pci:v0000168Cd00009013sv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000002Asv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000027sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000024sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000023sv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000001Dsv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000001Csv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000001Bsv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000001Asv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000019sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000018sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000017sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000016sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000015sv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000101Asv*sd*bc*sc*i*
alias:          pci:v0000168Cd00001014sv*sd*bc*sc*i*
alias:          pci:v000010B7d00000013sv*sd*bc*sc*i*
alias:          pci:v0000A727d00000013sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000013sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000012sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000007sv*sd*bc*sc*i*
depends:        ath_hal,wlan
vermagic:       2.6.32-trunk-amd64 SMP mod_unload modversions 
parm:           beacon_cal:int
parm:           countrycode:Override default country code.  Default is 0. (int)
parm:           maxvaps:Maximum VAPs.  Default is 4. (int)
parm:           outdoor:Enable/disable outdoor use.  Default is 0. (int)
parm:           xchanmode:Enable/disable extended channel mode. (int)
parm:           rfkill:Enable/disable RFKILL capability.  Default is 0. (int)
parm:           hal_tpc:Disables manual per-packet transmit power control and lets this be managed by the HAL.  Default is OFF. (int)
parm:           autocreate:Create ath device in [sta|ap|wds|adhoc|ahdemo|monitor] mode. defaults to sta, use 'none' to disable (charp)
parm:           ratectl:Rate control algorithm [amrr|minstrel|onoe|sample], defaults to 'sample' (charp)
parm:           intmit:Enable interference mitigation by default.  Default is 0. (int)
parm:           ath_debug:Load-time driver debug output enable (int)
parm:           ieee80211_debug:Load-time 802.11 debug output enable (int)

Cheers