public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Alexandre Felipe Muller de Souza <alexandrefm@mandriva.com.br>
Cc: Linux PM mailing list <linux-pm@lists.linux-foundation.org>
Subject: Re: [PATCH] Power Manager suspend-hybrid warn on systemlog
Date: Sat, 7 May 2011 00:12:05 +0200	[thread overview]
Message-ID: <201105070012.05863.rjw@sisk.pl> (raw)
In-Reply-To: <1303930856.17485.1.camel@localhost.localdomain>

On Wednesday, April 27, 2011, Alexandre Felipe Muller de Souza wrote:
> Those lines are the last lines of dmesg.
> I think it was at "waking up" process.

Hmm.  I have found a bug, but I'm not sure it's this one still.

Please apply the appended patch on top of the previous one (i.e. the
second of my patches) and check if that helps.

Thanks,
Rafael
 

---
From: Rafael J. Wysocki <rjw@sisk.pl>
Subject: PM / Hibernate: Fix ioctl SNAPSHOT_S2RAM

The SNAPSHOT_S2RAM ioctl used for implementing the feature allowing
one to suspend to RAM after creating a hibernation image is currently
broken, because it doesn't clear the "ready" flag in the struct
snapshot_data object handled by it.  As a result, the
SNAPSHOT_UNFREEZE doesn't work correctly after SNAPSHOT_S2RAM has
returned and the user space hibernate task cannot thaw the other
processes as appropriate.  Make SNAPSHOT_S2RAM clear data->ready
to fix this problem.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
---
 kernel/power/user.c |    1 +
 1 file changed, 1 insertion(+)

Index: linux-2.6/kernel/power/user.c
===================================================================
--- linux-2.6.orig/kernel/power/user.c
+++ linux-2.6/kernel/power/user.c
@@ -381,6 +381,7 @@ static long snapshot_ioctl(struct file *
 		 * PM_HIBERNATION_PREPARE
 		 */
 		error = suspend_devices_and_enter(PM_SUSPEND_MEM);
+		data->ready = 0;
 		break;
 
 	case SNAPSHOT_PLATFORM_SUPPORT:

  parent reply	other threads:[~2011-05-06 22:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1298384175.8390.25.camel@localhost.localdomain>
     [not found] ` <20110405161616.GC1615@ucw.cz>
     [not found]   ` <201104251258.04148.rjw@sisk.pl>
2011-04-25 21:47     ` [PATCH] Power Manager suspend-hybrid warn on systemlog Rafael J. Wysocki
     [not found]     ` <201104252347.18955.rjw@sisk.pl>
2011-04-26 18:49       ` Alexandre Felipe Muller de Souza
     [not found]       ` <1303843772.18061.12.camel@localhost.localdomain>
2011-04-26 20:36         ` Rafael J. Wysocki
     [not found] ` <201104262236.10340.rjw@sisk.pl>
     [not found]   ` <1303930856.17485.1.camel@localhost.localdomain>
2011-05-06 22:12     ` Rafael J. Wysocki [this message]
2011-05-10 18:10       ` Alexandre Felipe Muller de Souza
2011-05-10 19:06         ` 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=201105070012.05863.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=alexandrefm@mandriva.com.br \
    --cc=linux-pm@lists.linux-foundation.org \
    /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