public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Brad Campbell <brad@wasp.net.au>
Cc: linux-pm@lists.linux-foundation.org
Subject: Re: 32 bit s2disk on 64 bit kernel
Date: Thu, 16 Jun 2011 19:58:23 +0200	[thread overview]
Message-ID: <201106161958.23398.rjw@sisk.pl> (raw)
In-Reply-To: <4DFA1DA5.1010502@wasp.net.au>

On Thursday, June 16, 2011, Brad Campbell wrote:
> <oops, sent this to the wrong list..>

Not really, the list is exactly right. :-)

> I run an entirely 32 bit userspace on a 64bit kernel. I've compiled suspend-utils from todays git 
> tree. trying to use s2disk results in the following :
> 
> Is this a supported configuration?

No, it isn't.

> brad@bklaptop:~$ sudo s2disk
> s2disk: Could not use the resume device (try swapon -a). Reason: Invalid argument
> brad@bklaptop:~$ dmesg | tail -n3
> [  823.530812] video LNXVIDEO:00: Restoring backlight state
> [  834.100071] iwlagn 0000:02:00.0: iwlagn_tx_agg_start on ra = 00:26:f2:94:ba:59 tid = 0
> [  842.392066] iwlagn 0000:02:00.0: iwlagn_tx_agg_start on ra = 00:26:f2:94:ba:59 tid = 0
> 
> snip of strace
> open("resume", O_RDWR|O_LARGEFILE)      = 3
> stat64("/dev/snapshot", {st_mode=S_IFCHR|0660, st_rdev=makedev(10, 231), ...}) = 0
> open("/dev/snapshot", O_RDONLY|O_LARGEFILE) = 4
> ioctl(4, 0x400c330d, 0xffe07a3c)        = -1 EINVAL (Invalid argument)
> ioctl(4, 0x4004330a, 0x805)             = -1 EINVAL (Invalid argument)
> write(2, "s2disk: Could not use the resume"..., 82s2disk: Could not use the resume device (try 
> swapon -a). Reason: Invalid argument
> 
> echo mem > /sys/power/state
> .. works fine, but no compression, status or encryption.

That is a totally different thing, it simply preserves the contents of RAM.

Thanks,
Rafael

  reply	other threads:[~2011-06-16 17:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-16 15:13 32 bit s2disk on 64 bit kernel Brad Campbell
2011-06-16 17:58 ` Rafael J. Wysocki [this message]
2011-06-16 23:50   ` Brad Campbell
2011-06-17  2:52     ` Brad Campbell
2011-06-17 19:25       ` Rafael J. Wysocki
2011-06-18  0:52         ` Brad Campbell
2011-06-18 10:44           ` 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=201106161958.23398.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=brad@wasp.net.au \
    --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