Bug 6768 - IBM Thinkpad R40e: unusable when reading battery info
Summary: IBM Thinkpad R40e: unusable when reading battery info
Status: REJECTED INSUFFICIENT_DATA
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Battery (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Vladimir Lebedev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-29 12:02 UTC by Josef Kufner
Modified: 2007-01-30 13:46 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.18.1
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
/proc/config.gz of running 2.6.18.1 + swsusp2 (10.26 KB, application/gzip)
2006-10-14 12:02 UTC, Josef Kufner
Details
acpidump > acpidump.txt (116.21 KB, text/plain)
2006-10-16 02:10 UTC, Josef Kufner
Details
dmesg > dmesg.txt (15.17 KB, text/plain)
2006-10-16 02:11 UTC, Josef Kufner
Details

Description Josef Kufner 2006-06-29 12:02:56 UTC
Distribution: Debian
Hardware Environment: IBM Thinkpad R40e


Problem Description:

When something i reading /proc/acpi/battery/BAT0/info system is unusable. It's
loosing keyboard & mouse events, and it is slow. Also, reading of that file
takes about 4 seconds.


Steps to reproduce:

$ time cat /proc/acpi/battery/BAT0/info 
present:                 yes
design capacity:         43200 mWh
last full capacity:      26320 mWh
battery technology:      rechargeable
design voltage:          10800 mV
design capacity warning: 1316 mWh
design capacity low:     200 mWh
capacity granularity 1:  1 mWh
capacity granularity 2:  1 mWh
model number:            IBM-92P0987
serial number:              20
battery type:            LION
OEM info:                SANYO

real    0m5.495s
user    0m0.000s
sys     0m0.004s

Same with /proc/acpi/battery/BAT0/state

With 2.6.11.11 + swsusp2 patch it works fine.
Comment 1 Luming Yu 2006-06-29 18:40:15 UTC
any difference with ec_intr=0?
Comment 2 Vladimir Lebedev 2006-06-30 15:26:11 UTC
Also, please try the latest mm* version.
Comment 3 Vladimir Lebedev 2006-07-26 14:45:10 UTC
2.6.18-rc2 is available now.
Comment 4 Vladimir Lebedev 2006-07-29 19:57:06 UTC
No response from bug submitter, please reopen if problem persists. 
Comment 5 Josef Kufner 2006-10-14 12:00:36 UTC
Sorry for delay, a have no time for experimenting... :(

I've upgraded to vanilla 2.6.18.1 + swsusp2. And problem is still here.

When I booted with ec_intr=0 and launch this:

while cat /proc/acpi/battery/BAT0/info ; do : ; done >/dev/null

Mouse pointer slows down at only 1/4 of it's normal speed and movement is not
smooth. With /proc/acpi/battery/BAT0/state is only bit slower. With
/proc/acpi/battery/BAT0/alarm or /proc/cpuinfo it is ok.

With ec_intr=0 is kernel usable, but problem still exists.
Comment 6 Josef Kufner 2006-10-14 12:02:40 UTC
Created attachment 9248 [details]
/proc/config.gz of running 2.6.18.1 + swsusp2
Comment 7 Vladimir Lebedev 2006-10-16 01:11:01 UTC
Please attach acpidump and dmesg after 'cat /proc/acpi/battery/*/*'.


Comment 8 Josef Kufner 2006-10-16 02:10:40 UTC
Created attachment 9252 [details]
acpidump > acpidump.txt
Comment 9 Josef Kufner 2006-10-16 02:11:37 UTC
Created attachment 9253 [details]
dmesg > dmesg.txt
Comment 10 Josef Kufner 2006-10-16 02:13:50 UTC
Ok. Here they are.

Files has been created by this commands:

 cat /proc/acpi/battery/*/*
 acpidump > acpidump.txt
 dmesg > dmesg.txt
Comment 11 Vladimir Lebedev 2006-10-16 12:49:52 UTC
Please try the 2.6.18.1 without swsusp2 patch.



Comment 12 Josef Kufner 2006-10-17 05:21:39 UTC
No change. Same behavior without swsusp2.
Comment 13 Vladimir Lebedev 2006-10-22 00:09:35 UTC
Please try the latest 2.6.19-rc-git* version with/without ec_intr=0.
There are some important changes in these versions.
2.6.19-rc-git7 is available now.

Comment 14 Josef Kufner 2006-10-22 08:17:10 UTC
No change :(
Comment 15 Vladimir Lebedev 2006-10-22 08:42:42 UTC
> With 2.6.11.11 + swsusp2 patch it works fine.

Do you have 2.6.11.11? What is the time of 'cat /proc/acpi/battery/*/*' on 
2.6.11.11?
Do you know any other latest versions where the problem is absent?

Comment 16 Josef Kufner 2006-10-22 10:24:02 UTC
time for n in $(seq 1 1000)
do
    cat /proc/acpi/battery/*/* >/dev/null
done

times of this loop at 2.6.11.11 are:

real    0m23.097s
user    0m0.870s
sys     0m21.470s

similar results with 2.6.7, 2.6.13.4 and 2.6.15.1

But with 2.6.17.1 for 100 loops (not 1000 as above):

real    11m15.629s
user    0m0.000s
sys     0m0.004s

Comment 17 Vladimir Lebedev 2006-10-22 13:47:48 UTC
Please check the problem on 2.6.17, try 2.6.16 if the problem persists on 
2.6.17.
We need to minimize the differences between failed and passed versions. It 
will be nice if you can find two 'near by' versions (2.6.X.n and 2.6.X.n+1)

Also, please try to reproduce a failure without the ibm_acpi module (i.e. 
remove ibm_acpi module from the .config, etc ...).

Comment 18 Josef Kufner 2006-10-23 15:04:35 UTC
Ok, but it takes a while...
Comment 19 Vladimir Lebedev 2006-12-18 22:22:54 UTC
Please try the latest 2.6.20-rc1-mm* version.
Comment 20 Vladimir Lebedev 2007-01-30 13:46:07 UTC
No response from bug submitter, please reopen if problem persists. 

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