linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Kevin Cruz <skate_ops@yahoo.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>,
	Intel Wireless <ilw@linux.intel.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: iwlwifi can't connect to router after resuming from suspend.
Date: Mon, 01 Oct 2012 21:31:39 +0200	[thread overview]
Message-ID: <1349119899.10330.53.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <1349109750.55372.YahooMailNeo@web164005.mail.gq1.yahoo.com> (sfid-20121001_184314_573998_F50474BE)

Thanks Dan, Kevin,

[...]
[suspend/resume]

> [   58.835223] wlan0: authenticate with 30:46:9a:68:a9:52
> [   58.864519] wlan0: send auth to 30:46:9a:68:a9:52 (try 1/3)
> [   59.067596] wlan0: send auth to 30:46:9a:68:a9:52 (try 2/3)
> [   59.271484] wlan0: send auth to 30:46:9a:68:a9:52 (try 3/3)
> [   59.475356] wlan0: authentication with 30:46:9a:68:a9:52 timed out

Yeah ... we saw this in the lab at some point, but somehow we couldn't
reproduce it again later. The issue is that we stop the queues, and
never restart them, and if it's the same issue then it's definitely the
driver's fault.

To confirm, when you get this, can you please do

sudo cat /sys/kernel/debug/ieee80211/phy*/queues

(assuming you have mac80211 debugfs compiled)

If it's really the same bug, the first four queues (0-3) will show
something like
00: 0x00000001/7
01: 0x00000001/0
02: 0x00000001/0
03: 0x00000001/0
[...]

If this is the case, then I'd appreciate if you could do tracing. To do
that, make sure CONFIG_IWLWIFI_DEVICE_TRACING is set in your kernel
config (which requires CONFIG_EVENT_TRACING, you can use the / key in
menuconfig to search for items).

When you have that, grab the trace-cmd tool (ubuntu ships it now I
believe) and start tracing *before* you suspend:

sudo bash -c "echo global > /sys/kernel/debug/tracing/trace_clock"
sudo trace-cmd record -e mac80211 -e iwlwifi -e iwlwifi_msg

then suspend and resume while it's running, and ctrl-c later after it
failed to connect after resuming. Then you get a file "trace.dat",
compress it and send it to me privately (it's large, and may contain
information you might consider private, like your AP name/BSSID/etc.)

Thanks!
If that's too much effort, let me know and I'll try to reproduce, but
I'll probably need to have more info on your setup etc. as I haven't
been able to reproduce this in mine yet, but I also have issues with
suspend/resume anyway quite frequently :-(

johannes


  reply	other threads:[~2012-10-01 19:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1348086305.81224.YahooMailNeo@web164004.mail.gq1.yahoo.com>
     [not found] ` <20120928121917.GF5368@mwanda>
     [not found]   ` <1348870515.1973.YahooMailNeo@web164005.mail.gq1.yahoo.com>
     [not found]     ` <20120929072527.GA13767@mwanda>
     [not found]       ` <1349102641.41622.YahooMailNeo@web164005.mail.gq1.yahoo.com>
2012-10-01 15:09         ` iwlwifi can't connect to router after resuming from suspend Dan Carpenter
2012-10-01 16:42           ` Kevin Cruz
2012-10-01 19:31             ` Johannes Berg [this message]
2012-10-01 23:06               ` How do I get mac80211 debugfs? Kevin Cruz
2012-10-01 23:15                 ` Kevin Cruz
2012-10-02  6:38                 ` Johannes Berg
2012-10-02 11:20                   ` Johannes Berg
2012-10-02  6:48                 ` Rami Rosen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1349119899.10330.53.camel@jlt4.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=dan.carpenter@oracle.com \
    --cc=ilw@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=skate_ops@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).