Re: Totally broken PCI PM calls

From: David Brownell
Date: Tue Oct 12 2004 - 13:59:36 EST


On Tuesday 12 October 2004 1:54 am, Pavel Machek wrote:
> > > echo disk > /sys/power/state
> >
> > Oddly enough, neither of them work lately for me.
> > They each resume immediately after writing the
> > image to disk.
>
> dmesg would help....

This is with /sys/power/disk set up for "shutdown";
the system didn't actually shut down, it restarted
the CPU right after snapshotting.

Stopping tasks: ===================|
Freeing
memory: ........................................................................................................|
Freezing CPUs (at 0)...ok
PM: Attempting to suspend to disk.
PM: snapshotting memory.
Restarting CPUs...ok
Restarting tasks... done
eth0: Media Link On 10mbps half-duplex

I've not had time to try that on other systems. Reverting
the change to map PCI states didn't improve things.


> > p.s. I find the /sys/power/disk file mildly cryptic, maybe
> > other folk will find the attached patch slightly more
> > informative about what this interface can do.
> >
>
> Hmm, its interface change,

To an file that was just added recently, making it more
like the other file in that same directory.

> and was not /sys expected to be "one file,
> one value"?

It is one value -- a set! OK, the active member
of that set is distinguished. The power/state file
could do the same thing (but the active state
there would always be "on").


- Dave
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/