linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* New WARNING from mac80211
@ 2014-11-06 14:59 Larry Finger
  2014-11-06 15:03 ` Johannes Berg
  0 siblings, 1 reply; 6+ messages in thread
From: Larry Finger @ 2014-11-06 14:59 UTC (permalink / raw)
  To: Johannes Berg, linux-wireless

Hi,

I have gotten a new warning while using driver rtl8192se with the mainline 
kernel. The splat is as follows:

[42982.577623] ------------[ cut here ]------------
[42982.577647] WARNING: CPU: 2 PID: 6403 at net/mac80211/agg-tx.c:698 
ieee80211_start_tx_ba_cb+0x184/0x190 [mac80211]()
[42982.577650] Modules linked in: fuse bnep bluetooth ctr ccm nfs fscache 
rtl8192se rtl_pci rtlwifi arc4 iwlmvm af_packet mac80211 snd_hda_codec_generic 
snd_hda_intel snd_hda_controller snd_hda_codec x86_pkg_temp_thermal kvm_intel 
kvm iwlwifi snd_hwdep snd_pcm snd_timer cfg80211 snd e1000e rtsx_pci_sdmmc 
mmc_core rtsx_pci_ms memstick lpc_ich rfkill rtsx_pci xhci_pci xhci_hcd ptp 
pps_core wmi mfd_core serio_raw pcspkr crct10dif_pclmul crc32_pclmul 
crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper 
ablk_helper cryptd soundcore microcode acpi_cpufreq thermal processor battery ac 
dm_mod sr_mod cdrom i915 i2c_algo_bit drm_kms_helper drm video thermal_sys hwmon 
button sg autofs4
[42982.578143] CPU: 2 PID: 6403 Comm: kworker/u16:0 Not tainted 3.18.0-rc3+ #29
[42982.578146] Hardware name: TOSHIBA TECRA A50-A/TECRA A50-A, BIOS Version 4.20 
   04/17/2014
[42982.578163] Workqueue: phy1 ieee80211_iface_work [mac80211]
[42982.578167]  0000000000000009 ffff880201367c48 ffffffff816b0b0f 0000000000000000
[42982.578173]  0000000000000000 ffff880201367c88 ffffffff81055c91 ffff8800c465d328
[42982.578180]  0000000000000000 ffff8800c30e8000 ffff8800c30e8580 ffff8800c6560f48
[42982.578186] Call Trace:
[42982.578195]  [<ffffffff816b0b0f>] dump_stack+0x4e/0x71
[42982.578204]  [<ffffffff81055c91>] warn_slowpath_common+0x81/0xa0
[42982.578209]  [<ffffffff81055d6a>] warn_slowpath_null+0x1a/0x20
[42982.578225]  [<ffffffffa0715534>] ieee80211_start_tx_ba_cb+0x184/0x190 [mac80211]
[42982.578240]  [<ffffffffa071c14a>] ieee80211_iface_work+0x26a/0x410 [mac80211]
[42982.578247]  [<ffffffff8106f6a2>] ? process_one_work+0x152/0x550
[42982.578253]  [<ffffffff8106f71f>] process_one_work+0x1cf/0x550
[42982.578258]  [<ffffffff8106f6a2>] ? process_one_work+0x152/0x550
[42982.578264]  [<ffffffff8106fbc1>] worker_thread+0x121/0x490
[42982.578270]  [<ffffffff8106faa0>] ? process_one_work+0x550/0x550
[42982.578275]  [<ffffffff81075004>] kthread+0xe4/0x100
[42982.578280]  [<ffffffff81074f20>] ? kthread_create_on_node+0x220/0x220
[42982.578287]  [<ffffffff816ba06c>] ret_from_fork+0x7c/0xb0
[42982.578291]  [<ffffffff81074f20>] ? kthread_create_on_node+0x220/0x220
[42982.578294] cfg80211: World regulatory domain updated:
[42982.578295] ---[ end trace dd5c167b01ae2d3d ]---

The warning comes from the following fragment in net/mac80211/agg-tx.c:

         if (WARN_ON(!tid_tx)) {
                 ht_dbg(sdata, "addBA was not requested!\n");
                 goto unlock;
         }

Is there something that should be fixed in rtl8192se?

Thanks,

Larry

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: New WARNING from mac80211
  2014-11-06 14:59 New WARNING from mac80211 Larry Finger
@ 2014-11-06 15:03 ` Johannes Berg
  2014-11-06 15:40   ` Sujith Manoharan
  0 siblings, 1 reply; 6+ messages in thread
From: Johannes Berg @ 2014-11-06 15:03 UTC (permalink / raw)
  To: Larry Finger; +Cc: linux-wireless

On Thu, 2014-11-06 at 08:59 -0600, Larry Finger wrote:

> The warning comes from the following fragment in net/mac80211/agg-tx.c:
> 
>          if (WARN_ON(!tid_tx)) {
>                  ht_dbg(sdata, "addBA was not requested!\n");
>                  goto unlock;
>          }
> 
> Is there something that should be fixed in rtl8192se?

That sounds like the driver is calling ieee80211_start_tx_ba_cb() [*]
when it was never requested to start aggregation?

[*] given the stack dump, it's actually calling
ieee80211_start_tx_ba_cb_irqsafe() which goes off to a workqueue and
then calls ieee80211_start_tx_ba_cb() from there

johannes


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: New WARNING from mac80211
  2014-11-06 15:03 ` Johannes Berg
