public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: John Knottenbelt <jak97-CezfXpuMXD6Fxr2TtlUqVg@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Does Linux make use of the S3D methods?
Date: Mon, 19 Jan 2004 13:54:36 +0000	[thread overview]
Message-ID: <200401191354.36354.jak97@doc.ic.ac.uk> (raw)

Hi

I have been inspecting my DSDT and I noticed this:

Scope(\_SB_) {
    Device(PWRB) {
        Name(_HID, 0x0c0cd041)
        Method(_STA) {
            Return(0xb)
        }
    }
    Device(PCI0) {
        Name(_HID, 0x030ad041)
        Name(_ADR, 0x0)
        Name(_BBN, 0x0)
        Method(_S3D) {
            If(OSFL) {
                Return(0x2)
            }
            Else {
                Return(0x3)
            }
        }

The ACPI spec says that the _S3D method returns the highest power saving level 
that the device can be put into. As you can see from the above (and other 
similar S3D methods) the result depends on the OSFL variable, which is 
defined with:

         Method(_INI) {
            \_SB_.PCI0.SBRG.IODT()
            If(MCTH(\_OS_, "Microsoft Windows NT")) {
                Store(0x0, OSFL)
            }
            Else {
                If(MCTH(\_OS_, "Microsoft Windows")) {
                    Store(0x1, OSFL)
                }
                Else {
                    If(MCTH(\_OS_, "Microsoft WindowsME: Millennium Edition"))
                   {
                        Store(0x2, OSFL)
                    }
                    Else {
                        Store(0x3, OSFL)
                    }
                }
            }
        }

So for under Linux, the OSFL will be 3, and _S3D methods will return 2. My 
question is, does the kernel make use of this information at all? Is it worth 
editing the DSDT so that OSFL=0 (i.e. Windows NT) ?

Thanks

John



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

             reply	other threads:[~2004-01-19 13:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-19 13:54 John Knottenbelt [this message]
     [not found] ` <200401191354.36354.jak97-CezfXpuMXD6Fxr2TtlUqVg@public.gmane.org>
2004-01-19 15:18   ` Does Linux make use of the S3D methods? Ducrot Bruno
2004-02-18  5:44   ` Len Brown

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=200401191354.36354.jak97@doc.ic.ac.uk \
    --to=jak97-cezfxpumxd6fxr2ttluqvg@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@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