Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757532AbXEXWcX (ORCPT ); Thu, 24 May 2007 18:32:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753733AbXEXWcN (ORCPT ); Thu, 24 May 2007 18:32:13 -0400 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:44932 "EHLO amd.ucw.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753651AbXEXWcL (ORCPT ); Thu, 24 May 2007 18:32:11 -0400 Date: Fri, 25 May 2007 00:32:00 +0200 From: Pavel Machek To: Linus Torvalds Cc: Romano Giannetti , Chris Wright , Chuck Ebbert , Linux Kernel Mailing List , stable@kernel.org, Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, "Rafael J. Wysocki" Subject: Re: pcmcia resume 60 second hang. Re: [patch 00/69] -stable review Message-ID: <20070524223200.GE9604@elf.ucw.cz> References: <20070521212522.GL3429@sequoia.sous-sol.org> <1179870110.16656.2.camel@localhost> <1180008394.15600.26.camel@localhost> <20070524200435.GA9604@elf.ucw.cz> <20070524220017.GC9604@elf.ucw.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.11+cvs20060126 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1398 Lines: 49 Hi! > > On Fri, 25 May 2007, Pavel Machek wrote: > > > > > > Equally arguably, we should just have a "resume_late()" call that can be > > > used to do this after everything is up and running. > > > > Yes, we can do that. But userland will see devices "not there" for a > > few seconds after boot. > > No they won't. > > Why the HELL cannot you realize that kernel threads are different? > > The right thing to do is AND HAS ALWAYS BEEN, to stop and start user > threads only around the whole thing. > > Don't touch those kernel threads. Stop freezing them. > > Then, what you do is: > - stop user space > - suspend > - resume ~~~~~~~~~~~ notice how resume of pcmcia card that poor user has needs userspace. So this does not work. > - start user space My proposed solution is "fix pcmcia to load firmware before suspend even starts" - HERE > - stop user space > - suspend > - resume > - start user space Maybe freezer causes cancer in small children, but lets not blame it for this. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/