Re: 2.6.25-rc2 System no longer powers off after suspend-to-disk. Screen becomes green.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jesse Barnes <jesse.barnes@...>
Cc: Linus Torvalds <torvalds@...>, Rafael J. Wysocki <rjw@...>, Jeff Chua <jeff.chua.linux@...>, lkml <linux-kernel@...>, Dave Airlie <airlied@...>, <linux-acpi@...>, suspend-devel List <suspend-devel@...>, Greg KH <gregkh@...>
Date: Wednesday, February 20, 2008 - 6:45 pm

Hi.

Jesse Barnes wrote:

No. AFAICS, kexec is going to be more complex and ugly in many ways.

To summarise, a kexec based hibernation is going to need the following 
additional requirements to just replace what we already have:

- get the original kernel to allocate storage while racing against the 
rest of the system (currently allocation is done post-atomic copy & 
post-freezing - no racing). This makes it potentially slower, too;
- get the original kernel to transfer the information about what swap 
was allocated to the kexec'd kernel, probably together with a lot of 
other information (which pages are nosave etc).
- get the original kernel to keep memory free for the kexec'd kernel 
which would otherwise be usable. Not a biggy on desktops or laptops, but 
think about embedded.
- people keep talking about hibernating to an ext3 fs mounted on fuse as 
a limitation of the freezer. To do that with kexec, you're still going 
to have to bmap the ext3 fs and pass the block list (in which case we 
can also do it without kexec) or umount all the ext3/fuse part and 
remount in the kexec'd kernel. Sort of defeats the purpose, doesn't it?

I also wonder about how much of a pain it's going to be setting up 
userspace for this kexec'd kernel. Will you need a separate partition 
just for it? If not, will the userspace be loaded into memory all the 
time (more memory wasted for normal use), or loaded from ordinary 
partitions at kexec time (how to do safely? - more info to transfer 
between kernels?).

I'd love it if kexec really was the panacea to the freezer issues, but 
problems like these make me think it isn't a viable solution.

Nigel
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: 2.6.25-rc2 System no longer powers off after suspend-to-..., Rafael J. Wysocki, (Wed Feb 20, 7:49 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off a..., Rafael J. Wysocki, (Wed Feb 20, 9:07 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off a..., Rafael J. Wysocki, (Thu Feb 21, 12:27 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off a..., Rafael J. Wysocki, (Thu Feb 21, 6:11 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off a..., Rafael J. Wysocki, (Thu Feb 21, 8:28 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off a..., Rafael J. Wysocki, (Thu Feb 21, 4:30 pm)
Re: 2.6.25-rc2 System no longer powers off after suspend-to-..., Rafael J. Wysocki, (Wed Feb 20, 4:14 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off a..., Rafael J. Wysocki, (Wed Feb 20, 4:45 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off a..., Alexey Starikovskiy, (Wed Feb 20, 5:26 pm)
Re: 2.6.25-rc2 System no longer powers off after suspend-to-..., Nigel Cunningham, (Wed Feb 20, 6:45 pm)
Re: 2.6.25-rc2 System no longer powers off after suspend-to-..., Rafael J. Wysocki, (Wed Feb 20, 6:36 pm)
Re: 2.6.25-rc2 System no longer powers off after suspend-to-..., Rafael J. Wysocki, (Wed Feb 20, 7:35 pm)
Re: 2.6.25-rc2 System no longer powers off after suspend-to-..., Rafael J. Wysocki, (Wed Feb 20, 8:13 pm)
Re: 2.6.25-rc2 System no longer powers off after suspend-to-..., Rafael J. Wysocki, (Wed Feb 20, 8:59 pm)
Re: 2.6.25-rc2 System no longer powers off after suspend-to-..., Rafael J. Wysocki, (Fri Feb 22, 1:02 pm)
Re: 2.6.25-rc2 System no longer powers off after suspend-to-..., Rafael J. Wysocki, (Fri Feb 22, 1:44 pm)
Re: 2.6.25-rc2 System no longer powers off after suspend-to-..., Rafael J. Wysocki, (Fri Feb 22, 7:16 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off a..., Rafael J. Wysocki, (Fri Feb 22, 12:10 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off a..., Rafael J. Wysocki, (Thu Feb 21, 8:31 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off a..., Rafael J. Wysocki, (Thu Feb 21, 8:54 pm)
i915 hibernation patch (was: Re: [Suspend-devel] 2.6.25-rc2 ..., Rafael J. Wysocki, (Fri Feb 22, 7:31 pm)
Re: i915 hibernation patch (was: Re: [Suspend-devel] 2.6.25-..., Rafael J. Wysocki, (Fri Feb 22, 9:55 pm)
[PATCH] PM: Introduce PM_EVENT_HIBERNATE (was: Re: i915 hibe..., Rafael J. Wysocki, (Sat Feb 23, 2:13 pm)
Re: [PATCH] PM: Introduce PM_EVENT_HIBERNATE (was: Re: i915 ..., Rafael J. Wysocki, (Sun Feb 24, 7:11 am)
Re: [PATCH] PM: Introduce PM_EVENT_HIBERNATE (was: Re: i915 ..., Rafael J. Wysocki, (Sun Feb 24, 7:25 am)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off a..., Rafael J. Wysocki, (Thu Feb 21, 9:06 pm)