public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* ACPI-Errors with battery, ac_adapter, thermal
@ 2003-01-21 18:16 Stefan Behnel
       [not found] ` <3E2D8E94.2050301-8NdywcgfOMlWMvVl7B+zuCEWGD4kr0XT@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Stefan Behnel @ 2003-01-21 18:16 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi!

*I only subscribed to the list yesterday, so I don't know if this mail
(that I sent before subscribing) actually got there. Sorry if it did.*


I have a problem with my laptop (Samsung P10, P4, i845). I use the
lates ACPI-Patches and kernel 2.4.20/2.4.21-pre3.

In /proc/acpi, the directories ac_adapter, battery and thermal_zone
are empty (so I can't find out about the battery state, etc.) and
dmesg shows related errors:

----------------------------------------------------

evregion-0235 [22] ev_address_space_dispa: no handler for
region(c12f4c28) [embedded_control]

     exfldio-0216 [21] ex_access_region      : Region embedded_control(3)
has no handler

     dswexec-0402 [14] ds_exec_end_op        : [LEqual]: Could not
resolve operands, AE_NOT_EXIST

dswstate-0251 [16] ds_result_pop_from_bot: No result objects!
State=cff67828

     dsutils-0494 [16] ds_create_operand     : Missing or null operand,
AE_AML_NO_RETURN_VALUE

     psparse-1102: *** Error: Method execution failed [\_SB_.ADP1._STA]
(Node c12f8228), AE_AML_NO_RETURN_VALUE


evregion-0235 [22] ev_address_space_dispa: no handler for
region(c12f4c28) [embedded_control]

     exfldio-0216 [21] ex_access_region      : Region embedded_control(3)
has no handler

     dswexec-0402 [14] ds_exec_end_op        : [LEqual]: Could not
resolve operands, AE_NOT_EXIST

dswstate-0251 [16] ds_result_pop_from_bot: No result objects!
State=cff67828

     dsutils-0494 [16] ds_create_operand     : Missing or null operand,
AE_AML_NO_RETURN_VALUE

     psparse-1102: *** Error: Method execution failed [\_SB_.BAT1._STA]
(Node c12f8c28), AE_AML_NO_RETURN_VALUE


evregion-0322: *** Error: Handler for [embedded_control] returned
AE_BAD_PARAMETER

     dswexec-0402 [20] ds_exec_end_op        : [Store]: Could not resolve
operands, AE_BAD_PARAMETER

     psparse-1102: *** Error: Method execution failed [\_TZ_.THRM._TMP]
(Node c12fa128), AE_BAD_PARAMETER

----------------------------------------------------


I do actually get the ACPI interrupts, /proc/interrupts increments
when I pull out the AC plug or while the battery discharges. While on
battery, the syslog fills up with

-----------------------
kernel:     ACPI-0322: *** Error: Handler for [embedded_control]
returned AE_BAD_PARAMETER
kernel:     ACPI-1102: *** Error: Method execution failed
[\_SB_.BAT1.BAST] (Node c12fb680), AE_BAD_PARAMETER
kernel:     ACPI-1102: *** Error: Method execution failed
[\_SB_.PCI0.LPCB.H_EC._Q66] (Node c12f49c0), AE_BAD_PARAMETER
-----------------------


Any hints how I could get that stuff running ?


Oh, and, BTW: Running the kernel (tried with 2.4.21-pre3) with
ACPI-debug compiled in tends to throw Oopses that kill the keyboard
(nothing else) when an event occurs...


Thanks in advance for any help,
Stefan Behnel






-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: ACPI-Errors with battery, ac_adapter, thermal
@ 2003-01-23 18:50 Moore, Robert
  0 siblings, 0 replies; 12+ messages in thread
From: Moore, Robert @ 2003-01-23 18:50 UTC (permalink / raw)
  To: 'Stefan Behnel',
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f


I'm taking a look at your DSDT and the errors.
Bob


-----Original Message-----
From: Stefan Behnel [mailto:behnel-8NdywcgfOMlWMvVl7B+zuCEWGD4kr0XT@public.gmane.org] 
Sent: Thursday, January 23, 2003 10:17 AM
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [ACPI] ACPI-Errors with battery, ac_adapter, thermal

Hi!

Ok, now, here's the long version, just in case there is anything else to 
see...

I'm actually perfectly willing to invest some time into getting this 
working if anyone could point me in the right direction.

I found the FAQ including the stuff about overriding the DSTD, but I 
don't know how to fix such a table (the current one looks perfectly fine 
to me...). Any more hints on that?

Thanks in advance,
Stefan



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: ACPI-Errors with battery, ac_adapter, thermal
@ 2003-01-23 18:53 Moore, Robert
       [not found] ` <B9ECACBD6885D5119ADC00508B68C1EA0D19BA50-LkGsggTGxVmSsB6bSF6DdVDQ4js95KgL@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Moore, Robert @ 2003-01-23 18:53 UTC (permalink / raw)
  To: 'Faye Pearson', Stefan Behnel
  Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f


