[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200704252233.25296.rjw@sisk.pl>
Date: Wed, 25 Apr 2007 22:33:23 +0200
From: "Rafael J. Wysocki" <rjw@...k.pl>
To: Pavel Machek <pavel@....cz>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
Adrian Bunk <bunk@...sta.de>, Ingo Molnar <mingo@...e.hu>,
Nigel Cunningham <nigel@...el.suspend2.net>,
Christian Hesse <mail@...thworm.de>,
Nick Piggin <npiggin@...e.de>, Mike Galbraith <efault@....de>,
linux-kernel@...r.kernel.org, Con Kolivas <kernel@...ivas.org>,
suspend2-devel@...ts.suspend2.net,
Andrew Morton <akpm@...ux-foundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
Arjan van de Ven <arjan@...radead.org>
Subject: Re: suspend2 merge (was Re: [Suspend2-devel] Re: CFS and suspend2: hang in atomic copy)
On Wednesday, 25 April 2007 22:08, Pavel Machek wrote:
> Hi!
>
> > > > .. but if the alternative is a feature that just isn't worth it, and
> > > > likely to not only have its own bugs, but cause bugs elsewhere? (And yes,
> > > > I believe STD is both of those. There's a reason it's called "STD". Go
> > > > to google and type "STD" and press "I'm feeling lucky". Google is God).
> > >
> > > Is there really no use case for STD?
[--snip--]
> > So my objections to STD have nothing to do with saving state and shutting
> > down. They have everything to do with the fact that it is not - and will
> > never be - a "suspend", and it shouldn't affect suspend.
>
> STD needs to snapshot system, and then it needs devices to be
> suspended so that snapshot is consistent.
Not suspended. _Frozen_. In fact don't want any DMA transfers or interrupts
to take place when we're creating the image. That's all and that's what we're
doing (or rather, trying to do).
So, the "suspend" and "resume" for the functions being called for that are
wrong, but then we call them with PMSG_FREEZE. ;-) Still, we could add
.freeze() and .thaw() callbacks for hibernation just fine. This wouldn't even
be that difficult ...
Greetings,
Rafael
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists