Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263230AbVCDXnc (ORCPT ); Fri, 4 Mar 2005 18:43:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263240AbVCDXji (ORCPT ); Fri, 4 Mar 2005 18:39:38 -0500 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:33425 "EHLO amd.ucw.cz") by vger.kernel.org with ESMTP id S263213AbVCDVnt (ORCPT ); Fri, 4 Mar 2005 16:43:49 -0500 Date: Fri, 4 Mar 2005 22:43:29 +0100 From: Pavel Machek To: Nigel Cunningham Cc: Andrew Morton , mjg59@scrf.ucam.org, hare@suse.de, "Barry K. Nathan" , Linux Kernel Mailing List Subject: Re: swsusp: allow resume from initramfs Message-ID: <20050304214329.GD2385@elf.ucw.cz> References: <20050304101631.GA1824@elf.ucw.cz> <20050304030410.3bc5d4dc.akpm@osdl.org> <20050304175038.GE9796@ip68-4-98-123.oc.oc.cox.net> <1109971327.3772.280.camel@desktop.cunningham.myip.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1109971327.3772.280.camel@desktop.cunningham.myip.net.au> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.6+20040907i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1699 Lines: 39 Hi! > > > I don't understand how this can be affected by the modularness of the > > > kernel. Can you explain a little more? > > > > > > Would it not be simpler to just add "resume=03:02" to the boot command line? > > > > In addition to what others have mentioned, there's also the situation > > where swap is on a logical volume. In that case, the initramfs needs to > > get LVM up and running before you can even think about resuming. > > > > Swap on a logical volume is the default Fedora Core 3 partition layout, > > and I imagine it's the default for Red Hat Enterprise Linux 4 as well. > > You guys are reinventing the wheel a lot at the moment and I'm in the > middle of doing it for x86_64 lowlevel code :> Can we see if we can work > a little more closely - perhaps we can get some shared code going that > will allow us to handle these issues without stepping on each others' > feet? In particular, shared code for > > - initramfs and initrd support Its actually done, and it was few strategically placed lines of code (like 20 lines). I do not think it can be meaningfully shared. > - lowlevel suspend & resume This makes very good sense to share. We have i386, x86-64 and ppc versions. They simply walk list of pbe's; that should be simple enough to be usable for suspend2, too.... Pavel -- People were complaining that M$ turns users into beta-testers... ...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl! - 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/