Bug 42583 - WARNING: at /home/apw/COD/linux/drivers/net/wireless/ath/ath9k/rc.c:697 ath_rc_get_highest_rix+0x123/0x210 [ath9k]()
Summary: WARNING: at /home/apw/COD/linux/drivers/net/wireless/ath/ath9k/rc.c:697 ath_r...
Status: NEEDINFO
Alias: None
Product: Networking
Classification: Unclassified
Component: Wireless (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: networking_wireless@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-15 21:16 UTC by Cristian Aravena Romero
Modified: 2012-08-30 13:46 UTC (History)
7 users (show)

See Also:
Kernel Version: 3.3.3
Subsystem:
Regression: No
Bisected commit-id:


Attachments
lspci -vvnn (14.53 KB, text/plain)
2012-01-15 21:18 UTC, Cristian Aravena Romero
Details
dmesg 3.2.1 (246.52 KB, text/plain)
2012-01-15 21:19 UTC, Cristian Aravena Romero
Details
rate control debug patch(from Pavel) (1.41 KB, patch)
2012-01-17 13:29 UTC, shafi
Details | Diff
check for rate_table pointer corruption (1.37 KB, patch)
2012-01-18 14:53 UTC, shafi
Details | Diff

Description Cristian Aravena Romero 2012-01-15 21:16:30 UTC
[30626.714656] ------------[ cut here ]------------
[30626.714684] WARNING: at /home/apw/COD/linux/drivers/net/wireless/ath/ath9k/rc.c:697 ath_rc_get_highest_rix+0x123/0x210 [ath9k]()
[30626.714691] Hardware name: VGN-NS130FE
[30626.714694] Modules linked in: bnep rfcomm bluetooth pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) parport_pc ppdev binfmt_misc snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep uvcvideo videodev snd_pcm v4l2_compat_ioctl32 snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq joydev snd_timer arc4 snd_seq_device ath9k snd mac80211 r592 soundcore ath9k_common ath9k_hw ath i915 psmouse cfg80211 drm_kms_helper snd_page_alloc memstick serio_raw drm i2c_algo_bit sony_laptop video lp parport usbhid hid firewire_ohci sdhci_pci sdhci firewire_core crc_itu_t sky2
[30626.714788] Pid: 0, comm: swapper/0 Tainted: G        WC O 3.2.1-030201-generic #201201121644
[30626.714794] Call Trace:
[30626.714798]  <IRQ>  [<ffffffff8106731f>] warn_slowpath_common+0x7f/0xc0
[30626.714820]  [<ffffffff8106737a>] warn_slowpath_null+0x1a/0x20
[30626.714832]  [<ffffffffa03145a3>] ath_rc_get_highest_rix+0x123/0x210 [ath9k]
[30626.714845]  [<ffffffffa031471c>] ath_get_rate+0x8c/0x480 [ath9k]
[30626.714880]  [<ffffffffa02643ee>] rate_control_get_rate+0x8e/0x1a0 [mac80211]
[30626.714911]  [<ffffffffa027085c>] ieee80211_tx_h_rate_ctrl+0x12c/0x4a0 [mac80211]
[30626.714942]  [<ffffffffa0270f38>] invoke_tx_handlers+0x368/0x4f0 [mac80211]
[30626.714950]  [<ffffffff8105e7f0>] ? try_to_wake_up+0x2c0/0x2c0
[30626.714981]  [<ffffffffa0271230>] ieee80211_tx+0x60/0xb0 [mac80211]
[30626.715011]  [<ffffffffa0271573>] ieee80211_xmit+0x93/0xf0 [mac80211]
[30626.715041]  [<ffffffffa0271bf0>] ieee80211_subif_start_xmit+0x370/0xac0 [mac80211]
[30626.715052]  [<ffffffff81540c75>] ? dev_queue_xmit_nit+0xc5/0x1c0
[30626.715060]  [<ffffffff81545090>] dev_hard_start_xmit+0x2a0/0x590
[30626.715069]  [<ffffffff8105adf8>] ? select_task_rq_fair+0x1a8/0x350
[30626.715078]  [<ffffffff81562c5e>] sch_direct_xmit+0xfe/0x1d0
[30626.715085]  [<ffffffff815454cc>] dev_queue_xmit+0x14c/0x400
[30626.715094]  [<ffffffff815a68e8>] arp_xmit+0x58/0x60
[30626.715101]  [<ffffffff815a6933>] arp_send+0x43/0x50
[30626.715108]  [<ffffffff815a7359>] arp_process+0x5a9/0x5f0
[30626.715116]  [<ffffffff816119ad>] ? packet_rcv_spkt+0x4d/0x1a0
[30626.715123]  [<ffffffff815a60f1>] arp_rcv+0x111/0x140
[30626.715130]  [<ffffffff816119ad>] ? packet_rcv_spkt+0x4d/0x1a0
[30626.715137]  [<ffffffff81542ef9>] __netif_receive_skb+0x229/0x4e0
[30626.715144]  [<ffffffff81545f20>] netif_receive_skb+0x80/0x90
[30626.715173]  [<ffffffffa026c1ee>] ieee80211_deliver_skb+0xae/0x220 [mac80211]
[30626.715203]  [<ffffffffa026d228>] ieee80211_rx_h_data+0x168/0x290 [mac80211]
[30626.715232]  [<ffffffffa026dd22>] ieee80211_rx_handlers+0x1b2/0x420 [mac80211]
[30626.715262]  [<ffffffffa026dfe8>] ieee80211_invoke_rx_handlers+0x58/0xa0 [mac80211]
[30626.715291]  [<ffffffffa026e0a1>] ieee80211_prepare_and_rx_handle+0x71/0xd0 [mac80211]
[30626.715321]  [<ffffffffa026e2c2>] __ieee80211_rx_handle_packet+0x1c2/0x330 [mac80211]
[30626.715332]  [<ffffffffa0096099>] ? ath_rxbuf_alloc+0x39/0xc0 [ath]
[30626.715350]  [<ffffffffa00fde71>] ? ieee80211_get_hdrlen_from_skb+0x21/0x40 [cfg80211]
[30626.715379]  [<ffffffffa026e54a>] ieee80211_rx+0x11a/0x1d0 [mac80211]
[30626.715393]  [<ffffffffa030de00>] ath_rx_tasklet+0x810/0xbb0 [ath9k]
[30626.715402]  [<ffffffff81019d30>] ? nommu_map_sg+0x120/0x120
[30626.715414]  [<ffffffffa0306b95>] ? ath9k_ioread32+0x35/0x90 [ath9k]
[30626.715425]  [<ffffffffa0306b95>] ? ath9k_ioread32+0x35/0x90 [ath9k]
[30626.715437]  [<ffffffffa0309b2e>] ath9k_tasklet+0x10e/0x1b0 [ath9k]
[30626.715445]  [<ffffffff8106e82d>] tasklet_action+0xcd/0x110
[30626.715452]  [<ffffffff8106e43f>] __do_softirq+0xbf/0x200
[30626.715460]  [<ffffffff810342e6>] ? ack_apic_level+0x76/0x1f0
[30626.715468]  [<ffffffff816502ac>] call_softirq+0x1c/0x30
[30626.715475]  [<ffffffff81015325>] do_softirq+0x65/0xa0
[30626.715481]  [<ffffffff8106e23d>] irq_exit+0xbd/0xe0
[30626.715488]  [<ffffffff81650b66>] do_IRQ+0x66/0xe0
[30626.715495]  [<ffffffff8164606e>] common_interrupt+0x6e/0x6e
[30626.715500]  <EOI>  [<ffffffff8101b103>] ? native_sched_clock+0x13/0x80
[30626.715514]  [<ffffffff8139a5a3>] ? acpi_idle_enter_bm+0x279/0x2b8
[30626.715521]  [<ffffffff8139a59f>] ? acpi_idle_enter_bm+0x275/0x2b8
[30626.715530]  [<ffffffff81509032>] cpuidle_idle_call+0xe2/0x220
[30626.715538]  [<ffffffff8101309b>] cpu_idle+0xcb/0x120
[30626.715546]  [<ffffffff816258a2>] rest_init+0x72/0x80
[30626.715555]  [<ffffffff81cf7cdf>] start_kernel+0x3bb/0x3c6
[30626.715563]  [<ffffffff81cf7346>] x86_64_start_reservations+0x131/0x135
[30626.715570]  [<ffffffff81cf744d>] x86_64_start_kernel+0x103/0x112
[30626.715576] ---[ end trace 55b566785b590f5d ]---
Comment 1 Cristian Aravena Romero 2012-01-15 21:18:01 UTC
Created attachment 72075 [details]
lspci -vvnn
Comment 2 Cristian Aravena Romero 2012-01-15 21:19:17 UTC
Created attachment 72076 [details]
dmesg 3.2.1
Comment 3 shafi 2012-01-17 13:29:11 UTC
Created attachment 72092 [details]
rate control debug patch(from Pavel)
Comment 4 shafi 2012-01-17 13:29:57 UTC
Hi Cristian,

