Re: [PATCH 2/2] Fix console handling during suspend/resume

David Brownell
2006-06-16T14:04:33Z

On Thursday 15 June 2006 11:03 am, Pavel Machek wrote:

> >
> > In this case, DMA only would need to be prevented during the actual
> > construction of the snapshot -- which is AFTER that "prepare to
> > suspend" phase, notice! -- so your straw-man doesn't apply.
>
> Okay, you _can_ do
>
> suspend whole tree but disk and video
> freeze disk and video
> create snapshot
> unfreeze disk and video
> write snapshot
> powerdown
>
> Question is: looks to me like quite a lot of complexity for very
> little gain, but...

It's not so different from what Linus has been sketching, except
for the actual turn-off-DMA step. (Needed because you want to get
an atomic snapshot.) In terms of $SUBJECT the gain is that you
actually get a debuggable suspend sequence.