This one looks suspiciously like a problem in the AML interpreter: 

>     ACPI-1102: *** Error: Method execution failed [\_SB_.PCI0._INI] (Node
c12fba80), AE_AML_UNINITIALIZED_LOCAL

I am looking into it.
Bob


-----Original Message-----
From: Faye Pearson [mailto:faye-6JSjyQ0Qj1ReoWH0uzbU5w@public.gmane.org] 
Sent: Thursday, January 23, 2003 10:48 AM
To: Stefan Behnel
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [ACPI] ACPI-Errors with battery, ac_adapter, thermal

Stefan Behnel [behnel-8NdywcgfOMlWMvVl7B+zuCEWGD4kr0XT@public.gmane.org] wrote:
> I'm actually perfectly willing to invest some time into getting this 
> working if anyone could point me in the right direction.
> 
> I found the FAQ including the stuff about overriding the DSTD, but I 
> don't know how to fix such a table (the current one looks perfectly fine 
> to me...). Any more hints on that?

>     ACPI-0262: *** Info: GPE Block1 defined as GPE16 to GPE31
>     ACPI-1102: *** Error: Method execution failed [\_SB_.PCI0._INI] (Node
c12fba80), AE_AML_UNINITIALIZED_LOCAL
>     ACPI-0090: *** Error: No object was returned from
[\_SB_.PCI0.LPCB.SIOD.COMA._STA] (Node c12f2580), AE_NOT_EXIST
>     ACPI-1102: *** Error: Method execution failed [\_SB_.ADP1._STA] (Node
c12fb340), AE_AML_NO_RETURN_VALUE
>     ACPI-1102: *** Error: Method execution failed [\_SB_.BAT1._STA] (Node
c12fb700), AE_AML_NO_RETURN_VALUE
>     ACPI-0322: *** Error: Handler for [embedded_control] returned
AE_BAD_PARAMETER
>     ACPI-1102: *** Error: Method execution failed [\_TZ_.THRM._TMP] (Node
c12fd7c0), AE_BAD_PARAMETER

These don't look fine.

You need iasl - google for intel iasl download

Disassembling your dsdt gives:

dsdt.dsl   178:     Method (_WAK, 1, NotSerialized)
Warning  2026 -                ^ Reserved method must return a value
(_WAK)

Can be as simple as adding Return (Zero) to the end of the method but
check the function to see if that looks right.

dsdt.dsl  2322:                     Field (ECR, DWordAcc, Lock,
Preserve)
Error    1048 -                              ^ Host Operation Region
requires ByteAcc access

Use ByteAcc access!

dsdt.dsl  2887:                         Method (_STA, 0, NotSerialized)
Warning  2019 -                                    ^ Not all control
paths return a value (_STA)

dsdt.dsl  2887:                         Method (_STA, 0, NotSerialized)
Warning  2026 -                                    ^ Reserved method
must return a value (_STA)

Same issue as for _WAK.


Faye

-- 
Faye Pearson,
Covert Development
ClaraNET Ltd.       Tel 020 7903 3000

