public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Nate Lawson <nate-Y6VGUYTwhu0@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Cc: robert.moore-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
	imp-uzTCJ5RojNnQT0dZR+AlfA@public.gmane.org
Subject: _S0D and \_S0?
Date: Tue, 11 May 2004 18:02:19 -0700 (PDT)	[thread overview]
Message-ID: <20040511174800.K78445@root.org> (raw)

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

                 reply	other threads:[~2004-05-12  1:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20040511174800.K78445@root.org \
    --to=nate-y6vguytwhu0@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=imp-uzTCJ5RojNnQT0dZR+AlfA@public.gmane.org \
    --cc=robert.moore-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    /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