Skip to contentSkip to conversation

DSDT broken on Thinkpad T40p ?

DISCUSSION Nicolas Aspert 1 participant 1 message Dec 4, 2003 ACPI

lore
Share & tools
lore
#0 lore raw

Hi all

I have installed Fedora core 1 (kernel 2.4.22-1.2129) on a T40p laptop (latest BIOS installed). When booting with ACPI enabled, the status of the battery is incorrectly reported, i.e.

# cat /proc/acpi/battery/BAT0/state
present:                 yes
ERROR: Unable to read battery status

which is kind of annoying for a laptop :-)

In /var/log/messages, I can see the following :

Dec  4 09:48:11 localhost kernel:     ACPI-0178: *** Warning: The ACPI AML in
your computer contains errors, please nag the manufacturer to correct it.
Dec  4 09:48:11 localhost kernel:     ACPI-0181: *** Warning: Allowing relaxed

access to fields; turn on CONFIG_ACPI_DEBUG for details.

and a bit further

Dec  4 09:49:34 localhost kernel:     ACPI-1120: *** Error: Method execution
failed [\_SB_.PCI0.LPC_.EC__.GBST] (Node c1615a40), AE_AML_INTERNAL
Dec  4 09:49:34 localhost kernel:     ACPI-1120: *** Error: Method execution
failed [\_SB_.PCI0.LPC_.EC__.BAT0._BST] (Node c1615cc0), AE_AML_INTERNAL
Dec  4 09:50:14 localhost kernel:     ACPI-1120: *** Error: Method execution
failed [\_SB_.PCI0.LPC_.EC__.GBST] (Node c1615a40), AE_AML_INTERNAL
Dec  4 09:50:14 localhost kernel:     ACPI-1120: *** Error: Method execution
failed [\_SB_.PCI0.LPC_.EC__.BAT0._BST] (Node c1615cc0), AE_AML_INTERNAL
Dec  4 09:50:34 localhost kernel:     ACPI-1120: *** Error: Method execution
failed [\_SB_.PCI0.LPC_.EC__.GBST] (Node c1615a40), AE_AML_INTERNAL
Dec  4 09:50:34 localhost kernel:     ACPI-1120: *** Error: Method execution

failed [\_SB_.PCI0.LPC_.EC__.BAT0._BST] (Node c1615cc0), AE_AML_INTERNAL [snip.... goes on like this]

Following the advice of a collegue (thx Diego), I dumped the content of the the DSDT, dissasembled it and try to feed it to the iasl compiler, which yields the following error(s) :
Intel ACPI Component Architecture
ASL Optimizing Compiler / AML Disassembler version 20030918 [Sep 18 2003] Copyright (C) 2000 - 2003 Intel Corporation
Supports ACPI Specification Revision 2.0b

dsdt.dsl 4321: Method (MHQC, 1, NotSerialized)
Warning 2019 - ^ Not all control paths
return a value (MHQC)

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

dsdt.dsl 8503: Field (U7CS, DWordAcc, NoLock, Preserve)
Error 1047 - ^ Access width is greater than region
size

dsdt.dsl 8505: PWKI, 1,
Error 1051 - ^ Access width of Field Unit extends
beyond region limit

dsdt.dsl 8506: PWUC, 6,
Error 1051 - ^ Access width of Field Unit extends
beyond region limit

This does not make any sense to me, but I suspect that my battery stuff might be
related to this... I have no clue about how to fix this...
I attach to the message the binary and dissassembled dsdt.

Any help appreciated :-)

Thanks in advance

Nicolas