public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Bruno Ducrot <ducrot-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
To: "Pedro I. Sanchez"
	<pedro.sanchez-bJEeYj9oJeDQT0dZR+AlfA@public.gmane.org>
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Help with the DSDT for an Acer Ferrari 3400 laptop
Date: Wed, 29 Dec 2004 11:57:12 +0100	[thread overview]
Message-ID: <20041229105712.GG9606@poupinou.org> (raw)
In-Reply-To: <41D21B9A.4020409-bJEeYj9oJeDQT0dZR+AlfA@public.gmane.org>

On Tue, Dec 28, 2004 at 09:51:06PM -0500, Pedro I. Sanchez wrote:
> 
> >They go to a SSDT table likely.  If you do something like:
> >sudo ./acpidmp SSDT > ssdt
> >and
> >iasl -d ssdt
> >you should get those external statements.
> >
> 
> I'm looking for acpidmp in my Debian box but I can't find it, it's not 
> in the pmtools package. And I can't find it in the Intel's download page 
> either (http://www.intel.com/technology/iapc/acpi/downloads.htm). Where 
> can I get it?

Oops sorry.  I supposed you got the DSDT with acpidmp..

wget ftp://ftp.kernel.org//pub/linux/kernel/people/lenb/acpi/utils/pmtools-20031210.tar.bz2
make
sudo ./acpidmp > acpidmp.out
bzip2 acpidmp.out 

NB: the debian package 'pmtools' is for some perl stuff (perl modules
tools)...

> Also, what am I supposed to do after disassembling the ssdt?

Nothing.  You asked where are the external statements.  I just wanted to
tell you where you can find them, and how to read them.

> >>The Warning
> >>-----------
> >>dsdt.dsl  4287: Method (SMSL, 0, NotSerialized)
> >>Warning  2019 -            ^ Not all control paths return a value (SMSL)
> >>
> >>I added a Return (0x00) statement at the very end of the method and the 
> >>warning disappeared. But, is this right? Following my signature you will 
> >>find the code of the offending method including my extra line.
> >
> >
> >Could you send me the original DSDT please (or better the full acpidmp)
> >or even better provide a link?
> >
> 
> You will find the DSDT and some other files at http://www.colcan.biz

Ok.  Thanks.

SMSL() is only called as:

                    Method (_Q09, 0, NotSerialized)
                    {
                        Store ("QUERY_09", Debug)
                        SMSL ()
                    }

and

                    Method (_Q8E, 0, NotSerialized)
                    {
                        SMSL ()
                        Notify (\_SB.BAT1, 0x80)
                    }

so even if the 'return bug' (a bug in some ACPI interpreter) is present,
it's not a real trouble.  I guess they added a return only to break the
method without having to worry to rewrite the method properly.  Just
adding a return statement do not have any bad side effect but prevent
iasl to warn at compile time.

(BTW, there is something like that in the EC0 space:
                    OperationRegion (ERAM, EmbeddedControl, 0x00, 0xFF)
                    Field (ERAM, ByteAcc, Lock, Preserve)
                    {
                        ...
                        ...
                        Offset (0x18),
                        SMPR,   8,
                        SMST,   8,
                        SMAD,   8,
                        SMCM,   8,
                        SMD0,   256,
                        BCNT,   8,
                        SMAA,   8,
                        S1D0,   8,
                        S1D1,   8,
                        SM2A,   8,
                        ...
                        ...
                     }


The SMPR, SMST, SMAD, ... indicate very likely a smbus access.
Even though there is no HC EC smbus defined in this ASL, the
whole ACPI control method battery defined under \_SB.BAT1 indicate
that they have written access to a smart battery selector and a smart
battery.
I guess Acer bios writers do not want anymore to write those codes for
others models, since anyway smartbattery is supported (at spec
level) by ACPI 1.0b at least.

Cheers,

-- 
Bruno Ducrot

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

  parent reply	other threads:[~2004-12-29 10:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-28  5:38 Help with the DSDT for an Acer Ferrari 3400 laptop Pedro I. Sanchez
     [not found] ` <41D0F15D.8000201-bJEeYj9oJeDQT0dZR+AlfA@public.gmane.org>
2004-12-28 10:56   ` Bruno Ducrot
     [not found]     ` <20041228105611.GF9606-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2004-12-29  2:51       ` Pedro I. Sanchez
     [not found]         ` <41D21B9A.4020409-bJEeYj9oJeDQT0dZR+AlfA@public.gmane.org>
2004-12-29 10:57           ` Bruno Ducrot [this message]
2004-12-29 11:26   ` Bruno Ducrot

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=20041229105712.GG9606@poupinou.org \
    --to=ducrot-kk6yzipjem5g9huczpvpmw@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=pedro.sanchez-bJEeYj9oJeDQT0dZR+AlfA@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