Keep your boss's boss off your boss's back.


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Acpi-devel mailing list
Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/acpi-devel


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: ACPI-Errors with battery, ac_adapter, thermal
@ 2003-01-24 15:07 Moore, Robert
       [not found] ` <B9ECACBD6885D5119ADC00508B68C1EA0D19BA55-LkGsggTGxVmSsB6bSF6DdVDQ4js95KgL@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Moore, Robert @ 2003-01-24 15:07 UTC (permalink / raw)
  To: 'Ducrot Bruno', Moore, Robert
  Cc: 'Faye Pearson', Stefan Behnel,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Yes, I agree that it's a bug in the original ASL.

Bob


-----Original Message-----
From: Ducrot Bruno [mailto:ducrot-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org] 
Sent: Friday, January 24, 2003 2:05 AM
To: Moore, Robert
Cc: 'Faye Pearson'; Stefan Behnel; acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [ACPI] ACPI-Errors with battery, ac_adapter, thermal

On Thu, Jan 23, 2003 at 10:53:26AM -0800, Moore, Robert wrote:
> 
> This one looks suspiciously like a problem in the AML interpreter: 
> 
> >     ACPI-1102: *** Error: Method execution failed [\_SB_.PCI0._INI]
(Node
> c12fba80), AE_AML_UNINITIALIZED_LOCAL
> 


Sound like to be in:

        Device (PCI0)
        {
            Method (_INI, 0, NotSerialized)
            {
                If (CondRefOf (_OSI, Local0))
                {
                    Store (0x07D1, OSYS)
                    \_SB.PHS (0xA5)
                }
                Else
		{
			blablabla
		}

                If (LNot (LGreater (OSYS, 0x07CF)))
                {
                    Store (0x01, ECON)
                    Store (0x00, TMP0)
                    If (LNot (LGreater (Local0, ACTT)))
                                        ^^^^^^

Local0 is not initialized under ACPICA (because there is no _OSI name
declared).

I think this is an error in the AML, because Local0 should be left
uninitialized if the CondRefOf() return False.

But we can perhaps assume that in that case Local0 contains 0 (but not for
the interpreter, for a possible override of the table) ?

Bob, please advice.


-- 
Ducrot Bruno

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


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2003-01-27 13:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-21 18:16 ACPI-Errors with battery, ac_adapter, thermal Stefan Behnel
     [not found] ` <3E2D8E94.2050301-8NdywcgfOMlWMvVl7B+zuCEWGD4kr0XT@public.gmane.org>
2003-01-21 19:13   ` Ducrot Bruno
     [not found]     ` <20030121191357.GG15023-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
2003-01-21 19:44       ` Stefan Behnel
2003-01-23 18:16       ` Stefan Behnel
     [not found]         ` <3E303184.6020307-8NdywcgfOMlWMvVl7B+zuCEWGD4kr0XT@public.gmane.org>
2003-01-23 18:48           ` Faye Pearson
     [not found]             ` <20030123184802.GA11638-6JSjyQ0Qj1ReoWH0uzbU5w@public.gmane.org>
2003-01-25 10:54               ` DSDT patch for Samsung P10 Stefan Behnel
     [not found]                 ` <3E326CCD.4060107-8NdywcgfOMlWMvVl7B+zuCEWGD4kr0XT@public.gmane.org>
2003-01-27 13:14                   ` Parrenin Frédéric
  -- strict thread matches above, loose matches on Subject: below --
2003-01-23 18:50 ACPI-Errors with battery, ac_adapter, thermal Moore, Robert
2003-01-23 18:53 Moore, Robert
     [not found] ` <B9ECACBD6885D5119ADC00508B68C1EA0D19BA50-LkGsggTGxVmSsB6bSF6DdVDQ4js95KgL@public.gmane.org>
2003-01-24 10:04   ` Ducrot Bruno
2003-01-24 15:07 Moore, Robert
     [not found] ` <B9ECACBD6885D5119ADC00508B68C1EA0D19BA55-LkGsggTGxVmSsB6bSF6DdVDQ4js95KgL@public.gmane.org>
2003-01-24 20:03   ` Ducrot Bruno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox