Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755275Ab0AUVif (ORCPT ); Thu, 21 Jan 2010 16:38:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754865Ab0AUVie (ORCPT ); Thu, 21 Jan 2010 16:38:34 -0500 Received: from ogre.sisk.pl ([217.79.144.158]:37754 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751988Ab0AUVie (ORCPT ); Thu, 21 Jan 2010 16:38:34 -0500 From: "Rafael J. Wysocki" To: Nigel Cunningham Subject: Re: [linux-pm] [RFC][PATCH] PM: Force GFP_NOIO =?iso-8859-1?q?during=09suspend/resume?= (was: Re: Memory allocations in =?iso-8859-1?q?=2Esuspend=09became_very?= unreliable) Date: Thu, 21 Jan 2010 22:38:47 +0100 User-Agent: KMail/1.12.3 (Linux/2.6.33-rc4-rjw; KDE/4.3.3; x86_64; ; ) Cc: KOSAKI Motohiro , LKML , "linux-mm" , linux-pm@lists.linux-foundation.org, Andrew Morton References: <20100120085053.405A.A69D9226@jp.fujitsu.com> <201001212121.50272.rjw@sisk.pl> <4B58BC31.1040406@crca.org.au> In-Reply-To: <4B58BC31.1040406@crca.org.au> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201001212238.47471.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1089 Lines: 26 On Thursday 21 January 2010, Nigel Cunningham wrote: > Hi. > > Rafael J. Wysocki wrote: > > On Thursday 21 January 2010, KOSAKI Motohiro wrote: > >> - Ask all drivers how much they require memory before starting suspend and > >> Make enough free memory at first? > > > > That's equivalent to reworking all drivers to allocate memory before suspend > > eg. with the help of PM notifiers. Which IMHO is unrealistic. > > What's unrealistic about it? I can see that it would be a lot of work, > but unrealistic? To me, at this stage, it sounds like the ideal solution. First, we'd need to audit the drivers which is quite a task by itself. Second, we'd need to make changes, preferably test them or find someone with suitable hardware to do that for us and propagate them upstream. I don't really think we have the time to do it. Rafael -- 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/