mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: pm list <linux-pm@lists.linux-foundation.org>,
	LKML <linux-kernel@vger.kernel.org>, Len Brown <lenb@kernel.org>
Subject: Re: [RFC][PATCH 1/3] Suspend: Testing facility
Date: Sat, 3 Nov 2007 19:23:19 +0100	[thread overview]
Message-ID: <20071103182319.GC13202@elf.ucw.cz> (raw)
In-Reply-To: <200711012358.27919.rjw@sisk.pl>

Hi!

> Introduce /sys/power/pm_test_level attribute allowing one to test the suspend
> core code.  Namely, writing a number (1-5) to this file causes the suspend code
> to work in one of the test modes defined as follows:
> 
> 5 - test the freezing of processes
> 4 - test the freezing of processes and suspending of devices
> 3 - test the freezing of processes, suspending of devices and platform global
>     control methods
> 2 - test the freezing of processes, suspending of devices, platform global
>     control methods and the disabling of nonboot CPUs
> 1 - test the freezing of processes, suspending of devices, platform global
>     control methods, the disabling of nonboot CPUs and suspending of
>     platform/system devices
> 
> Then, if a suspend is started by normal means, the suspend core will perform
> its normal operations up to the point indicated by the test level.  Next, it
> will wait for 5 seconds and carry out the resume operations needed to transition
> the system back to the fully functional state.
> 
> Writing 0 to /sys/power/pm_test_level turns the testing off.  The current test
> level may be read from /sys/power/pm_test_level .
> 
> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>

ACK on whole series, but... should we also remove the old debugging
infrastructure? (Or did I just miss it?)
								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  parent reply	other threads:[~2007-11-03 18:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-01 22:57 [RFC][PATCH 0/3] Suspend and hibernation test facility Rafael J. Wysocki
2007-11-01 22:58 ` [RFC][PATCH 1/3] Suspend: Testing facility Rafael J. Wysocki
2007-11-02 10:33   ` [linux-pm] " Johannes Berg
2007-11-02 11:04     ` Rafael J. Wysocki
2007-11-03 18:23   ` Pavel Machek [this message]
2007-11-03 18:54     ` Rafael J. Wysocki
2007-11-01 22:59 ` [RFC][PATCH 2/3] Hibernation: New testing facility Rafael J. Wysocki
2007-11-01 23:00 ` [RFC][PATCH 3/3] PM: Suspend/hibernation debug documentation update Rafael J. Wysocki

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=20071103182319.GC13202@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=lenb@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=rjw@sisk.pl \
    /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

all inboxes | Powered by JetHome®