Bug 14930 - Rate marked as an HT rate but passed status->rate_idx is not an MCS index
Summary: Rate marked as an HT rate but passed status->rate_idx is not an MCS index
Status: CLOSED OBSOLETE
Alias: None
Product: Networking
Classification: Unclassified
Component: Wireless (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Atheros developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-29 09:01 UTC by bierisplezier
Modified: 2012-06-18 14:18 UTC (History)
7 users (show)

See Also:
Kernel Version: 2.6.31
Tree: Mainline
Regression: No


Attachments
debug patch to dump rx desc status (860 bytes, patch)
2010-09-14 13:27 UTC, vasanth
Details | Diff
possible patch for rx rate warning (982 bytes, patch)
2010-09-21 09:58 UTC, vasanth
Details | Diff

Description bierisplezier 2009-12-29 09:01:11 UTC
Linux router 2.6.31-gentoo-r6 #1 SMP Tue Dec 22 14:35:48 CET 2009 x86_64 Intel(R) Atom(TM) CPU 330 @ 1.60GHz GenuineIntel GNU/Linux

WARNING: at /root/compat-wireless-2009-12-11/net/mac80211/rx.c:2503 mac80211_ieee80211_rx+0x5c2/0x830 [mac80211]()
Hardware name: RX945GC
Rate marked as an HT rate but passed status->rate_idx is not an MCS index [0-76]: 106 (0x6a)
Modules linked in: f71882fg aes_x86_64 aes_generic xt_state iptable_filter iptable_mangle ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 iptable_raw snd_seq snd_seq_device arc4 ecb cx88_blackbird cx2341x cx88_dvb cx88_vp3054_i2c mt352 dvb_pll s5h1411 videobuf_dvb or51132 cx24116 nxt200x isl6421 stb6000 zl10353 cx24123 lgdt330x stv0299 dvb_core wm8775 stv0288 cx22702 tuner tea5767 tda8290 tuner_xc2028 xc5000 tda9887 tuner_simple tuner_types mt20xx tea5761 snd_hda_codec_realtek ath9k ath9k_common mac80211 cx8800 cx88_alsa snd_hda_intel cx8802 snd_hda_codec cx88xx ath9k_hw ir_common snd_hwdep ath snd_pcm i2c_algo_bit v4l2_common videodev cfg80211 snd_timer v4l1_compat v4l2_compat_ioctl32 tveeprom videobuf_dma_sg snd videobuf_core btcx_risc i2c_i801 soundcore i2c_core snd_page_alloc led_class fuse nfs auth_rpcgss nfs_acl lockd sunrpc dm_snapshot dm_crypt dm_mirror dm_region_hash dm_log scsi_wait_scan usb_storage sd_mod
Pid: 0, comm: swapper Tainted: G        W  2.6.31-gentoo-r6 #1
Call Trace:
 <IRQ>  [<ffffffffa02975c2>] ? mac80211_ieee80211_rx+0x5c2/0x830 [mac80211]
 [<ffffffffa02975c2>] ? mac80211_ieee80211_rx+0x5c2/0x830 [mac80211]
 [<ffffffff8103ab54>] ? warn_slowpath_common+0x74/0xd0
 [<ffffffff8103ac11>] ? warn_slowpath_fmt+0x51/0x60
 [<ffffffff81033c4a>] ? find_busiest_group+0x1ea/0xb10
 [<ffffffffa02be640>] ? ath9k_iowrite32+0x0/0xb0 [ath9k]
 [<ffffffffa01f73a4>] ? ath9k_hw_set_interrupts+0x1f4/0x330 [ath9k_hw]
 [<ffffffff8109b0b6>] ? __slab_alloc+0x3a6/0x5d0
 [<ffffffffa01db02f>] ? ath_rxbuf_alloc+0x2f/0xb0 [ath]
 [<ffffffffa02c039a>] ? ath_isr+0x13a/0x190 [ath9k]
 [<ffffffffa02975c2>] ? mac80211_ieee80211_rx+0x5c2/0x830 [mac80211]
 [<ffffffffa01db02f>] ? ath_rxbuf_alloc+0x2f/0xb0 [ath]
 [<ffffffffa0182b08>] ? ieee80211_get_hdrlen_from_skb+0x18/0x40 [cfg80211]
 [<ffffffffa02b5079>] ? ath9k_cmn_rx_skb_postprocess+0x49/0x170 [ath9k_common]
 [<ffffffffa02c0964>] ? ath_rx_tasklet+0x454/0x660 [ath9k]
 [<ffffffffa02bec41>] ? ath9k_tasklet+0xd1/0x120 [ath9k]
 [<ffffffffa01f73a4>] ? ath9k_hw_set_interrupts+0x1f4/0x330 [ath9k_hw]
 [<ffffffff8103f879>] ? tasklet_action+0x59/0xd0
 [<ffffffff81040366>] ? __do_softirq+0xa6/0x140
 [<ffffffff8100c3fc>] ? call_softirq+0x1c/0x30
 [<ffffffff8100e2e5>] ? do_softirq+0x35/0x70
 [<ffffffff81040035>] ? irq_exit+0x75/0x90
 [<ffffffff8100d8ae>] ? do_IRQ+0x6e/0xe0
 [<ffffffff8100bc93>] ? ret_from_intr+0x0/0xa
 <EOI>  [<ffffffff8101eb70>] ? lapic_next_event+0x0/0x20
 [<ffffffff81013307>] ? mwait_idle+0x77/0x80
 [<ffffffff8100a532>] ? cpu_idle+0x62/0xc0
 [<ffffffff8148413f>] ? start_kernel+0x2f4/0x3b5
 [<ffffffff81483898>] ? x86_64_start_kernel+0xe1/0xf2
---[ end trace b9d8892b25946082 ]---
Comment 1 John W. Linville 2009-12-29 15:05:30 UTC
Luis, did you ever setup a bugzilla account for that ath9k-devel list?

So, looks like this stanza in ath9k_process_rate is returning a rate index > 76?

        if (rx_stats->rs_rate & 0x80) {
                /* HT rate */
                rxs->flag |= RX_FLAG_HT;
                if (rx_stats->rs_flags & ATH9K_RX_2040)
                        rxs->flag |= RX_FLAG_40MHZ;
                if (rx_stats->rs_flags & ATH9K_RX_GI)
                        rxs->flag |= RX_FLAG_SHORT_GI;
                return rx_stats->rs_rate & 0x7f;
        }
Comment 2 Nikhil Sethi 2010-09-07 23:15:55 UTC
I see this with 2.6.35.4, 

Linux router 2.6.35.4 #2 Mon Sep 6 17:28:32 PDT 2010 i586 Geode(TM) Integrated Processor by AMD PCS AuthenticAMD GNU/Linux

------------[ cut here ]------------
WARNING: at net/mac80211/rx.c:2590 ieee80211_rx+0x8bb/0x8c3 [mac80211]()
Rate marked as an HT rate but passed status->rate_idx is not an MCS index [0-76]: 104 (0x68)
Modules linked in: tun i2c_core aes_generic bridge stp llc ipt_MASQUERADE iptable_nat nf_nat ipt_LOG xt_tcpudp xt_recent nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack iptable_filter xt_multiport xt_iprange ip_tables x_tables usb_storage pc87360 hwmon_vid hwmon geodewdt configs arc4 ecb ath9k ath9k_common ath9k_hw ath cryptomgr geode_aes crypto_blkcipher mac80211 ehci_hcd crypto_algapi cfg80211 crypto geode_rng usbcore cs5535_gpio rng_core via_rhine cs5535_mfgpt led_class mii
Pid: 0, comm: swapper Not tainted 2.6.35.4 #2
Call Trace:
 [<c02159a9>] ? warn_slowpath_common+0x54/0x66
 [<d09a272c>] ? ieee80211_rx+0x8bb/0x8c3 [mac80211]
 [<c0215a21>] ? warn_slowpath_fmt+0x28/0x2c
 [<d09a272c>] ? ieee80211_rx+0x8bb/0x8c3 [mac80211]
 [<c025e1ba>] ? __kmalloc_track_caller+0x74/0x95
 [<d09e901a>] ? ath_rxbuf_alloc+0x1a/0x78 [ath]
 [<d09e901a>] ? ath_rxbuf_alloc+0x1a/0x78 [ath]
 [<d09197ab>] ? ieee80211_get_hdrlen_from_skb+0x17/0x21 [cfg80211]
 [<d0a8324b>] ? ath9k_cmn_rx_skb_postprocess+0x2d/0x12c [ath9k_common]
 [<c0335ad3>] ? __alloc_skb+0x57/0x100
 [<d0aa643a>] ? ath_rx_tasklet+0x635/0x808 [ath9k]
 [<c0227c44>] ? enqueue_hrtimer+0x57/0x6b
 [<d0aa43c1>] ? ath9k_tasklet+0xcc/0x107 [ath9k]
 [<c0219333>] ? tasklet_action+0x5f/0x65
 [<c02195e7>] ? __do_softirq+0x60/0xc6
 [<c021967b>] ? do_softirq+0x2e/0x30
 [<c021976d>] ? irq_exit+0x53/0x55
 [<c020392c>] ? do_IRQ+0x3a/0x72
 [<c0202be9>] ? common_interrupt+0x29/0x30
 [<c020768e>] ? default_idle+0x25/0x38
 [<c02017d0>] ? cpu_idle+0x2e/0x47
 [<c042661a>] ? start_kernel+0x21a/0x21d
---[ end trace aa3c3f2c8c7d4732 ]---
Comment 3 John W. Linville 2010-09-13 17:28:13 UTC
ath9k guys, ping?
Comment 4 vasanth 2010-09-14 13:27:49 UTC
Created attachment 29972 [details]
debug patch to dump rx desc status
Comment 5 vasanth 2010-09-14 13:28:42 UTC
Nikil, what is hw being used, lspci output?. Also by any chance is it possible  to get some dmesg output with the attached diff?. You can probably use latest stable compat-wireless (http://wireless.kernel.org/en/users/Download/stable/) for debug log.
Comment 6 Nikhil Sethi 2010-09-14 21:32:53 UTC
My wireless card is TP-Link TL-WN861N, (http://www.tp-link.com/products/productDetails.asp?pmodel=TL-WN861N).

System is a AMD Geode based system http://www.soekris.com/net5501.htm

Yes, I can run with the above patch, probably tonight, will report back with output.


$ lspci -vvv

00:01.0 Host bridge: Advanced Micro Devices [AMD] CS5536 [Geode companion] Host Bridge (rev 33)
	Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] Host Bridge
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 248, Cache Line Size: 32 bytes

00:01.2 Entertainment encryption device: Advanced Micro Devices [AMD] Geode LX AES Security Block
	Subsystem: Advanced Micro Devices [AMD] Geode LX AES Security Block
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 10
	Region 0: Memory at a0000000 (32-bit, non-prefetchable) [size=16K]
	Kernel driver in use: Geode LX AES
	Kernel modules: geode-aes, geode-rEthernet controller: VIA Technologies, Inc. VT6105M [Rhine-III] (rev 96)
	Subsystem: VIA Technologies, Inc. Device 0106
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64 (750ns min, 2000ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 11
	Region 0: I/O ports at e100 [size=256]
	Region 1: Memory at a0004000 (32-bit, non-prefetchable) [size=256]
	Capabilities: [40] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: via-rhine
	Kernel modules: via-rhine

00:07.0 Ethernet controller: VIA Technologies, Inc. VT6105M [Rhine-III] (rev 96)
	Subsystem: VIA Technologies, Inc. Device 0106
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64 (750ns min, 2000ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 5
	Region 0: I/O ports at e200 [size=256]
	Region 1: Memory at a0004100 (32-bit, non-prefetchable) [size=256]
	Capabilities: [40] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: via-rhine
	Kernel modules: via-rhine

00:08.0 Ethernet controller: VIA Technologies, Inc. VT6105M [Rhine-III] (rev 96)
	Subsystem: VIA Technologies, Inc. Device 0106
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64 (750ns min, 2000ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 9
	Region 0: I/O ports at e300 6]
	Region 1: Memory at a0004200 (32-bit, non-prefetchable) [size=256]
	Capabilities: [40] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: via-rhine
	Kernel modules: via-rhine

00:09.0 Ethernet controller: VIA Technologies, Inc. VT6105M [Rhine-III] (rev 96)
	Subsystem: VIA Technologies, Inc. Device 0106
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64 (750ns min, 2000ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 12
	Region 0: I/O ports at e400 [size=256]
	Region 1: Memory at a0004300 (32-bit, non-prefetchable) [size=256]
	Capabilities: [40] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: via-rhine
	Kernel modules: via-rhine

00:11.0 Network controller: Atheros Communications Inc. AR922X Wireless Network Adapter (rev 01)
	Subsystem: Atheros Communications Inc. Device 2091
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 168, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 15
	Region 0: Memory at a0010000 (32-bit, non-prefetchable) [size=64K]
	Capabilities: [44] Power Management version 2
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=100mA PME(D0+,D1-,D2-,D3hot+,D3cold-)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: ath9k
	Kernel modules: ath9k

00:14.0 ISA bridge: Advanced Micro Devices [AMD] CS5536 [Geode companion] ISA (rev 03)
	Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] ISA
/O+ Mem- BusMaster- SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Region 0: I/O ports at 6000 [size=8]
	Region 1: I/O ports at 6100 [size=256]
	Region 2: I/O ports at 6200 [size=512]
	Kernel modules: cs5535-gpio, cs5535-mfgpt

00:14.2 IDE interface: Advanced Micro Devices [AMD] CS5536 [Geode companion] IDE (rev 01) (prog-if 80 [Master])
	Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] IDE
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
	Region 0: [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
	Region 1: [virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
	Region 2: [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size8]
	Region 3: [virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
	Region 4: I/O ports at e000 [size=16]
	Kernel driver in use: pata_cs5536

00:15.0 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] OHC (rev 02) (prog-if 10 [OHCI])
	Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] OHC
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 7
	Region 0: Memory at a0020000 (32-bit, non-prefetchable) [size=4K]

00:15.1 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] EHC (rev 02) (prog-if 20 [EHCI])
	Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] EHC
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 7
	Region 0: Memory at a0021000 (32-bit, non-prefetchable) [size=4K]
	Kernel driver in use: ehci_hcd
	Kernel modules: ehci-hcd

nsethi-macbookpro:~ nsethi$ 
nsethi-macbookpro:~ nsethi$ cat /tmp/lspci.out 
00:01.0 Host bridge: Advanced Micro Devices [AMD] CS5536 [Geode companion] Host Bridge (rev 33)
	Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] Host Bridge
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 248, Cache Line Size: 32 bytes

00:01.2 Entertainment encryption device: Advanced Micro Devices [AMD] Geode LX AES Security Block
	Subsystem: Advanced Micro Devices [AMD] Geode LX AES Security Block
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 10
	Region 0: Memory at a0000000 (32-bit, non-prefetchable) [size=16K]
	Kernel driver in use: Geode LX AES
	Kernel modules: geode-aes, geode-rng

00:06.0 Ethernet controller: VIA Technologies, Inc. VT6105M [Rhine-III] (rev 96)
	Subsystem: VIA Technologies, Inc. Device 0106
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64 (750ns min, 2000ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 11
	Region 0: I/O ports at e100 [size=256]
	Region 1: Memory at a0004000 (32-bit, non-prefetchable) [size=256]
	Capabilities: [40] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: via-rhine
	Kernel modules: via-rhine

00:07.0 Ethernet controller: VIA Technologies, Inc. VT6105M [Rhine-III] (rev 96)
	Subsystem: VIA Technologies, Inc. Device 0106
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64 (750ns min, 2000ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 5
	Region 0: I/O ports at e200 [size=256]
	Region 1: Memory at a0004100 (32-bit, non-prefetchable) [size=256]
	Capabilities: [40] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: via-rhine
	Kernel modules: via-rhine

00:08.0 Ethernet controller: VIA Technologies, Inc. VT6105M [Rhine-III] (rev 96)
	Subsystem: VIA Technologies, Inc. Device 0106
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64 (750ns min, 2000ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 9
	Region 0: I/O ports at e300 [size=256]
	Region 1: Memory at a0004200 (32-bit, non-prefetchable) [size=256]
	Capabilities: [40] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: via-rhine
	Kernel modules: via-rhine

00:09.0 Ethernet controller: VIA Technologies, Inc. VT6105M [Rhine-III] (rev 96)
	Subsystem: VIA Technologies, Inc. Device 0106
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64 (750ns min, 2000ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 12
	Region 0: I/O ports at e400 [size=256]
	Region 1: Memory at a0004300 (32-bit, non-prefetchable) [size=256]
	Capabilities: [40] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: via-rhine
	Kernel modules: via-rhine

00:11.0 Network controller: Atheros Communications Inc. AR922X Wireless Network Adapter (rev 01)
	Subsystem: Atheros Communications Inc. Device 2091
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 168, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 15
	Region 0: Memory at a0010000 (32-bit, non-prefetchable) [size=64K]
	Capabilities: [44] Power Management version 2
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=100mA PME(D0+,D1-,D2-,D3hot+,D3cold-)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: ath9k
	Kernel modules: ath9k

00:14.0 ISA bridge: Advanced Micro Devices [AMD] CS5536 [Geode companion] ISA (rev 03)
	Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] ISA
	Control: I/O+ Mem- BusMaster- SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Region 0: I/O ports at 6000 [size=8]
	Region 1: I/O ports at 6100 [size=256]
	Region 2: I/O ports at 6200 [size=512]
	Kernel modules: cs5535-gpio, cs5535-mfgpt

00:14.2 IDE interface: Advanced Micro Devices [AMD] CS5536 [Geode companion] IDE (rev 01) (prog-if 80 [Master])
	Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] IDE
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
	Region 0: [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
	Region 1: [virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
	Region 2: [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
	Region 3: [virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
	Region 4: I/O ports at e000 [size=16]
	Kernel driver in use: pata_cs5536

00:15.0 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] OHC (rev 02) (prog-if 10 [OHCI])
	Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] OHC
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 7
	Region 0: Memory at a0020000 (32-bit, non-prefetchable) [size=4K]

00:15.1 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] EHC (rev 02) (prog-if 20 [EHCI])
	Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] EHC
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 7
	Region 0: Memory at a0021000 (32-bit, non-prefetchable) [size=4K]
	Kernel driver in use: ehci_hcd
	Kernel modules: ehci-hcd
Comment 7 Nikhil Sethi 2010-09-16 14:33:56 UTC
dmesg output with debug flags:


status0:fc800207
status1:a4
status2:2a9b5e2c
status3:108
status4:8801117
status5:80808080
status6:80808080
status7:80808080
status8:2211
<snip>
status0:fa800705
status1:75
status2:10aa747a
status3:103
status4:9801412
status5:80808080
status6:80808080
status7:80808080
status8:1f15
Comment 8 Nikhil Sethi 2010-09-16 22:30:21 UTC
More instances:


status0:fd800707
status1:aa
status2:44c68fec
status3:10a
status4:a8000ff
status5:80808080
status6:80808080
status7:80808080
status8:1f15
status0:f8800902
status1:102
status2:1b3eca3f
status3:101
status4:a800608
status5:80808080
status6:80808080
status7:80808080
status8:1f11
Comment 9 vasanth 2010-09-21 09:58:04 UTC
Created attachment 30912 [details]
possible patch for rx rate warning

thanks for the debug log, can you see if the attached patch makes any difference?
Comment 10 Nikhil Sethi 2010-09-21 18:03:53 UTC
Sure. Will let you know if I see the warning again.
Comment 11 Nikhil Sethi 2010-09-22 18:53:29 UTC
dmesg output with both patches:


status0:ff800502
status1:c2
status2:afeece1
status3:101
status4:7808080
status5:80808080
status6:80808080
status7:80808080
status8:2211
status0:ec800604
status1:36
status2:1312e925
status3:10b
status4:8808080
status5:80808080
status6:80808080
status7:80808080
status8:2211
status0:da800109
status1:8080012c
status2:188080
status3:1db
status4:610d400
status5:a5240000
status6:c9eb26af
status7:49b709ce
status8:80808043
------------[ cut here ]------------
WARNING: at net/mac80211/rx.c:2590 ieee80211_rx+0x8bb/0x8c3 [mac80211]()
Rate marked as an HT rate but passed status->rate_idx is not an MCS index [0-76]: 90 (0x5a)
Modules linked in: tun i2c_core aes_generic bridge stp llc ipt_MASQUERADE iptable_nat nf_nat ipt_LOG xt_tcpudp xt_recent nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack iptable_filter xt_multiport xt_iprange ip_tables x_tables usb_storage pc87360 hwmon_vid hwmon geodewdt configs arc4 ecb ath9k ath9k_common ath9k_hw ath cryptomgr mac80211 ehci_hcd geode_aes crypto_blkcipher crypto_algapi cfg80211 crypto cs5535_gpio usbcore via_rhine led_class geode_rng cs5535_mfgpt rng_core mii
Pid: 6173, comm: mysqld Not tainted 2.6.35.4-rc1 #4
Call Trace:
 [<c0215a45>] ? warn_slowpath_common+0x54/0x66
 [<d09cf72c>] ? ieee80211_rx+0x8bb/0x8c3 [mac80211]
 [<c0215abd>] ? warn_slowpath_fmt+0x28/0x2c
 [<d09cf72c>] ? ieee80211_rx+0x8bb/0x8c3 [mac80211]
 [<c025e256>] ? __kmalloc_track_caller+0x74/0x95
 [<d09fa01a>] ? ath_rxbuf_alloc+0x1a/0x78 [ath]
 [<d09fa01a>] ? ath_rxbuf_alloc+0x1a/0x78 [ath]
 [<d092b7ab>] ? ieee80211_get_hdrlen_from_skb+0x17/0x21 [cfg80211]
 [<d0a9424b>] ? ath9k_cmn_rx_skb_postprocess+0x2d/0x12c [ath9k_common]
 [<c0335b73>] ? __alloc_skb+0x57/0x100
 [<d0ab743a>] ? ath_rx_tasklet+0x635/0x808 [ath9k]
 [<c02138e3>] ? task_tick_fair+0x16/0xd2
 [<d0ab53c1>] ? ath9k_tasklet+0xcc/0x107 [ath9k]
 [<c02193cf>] ? tasklet_action+0x5f/0x65
 [<c0219683>] ? __do_softirq+0x60/0xc6
 [<c0219717>] ? do_softirq+0x2e/0x30
 [<c0219809>] ? irq_exit+0x53/0x55
 [<c020392c>] ? do_IRQ+0x3a/0x72
 [<c0202be9>] ? common_interrupt+0x29/0x30
 [<c0380000>] ? snmp_seq_show+0x296/0x45b
---[ end trace 0475f6568a70597b ]---
Comment 12 Nikhil Sethi 2010-09-25 18:42:38 UTC
Another example:

status0:f4800307
status1:808000bc
status2:88080
status3:80800303
status4:68080
status5:80800204
status6:68080
status7:80800202
status8:58081
------------[ cut here ]------------
WARNING: at net/mac80211/rx.c:2590 ieee80211_rx+0x8bb/0x8c3 [mac80211]()
Rate marked as an HT rate but passed status->rate_idx is not an MCS index [0-76]: 116 (0x74)
Modules linked in: tun i2c_core aes_generic bridge stp llc ipt_MASQUERADE iptable_nat nf_nat ipt_LOG xt_tcpudp xt_recent nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack iptable_filter xt_multiport xt_iprange ip_tables x_tables usb_storage pc87360 hwmon_vid hwmon geodewdt configs arc4 ecb ath9k ath9k_common ath9k_hw ath cryptomgr mac80211 ehci_hcd geode_aes crypto_blkcipher crypto_algapi cfg80211 crypto cs5535_gpio usbcore via_rhine led_class geode_rng cs5535_mfgpt rng_core mii
Pid: 0, comm: swapper Tainted: G        W   2.6.35.4-rc1 #4
Call Trace:
 [<c0215a45>] ? warn_slowpath_common+0x54/0x66
 [<d09cf72c>] ? ieee80211_rx+0x8bb/0x8c3 [mac80211]
 [<c0215abd>] ? warn_slowpath_fmt+0x28/0x2c
 [<d09cf72c>] ? ieee80211_rx+0x8bb/0x8c3 [mac80211]
 [<c025e256>] ? __kmalloc_track_caller+0x74/0x95
 [<d09fa01a>] ? ath_rxbuf_alloc+0x1a/0x78 [ath]
 [<d09fa01a>] ? ath_rxbuf_alloc+0x1a/0x78 [ath]
 [<d092b7ab>] ? ieee80211_get_hdrlen_from_skb+0x17/0x21 [cfg80211]
 [<d0a9424b>] ? ath9k_cmn_rx_skb_postprocess+0x2d/0x12c [ath9k_common]
 [<c0335b73>] ? __alloc_skb+0x57/0x100
 [<d0ab743a>] ? ath_rx_tasklet+0x635/0x808 [ath9k]
 [<c0335b73>] ? __alloc_skb+0x57/0x100
 [<d0ab53c1>] ? ath9k_tasklet+0xcc/0x107 [ath9k]
 [<c02193cf>] ? tasklet_action+0x5f/0x65
 [<c0219683>] ? __do_softirq+0x60/0xc6
 [<c0219717>] ? do_softirq+0x2e/0x30
 [<c0219809>] ? irq_exit+0x53/0x55
 [<c020392c>] ? do_IRQ+0x3a/0x72
 [<c0202be9>] ? common_interrupt+0x29/0x30
 [<c020768e>] ? default_idle+0x25/0x38
 [<c02017d0>] ? cpu_idle+0x2e/0x47
 [<c042661a>] ? start_kernel+0x21a/0x21d
---[ end trace 0475f6568a70597c ]---
Comment 13 Nikhil Sethi 2010-10-29 23:40:47 UTC
FYI, I can no longer reproduce this problem running a mint 2.6.36 kernel.

Note You need to log in before you can comment on or make changes to this bug.