Thread (16 messages) 16 messages, 6 authors, 2017-01-24

Regression on Dell XPS13 (was: [char-misc for 4.10-rc4 V2] mei: bus: enable OS version only for SPT and newer)

From: Paul Menzel <hidden>
Date: 2017-01-17 14:34:20
Also in: lkml

Dear Rafael, dear Mario,


On 01/17/17 09:14, Thorsten Leemhuis wrote:
Greg Kroah-Hartman wrote on 16.01.2017 12:05:
quoted
On Sun, Jan 15, 2017 at 11:58:30AM +0100, Greg Kroah-Hartman wrote:
quoted
On Sun, Jan 15, 2017 at 07:19:03AM +0000, Winkler, Tomas wrote:
quoted
quoted
Subject: Re: [char-misc for 4.10-rc4 V2] mei: bus: enable OS version only for SPT
and newer
On Sat, Jan 14, 2017 at 08:27:31PM +0100, Paul Menzel wrote:
quoted
On 2017-01-13 14:00, Greg Kroah-Hartman wrote:
quoted
On Wed, Jan 11, 2017 at 03:26:06PM +0100, Paul Menzel wrote:
quoted
On 01/11/17 15:12, Winkler, Tomas wrote:
quoted
quoted
quoted
On 01/11/17 10:24, Winkler, Tomas wrote:
quoted
quoted
On Wed, Jan 11, 2017 at 01:27:21AM +0200, Tomas Winkler wrote:
quoted
On older platforms the command should be just ignored
by the firmware but some older platforms misbehave so
it's safer to send the command only if required.
Thanks! This fixes suspend-to-ram for me (on a Thinkpad x201s).
What about Dell XPS13?
There is a regression with Linux 4.10-rc{1,2,3} on the Intel Kaby Lake 
device Dell XPS13 (9360). Hitting the power button, the light of the 
power button never goes off. Pressing it again, nothing happen. Only 
pressing it like ten seconds the screen comes back for five seconds, and 
then it seems to try to suspend again.
quoted
quoted
quoted
quoted
quoted
quoted
quoted
quoted
quoted
quoted
With Linus' master branch from today, and Greg's
char-misc-linus merged
(Merge: 807b93e995d1 546cf3ef9c92), the regression is still there.
[…]
quoted
quoted
quoted
quoted
quoted
quoted
I am currently bisecting to find the culprit. 13 steps will take
some time though.
I can duplicate this on my laptop here as well :(
Which system do you have?
A Dell XPS13, don't know what cpu type it is, here's the output of one cpu from
/proc/cpuinfo
[…]
quoted
quoted
quoted
model name	: Intel(R) Core(TM) i7-6560U CPU @ 2.20GHz
quoted
quoted
Did you get anywhere with your bisection?
Sorry, I replied to a different message with my status.
You are close!  I'll try bisection tomorrow if I have some spare time.
Paul, did you get any closer? I have trouble finding time for a proper
bisection (it's a bit chaotic here right now :-/ )
quoted
quoted
quoted
Greg,  is that same Laptop mode as Paul's, you've experience the issue on?
It's the same model name, but as this model has been shipped with many
different CPU versions over the years, I'm not sure if it is the exact
same one.
Gregs afaics is Skylake generation (XPS 13 (9350)), Paul and I have a
Kaby Lake (XPS 13 (9360)), which is one generation newer (Wifi is also
different; other components likely as well).
quoted
Ok, 4.10-rc4 seems to have fixed this issue with me.  I don't know what
it was, but I can't duplicate it anymore.
Good to hear.
quoted
Paul, are you still having this issue?
Don't know about Paul, but I did a quick test with rc4 on my machine and
the issue is still there :-/
I didn’t test Linux 4.10-rc4 yet, but I completed the bisection.
406e79385f3223d82272cf2be86bc95cd000a258 is the first bad commit
commit 406e79385f3223d82272cf2be86bc95cd000a258
Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Date:   Mon Nov 21 22:45:40 2016 +0100

     PM / sleep: System sleep state selection interface rework

     There are systems in which the platform doesn't support any special
     sleep states, so suspend-to-idle (PM_SUSPEND_FREEZE) is the only
     available system sleep state.  However, some user space frameworks
     only use the "mem" and (sometimes) "standby" sleep state labels, so
     the users of those systems need to modify user space in order to be
     able to use system suspend at all and that may be a pain in practice.

     Commit 0399d4db3edf (PM / sleep: Introduce command line argument for
     sleep state enumeration) attempted to address this problem by adding
     a command line argument to change the meaning of the "mem" string in
     /sys/power/state to make it trigger suspend-to-idle (instead of
     suspend-to-RAM).

     However, there also are systems in which the platform does support
     special sleep states, but suspend-to-idle is the preferred one anyway
     (it even may save more energy than the platform-provided sleep states
     in some cases) and the above commit doesn't help in those cases.

     For this reason, rework the system sleep state selection interface
     again (but preserve backwards compatibiliby).  Namely, add a new
     sysfs file, /sys/power/mem_sleep, that will control the system
     suspend mode triggered by writing "mem" to /sys/power/state (in
     analogy with what /sys/power/disk does for hibernation).  Make it
     select suspend-to-RAM ("deep" sleep) by default (if supported) and
     fall back to suspend-to-idle ("s2idle") otherwise and add a new
     command line argument, mem_sleep_default, allowing that default to
     be overridden if need be.

     At the same time, drop the relative_sleep_states command line
     argument that doesn't make sense any more.

     Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
     Tested-by: Mario Limonciello <mario.limonciello@dell.com>

:040000 040000 a5770fe0413cbe7794eab28f72dfe8ede1f090c2 
a2882c77659517aa7137c930e0e7f178bc76bfbd M      Documentation
:040000 040000 2594b1a87815173e97199ef9d9c5918fec22fcfd 
fe0b69953be653644c5366ac631131fdbbdb9bcc M      kernel
$ git tag --contains 406e79385f3223d82272cf2be86bc95cd000a258
v4.10-rc1
v4.10-rc2
v4.10-rc3
Please find the config and the bisection log attached. Sometimes I had 
to cherry-pick build fix commits for PIE enabled GCC on top.

Rafael, do you want me to open a bug report for that? Mario, what 
systems did you actually test this on? (Why isn’t that listed in the 
commit message?) Mario, do you have access to Dell XPS13 (9360) devices 
to help getting this fixed?


Kind regards,

Paul

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help