From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Barnes Subject: Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off aftersuspend-to-disk. Screen becomes green. Date: Thu, 21 Feb 2008 17:13:20 -0800 Message-ID: <200802211713.20713.jesse.barnes@intel.com> References: <200802220154.57051.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com ([192.55.52.93]:40926 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750788AbYBVBN1 (ORCPT ); Thu, 21 Feb 2008 20:13:27 -0500 In-Reply-To: <200802220154.57051.rjw@sisk.pl> Content-Disposition: inline Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: "Rafael J. Wysocki" Cc: Linus Torvalds , Jeff Chua , Romano Giannetti , suspend-devel List , Dave Airlie , Greg KH , lkml , linux-acpi@vger.kernel.org On Thursday, February 21, 2008 4:54 pm Rafael J. Wysocki wrote: > On Friday, 22 of February 2008, Linus Torvalds wrote: > > On Fri, 22 Feb 2008, Rafael J. Wysocki wrote: > > > - if (state.event == PM_EVENT_SUSPEND) { > > > + if (state.event == PM_EVENT_SUSPEND && !in_hibernation_power_off()) { > > > > I don't understand why hibernation just doesn't use a PM_EVENT_HIBERNATE, > > and be done with it? > > > > Why should it be called PM_EVENT_SUSPEND when it isn't? > > > > Adding some external global variables is absolutely the wrong way to fix > > this. > > > > It's not even like there are very many drivers who actually care about > > "state.event" anyway: a 'git grep' returns just 35 users in the whole > > tree, so if this was done this ugly way just to avoid double-chcking the > > other cases that compare against PM_EVENT_SUSPEND, then it really wasn't > > worth it. > > Please relax, we're debugging the thing right now and the patch doesn't > even seem to help on the other affected box. Actually, looks like I forgot to reboot between tests (just rmmod'd & modprobed i915), your patch actually does work. However, making new PM event messages might be a good thing anyway, assuming Linus takes it for 2.6.25, since it should make the migration to ->hibernate callbacks easier. Jesse