Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932265AbWBBVZO (ORCPT ); Thu, 2 Feb 2006 16:25:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932264AbWBBVZN (ORCPT ); Thu, 2 Feb 2006 16:25:13 -0500 Received: from smtp.osdl.org ([65.172.181.4]:57742 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S932263AbWBBVZL (ORCPT ); Thu, 2 Feb 2006 16:25:11 -0500 Date: Thu, 2 Feb 2006 13:27:08 -0800 From: Andrew Morton To: Pavel Machek Cc: nigel@suspend2.net, torvalds@osdl.org, linux-kernel@vger.kernel.org Subject: Re: [ 00/10] [Suspend2] Modules support. Message-Id: <20060202132708.62881af6.akpm@osdl.org> In-Reply-To: <20060202152316.GC8944@ucw.cz> References: <20060201113710.6320.68289.stgit@localhost.localdomain> <200602022131.59928.nigel@suspend2.net> <20060202115907.GH1884@elf.ucw.cz> <200602022214.52752.nigel@suspend2.net> <20060202152316.GC8944@ucw.cz> X-Mailer: Sylpheed version 1.0.0 (GTK+ 1.2.10; i386-vine-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2905 Lines: 59 Pavel Machek wrote: > > > I don't want to argue Pavel. I want to give users the best suspend to disk > > implementation they can get. If you want to argue, you can do so with > > I want to create best suspen that can be still merged into kernel; I > guess thats the difference. Anyway I believe that most of suspend > should be done in userspace -- most of it can. But I guess you need to > hear it from Linus/Andrew, so... You're unlikely to hear anything dispositive from either of us on this. You three guys know far more than us about suspend, so it would be silly for us to be making the technical decisions. When cornered, we're more likely to come out with general kernel platitudes such as "doing it in userspace:good" and "crashing the kernel:bad" and "incremental development with early merges:good" and "mucking up the kernel source:bad". What we hope and expect is that you'll come up with an agreed path in accordance with general kernel coding and development principles. Linus and I don't want to have to make tiebreak decisions - if we have to do that, the system has failed. Random thoughts: - swsusp has been a multi-year ongoing source of churn and bug reports. It hasn't been a big success and we have a way to go yet. - People seem to be doing too much development on the swsusp core and not enough development out where the actual problems are: drivers which don't suspend and resume correctly. - suspend2 is at a disadvantage because swsusp was merged first. If neither of the solutions had been merged and if we were evaluating them side-by-side, suspend2 would have a much better chance. This is a problem. - If you want my cheerfully uninformed opinion, we should toss both of them out and implement suspend3, which is based on the kexec/kdump infrastructure. There's so much duplication of intent here that it's not funny. And having them separate like this weakens both in the area where the real problems are: drivers. - Justifying the inclusion of a feature by the appearance and usefulness of the end result doesn't really work in this world. There are numerous unmerged kernel features out there which work well and look great. But we will look under the hood, and that's when problems start. So, as promised, there's nothing useful here. What we'd most like to see is for Nigel to start working on in-kernel swsusp, merging up the good bits from suspend2 in some evolutionary incremental manner under which the kernel continually improves. If, at the end of the day, that ends up with us having a complete implementation of suspend2, well, Mission Accomplished? - 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/