public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* _S0D and \_S0?
@ 2004-05-12  1:02 Nate Lawson
  0 siblings, 0 replies; only message in thread
From: Nate Lawson @ 2004-05-12  1:02 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
  Cc: robert.moore-ral2JQCrhuEAvxtiuMwx3w, imp-uzTCJ5RojNnQT0dZR+AlfA

After doing some more analysis, on ASL, it appears some systems (Dell)
have _S0D methods under devices.  It appears the OSPM should run those
at runtime when deciding to change the power state for a device.  Here's
an example:

            Device (USB3)
                Method (_S0D, 0, NotSerialized)
                {
                    Store (SMI (0x85, 0x00), Local0)
                    And (Local0, 0x01, Local0)
                    If (LEqual (Local0, 0x00))
                    {
                        Return (0x03)
                    }
                    Else
                    {
                        Return (0x00)
                    }
                }
                Name (_S1D, 0x02)
                Name (_S3D, 0x02)

This appears to say "if transitioning to another power state and the
system is up and running (i.e. S0), the device must always be powered off
(0x03) if bit 0 of SMI 0x85 is clear.  Otherwise, any power state is fine
(0x00)".

Additionally, some machines have non-zero values for \_S0.  Should we be
writing these values to the wake register at some point?

asl/vaio.asl:Name(_S0_, Package(0x4) {
asl/vaio.asl-    0x5,
asl/vaio.asl-    0x5,
asl/vaio.asl-    0x0,
asl/vaio.asl-    0x0,

Comments welcome.

-Nate


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-12  1:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-12  1:02 _S0D and \_S0? Nate Lawson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox