public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: linux-pm <linux-pm@lists.osdl.org>, Pavel Machek <pavel@ucw.cz>
Subject: suspend to disk modes, default mode
Date: Tue, 20 Mar 2007 01:47:51 +0100	[thread overview]
Message-ID: <1174351671.3645.8.camel@johannes.berg> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1199 bytes --]

Hi,

This suspend to disk modes stuff really sucks. The last time I looked
must have been a long time ago because then shutdown was default. Now I
find that in November 06 you changed it to be platform by default.

The problem with this is that not all platforms support the "platform"
mode.

I have a pm_ops struct for PMU-based Apple powerpc machines that doesn't
set pm_disk_mode in order not to allow the platform mode because that
currently fails.

I also used to think this was for implementing suspend-to-both, is that
wrong? In any case, I can't live with it being platform by default
because that goes into really weird behaviour, or I need to special-case
the ->enter callback for suspend to disk to just shut down again.

Could you please post a patch to change the documentation in pm.h to
indicate what the pm_disk_mode is intended for? It also doesn't help my
willingness to work on and with the generic suspend to disk stuff that
the patch I'm referring to was posted as if it was ACPI specific...

Maybe we just need a pm_disk_modes bitmap and a default_pm_disk_mode
member in struct pm_ops instead? What's firmware vs. platform anyway?

Thanks,
johannes

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



             reply	other threads:[~2007-03-20  0:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-20  0:47 Johannes Berg [this message]
2007-03-20  0:51 ` suspend to disk modes, default mode Johannes Berg
2007-03-20  1:03 ` Johannes Berg
2007-03-20  9:33 ` Pavel Machek
2007-03-20  9:44   ` Johannes Berg
2007-03-20 10:20     ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1174351671.3645.8.camel@johannes.berg \
    --to=johannes@sipsolutions.net \
    --cc=linux-pm@lists.osdl.org \
    --cc=pavel@ucw.cz \
    --cc=rjw@sisk.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox