From: Emmanuel Grumbach <egrumbach@gmail.com>
To: wzyboy <wzyboy@wzyboy.org>, Bjorn Helgaas <bhelgaas@google.com>
Cc: "Grumbach, Emmanuel" <emmanuel.grumbach@intel.com>,
"ilw@linux.intel.com" <ilw@linux.intel.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
Bj?rn Mork <bjorn@mork.no>
Subject: Re: [Ilw] Intel Wireless 7260 hardware timed out randomly
Date: Fri, 15 Nov 2013 10:49:44 +0200 [thread overview]
Message-ID: <5285E028.20906@gmail.com> (raw)
In-Reply-To: <CALkVjQaOHix5uxFGd-62negbfubz-rdP+zmj9w5wDEa1rCA75Q@mail.gmail.com>
On 11/15/2013 05:06 AM, wzyboy wrote:
> 2013/11/15 Bjorn Helgaas <bhelgaas@google.com>:
>> Why would it be unlikely to fix the driver? Do people think the
>> problem is not actually in the driver?
>>
>> Asking Lenovo how to disable L1 PM substates is really a non-answer.
>> Only the extremely technical and extremely patient user (hi wzyboy :))
>> will even bother to investigate why wifi works fine with Windows but
>> not with Linux. The only thing Lenovo *could* do is to release a new
>> BIOS with a switch to control L1 PM Substates. If I were Lenovo, I
>> would never do that because then I would have to tell customers
>> "disable this for Linux, enable this for Windows," and I'd have to
>> deal with support calls about devices using more power than they
>> should, battery life being shorter, etc. Plus you'd have to ask every
>> Linux user to upgrade their BIOS. That's all just a terrible user
>> experience.
>
>
> I am a little confused. There are two sets of "setpci" commands, both
> of which can make me use my NIC reliably. But you two say they are
> just workarounds, not real fixes.
>
Right - because they force a mode that the BIOS doesn't allow. The BIOS
doesn't allow the OS (the driver) to decide in what mode to work - so we
cannot reach the same effect as the setpci command from the OS / driver
level. setpci just directly accesses the HW without asking the
permissions of anyone.
> I know the "side effect" of first two "setpci" commands is consuming
> more power. (Actually by my experience of running on battery, I did
> not notice ...)
>
> But Grumbach said after the second two "setpci" commands enables "L1".
> Does it mean it saves power? So what's the "side effect" of second two
> "setpci" commands?
>
They are both the same in terms of side-effects. The first set of setpci
commands will disable L1 altogether - meaning you don't save any power.
The second set of setpci doesn't disable L1, but disable a more subtle
power state (actually several) which are defined as L1 PM substates. In
theses substates, you save less power than in L1 (I think) but you are
more likely to be able to reach them. After all, it is always the same
story - the deeper you sleep, you longer it takes to wake up. And if it
takes longer to wake up, it also means that in several cases you won't
chose to go to sleep. So the way PCI folks help to save power even in
case where you cannot go to a deep sleep is to define states in the
middle in which you save less power, but in which you are more likely to
be. Again - time spent in each state and power saved in each state trade
off.
Now:
L1 - deep sleep
L1 PM substate - something in the middle.
First setpci command - disable both features.
Second setpci command - disable only the second feature.
Regarding side effects... I don't think this is really "dangerous". But
this is not a fix in the way that I wouldn't like to deploy millions of
machines like that. The risk you have here is probably to have a bad
timing and have the setpci commands run exactly when the link is in a
state that setpci disables. That would be bad. How bad? Probably would
just require a reboot - or worst case G3 (take the battery off).
> IMHO, if this could user use their NIC reliably, maybe Grumbach may
> write these commands to iwlwifi driver and run them when 7260 is
> detected...
I can't as exlained above.
>
> BTW, no replies from Lenovo, yet.
>
> Or maybe you could add an option, which enables this "workaround" if
> user wants. A user could simply write a /etc/modprobe.d/iwlwifi.conf
> and enable this "workaround", to use their NICs without having to
> reboot from time to time...
same.
next prev parent reply other threads:[~2013-11-15 8:49 UTC|newest]
Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5276134B.8070808@wzyboy.org>
[not found] ` <CALkVjQYh-SUte4S6LdqOc3KSc3_pDU6jz1KXp+Jsd5_RFPXSqA@mail.gmail.com>
[not found] ` <0BA3FCBA62E2DC44AF3030971E174FB301DE8338@HASMSX103.ger.corp.intel.com>
[not found] ` <CALkVjQb7fCMFpqhdUs8w-Mx_Y0RtAYYFtKxXkqyrCQ39UFGxKg@mail.gmail.com>
[not found] ` <0BA3FCBA62E2DC44AF3030971E174FB301DE960E@HASMSX103.ger.corp.intel.com>
[not found] ` <CALkVjQbW8FeiEh8pBZ=KQFD9+8AdjgT0G_RG7qJe0MRdBvMD-A@mail.gmail.com>
[not found] ` <CALkVjQaLx2spaOqUPcs_EwMkU7npMki1Reo1MeZwxB7m=c24=g@mail.gmail.com>
[not found] ` <0BA3FCBA62E2DC44AF3030971E174FB301DE9FC6@HASMSX103.ger.corp.intel.com>
[not found] ` <CALkVjQZDNSgUUFyi94Y8da_NDzW61rCvaMrZpUugFKW_LRNFFA@mail.gmail.com>
[not found] ` <0BA3FCBA62E2DC44AF3030971E174FB301DEA052@HASMSX103.ger.corp.intel.com>
[not found] ` <CALkVjQZRJw7ghjBa1aPKNKe3Zj2B1Mhk5bWVaRdcCYzfoLRovg@mail.gmail.com>
[not found] ` <CALkVjQY7r=YKhsgDKR0mnYVtZy5BAdj83nY2jL0VFaiew6ha7A@mail.gmail.com>
[not found] ` <0BA3FCBA62E2DC44AF3030971E174FB301DEA097@HASMSX103.ger.corp.intel.com>
[not found] ` <CALkVjQY7uRFQ3Qs9T_bgqnYRNcWgsk5gfd=R8RfGFxOdDpFYTQ@mail.gmail.com>
2013-11-06 17:50 ` [Ilw] Intel Wireless 7260 hardware timed out randomly Emmanuel Grumbach
2013-11-06 18:32 ` Bjorn Helgaas
2013-11-07 4:49 ` wzyboy
[not found] ` <CALkVjQZcKrEFYBzFOXRKhX_cPos9pt0iYnQUnpEEmGzR6+3zQw@mail.gmail.com>
2013-11-08 4:41 ` wzyboy
2013-11-08 4:46 ` wzyboy
2013-11-08 17:20 ` Bjorn Helgaas
2013-11-08 17:38 ` Bjorn Helgaas
2013-11-10 10:19 ` wzyboy
2013-11-10 11:32 ` Emmanuel Grumbach
2013-11-10 11:38 ` wzyboy
2013-11-10 11:41 ` Grumbach, Emmanuel
2013-11-10 12:13 ` wzyboy
2013-11-10 12:17 ` Grumbach, Emmanuel
2013-11-11 9:43 ` Emmanuel Grumbach
2013-11-11 21:55 ` Bjorn Helgaas
[not found] ` <CALkVjQYkAWrwRabQfBSvC1pm47ZyRT5jQ0mYBwbiGh-Bt29gbg@mail.gmail.com>
2013-11-10 7:03 ` Emmanuel Grumbach
2013-11-10 7:08 ` wzyboy
2013-11-11 22:44 ` Bjorn Helgaas
[not found] ` <CALkVjQb-AJRSGARCQaDFkd+mHBk2qFkAVyVBTW7RHSaxzbZsbw@mail.gmail.com>
2013-11-12 7:02 ` Emmanuel Grumbach
2013-11-12 9:36 ` Emmanuel Grumbach
2013-11-12 12:10 ` wzyboy
2013-11-12 12:16 ` Grumbach, Emmanuel
2013-11-12 12:25 ` wzyboy
2013-11-12 12:45 ` Grumbach, Emmanuel
2013-11-12 12:59 ` wzyboy
2013-11-12 18:14 ` Bjorn Helgaas
2013-11-12 18:25 ` Grumbach, Emmanuel
2013-11-12 19:14 ` Bjorn Helgaas
2013-11-12 19:37 ` Emmanuel Grumbach
2013-11-12 22:09 ` Bjorn Helgaas
[not found] ` <CALkVjQZZVHUxuBkS+ret23Bt61TV_x_kj-ey=y93gC0e3cw__Q@mail.gmail.com>
2013-11-13 6:46 ` wzyboy
[not found] ` <0BA3FCBA62E2DC44AF3030971E174FB301DFBCB5@HASMSX103.ger.corp.intel.com>
2013-11-13 7:25 ` wzyboy
2013-11-13 17:42 ` Bjorn Helgaas
2013-11-13 20:30 ` Grumbach, Emmanuel
[not found] ` <CALkVjQaTnocYnV4GM=LHuYwMRZ=sOZnSrtna4C6anNAWr4O7=A@mail.gmail.com>
2013-11-14 6:20 ` Grumbach, Emmanuel
[not found] ` <CALkVjQZdPuE2F+ZARBLha-+iOMA4AjDWHO4=ssnuF2Uu87RyuQ@mail.gmail.com>
2013-11-14 7:04 ` Grumbach, Emmanuel
2013-11-14 7:09 ` wzyboy
2013-11-14 8:39 ` Grumbach, Emmanuel
2013-11-14 17:53 ` Bjorn Helgaas
2013-11-15 3:06 ` wzyboy
2013-11-15 3:09 ` wzyboy
2013-11-15 8:49 ` Emmanuel Grumbach [this message]
2013-11-15 9:04 ` wzyboy
2013-12-25 8:27 ` Emmanuel Grumbach
2013-12-25 10:34 ` wzyboy
2013-12-25 10:38 ` Grumbach, Emmanuel
2013-12-28 9:54 ` wzyboy
2013-12-28 9:57 ` wzyboy
2013-12-29 8:14 ` Grumbach, Emmanuel
2013-12-29 9:23 ` wzyboy
2013-12-29 11:45 ` Emmanuel Grumbach
2013-12-29 13:06 ` wzyboy
2014-01-02 21:34 ` Bjorn Helgaas
2014-01-04 14:41 ` wzyboy
2014-01-13 6:01 ` Grumbach, Emmanuel
2014-01-13 6:15 ` wzyboy
[not found] ` <CALkVjQavGvumxnghCc5R8E=7rzDSy1_q+LVZ=vR6--OJxhp7CA@mail.gmail.com>
2014-01-13 8:26 ` Grumbach, Emmanuel
2013-11-13 8:45 ` Grumbach, Emmanuel
2013-11-13 9:47 ` Grumbach, Emmanuel
2013-11-13 12:13 ` Grumbach, Emmanuel
2013-11-13 12:18 ` wzyboy
2013-11-13 12:21 ` Grumbach, Emmanuel
2013-11-13 12:33 ` wzyboy
2013-11-13 13:48 ` Bjørn Mork
2013-11-13 14:16 ` Grumbach, Emmanuel
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=5285E028.20906@gmail.com \
--to=egrumbach@gmail.com \
--cc=bhelgaas@google.com \
--cc=bjorn@mork.no \
--cc=emmanuel.grumbach@intel.com \
--cc=ilw@linux.intel.com \
--cc=linux-pci@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=wzyboy@wzyboy.org \
/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).