Message ID | 20160812062241.GB30992@amd (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
Hi Pavel, > -----Original Message----- > From: Pavel Machek [mailto:pavel@ucw.cz] > Sent: Friday, August 12, 2016 2:23 PM > To: Chen, Yu C > Cc: Linux PM List; Rafael J. Wysocki; Len Brown; linux-kernel@vger.kernel.org > Subject: Re: [PATCH][RFC] Documentation/: update hibernation debug > documentation > > Hi! > > > Update the description of test_resume mode for hibernation. > > > > Signed-off-by: Chen Yu <yu.c.chen@intel.com> > > --- > > Documentation/power/basic-pm-debugging.txt | 7 +++++++ > > 1 file changed, 7 insertions(+) > > That's certainly step in the right direction, but I guess it should be mentioned in > the other places, too. Something like this? > > Additionally, we have testproc. Should we move it to test_proc for consistency > (or replace test_resume with simple "resume"? That's what it does... it is > hibernate+resume... It looks like testproc has been removed in commit 48580ab8729865c81e148d59159fbe2aa7865511, so I think we can replace 'testproc/test' with 'resume' in interface.txt and add some description in it, I'll do that, thanks. Yu -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Fri, Aug 12, 2016 at 1:46 PM, Chen, Yu C <yu.c.chen@intel.com> wrote: > Hi Pavel, > >> -----Original Message----- >> From: Pavel Machek [mailto:pavel@ucw.cz] >> Sent: Friday, August 12, 2016 2:23 PM >> To: Chen, Yu C >> Cc: Linux PM List; Rafael J. Wysocki; Len Brown; linux-kernel@vger.kernel.org >> Subject: Re: [PATCH][RFC] Documentation/: update hibernation debug >> documentation >> >> Hi! >> >> > Update the description of test_resume mode for hibernation. >> > >> > Signed-off-by: Chen Yu <yu.c.chen@intel.com> >> > --- >> > Documentation/power/basic-pm-debugging.txt | 7 +++++++ >> > 1 file changed, 7 insertions(+) >> >> That's certainly step in the right direction, but I guess it should be mentioned in >> the other places, too. Something like this? >> >> Additionally, we have testproc. Should we move it to test_proc for consistency >> (or replace test_resume with simple "resume"? That's what it does... it is >> hibernate+resume... > It looks like testproc has been removed in > commit 48580ab8729865c81e148d59159fbe2aa7865511, Yes, it was removed, back in 2011. > so I think we can replace 'testproc/test' with 'resume' in interface.txt and add some description in it, > I'll do that, thanks. You mean "test_resume" I suppose? Clearly, the documentation needs to be updated. Let me take care of that later today. Thanks, Rafael -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
DQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IHJqd3lzb2NraUBnbWFpbC5j b20gW21haWx0bzpyand5c29ja2lAZ21haWwuY29tXSBPbiBCZWhhbGYgT2YNCj4gUmFmYWVsIEou IFd5c29ja2kNCj4gU2VudDogRnJpZGF5LCBBdWd1c3QgMTIsIDIwMTYgNzo1NCBQTQ0KPiBUbzog Q2hlbiwgWXUgQw0KPiBDYzogUGF2ZWwgTWFjaGVrOyBMaW51eCBQTSBMaXN0OyBSYWZhZWwgSi4g V3lzb2NraTsgTGVuIEJyb3duOyBsaW51eC0NCj4ga2VybmVsQHZnZXIua2VybmVsLm9yZw0KPiBT dWJqZWN0OiBSZTogW1BBVENIXVtSRkNdIERvY3VtZW50YXRpb24vOiB1cGRhdGUgaGliZXJuYXRp b24gZGVidWcNCj4gZG9jdW1lbnRhdGlvbg0KPiANCj4gT24gRnJpLCBBdWcgMTIsIDIwMTYgYXQg MTo0NiBQTSwgQ2hlbiwgWXUgQyA8eXUuYy5jaGVuQGludGVsLmNvbT4gd3JvdGU6DQo+ID4gSGkg UGF2ZWwsDQo+ID4NCj4gPj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gPj4gRnJvbTog UGF2ZWwgTWFjaGVrIFttYWlsdG86cGF2ZWxAdWN3LmN6XQ0KPiA+PiBTZW50OiBGcmlkYXksIEF1 Z3VzdCAxMiwgMjAxNiAyOjIzIFBNDQo+ID4+IFRvOiBDaGVuLCBZdSBDDQo+ID4+IENjOi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Bpcw0KPiA+PiBoaWJlcm5hdGUrcmVzdW1lLi4uDQo+ID4gSXQgbG9v a3MgbGlrZSB0ZXN0cHJvYyBoYXMgYmVlbiByZW1vdmVkIGluIGNvbW1pdA0KPiA+IDQ4NTgwYWI4 NzI5ODY1YzgxZTE0OGQ1OTE1OWZiZTJhYTc4NjU1MTEsDQo+IA0KPiBZZXMsIGl0IHdhcyByZW1v dmVkLCBiYWNrIGluIDIwMTEuDQo+IA0KPiA+IHNvIEkgdGhpbmsgd2UgY2FuIHJlcGxhY2UgJ3Rl c3Rwcm9jL3Rlc3QnIHdpdGggJ3Jlc3VtZScgaW4NCj4gPiBpbnRlcmZhY2UudHh0IGFuZCBhZGQg c29tZSBkZXNjcmlwdGlvbiBpbiBpdCwgSSdsbCBkbyB0aGF0LCB0aGFua3MuDQo+IA0KPiBZb3Ug bWVhbiAidGVzdF9yZXN1bWUiIEkgc3VwcG9zZT8NClllcy4NCj4gDQo+IENsZWFybHksIHRoZSBk b2N1bWVudGF0aW9uIG5lZWRzIHRvIGJlIHVwZGF0ZWQuDQo+IA0KPiBMZXQgbWUgdGFrZSBjYXJl IG9mIHRoYXQgbGF0ZXIgdG9kYXkuDQpPSywgdGhhbmtzIQ0KDQpZdQ0K -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/Documentation/power/interface.txt b/Documentation/power/interface.txt index f1f0f59a..d4ac8f7 100644 --- a/Documentation/power/interface.txt +++ b/Documentation/power/interface.txt @@ -23,8 +23,8 @@ few options for putting the system to sleep - using the platform driver (e.g. ACPI or other suspend_ops), powering off the system or rebooting the system (for testing). -Additionally, /sys/power/disk can be used to turn on one of the two testing -modes of the suspend-to-disk mechanism: 'testproc' or 'test'. If the +Additionally, /sys/power/disk can be used to turn on one of the three testing +modes of the suspend-to-disk mechanism: 'test_resume', 'testproc' or 'test'. If the suspend-to-disk mechanism is in the 'testproc' mode, writing 'disk' to /sys/power/state will cause the kernel to disable nonboot CPUs and freeze tasks, wait for 5 seconds, unfreeze tasks and enable nonboot CPUs. If it is @@ -32,12 +32,13 @@ in the 'test' mode, writing 'disk' to /sys/power/state will cause the kernel to disable nonboot CPUs and freeze tasks, shrink memory, suspend devices, wait for 5 seconds, resume devices, unfreeze tasks and enable nonboot CPUs. Then, we are able to look in the log messages and work out, for example, which code -is being slow and which device drivers are misbehaving. +is being slow and which device drivers are misbehaving. In 'test_resume' mode, +... (insert your description here). Reading from this file will display all supported modes and the currently selected one in brackets, for example - [shutdown] reboot test testproc + [shutdown] reboot test testproc test_resume Writing to this file will accept one of