looks like you are able to consistently hit this warning
please dump the output of attached the debug patch provided by Pavel
(i had attached it here also) 
https://bugzilla.redhat.com/show_bug.cgi?id=771113
you can use some latest compat wireless for it.
please provide some information about when we are able to hit this warning 
like (during the start of traffic), with legacy AP?
Comment 5 shafi 2012-01-18 14:53:50 UTC
Created attachment 72110 [details]
check for rate_table pointer corruption

attached a debug patch that helps us to identify if rate_table pointer gets corrupted, please try this in addition to the previous patch when the issue occurs
Comment 6 Tobias 2012-01-21 16:47:17 UTC
I am getting the same warnings. I also got a nice kernel panic just a minute ago which looks wireless-related, see trace at http://i42.tinypic.com/2hpmw7k.jpg

Could this be the same issue or should I open a new bug? This is on a Macbook 2,1.
Comment 7 lyman 2012-01-27 07:14:27 UTC
I'm having a similar issue. it happens a lot when power cable is off (laptop).
Comment 8 tm512 2012-01-29 21:32:33 UTC
I am having similar issues with kernel panics. The backtrace printed out is very similar to the one posted in the original post. I had a similar issue on Linux 3.0.x (and, I believe, 2.6.39.x), but that had no effect beyond dropping my wireless and requiring a reboot in order to get it back. 3.1 had no issues with this (that I can recall, anyway).

