public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Nate Lawson <nate-Y6VGUYTwhu0@public.gmane.org>
To: Paulo da Silva <pvmagacho78-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: AE_BAD_HEX_CONSTANT
Date: Tue, 09 Nov 2004 11:49:44 -0800	[thread overview]
Message-ID: <41911F58.6020300@root.org> (raw)
In-Reply-To: <20041109193331.930.qmail-0Htg24VVpk2A/QwVtaZbd3CJp6faPEW9@public.gmane.org>

Paulo da Silva wrote:
> Hello,
> 
>  I am having a few problems with the battery
> information with my Acer Aspire 1613Lmi.
>  I get the following error :
> kernel:  psparse-1133: *** Error: Method execution
> failed [\_SB_.PCI0.LPC0.EC__.GBIF] (Node dfe6e480),
> AE_BAD_HEX_CONSTANT
> kernel:  psparse-1133: *** Error: Method execution
> failed [\_SB_.PCI0.LPC0.EC__.BAT0._BIF] (Node
> dfe6de00), AE_BAD_HEX_CONSTANT
> 
> I tracked down to the lines in the ASL code. I've
> attached part of the DSDT containing this lines. The
> part that gives the problem is pointed out. 
> 
> The whole DSDT can be seen at :
> http://cern.ch/paulo/dsdt.dsl.orig
> 
> Thanks in advance for any help.

The problem is here:
                   Store ("Bat 8Cell", Index (Arg1, 0x09))
                   Store ("236", Index (Arg1, 0x0A))
                   Store ("Lion", Index (Arg1, 0x0B))
                   Store ("Acer", Index (Arg1, 0x0C))

If you look at the value being dereferenced as the destination arg, it's 
a string.  So this should really store a string to a string.  For some 
reason, ACPI-CA is attempting to convert the string to an Integer before 
storing it.

                         Name (BT0I, Package (0x0D)
                         {
                             0x01,
                             0x19C8,
                             0x19C8,
                             0x01,
                             0x39D0,
                             0x014A,
                             0xDC,
                             0x012C,
                             0x0294,
                             "ANA",
                             "110",
                             "Lion",
                             0x00
                         })

Looking more carefully, it looks like commenting out just the last line 
("Acer") would suffice.  Index 0xC is actually an integer (0x00) so this 
is what triggers the Integer conversion.  I'm not sure how the 
conversion rules should be modified to take this into account.

-- 
Nate


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

  parent reply	other threads:[~2004-11-09 19:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-09 19:33 AE_BAD_HEX_CONSTANT Paulo da Silva
     [not found] ` <20041109193331.930.qmail-0Htg24VVpk2A/QwVtaZbd3CJp6faPEW9@public.gmane.org>
2004-11-09 19:49   ` Nate Lawson [this message]
     [not found]     ` <41911F58.6020300-Y6VGUYTwhu0@public.gmane.org>
2004-11-12 15:20       ` AE_BAD_HEX_CONSTANT Bruno Ducrot
     [not found]         ` <20041112152048.GE31422-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2004-11-12 22:56           ` AE_BAD_HEX_CONSTANT Nate Lawson
  -- strict thread matches above, loose matches on Subject: below --
2004-11-12 23:08 AE_BAD_HEX_CONSTANT Moore, Robert
2004-11-16 22:26 AE_BAD_HEX_CONSTANT Moore, Robert
     [not found] ` <37F890616C995246BE76B3E6B2DBE05502A86F8F-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-11-16 23:19   ` AE_BAD_HEX_CONSTANT Nate Lawson
2004-11-17  0:53 AE_BAD_HEX_CONSTANT Li, Shaohua

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=41911F58.6020300@root.org \
    --to=nate-y6vguytwhu0@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=pvmagacho78-/E1597aS9LQAvxtiuMwx3w@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