From: Emmanuel Grumbach <egrumbach@gmail.com>
To: Andy Lutomirski <luto@amacapital.net>
Cc: Linux Wireless List <linux-wireless@vger.kernel.org>
Subject: Re: Help debugging iwldvm / ath10k stalls
Date: Mon, 02 Jun 2014 21:40:08 +0300 [thread overview]
Message-ID: <538CC508.3070707@gmail.com> (raw)
In-Reply-To: <CALCETrUHX3XB2+j5=3ULd9zMpDUisj3ZtK5JVuVS8Dh6088TTw@mail.gmail.com>
On 06/02/2014 09:11 PM, Andy Lutomirski wrote:
> On Mon, Jun 2, 2014 at 9:54 AM, Andy Lutomirski <luto@amacapital.net> wrote:
>> On Wed, May 28, 2014 at 5:09 AM, Emmanuel Grumbach <egrumbach@gmail.com> wrote:
>>>>
>>>> I doubt I can bisect -- the trigger was a new AP, not a new kernel. I
>>>> can't exactly cut the AP in half :)
>>>
>>> I see.. This is really weird though. Anyway.
>>>
>>>>
>>>>
>>>> Pre-suspend, i.e., working:
>>>>
>>>> [ 20.949900] enabled = 1, wowlan = 0
>>>> [ 20.950177] enabled = 1, wowlan = 0
>>>> [ 21.614016] enabled = 1, wowlan = 0
>>>> [ 21.614658] enabled = 1, wowlan = 0
>>>> [ 42.667586] enabled = 0, wowlan = 0
>>>> [ 42.672514] enabled = 1, wowlan = 0
>>>> [ 53.088165] fuse init (API version 7.23)
>>>> [ 53.102082] SELinux: initialized (dev fuse, type fuse), uses genfs_contexts
>>>> [ 53.130945] SELinux: initialized (dev fusectl, type fusectl), uses
>>>> genfs_contexts
>>>> [ 85.627558] enabled = 0, wowlan = 0
>>>> [ 85.631686] enabled = 1, wowlan = 0
>>>> [ 134.649346] e1000e: em1 NIC Link is Down
>>>> [ 137.682277] wlan0: deauthenticating from 02:c6:26:cc:b4:c7 by local
>>>> choice (Reason: 3=DEAUTH_LEAVING)
>>>> [ 137.682780] enabled = 0, wowlan = 0
>>>> [ 137.693889] enabled = 0, wowlan = 0
>>>>
>>>> Post-suspend, i.e., not working:
>>>>
>>>> [ 144.406303] enabled = 1, wowlan = 0
>>>> [ 144.406496] enabled = 1, wowlan = 0
>>>> [ 145.026827] enabled = 1, wowlan = 0
>>>> [ 145.028211] enabled = 1, wowlan = 0
>>>> [ 165.688632] enabled = 0, wowlan = 0
>>>> [ 165.689960] enabled = 0, wowlan = 0
>>>> [ 165.693988] enabled = 1, wowlan = 0
>>>> [ 165.694245] enabled = 1, wowlan = 0
>>>> [ 208.641426] enabled = 0, wowlan = 0
>>>> [ 208.641786] enabled = 0, wowlan = 0
>>>> [ 208.647499] enabled = 1, wowlan = 0
>>>> [ 208.647639] enabled = 1, wowlan = 0
>>>> [ 271.435558] enabled = 0, wowlan = 0
>>>> [ 271.435767] enabled = 0, wowlan = 0
>>>> [ 271.440125] enabled = 1, wowlan = 0
>>>> [ 271.440405] enabled = 1, wowlan = 0
>>>>
>>>> With even more instrumentation added, I did get a glitch before
>>>> suspend/resume, but it came with more than two power setting updates.
>>>> Logs and patch attached, complete with call stacks.
>>>>
>>>
>>> I don't see any callstacks?
>>> Doesn't matter though.
>>
>> I think the callstacks were in the attachment. I could have messed up, though.
>>
>> Anyway, I don't buy the theory that this is caused by the firmware
>> going out to lunch. The queues files in debugfs show the rx queue
>> chugging along and all of the tx queues have read_ptr == write_ptr.
>> Wireshark shows incoming broadcast traffic, too. I'd guess that the
>> problem is more likely to be that the card is failing to wake up and
>> notice pending data in the TIM.
Well... I might have been unclear here (I never know how much detail I should share with the recipient :)).
>From your log it appears that the NIC is in power save. So we can't increment the write pointer of the Tx ring (add a packet for transmission). So we simply remember that we need to do so (increment the write pointer) and request a wakeup so that we will update the write pointer in the wakeup interrupt... which doesn't happen.
No power save - no need for wakeup interrupt.
>
> OTOH, with iwlwifi.11n_disable=4 (no rx A-MPDU), I seem to be doing
> pretty well. I'll test a stock kernel configured like that for the
> next few days.
>
That's interesting...
next prev parent reply other threads:[~2014-06-02 18:40 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-25 17:23 Help debugging iwldvm / ath10k stalls Andy Lutomirski
2014-05-26 5:06 ` Andy Lutomirski
2014-05-26 5:39 ` Emmanuel Grumbach
2014-05-26 6:11 ` Andy Lutomirski
2014-05-26 8:29 ` Emmanuel Grumbach
2014-05-26 8:39 ` Emmanuel Grumbach
2014-05-26 17:28 ` Andy Lutomirski
2014-05-26 18:00 ` Emmanuel Grumbach
2014-05-26 18:08 ` Andy Lutomirski
2014-05-26 18:13 ` Emmanuel Grumbach
2014-05-26 18:47 ` Andy Lutomirski
2014-05-27 17:09 ` Andy Lutomirski
2014-05-27 18:01 ` Andy Lutomirski
2014-05-27 20:30 ` Emmanuel Grumbach
2014-05-28 3:07 ` Andy Lutomirski
2014-05-28 12:09 ` Emmanuel Grumbach
2014-06-02 16:54 ` Andy Lutomirski
2014-06-02 18:11 ` Andy Lutomirski
2014-06-02 18:40 ` Emmanuel Grumbach [this message]
2014-06-02 18:45 ` Andy Lutomirski
2014-06-02 18:53 ` Emmanuel Grumbach
2014-06-02 18:56 ` Andy Lutomirski
2014-06-02 19:32 ` Emmanuel Grumbach
2014-06-02 19:57 ` Andy Lutomirski
2014-06-02 20:15 ` Emmanuel Grumbach
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=538CC508.3070707@gmail.com \
--to=egrumbach@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=luto@amacapital.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.