In both 3.0 and 3.2, the issues seem to be caused most frequently by moving my laptop.


02:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
	Subsystem: Foxconn International, Inc. Device e016
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 17
	Region 0: Memory at 56000000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: ath9k
Comment 9 DJ Cozatt 2012-05-06 13:09:58 UTC
I have several traces that are similar to the one above. I first noticed them using the kernel leak detector. There is some (I hope) relevant information in this bug https://bugs.gentoo.org/show_bug.cgi?id=412049 on gentoo's bug tracker.
I had the idea of running cppcheck against the ath/ directory of the kernel source. It points to the code block in comment #4 as a memory leak. I have not the skill to say this is or is not the problem or is a valid 'find'.

It is also referenced at http://sourceforge.net/apps/phpbb/cppcheck/viewtopic.php?f=4&t=387 where at least it was available for review. No viewer has commented.

I have also lspci -vvvvxxx posted in the gentoo bug as an attachment.
Comment 10 DJ Cozatt 2012-05-06 13:49:14 UTC
most recent trace

[  670.139007] kmemleak: 10 new suspected memory leaks (see /sys/kernel/debug/kmemleak)
[ 1274.148374] kmemleak: 7 new suspected memory leaks (see /sys/kernel/debug/kmemleak)
[ 1346.393479] ------------[ cut here ]------------
[ 1346.393499] WARNING: at drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:501 ath9k_htc_tx_process+0x31e/0x330 [ath9k_htc]()
[ 1346.393506] Hardware name: GA-MA790GP-DS4H
[ 1346.393510] Modules linked in: isofs it87 hwmon_vid ath9k_htc ath9k_common ath9k_hw ath snd_hda_codec_hdmi mac80211 snd_hda_codec_realtek snd_hda_intel snd_hda_codec cfg80211 radeon firewire_ohci firewire_core snd_hwdep snd_pcm snd_page_alloc snd_timer crc_itu_t drm_kms_helper snd k10temp soundcore ttm cfbfillrect cfbimgblt cfbcopyarea
[ 1346.393561] Pid: 0, comm: swapper/3 Not tainted 3.3.3-gentoo #1
[ 1346.393567] Call Trace:
[ 1346.393571]  <IRQ>  [<ffffffff810350ba>] warn_slowpath_common+0x7a/0xb0
[ 1346.393594]  [<ffffffff810d5d91>] ? perf_event_task_tick+0x201/0x2c0
[ 1346.393603]  [<ffffffff81035105>] warn_slowpath_null+0x15/0x20
[ 1346.393615]  [<ffffffffa02df72e>] ath9k_htc_tx_process+0x31e/0x330 [ath9k_htc]
[ 1346.393626]  [<ffffffffa02df100>] ? ath9k_htc_tx_get_packet+0x90/0x1a0 [ath9k_htc]
[ 1346.393638]  [<ffffffffa02dfefe>] ath9k_htc_txstatus+0x3e/0x150 [ath9k_htc]
[ 1346.393647]  [<ffffffff81082001>] ? tick_periodic+0x31/0x80
[ 1346.393658]  [<ffffffffa02debad>] ath9k_wmi_event_tasklet+0x13d/0x170 [ath9k_htc]
[ 1346.393668]  [<ffffffff8103b966>] tasklet_action+0x56/0xf0
[ 1346.393675]  [<ffffffff8103bfc8>] __do_softirq+0x98/0x1b0
[ 1346.393684]  [<ffffffff810200c1>] ? ack_apic_level+0x71/0x1e0
[ 1346.393694]  [<ffffffff8163824c>] call_softirq+0x1c/0x30
[ 1346.393704]  [<ffffffff810043cd>] do_softirq+0x4d/0x80
[ 1346.393711]  [<ffffffff8103c315>] irq_exit+0x65/0x70
[ 1346.393720]  [<ffffffff81003f01>] do_IRQ+0x61/0xe0
[ 1346.393728]  [<ffffffff8162f62b>] common_interrupt+0x6b/0x6b
[ 1346.393733]  <EOI>  [<ffffffff81632d58>] ? notifier_call_chain+0x58/0xb0
[ 1346.393749]  [<ffffffff8100a709>] ? default_idle+0x39/0xd0
[ 1346.393757]  [<ffffffff8100a7f4>] amd_e400_idle+0x54/0x100
[ 1346.393766]  [<ffffffff81001266>] cpu_idle+0x76/0xa0
[ 1346.393775]  [<ffffffff81627b17>] start_secondary+0x219/0x220
[ 1346.393782] ---[ end trace 869e3823dd4379fa ]---

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