Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-27 Thread Alan Stern
On Thu, 27 Feb 2014, Rafael J. Wysocki wrote: > > If the child knows about the problem beforehand, it can runtime-resume > > the parent during its ->suspend. > > Well, it even should do that in those cases. We may need to deal with > children > that don't do that, though. > > > > Well, if

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-27 Thread Alan Stern
On Thu, 27 Feb 2014, Rafael J. Wysocki wrote: If the child knows about the problem beforehand, it can runtime-resume the parent during its -suspend. Well, it even should do that in those cases. We may need to deal with children that don't do that, though. Well, if

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-26 Thread Rafael J. Wysocki
On Wednesday, February 26, 2014 05:17:03 PM Alan Stern wrote: > On Wed, 26 Feb 2014, Rafael J. Wysocki wrote: > > > > > Still, I think that something like power.fast_suspend is needed to > > > > indicate > > > > that .suspend_late(), .suspend_noirq(), .resume_noirq() and > > > > .resume_early()

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-26 Thread Alan Stern
On Wed, 26 Feb 2014, Rafael J. Wysocki wrote: > > > Still, I think that something like power.fast_suspend is needed to > > > indicate > > > that .suspend_late(), .suspend_noirq(), .resume_noirq() and > > > .resume_early() > > > should be skipped for it (in my opinion the core may very well skip

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-26 Thread Rafael J. Wysocki
On Wednesday, February 26, 2014 11:49:05 AM Alan Stern wrote: > On Wed, 26 Feb 2014, Rafael J. Wysocki wrote: > > > > I admit, there most likely _are_ devices that would get into trouble if > > > the question ever did arise. > > > > Well, I kind of put that to a test by posting these two

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-26 Thread Alan Stern
On Wed, 26 Feb 2014, Rafael J. Wysocki wrote: > > I admit, there most likely _are_ devices that would get into trouble if > > the question ever did arise. > > Well, I kind of put that to a test by posting these two patches: > > https://patchwork.kernel.org/patch/3705261/ >

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-26 Thread Alan Stern
On Wed, 26 Feb 2014, Rafael J. Wysocki wrote: I admit, there most likely _are_ devices that would get into trouble if the question ever did arise. Well, I kind of put that to a test by posting these two patches: https://patchwork.kernel.org/patch/3705261/

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-26 Thread Rafael J. Wysocki
On Wednesday, February 26, 2014 11:49:05 AM Alan Stern wrote: On Wed, 26 Feb 2014, Rafael J. Wysocki wrote: I admit, there most likely _are_ devices that would get into trouble if the question ever did arise. Well, I kind of put that to a test by posting these two patches:

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-26 Thread Alan Stern
On Wed, 26 Feb 2014, Rafael J. Wysocki wrote: Still, I think that something like power.fast_suspend is needed to indicate that .suspend_late(), .suspend_noirq(), .resume_noirq() and .resume_early() should be skipped for it (in my opinion the core may very well skip them then)

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-26 Thread Rafael J. Wysocki
On Wednesday, February 26, 2014 05:17:03 PM Alan Stern wrote: On Wed, 26 Feb 2014, Rafael J. Wysocki wrote: Still, I think that something like power.fast_suspend is needed to indicate that .suspend_late(), .suspend_noirq(), .resume_noirq() and .resume_early() should be

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-25 Thread Rafael J. Wysocki
On Tuesday, February 25, 2014 12:08:14 PM Alan Stern wrote: > On Tue, 25 Feb 2014, Rafael J. Wysocki wrote: > > > > This discussion is getting a little messy. Let's try to clarify it. > > > Here is the major point: > > > > > > We would like to save time during system suspend/resume by > > >

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-25 Thread Alan Stern
On Tue, 25 Feb 2014, Rafael J. Wysocki wrote: > > This discussion is getting a little messy. Let's try to clarify it. > > Here is the major point: > > > > We would like to save time during system suspend/resume by > > Actually, that's not only about saving time, but also about saving

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-25 Thread Alan Stern
On Tue, 25 Feb 2014, Rafael J. Wysocki wrote: This discussion is getting a little messy. Let's try to clarify it. Here is the major point: We would like to save time during system suspend/resume by Actually, that's not only about saving time, but also about saving energy. Sure.

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-25 Thread Rafael J. Wysocki
On Tuesday, February 25, 2014 12:08:14 PM Alan Stern wrote: On Tue, 25 Feb 2014, Rafael J. Wysocki wrote: This discussion is getting a little messy. Let's try to clarify it. Here is the major point: We would like to save time during system suspend/resume by Actually, that's

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-24 Thread Rafael J. Wysocki
On Monday, February 24, 2014 02:36:02 PM Alan Stern wrote: > On Mon, 24 Feb 2014, Rafael J. Wysocki wrote: > > > Also, it may not do that today and I'd like to introduce a mechanism by > > which > > that optimizatiom may be enabled by subsystems/drivers when ready. > > > > So for example today

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-24 Thread Alan Stern
On Mon, 24 Feb 2014, Rafael J. Wysocki wrote: > Also, it may not do that today and I'd like to introduce a mechanism by which > that optimizatiom may be enabled by subsystems/drivers when ready. > > So for example today there is no guarantee that each device will be resumed > as appropriate by

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-24 Thread Alan Stern
On Mon, 24 Feb 2014, Rafael J. Wysocki wrote: Also, it may not do that today and I'd like to introduce a mechanism by which that optimizatiom may be enabled by subsystems/drivers when ready. So for example today there is no guarantee that each device will be resumed as appropriate by

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-24 Thread Rafael J. Wysocki
On Monday, February 24, 2014 02:36:02 PM Alan Stern wrote: On Mon, 24 Feb 2014, Rafael J. Wysocki wrote: Also, it may not do that today and I'd like to introduce a mechanism by which that optimizatiom may be enabled by subsystems/drivers when ready. So for example today there is no

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-23 Thread Rafael J. Wysocki
On Thursday, February 20, 2014 12:03:37 PM Alan Stern wrote: > On Thu, 20 Feb 2014, Rafael J. Wysocki wrote: > > > On Wednesday, February 19, 2014 12:01:20 PM Alan Stern wrote: > > > On Mon, 17 Feb 2014, Rafael J. Wysocki wrote: > > > > > > > From: Rafael J. Wysocki > > > > > > > > Currently,

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-23 Thread Rafael J. Wysocki
On Thursday, February 20, 2014 12:03:37 PM Alan Stern wrote: On Thu, 20 Feb 2014, Rafael J. Wysocki wrote: On Wednesday, February 19, 2014 12:01:20 PM Alan Stern wrote: On Mon, 17 Feb 2014, Rafael J. Wysocki wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-20 Thread Alan Stern
On Thu, 20 Feb 2014, Rafael J. Wysocki wrote: > On Wednesday, February 19, 2014 12:01:20 PM Alan Stern wrote: > > On Mon, 17 Feb 2014, Rafael J. Wysocki wrote: > > > > > From: Rafael J. Wysocki > > > > > > Currently, some subsystems (e.g. PCI and the ACPI PM domain) have to > > > resume all

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-20 Thread Alan Stern
On Thu, 20 Feb 2014, Rafael J. Wysocki wrote: On Wednesday, February 19, 2014 12:01:20 PM Alan Stern wrote: On Mon, 17 Feb 2014, Rafael J. Wysocki wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com Currently, some subsystems (e.g. PCI and the ACPI PM domain) have to

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-19 Thread Rafael J. Wysocki
On Thursday, February 20, 2014 02:23:30 AM Rafael J. Wysocki wrote: > On Wednesday, February 19, 2014 12:01:20 PM Alan Stern wrote: > > On Mon, 17 Feb 2014, Rafael J. Wysocki wrote: > > > > > From: Rafael J. Wysocki > > > > > > Currently, some subsystems (e.g. PCI and the ACPI PM domain) have

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-19 Thread Rafael J. Wysocki
On Wednesday, February 19, 2014 12:01:20 PM Alan Stern wrote: > On Mon, 17 Feb 2014, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > Currently, some subsystems (e.g. PCI and the ACPI PM domain) have to > > resume all runtime-suspended devices during system suspend, mostly > >

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-19 Thread Alan Stern
On Mon, 17 Feb 2014, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Currently, some subsystems (e.g. PCI and the ACPI PM domain) have to > resume all runtime-suspended devices during system suspend, mostly > because those devices may need to be reprogrammed due to different > wakeup

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-19 Thread Alan Stern
On Mon, 17 Feb 2014, Rafael J. Wysocki wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com Currently, some subsystems (e.g. PCI and the ACPI PM domain) have to resume all runtime-suspended devices during system suspend, mostly because those devices may need to be reprogrammed due to

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-19 Thread Rafael J. Wysocki
On Wednesday, February 19, 2014 12:01:20 PM Alan Stern wrote: On Mon, 17 Feb 2014, Rafael J. Wysocki wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com Currently, some subsystems (e.g. PCI and the ACPI PM domain) have to resume all runtime-suspended devices during system

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-19 Thread Rafael J. Wysocki
On Thursday, February 20, 2014 02:23:30 AM Rafael J. Wysocki wrote: On Wednesday, February 19, 2014 12:01:20 PM Alan Stern wrote: On Mon, 17 Feb 2014, Rafael J. Wysocki wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com Currently, some subsystems (e.g. PCI and the ACPI PM

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-18 Thread Rafael J. Wysocki
On Tuesday, February 18, 2014 01:59:36 PM Ulf Hansson wrote: > On 17 February 2014 00:50, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Currently, some subsystems (e.g. PCI and the ACPI PM domain) have to > > resume all runtime-suspended devices during system suspend, mostly > >

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-18 Thread Ulf Hansson
On 17 February 2014 00:50, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Currently, some subsystems (e.g. PCI and the ACPI PM domain) have to > resume all runtime-suspended devices during system suspend, mostly > because those devices may need to be reprogrammed due to different >

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-18 Thread Ulf Hansson
On 17 February 2014 00:50, Rafael J. Wysocki r...@rjwysocki.net wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com Currently, some subsystems (e.g. PCI and the ACPI PM domain) have to resume all runtime-suspended devices during system suspend, mostly because those devices may need to

Re: [PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-18 Thread Rafael J. Wysocki
On Tuesday, February 18, 2014 01:59:36 PM Ulf Hansson wrote: On 17 February 2014 00:50, Rafael J. Wysocki r...@rjwysocki.net wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com Currently, some subsystems (e.g. PCI and the ACPI PM domain) have to resume all runtime-suspended devices

[PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-16 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Currently, some subsystems (e.g. PCI and the ACPI PM domain) have to resume all runtime-suspended devices during system suspend, mostly because those devices may need to be reprogrammed due to different wakeup settings for system sleep and for runtime PM. However, at

[PATCH 1/3] PM / sleep: New flag to speed up suspend-resume of suspended devices

2014-02-16 Thread Rafael J. Wysocki
From: Rafael J. Wysocki rafael.j.wyso...@intel.com Currently, some subsystems (e.g. PCI and the ACPI PM domain) have to resume all runtime-suspended devices during system suspend, mostly because those devices may need to be reprogrammed due to different wakeup settings for system sleep and for