From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932429AbXGTVdZ (ORCPT ); Fri, 20 Jul 2007 17:33:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751477AbXGTVdR (ORCPT ); Fri, 20 Jul 2007 17:33:17 -0400 Received: from smtp-out001.kontent.com ([81.88.40.215]:35735 "EHLO smtp-out.kontent.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750768AbXGTVdQ convert rfc822-to-8bit (ORCPT ); Fri, 20 Jul 2007 17:33:16 -0400 From: Oliver Neukum To: Alan Stern Subject: Re: [linux-pm] Re: Hibernation considerations Date: Fri, 20 Jul 2007 23:35:04 +0200 User-Agent: KMail/1.9.7 Cc: Milton Miller , Ying Huang , LKML , "Rafael J. Wysocki" , David Lang , linux-pm , Jeremy Maitin-Shepard References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Content-Disposition: inline Message-Id: <200707202335.05519.oliver@neukum.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Am Freitag 20 Juli 2007 schrieb Alan Stern: > On Fri, 20 Jul 2007, Oliver Neukum wrote: > > > Am Freitag 20 Juli 2007 schrieb Alan Stern: > > > Some drivers need the ability to schedule.  Some will need the ability > > > to allocate memory (although GFP_ATOMIC is probably sufficient).  Some > > > will need timers to run. > > > > Some will have to request firmware. It can add up to some megabytes. > > In addition, if we don't freeze, some drivers, eg. video drivers, can > > do allocations in the megabyte range. > > > > It seems to me that without the freezer we will end up with many drivers > > needing a two step notification process. Furthermore there are requirements > > on the order of shutting down system facilities, eg. device addition must > > be stopped before drivers allocate firmware. > > These are really separate issues, since they refer to things that have > to happen well before the memory snapshot is captured. > > We already have a pre-suspend notification available for drivers that > need to allocate large amounts of memory. Is that facility fine grained enough? > You are correct about the need to delay/stop device addition. I don't > know how this can be done in general; each code path calling > device_add() may have to be treated individually. What about the old API? Do we have to block module loading? What happens if a scsi error handler is woken? If it cannot be woken, how are errors handled? Regards Oliver