Re: 2.6.25-rc2 System no longer powers off after suspend-to-disk. Screen becomes green.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Wednesday, February 20, 2008 - 5:00 pm

On Thu, 21 Feb 2008, Rafael J. Wysocki wrote:

First off, nobody should *ever* use that directly anyway.

Secondly, the one that people should use ("pci_choose_state()") doesn't 
actually do what you claim it does. It does all kinds of wrong things, and 
doesn't even take the target state into account at all. So look again.


And again, what does this have to do with (the example I used) the 
graphics hardware? Answer: nothing. The example I gave you we simply DO 
THE WRONG THING FOR.

Same thing for things like USB devices - where pci_choose_state() doesn't 
work to begin with. Why do we call "suspend()" on such a thing when we 
don't want to suspend it? We shouldn't. We should call "freeze/unfreeze" 
(which are no-ops) and then finally perhaps "poweroff", and that final 
stage might want to spin things down or similar.

But *none* of it has anything to do with suspend, and none of it has 
anything to do with pci_choose_state() (much less acpi_pci_choose_state)

The fact is, we should let the driver decide, and we should make it clear 
to the driver writer what he is deciding about - rather than basically lie 
and say "suspend the device and put it into D3" even when that's the last 
thing it should ever do.

			Linus
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: 2.6.25-rc2 System no longer powers off after suspend-t ..., Rafael J. Wysocki, (Wed Feb 20, 1:14 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off ..., Rafael J. Wysocki, (Wed Feb 20, 1:45 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off ..., Alexey Starikovskiy, (Wed Feb 20, 2:26 pm)
Re: 2.6.25-rc2 System no longer powers off after suspend-t ..., Rafael J. Wysocki, (Wed Feb 20, 3:36 pm)
Re: 2.6.25-rc2 System no longer powers off after suspend-t ..., Rafael J. Wysocki, (Wed Feb 20, 4:35 pm)
Re: 2.6.25-rc2 System no longer powers off after suspend-t ..., Rafael J. Wysocki, (Wed Feb 20, 4:49 pm)
Re: 2.6.25-rc2 System no longer powers off after suspend-t ..., Linus Torvalds, (Wed Feb 20, 5:00 pm)
Re: 2.6.25-rc2 System no longer powers off after suspend-t ..., Rafael J. Wysocki, (Wed Feb 20, 5:13 pm)
Re: 2.6.25-rc2 System no longer powers off after suspend-t ..., Rafael J. Wysocki, (Wed Feb 20, 5:59 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off ..., Rafael J. Wysocki, (Wed Feb 20, 6:07 pm)
Re: 2.6.25-rc2 System no longer powers off after suspend-t ..., Nigel Cunningham, (Wed Feb 20, 11:05 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off ..., Rafael J. Wysocki, (Thu Feb 21, 9:27 am)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off ..., Romano Giannetti, (Thu Feb 21, 12:43 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off ..., Rafael J. Wysocki, (Thu Feb 21, 1:30 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off ..., Rafael J. Wysocki, (Thu Feb 21, 3:11 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off ..., Rafael J. Wysocki, (Thu Feb 21, 5:28 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off ..., Rafael J. Wysocki, (Thu Feb 21, 5:31 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off ..., Rafael J. Wysocki, (Thu Feb 21, 5:54 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off ..., Rafael J. Wysocki, (Thu Feb 21, 6:06 pm)
Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off ..., Rafael J. Wysocki, (Fri Feb 22, 9:10 am)
Re: 2.6.25-rc2 System no longer powers off after suspend-t ..., Rafael J. Wysocki, (Fri Feb 22, 10:02 am)
Re: 2.6.25-rc2 System no longer powers off after suspend-t ..., Rafael J. Wysocki, (Fri Feb 22, 10:44 am)
Re: 2.6.25-rc2 System no longer powers off after suspend-t ..., Rafael J. Wysocki, (Fri Feb 22, 4:16 pm)
i915 hibernation patch (was: Re: [Suspend-devel] 2.6.25-rc ..., Rafael J. Wysocki, (Fri Feb 22, 4:31 pm)
Re: i915 hibernation patch (was: Re: [Suspend-devel] 2.6.2 ..., Rafael J. Wysocki, (Fri Feb 22, 6:55 pm)
[PATCH] PM: Introduce PM_EVENT_HIBERNATE (was: Re: i915 hi ..., Rafael J. Wysocki, (Sat Feb 23, 11:13 am)
Re: [PATCH] PM: Introduce PM_EVENT_HIBERNATE (was: Re: i91 ..., Rafael J. Wysocki, (Sun Feb 24, 4:11 am)
Re: [PATCH] PM: Introduce PM_EVENT_HIBERNATE (was: Re: i91 ..., Rafael J. Wysocki, (Sun Feb 24, 4:25 am)