2007-12-04 20:31:41

by Kristoffer Ericson

[permalink] [raw]
Subject: Suspend order

Hey rafael,

For obvious reasons it would be great to have serial output to be the last to enter suspend, thus giving every last drop of debugging
before actually turning the machine "off".

I'm not aware of any specific order currently, from what I've seen currently every driver is asked to go into suspend at the same time. This of course providing driver x isn't dependant on driver y. You following?

So, without digging to much into this, is there any specific order?

Best wishes
Kristoffer


2007-12-05 00:07:52

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: Suspend order

Hi,

On Tuesday, 4 of December 2007, Kristoffer Ericson wrote:
> Hey rafael,
>
> For obvious reasons it would be great to have serial output to be the last to enter suspend, thus giving every last drop of debugging
> before actually turning the machine "off".
>
> I'm not aware of any specific order currently, from what I've seen currently every driver is asked to go into suspend at the same time. This of course providing driver x isn't dependant on driver y. You following?
>
> So, without digging to much into this, is there any specific order?

Yes, there is.

Devices are suspended in the order reverse with respect to the one in which
they have been registered (ie. the last registered device is suspended first).

Still, if you want the serial console to work over the suspend, try booting the
kernel with the no_console_suspend command line switch (that's applicable to
the current mainline, there was a configuration option for that previously).

Greetings,
Rafael