public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Mario.Limonciello@dell.com
Cc: pmenzel@molgen.mpg.de, rafael.j.wysocki@intel.com,
	linux@leemhuis.info, tomas.winkler@intel.com, jan@gondor.com,
	alexander.usyskin@intel.com, linux-kernel@vger.kernel.org,
	yu.c.chen@intel.com, tomi.p.sarvela@intel.com, daniel@quora.org,
	len.brown@intel.com, linux-pm@vger.kernel.org
Subject: Re: Regression on Dell XPS13 (was: [char-misc for 4.10-rc4 V2] mei: bus: enable OS version only for SPT and newer)
Date: Tue, 17 Jan 2017 19:23:37 +0100	[thread overview]
Message-ID: <20170117182337.GB12600@kroah.com> (raw)
In-Reply-To: <954f9b4e8bd844c98f8d3c12f0fe366f@ausx13mpc120.AMER.DELL.COM>

On Tue, Jan 17, 2017 at 04:57:49PM +0000, Mario.Limonciello@dell.com wrote:
> So in the <6s scenario, the intel-hid driver is responsible to receive the ACPI
> event and process accordingly.  The maintainer has a patch ready for the intel-hid
> portion of this work, but it's currently being reviewed by Intel to ensure it
> can be legally submitted into the kernel.

Who at Intel do I need to go kick to make this mythical legal review
happen faster so we can see the code?

Len and Rafael, what is going on here?

> > 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?
> > 
> 
> I tested this on several systems and ensured that the kernel was doing the
> right thing in terms of choosing the correct state to go into.
> 
> As I mentioned above, those behaviors are currently expected until these
> types issues are identified and fixed in the proper subsystems.  If they
> end up being troublesome to resolve, it's possible to quirk individual systems,
> to disable this behavior and return to traditional S3 but I would prefer to actually 
> identify and fix the various problems so that we can push the Linux stack forward.

If the machine stops working on a newer kernel when it used to work
before, then you need to either revert the change, or provide a fix for
it.

I think I might have access to a newer Dell XPS13 now, I'll try to set
it up tomorrow to test 4.10-rc4 out...

thanks,

greg k-h

  reply	other threads:[~2017-01-17 18:33 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-10 23:27 [char-misc for 4.10-rc4 V2] mei: bus: enable OS version only for SPT and newer Tomas Winkler
2017-01-10 22:49 ` Jan Niehusmann
2017-01-11  9:24   ` Winkler, Tomas
2017-01-11 10:20     ` Paul Menzel
2017-01-11 10:57       ` Winkler, Tomas
2017-01-11 14:12       ` Winkler, Tomas
2017-01-11 14:26         ` Paul Menzel
2017-01-11 16:10           ` Winkler, Tomas
2017-01-13 13:00           ` Greg Kroah-Hartman
2017-01-14 19:27             ` Paul Menzel
2017-01-14 19:39               ` Greg Kroah-Hartman
2017-01-15  7:19                 ` Winkler, Tomas
2017-01-15 10:58                   ` Greg Kroah-Hartman
2017-01-16 11:05                     ` Greg Kroah-Hartman
2017-01-17  8:14                       ` Thorsten Leemhuis
2017-01-17 14:34                         ` Regression on Dell XPS13 (was: [char-misc for 4.10-rc4 V2] mei: bus: enable OS version only for SPT and newer) Paul Menzel
2017-01-17 16:57                           ` Mario.Limonciello
2017-01-17 18:23                             ` Greg KH [this message]
2017-01-17 18:38                               ` Mario.Limonciello
2017-01-17 23:33                                 ` Darren Hart
2017-01-20 23:11                                   ` Mario.Limonciello
2017-01-21  9:11                                     ` Greg KH
2017-01-21 11:49                                       ` Rafael J. Wysocki
2017-01-22 11:25                                         ` Greg KH
2017-01-24 20:24                                       ` Mario.Limonciello
2017-01-22  9:45                                     ` Rafael J. Wysocki
2017-01-24 20:14                                       ` Mario.Limonciello
2017-01-18  2:18                             ` Rafael J. Wysocki
2017-01-18 11:11                               ` Regression on Dell XPS13 Paul Menzel
2017-01-18 11:30                                 ` Rafael J. Wysocki
2017-01-17 17:29                           ` Thorsten Leemhuis

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=20170117182337.GB12600@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=Mario.Limonciello@dell.com \
    --cc=alexander.usyskin@intel.com \
    --cc=daniel@quora.org \
    --cc=jan@gondor.com \
    --cc=len.brown@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux@leemhuis.info \
    --cc=pmenzel@molgen.mpg.de \
    --cc=rafael.j.wysocki@intel.com \
    --cc=tomas.winkler@intel.com \
    --cc=tomi.p.sarvela@intel.com \
    --cc=yu.c.chen@intel.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