All of lore.kernel.org
 help / color / mirror / Atom feed
From: Len Brown <lenb@kernel.org>
To: a.biardi@tiscali.it
Cc: linux-acpi@vger.kernel.org
Subject: Re: dmidecode (acpi_osi=!Linux)
Date: Mon, 2 Jul 2007 23:49:19 -0400	[thread overview]
Message-ID: <200707022349.19743.lenb@kernel.org> (raw)
In-Reply-To: <200707011439.23511.a.biardi@tiscali.it>

thanks for the macbook pro acpidump, andrea.

Apple got it wrong -- they're using if/then/else with _OSI
to try to identify the OS, just like the broken reference code.

But it doesn't look like in this version it will make any difference.
The _STA.GUI bit for HPET will be set for Windows and Darwin, 
but not for Linux.  But Linux doesn't use that bit anyway.

Also, thanks for the dmesg -- the fact that you got no extra
line in dmesg means I botched it -- so I'll fix that it in a minute.

Finally, there are some interesting parts of the DSDT that will
change depending on "acpi_osi=Darwin" -- looks like bits
related to the smart battery.  We should look into what it
would mean to set _OSI "Darwin" at some point...

cheers,
-Len

for those interested in the details, here is the interesting part of the DSDT:

        Method (_INI, 0, NotSerialized)
        {
            If (CondRefOf (_OSI, Local0))
            {
                If (_OSI ("Darwin"))
                {
                    Store (0x2710, OSYS)

# if (Darwin), OSYS=Ox2710
                }
                Else
                {
                    If (_OSI ("Linux"))
                    {
                        Store (0x03E8, OSYS)
# if (Linux) OSYS=0x3E8
                    }
                    Else
                    {
                        Store (0x07D1, OSYS)
# else OSYS=7D1 (modern Windows goes here)
                    }
                }
            }
            Else
            {
                Store (0x07D0, OSYS)
# else OSYS=0x7D0 (old windows and old Linux go here)
            }
...
                Device (HPET)
                {
                    Name (_HID, EisaId ("PNP0103"))
                    Name (_CID, 0x010CD041)
 ...
                    Method (_STA, 0, NotSerialized)
                    {
                        If (LGreaterEqual (OSYS, 0x07D1))
                        {
                            If (HPAE)
                            {
                                Return (0x0F)
# if HPET enabled && (>= new Windows), return functioning, gui, enabled, present
# note that Linux is not >= new Windows here
                            }
                        }
                        Else
                        {
                            If (HPAE)
                            {
                                Return (0x0B)
# if HPET enabled && (< new Windows) return functioning, enabled, present
                            }
                        }

                        Return (0x00)
                    }


      parent reply	other threads:[~2007-07-03  3:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-01 14:39 dmidecode (acpi_osi=!Linux) a.biardi
2007-07-02  7:04 ` Len Brown
     [not found]   ` <200707020925.30573.a.biardi@tiscali.it>
2008-01-18 22:55     ` dmidecode (acpi_osi=!Linux) (MacBookPro2,2) Len Brown
2007-07-03  3:49 ` Len Brown [this message]

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=200707022349.19743.lenb@kernel.org \
    --to=lenb@kernel.org \
    --cc=a.biardi@tiscali.it \
    --cc=linux-acpi@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.