public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* 32 bit s2disk on 64 bit kernel
@ 2011-06-16 15:13 Brad Campbell
  2011-06-16 17:58 ` Rafael J. Wysocki
  0 siblings, 1 reply; 7+ messages in thread
From: Brad Campbell @ 2011-06-16 15:13 UTC (permalink / raw)
  To: linux-pm

<oops, sent this to the wrong list..>

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?

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.

Regards,
Brad
-- 
Dolphins are so intelligent that within a few weeks they can
train Americans to stand at the edge of the pool and throw them
fish.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 32 bit s2disk on 64 bit kernel
  2011-06-16 15:13 32 bit s2disk on 64 bit kernel Brad Campbell
@ 2011-06-16 17:58 ` Rafael J. Wysocki
  2011-06-16 23:50   ` Brad Campbell
  0 siblings, 1 reply; 7+ messages in thread
From: Rafael J. Wysocki @ 2011-06-16 17:58 UTC (permalink / raw)
  To: Brad Campbell; +Cc: linux-pm

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 32 bit s2disk on 64 bit kernel
  2011-06-16 17:58 ` Rafael J. Wysocki
@ 2011-06-16 23:50   ` Brad Campbell
  2011-06-17  2:52     ` Brad Campbell
  0 siblings, 1 reply; 7+ messages in thread
From: Brad Campbell @ 2011-06-16 23:50 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-pm

On 17/06/11 01:58, Rafael J. Wysocki wrote:
> On Thursday, June 16, 2011, Brad Campbell wrote:
>> <oops, sent this to the wrong list..>
>
> Not really, the list is exactly right. :-)

I sent the first copy to the power list by mistake.

>> 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.

Hrm.. ok thanks for that. Back to tuxonice I guess.

Regards,
Brad
-- 
Dolphins are so intelligent that within a few weeks they can
train Americans to stand at the edge of the pool and throw them
fish.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 32 bit s2disk on 64 bit kernel
  2011-06-16 23:50   ` Brad Campbell
@ 2011-06-17  2:52     ` Brad Campbell
  2011-06-17 19:25       ` Rafael J. Wysocki
  0 siblings, 1 reply; 7+ messages in thread
From: Brad Campbell @ 2011-06-17  2:52 UTC (permalink / raw)
  To: linux-pm

On 17/06/11 07:50, Brad Campbell wrote:
>>> 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.
>
> Hrm.. ok thanks for that. Back to tuxonice I guess.

Scratch that. I compiled up suspend-utils on a 64 bit machine with an added -all-static ld flag and 
it's working great.

I would have thought that with the proliferation of 64 bit procs in laptops that this configuration 
would be more prevalent, but perhaps I'm an oddball.

Regards,
Brad
-- 
Dolphins are so intelligent that within a few weeks they can
train Americans to stand at the edge of the pool and throw them
fish.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 32 bit s2disk on 64 bit kernel
  2011-06-17  2:52     ` Brad Campbell
@ 2011-06-17 19:25       ` Rafael J. Wysocki
  2011-06-18  0:52         ` Brad Campbell
  0 siblings, 1 reply; 7+ messages in thread
From: Rafael J. Wysocki @ 2011-06-17 19:25 UTC (permalink / raw)
  To: linux-pm

On Friday, June 17, 2011, Brad Campbell wrote:
> On 17/06/11 07:50, Brad Campbell wrote:
> >>> 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.
> >
> > Hrm.. ok thanks for that. Back to tuxonice I guess.
> 
> Scratch that. I compiled up suspend-utils on a 64 bit machine with an added -all-static ld flag and 
> it's working great.
> 
> I would have thought that with the proliferation of 64 bit procs in laptops that this configuration 
> would be more prevalent, but perhaps I'm an oddball.

Do you mean 32-bit user space with 64-bit kernel?

Rafael

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 32 bit s2disk on 64 bit kernel
  2011-06-17 19:25       ` Rafael J. Wysocki
@ 2011-06-18  0:52         ` Brad Campbell
  2011-06-18 10:44           ` Rafael J. Wysocki
  0 siblings, 1 reply; 7+ messages in thread
From: Brad Campbell @ 2011-06-18  0:52 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-pm

On 18/06/11 03:25, Rafael J. Wysocki wrote:
>>
>> Scratch that. I compiled up suspend-utils on a 64 bit machine with an added -all-static ld flag and
>> it's working great.
>>
>> I would have thought that with the proliferation of 64 bit procs in laptops that this configuration
>> would be more prevalent, but perhaps I'm an oddball.
>
> Do you mean 32-bit user space with 64-bit kernel?

Yes.

It turns out Virtualbox can't cope with a 32bit userspace on a 64bit kernel either (which is no 
bother as I now have a kvm capable CPU, and kvm copes nicely).

I have it working, but of course it's too much of a pain to get splashy & directfb and the rest of 
the playground fun to compile and link statically. The text screen is enough for me anyway.

Regards,
Brad
-- 
Dolphins are so intelligent that within a few weeks they can
train Americans to stand at the edge of the pool and throw them
fish.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 32 bit s2disk on 64 bit kernel
  2011-06-18  0:52         ` Brad Campbell
@ 2011-06-18 10:44           ` Rafael J. Wysocki
  0 siblings, 0 replies; 7+ messages in thread
From: Rafael J. Wysocki @ 2011-06-18 10:44 UTC (permalink / raw)
  To: Brad Campbell; +Cc: linux-pm

On Saturday, June 18, 2011, Brad Campbell wrote:
> On 18/06/11 03:25, Rafael J. Wysocki wrote:
> >>
> >> Scratch that. I compiled up suspend-utils on a 64 bit machine with an added -all-static ld flag and
> >> it's working great.
> >>
> >> I would have thought that with the proliferation of 64 bit procs in laptops that this configuration
> >> would be more prevalent, but perhaps I'm an oddball.
> >
> > Do you mean 32-bit user space with 64-bit kernel?
> 
> Yes.

It's not too common as far as I can tell.  User space can get some
advantage from 64-bitness too. :-)

> It turns out Virtualbox can't cope with a 32bit userspace on a 64bit kernel
> either (which is no bother as I now have a kvm capable CPU, and kvm copes nicely).
> 
> I have it working, but of course it's too much of a pain to get splashy & directfb
> and the rest of the playground fun to compile and link statically. The text screen
> is enough for me anyway.

Good, thanks for your feedback!

Rafael

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-06-18 10:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-16 15:13 32 bit s2disk on 64 bit kernel Brad Campbell
2011-06-16 17:58 ` Rafael J. Wysocki
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox