public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Cam <camilo-Nk/s8sJ9yP7QXOPxS62xeg@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Fixing broken DSDT - code suggestions for comment please!
Date: Sun, 16 May 2004 10:29:04 +0100	[thread overview]
Message-ID: <40A73460.2070407@mesias.co.uk> (raw)

Hi ACPI list,

I have been trying to get ACPI running on my laptop but have found there 
are problems with the DSDT. I have followed some instructions on getting 
iasl and recompiling the DSDT but find some errors that go beyond the 
scope of the list at:

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

The errors are:


dsdt.dsl  2149:                     Store (Local0, Local0)
Error    1013 -                                 ^ Method local variable 
is not initialized (Local0)

This occurs several times in the code, a typical case is:

                 Method (_PS0, 0, NotSerialized)
                 {
                     Store (And (0xF0, TIA4), TIA4)
                     Store (0x01, _PSC)
                     Store (Local0, Local0)
                 }

I'm guessing that is effectively a NOP so I can comment it out.

Later there are two other errors not mentioned in the FAQ:

dsdt.dsl  2390:                     Return (WQS (0x0E, Arg0))
Error    1029 -                               ^ Called method returns no 
value
 

dsdt.dsl  2395:                     Return (WQSB (0x0E, Arg0))
Error    1029 - Called method returns no value ^
 


The offending code is:

                 Method (WENR, 1, NotSerialized)
                 {
                     Return (WQS (0x0E, Arg0))
                 }

                 Method (WETR, 1, NotSerialized)
                 {
                     Return (WQSB (0x0E, Arg0))
                 }

All the calls to those methods seem to discard any return value, eg:

         If (\_SB.OKEC)
         {
             \_SB.PCI0.QSB.WENR (0x01F0)
         }

I couldn't find a reference to WETR



So I thought to not return anything:

                 Method (WENR, 1, NotSerialized)
                 {
/*                    Return (WQS (0x0E, Arg0))*/
                     WQS (0x0E, Arg0)
                 }

                 Method (WETR, 1, NotSerialized)
                 {
/*                    Return (WQSB (0x0E, Arg0))*/
                     WQSB (0x0E, Arg0)
                 }

I am more than a bit wary about trying this for real so would appreciate 
  any comments on the dsdt code above. If the fixes are good then maybe 
they could be incorporated into the FAQ?

Any comments gratefully received,

-Cam


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click

             reply	other threads:[~2004-05-16  9:29 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-16  9:29 Cam [this message]
     [not found] ` <40A73460.2070407-Nk/s8sJ9yP7QXOPxS62xeg@public.gmane.org>
2004-05-17 11:27   ` Fixing broken DSDT - code suggestions for comment please! Cam
2004-05-17 19:35   ` Len Brown
     [not found]     ` <1084822558.12353.365.camel-D2Zvc0uNKG8@public.gmane.org>
2004-05-18  0:54       ` Cam
     [not found]         ` <40A95EB3.5070206-Nk/s8sJ9yP7QXOPxS62xeg@public.gmane.org>
2004-05-18  1:00           ` Len Brown
     [not found]             ` <1084842006.12349.372.camel-D2Zvc0uNKG8@public.gmane.org>
2004-05-20 20:29               ` Chris McDermott
     [not found]                 ` <20040520202950.GK5920-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2004-05-21  8:51                   ` Cam
  -- strict thread matches above, loose matches on Subject: below --
2004-05-18 14:19 Franklin Marmon
     [not found] ` <1084889946.5037.2.camel-t0Me6uhKnbVYViWeMKg0xQC/G2K4zDHf@public.gmane.org>
2004-05-18 15:30   ` Bas Mevissen
2004-05-21  0:33 Brown, Len
2004-05-26  2:35 Yu, Luming
2004-05-26 15:36 Moore, Robert
     [not found] ` <37F890616C995246BE76B3E6B2DBE055E08D59-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-05-27 20:42   ` Nate Lawson
2004-05-27  3:53 Yu, Luming
2004-05-28  3:52 Yu, Luming
     [not found] ` <3ACA40606221794F80A5670F0AF15F84047B206A-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-05-28  7:33   ` Nate Lawson

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=40A73460.2070407@mesias.co.uk \
    --to=camilo-nk/s8sj9yp7qxopxs62xeg@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