Bug 8651 - IBM Thinkpad T23 Problems: no battery information
Summary: IBM Thinkpad T23 Problems: no battery information
Status: CLOSED PATCH_ALREADY_AVAILABLE
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Battery (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: acpi_power-battery
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-19 04:13 UTC by thalunil
Modified: 2007-08-20 21:31 UTC (History)
3 users (show)

See Also:
Kernel Version: 2.6.21.1
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments

Description thalunil 2007-06-19 04:13:19 UTC
Most recent kernel where this bug did not occur: 2.6.21.5

Distribution: Debian

Hardware Environment: IBM Thinkpad T23, x86

Problem Description:
  since 2.6.21.1 i don't have *any* files in /proc/acpi/battery/ anymore
  and no tool is able to show me the battery status of my IBM thinkpad
  T23.

  i tried 2.6.21.1: no acpi-battery
  then i tried 2.6.20.14: it works.

  the config is the same and i applied the config for 2.6.21.1 with "make
  oldconfig"
 
  acpidump:
    http://home.kallisti.de/acpidump_batprob.txt
    http://home.kallisti.de/dmesg_batprob.txt
Comment 1 Vladimir Lebedev 2007-06-19 07:13:59 UTC
Please attach dmesg output.
Comment 2 thalunil 2007-06-19 08:23:21 UTC
dmesg output is available from the mentioned URL.
Comment 3 Michal Piotrowski 2007-06-19 16:06:22 UTC
Something is wrong here

Most recent kernel where this bug did not occur: 2.6.21.5

Version: 2.6.21.1

Please correct information
Comment 4 thalunil 2007-06-20 01:50:26 UTC
It occurs on *every* version of 2.6.21.*
Currently I am running 2.6.21.5 and i don't have any battery information with ACPI.
Comment 5 Slava Gorbunov 2007-06-20 15:07:04 UTC
I have the same bug on the same hardware (Thinkpad T23, kernel 2.6.21-gentoo-r3 (it is 2.6.21.5 with additional patches)).

There are several ACPI errors reported by the kernel during boot, but similar errors was reported by older kernels, too. Here are ACPI errors reported by 2.6.21 kernel:

ACPI Exception (ec-0915): AE_NOT_FOUND, Could not use ECDT [20070126]
ACPI Error (evregion-0317): No handler for Region [ECOR] (dff40754) [EmbeddedControl] [20070126]
ACPI Error (exfldio-0289): Region EmbeddedControl(3) has no handler [20070126]
ACPI Exception (dswexec-0462): AE_NOT_EXIST, While resolving operands for [OpcodeName unavailable] [20070126]
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.FDC_._INI] (Node dff4db1c), AE_NOT_EXIST
ACPI Error (evregion-0317): No handler for Region [ECOR] (dff40754) [EmbeddedControl] [20070126]
ACPI Error (exfldio-0289): Region EmbeddedControl(3) has no handler [20070126]
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__._INI] (Node dff49bd0), AE_NOT_EXIST
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using PIC for interrupt routing
ACPI Error (evregion-0317): No handler for Region [ECOR] (dff40754) [EmbeddedControl] [20070126]
ACPI Error (exfldio-0289): Region EmbeddedControl(3) has no handler [20070126]
ACPI Exception (dswexec-0462): AE_NOT_EXIST, While resolving operands for [OpcodeName unavailable] [20070126]
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BAT0._STA] (Node dff49f68), AE_NOT_EXIST
ACPI Error (evregion-0317): No handler for Region [ECOR] (dff40754) [EmbeddedControl] [20070126]
ACPI Error (exfldio-0289): Region EmbeddedControl(3) has no handler [20070126]
ACPI Exception (dswexec-0462): AE_NOT_EXIST, While resolving operands for [OpcodeName unavailable] [20070126]
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BAT1._STA] (Node dff49e78), AE_NOT_EXIST
ACPI Error (evregion-0317): No handler for Region [ECOR] (dff40754) [EmbeddedControl] [20070126]
ACPI Error (exfldio-0289): Region EmbeddedControl(3) has no handler [20070126]
ACPI Exception (dswexec-0462): AE_NOT_EXIST, While resolving operands for [OpcodeName unavailable] [20070126]
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BGID] (Node dff4dbe4), AE_NOT_EXIST
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BINI] (Node dff4dbf8), AE_NOT_EXIST
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BSTA] (Node dff4d2c0), AE_NOT_EXIST
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.IDE0.SCND.MSTR._STA] (Node dff4db58), AE_NOT_EXIST
ACPI Error (evregion-0317): No handler for Region [ECOR] (dff40754) [EmbeddedControl] [20070126]
ACPI Error (exfldio-0289): Region EmbeddedControl(3) has no handler [20070126]
ACPI Exception (dswexec-0462): AE_NOT_EXIST, While resolving operands for [OpcodeName unavailable] [20070126]
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BGID] (Node dff4dbe4), AE_NOT_EXIST
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BINI] (Node dff4dbf8), AE_NOT_EXIST
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BSTA] (Node dff4d2c0), AE_NOT_EXIST
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.USB0.URTH.UNST._STA] (Node dff4d5cc), AE_NOT_EXIST
ACPI Error (evregion-0317): No handler for Region [ECOR] (dff40754) [EmbeddedControl] [20070126]
ACPI Error (exfldio-0289): Region EmbeddedControl(3) has no handler [20070126]
ACPI Exception (dswexec-0462): AE_NOT_EXIST, While resolving operands for [OpcodeName unavailable] [20070126]
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BGID] (Node dff4dbe4), AE_NOT_EXIST
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BINI] (Node dff4dbf8), AE_NOT_EXIST
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BSTA] (Node dff4d2c0), AE_NOT_EXIST
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.NEST._STA] (Node dff4da40), AE_NOT_EXIST
Comment 6 thalunil 2007-06-25 05:08:08 UTC
I found some additional errors in the kernel log:

[    1.519139] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BAT0._STA] (Node c18ebf40), AE_NOT_EXIST
[    1.519660] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__.BAT1._STA] (Node c18ebe50), AE_NOT_EXIST

Are these messages helpful?
Comment 7 Slava Gorbunov 2007-06-25 11:13:06 UTC
Here are ACPI errors when running 2.6.20 kernel (battery info is available):

ACPI Exception (acpi_ec-0908): AE_NOT_FOUND, Could not use ECDT [20060707]
ACPI Error (evregion-0317): No handler for Region [ECOR] (dff40754) [EmbeddedControl] [20060707]
ACPI Error (exfldio-0290): Region EmbeddedControl(3) has no handler [20060707]
ACPI Exception (dswexec-0458): AE_NOT_EXIST, While resolving operands for [OpcodeName unavailable] [20060707]
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.FDC_._INI] (Node dff4db1c), AE_NOT_EXIST
ACPI Error (evregion-0317): No handler for Region [ECOR] (dff40754) [EmbeddedControl] [20060707]
ACPI Error (exfldio-0290): Region EmbeddedControl(3) has no handler [20060707]
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPC_.EC__._INI] (Node dff49bd0), AE_NOT_EXIST
Comment 8 thalunil 2007-06-27 09:34:55 UTC
I migrated to 2.6.22-rc6 and battery works for now...
thank you

rocky% acpi
     Battery 1: charging, 99%, charging at zero rate - will never fully charge.
     Battery 2: charged, 85%
Comment 9 Daniel Drake 2007-06-30 15:39:59 UTC
Does anyone have any idea which 2.6.22 patch may have fixed this? I'm interesting in backporting it to 2.6.21. Downstream bug: https://bugs.gentoo.org/show_bug.cgi?id=182738
Comment 10 Alexey Starikovskiy 2007-08-20 21:31:30 UTC
Daniel,
ECDT of this machine has /SB.PCI0.LPC.EC as full path to EC device. While the correct patch would be /_SB.PCI0.LPC.EC. This missing underscore would cause acpi_get_handle to return error condition. In 2.6.22-rc this code was re-written to not look for EC handle, but use ACPI_ROOT instead. This caused other regression #8709, 8909 so will need to be returned back.
Better patch would be to either insert underscore for _SB or fallback to ACPI_ROOT only if acpi_get_handle() fails.

Note You need to log in before you can comment on or make changes to this bug.