public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Richard Black <richard.black-VXdhtT5mjnY@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Cc: Han Duong <handuong-d0mtIEKrxfl4piUD7e9S/g@public.gmane.org>
Subject: pacpidump and iasl
Date: Wed, 03 Dec 2003 16:40:21 -0600	[thread overview]
Message-ID: <3FCE6655.3000309@hp.com> (raw)

A difference in dumping the DSDT table found between
pacpidump and iasl.  When compiling the pacpidump
version produces an error whereas the dump from iasl
compiles without error.

Original email below.

Sincerely,
Richard Black
http://www.cpqlinux.com/acpi-howto.html

-------- Original Message --------
Subject: ACPI Howto (possible errata)
Date: Wed, 3 Dec 2003 15:32:03 -0600 (CST)
From: Han Duong <handuong-d0mtIEKrxfl4piUD7e9S/g@public.gmane.org>
To: <richard.black-VXdhtT5mjnY@public.gmane.org>



Hi,

I was reading the ACPI howto from

http://www.cpqlinux.com/acpi-howto.html#downloads

and noticed that the program "pacpidump" DOES NOT give the same output as
using Intel's "iasl" program with the "-d" option. I own a Sony Vaio
V505BX and was curious about whether my DSDT was broken (the
/proc/acpi/fan directory exists, but is empty; everything else seems to
work fine) To make a long story short, "pacpidump" outputs the following
snippet of code for the DSDT table:

...

Method(CKOS) {
    If(CondRefOf(_OSI, Local0)) {
        If(\_OSI) {
            "Windows 2001"
            Store(0x4, Local4)
        }
    }

...

which produces an error when compiling using "isal -tc" shown below:

dsdt.asl  2171:         If(\_OSI) {
Error    1028 -                ^ Too few arguments (\_OSI requires 1)

dsdt.asl  2172:             "Windows 2001"
Error    1037 -                          ^ parse error, unexpected
PARSEOP_STRING_LITERAL


On the other hand, using "iasl -d dsdt.dat" produces the following
corresponding code snippet:

...

    Method (CKOS, 0, NotSerialized)
    {
        If (CondRefOf (_OSI, Local0))
        {
            If (\_OSI ("Windows 2001"))
            {
                Store (0x04, Local4)
            }
        }


...

Since "iasl -tc" produces two errors (both referrincing the code block
shown above when I use the output from "pacpidump" whereas no errors are
produced using the output from "tiasl -d" I think one might conclude that
"pacpidump" might not be as reliable for non-FreeBSD systems (I am
compiling for Linux 2.4.23). Perhaps Intel's tools should be the preferred
choice for DSDT disassembly?

Oh, in case you're wondering, pacpidump was obtained from

http://people.freebsd.org/~takawata/pacpidump.tar.gz

The version for Intel's iasl is 20030918 and is available from

http://developer.intel.com/technology/iapc/acpi/downloads.htm

Best wishes,
Han Duong





-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

                 reply	other threads:[~2003-12-03 22:40 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=3FCE6655.3000309@hp.com \
    --to=richard.black-vxdhtt5mjny@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=handuong-d0mtIEKrxfl4piUD7e9S/g@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