Re: [linux-pm] [PATCH] Custom power states for non-ACPI systems

From: Todd Poynor (tpoynor_at_mvista.com)
Date: 03/02/05

  • Next message: Rick Lindsley: "Re: 2.6.11: iostat values broken, or IDE siimage driver ?"
    Date:	Wed, 02 Mar 2005 13:58:49 -0800
    To: Pavel Machek <pavel@ucw.cz>
    
    

    Pavel Machek wrote:
    > Hi!
    >
    >
    >>Advertise custom sets of system power states for non-ACPI systems.
    >>Currently, /sys/power/state shows and accepts a static set of choices
    >>that are not necessarily meaningful on all platforms (for example,
    >>suspend-to-disk is an option even on diskless embedded systems, and the
    >>meaning of standby vs. suspend-to-mem is not well-defined on
    >>non-ACPI-systems). This patch allows the platform to register power
    >>states with meaningful names that correspond to the platform's
    >>conventions (for example, "big sleep" and "deep sleep" on TI OMAP), and
    >>only those states that make sense for the platform.
    >
    >
    > Maybe this is a bit overdone?
    >
    > Of course you can have suspend-to-disk on most embedded systems; CF
    > flash card looks just like disk, and you should be able to suspend to
    > it.

    It's possible (on those with CF/PCMCIA etc.), although due to various
    problems with things like flash size, write speed, and wear leveling
    it's not very common to do so (I've seen two vendors abandon plans for
    this, but no doubt somebody does do it) -- that's why I'd like to have
    the particular platform register the capability if it happens to have
    it, but no, not a big deal.

    > If OMAP has "big sleep" and "deep sleep", why not simply map them to
    > "standby" and "suspend-to-ram"?

    In fact that's more or less what happens (or will happen once drivers
    like USB stop looking for PM_SUSPEND_MEM, etc.). There are other
    platforms with more than 2 sleep states (say, XScale PXA27x), so this
    will start to get a bit problematic. And it seens so easy to truly
    handle the platform's states instead of pretending ACPI S1/S3/S4 are the
    only methods to suspend any system.

    If it's preferable, how about replacing the /sys/power/state "standby"
    and "mem" values to "sleep", and have a /sys/power/sleep attribute that
    tells the methods of sleep available for the platform, much like
    suspend-to-disk methods are handled today? So the sleep attribute would
    handle "standby" and "mem" for ACPI systems, and other values for
    non-ACPI systems. Thanks,

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

  • Next message: Rick Lindsley: "Re: 2.6.11: iostat values broken, or IDE siimage driver ?"

    Relevant Pages

    • Re: [PATCH 2/2] Introduce CONFIG_SUSPEND
      ... Whatever it includes - please tell it to the user in the prompt. ... "hibernate" = sleep to disk, ... but "suspend" is not reserved as a name of specific state. ... values will always depend on the platform. ...
      (Linux-Kernel)
    • Sleep() and OEMIdle in SMDK2412
      ... I created a simple program that toggles an output port every 20ms ... using the Sleep() function and I observed that sometimes the suspend ... The platform is a derivative of the Samsung SMDK2412 BSP for Windows ...
      (microsoft.public.windowsce.platbuilder)
    • Re: [PATCH 2/2] Introduce CONFIG_SUSPEND
      ... +config SUSPEND ... "hibernate" = sleep to disk, ... values will always depend on the platform. ...
      (Linux-Kernel)
    • Re: SystemPowerState messed up after reboot ...
      ... There is not such thing as "user space" in a Pocket PC device, ... lies in your code or the platform code. ... GwesPowerOfffor suspend is my choice. ... The reset works fine as long the device wasn't suspended. ...
      (microsoft.public.windowsce.embedded)
    • [PATCH] PM/Suspend: Introduce two new platform callbacks to avoid breakage (Re: 900af0d breaks some
      ... notified of the PM event prior to the late suspend callback being issued. ... their devices into low power states in the "regular" suspend callbacks anyway. ... It adds two new platform suspend callbacks so that we can avoid the apparent ...
      (Linux-Kernel)