linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Linux PM list <linux-pm@vger.kernel.org>
Subject: Re: hibernation fails from kexec'ed kernel
Date: Sat, 12 Jan 2013 21:06:28 +0100	[thread overview]
Message-ID: <50F1C244.9000209@gmail.com> (raw)
In-Reply-To: <4354889.LUp82ppzIy@vostro.rjw.lan>

On 01/12/2013 09:06 PM, Rafael J. Wysocki wrote:
> On Saturday, January 12, 2013 06:26:27 PM Jiri Slaby wrote:
>> On 01/12/2013 04:47 PM, Jiri Slaby wrote:
>>> Hi,
>>>
>>> when I try to hibernate and resume from a kexec'ed kernel, the resume
>>> fails with:
>>> PM: Image not found (code -22)
>>>
>>> I dumped sig and orig_sig from swsusp_check and it looks like this:
>>> 53 57 41 50 53 50 41 43 45 32                    SWAPSPACE2
>>> 53 57 41 50 53 50 41 43 45 32                    SWAPSPACE2
>>>
>>> So it looks like the image (or only the signature) did not land to the disk.
>>
>> Note that I see "PM: S|" and the error returned from mark_swapfiles is 0.
>>
>>> I use only the in-kernel hibernation, I do not even have the suspend
>>> package installed. This is with 3.7.2 and happens this way for some time
>>> already. When I boot the kernel normally, hib+resume works just fine.
>>>
>>> Any ideas?
> 
> Quite frankly, I'm not really surprised, because this is the first time I know
> of anybody has tested hibernate and resume from a kexec'ed kernel.

It's quite usual and natural, that people kexec to a new kernel, I
think. I used to do that for a long time, but it stopped workign at some
point.

> I have no idea why exactly it doesn't work, though.

I'm trying to debug that ATM...

> Did you use s2disk or the internal hibernation?

As I write above, I don't have suspend package installed. This is a pure
in-kernel implementation.

-- 
js

  reply	other threads:[~2013-01-12 20:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-12 15:47 hibernation fails from kexec'ed kernel Jiri Slaby
2013-01-12 17:26 ` Jiri Slaby
2013-01-12 20:06   ` Rafael J. Wysocki
2013-01-12 20:06     ` Jiri Slaby [this message]
2013-01-12 21:32       ` Rafael J. Wysocki
2013-01-13 20:35         ` Jiri Slaby

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=50F1C244.9000209@gmail.com \
    --to=jirislaby@gmail.com \
    --cc=linux-pm@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).