@ 2014-11-06 15:40   ` Sujith Manoharan
  2014-11-06 15:50     ` Sujith Manoharan
  0 siblings, 1 reply; 6+ messages in thread
From: Sujith Manoharan @ 2014-11-06 15:40 UTC (permalink / raw)
  To: Johannes Berg; +Cc: Larry Finger, linux-wireless

Johannes Berg wrote:
> That sounds like the driver is calling ieee80211_start_tx_ba_cb() [*]
> when it was never requested to start aggregation?
> 
> [*] given the stack dump, it's actually calling
> ieee80211_start_tx_ba_cb_irqsafe() which goes off to a workqueue and
> then calls ieee80211_start_tx_ba_cb() from there

I think this is the race described here: https://patchwork.kernel.org/patch/5095061/

I haven't tried any workaround or fix yet, but it looks like this
race can be hit fairly often.

https://dev.openwrt.org/ticket/9654
https://dev.openwrt.org/ticket/11862
https://dev.openwrt.org/ticket/13542

etc. :-)

Sujith

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: New WARNING from mac80211
  2014-11-06 15:40   ` Sujith Manoharan
@ 2014-11-06 15:50     ` Sujith Manoharan
  2014-12-12 12:59       ` Johannes Berg
  0 siblings, 1 reply; 6+ messages in thread
From: Sujith Manoharan @ 2014-11-06 15:50 UTC (permalink / raw)
  To: Johannes Berg; +Cc: Larry Finger, linux-wireless

Sujith Manoharan wrote:
> I think this is the race described here: https://patchwork.kernel.org/patch/5095061/
> 
> I haven't tried any workaround or fix yet, but it looks like this
> race can be hit fairly often.
> 
> https://dev.openwrt.org/ticket/9654
> https://dev.openwrt.org/ticket/11862
> https://dev.openwrt.org/ticket/13542

I dug out an old trace: http://pastebin.com/raw.php?i=Qj8aXJhB

Sujith

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: New WARNING from mac80211
  2014-11-06 15:50     ` Sujith Manoharan
@ 2014-12-12 12:59       ` Johannes Berg
  2014-12-15  1:43         ` Sujith Manoharan
  0 siblings, 1 reply; 6+ messages in thread
From: Johannes Berg @ 2014-12-12 12:59 UTC (permalink / raw)
  To: Sujith Manoharan; +Cc: Larry Finger, linux-wireless

On Thu, 2014-11-06 at 21:20 +0530, Sujith Manoharan wrote:
> Sujith Manoharan wrote:
> > I think this is the race described here: https://patchwork.kernel.org/patch/5095061/
> > 
> > I haven't tried any workaround or fix yet, but it looks like this
> > race can be hit fairly often.
> > 
> > https://dev.openwrt.org/ticket/9654
> > https://dev.openwrt.org/ticket/11862
> > https://dev.openwrt.org/ticket/13542
> 
> I dug out an old trace: http://pastebin.com/raw.php?i=Qj8aXJhB

Would it be worthwhile to simply remove the warning and document how we
can get there?

johannes


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: New WARNING from mac80211
  2014-12-12 12:59       ` Johannes Berg
@ 2014-12-15  1:43         ` Sujith Manoharan
  0 siblings, 0 replies; 6+ messages in thread
From: Sujith Manoharan @ 2014-12-15  1:43 UTC (permalink / raw)
  To: Johannes Berg; +Cc: Larry Finger, linux-wireless

Johannes Berg wrote:
> Would it be worthwhile to simply remove the warning and document how we
> can get there?

I think we can fix this by flushing old packets
in sdata->work after a HW scan completes. I'll test this
and post a patch for review.

Sujith

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-12-15  1:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-06 14:59 New WARNING from mac80211 Larry Finger
2014-11-06 15:03 ` Johannes Berg
2014-11-06 15:40   ` Sujith Manoharan
2014-11-06 15:50     ` Sujith Manoharan
2014-12-12 12:59       ` Johannes Berg
2014-12-15  1:43         ` Sujith Manoharan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).