Bug 11664

Summary: acpi errors and random freeze on sony vaio sr
Product: ACPI Reporter: Giovanni Pellerano (giovanni.pellerano)
Component: ECAssignee: Alexey Starikovskiy (astarikovskiy)
Severity: normal CC: acpi-bugzilla, rjw
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.27 RC7 Subsystem:
Regression: Yes Bisected commit-id:
Bug Depends on:    
Bug Blocks: 11167    
Attachments: dmesg output
Kernel 2.6.27 rc7 config
acpi dump output on sony vaio sr19xn
Fix ACPI battery regression

Description Giovanni Pellerano 2008-09-28 03:48:33 UTC
Latest working kernel version:
Earliest failing kernel version:
Hardware Environment:
Software Environment:
Problem Description:

Steps to reproduce:
Comment 1 Giovanni Pellerano 2008-09-28 03:52:42 UTC
Created attachment 18090 [details]
dmesg output
Comment 2 Rafael J. Wysocki 2008-09-28 04:01:27 UTC
Can you check if this is a regression from 2.6.26(.x), please?
Comment 3 Giovanni Pellerano 2008-09-28 04:04:03 UTC
ok sey to me wat versione to try;

linux- ?
Comment 4 Giovanni Pellerano 2008-09-28 04:07:49 UTC
Created attachment 18091 [details]
Comment 5 Giovanni Pellerano 2008-09-28 04:08:51 UTC
Created attachment 18092 [details]
Kernel 2.6.27 rc7 config
Comment 6 Rafael J. Wysocki 2008-09-28 04:09:40 UTC
(In reply to comment #3)
> ok sey to me wat versione to try;
> linux- ?

That will be fine.
Comment 7 Giovanni Pellerano 2008-09-28 04:29:41 UTC
ok i'm testing it now;

if it will work as in your opinion what i've to do? 

have i to give you some others output? what additional information are useful ? 
Comment 8 Giovanni Pellerano 2008-09-28 11:58:34 UTC
ok i've tested some hours and it seems a regression of the 2.6.27;

but what to do now to be sure and to individuate the exact problem ? 

give to me all the instructions you need.

Comment 9 Rafael J. Wysocki 2008-09-28 15:30:35 UTC
Thanks for testing, I'm adding this bug to the list of recent regressions.

If it's 100% reproducible, I think you can try to use git bisection to identify the commit that introduced the problem.
Comment 10 ykzhao 2008-10-03 05:25:04 UTC
Hi, Giovanni
    Do you mean that the box can work well on kernel while it fails on 2.6.27-rc7 kernel? right?
    Will you please attach the output of acpidump?
    Will you please try the following boot option and see whether the system can work well?
    a. idle=poll
    b. processor.max_cstate=1(processor should be compiled as built-in kernel)
    c. nolapic_timer
    d. nohz=off(disable tickless feature)
Comment 11 Giovanni Pellerano 2008-10-03 08:08:59 UTC
ok i will try in the week-end;

in the last week the problem seems solved automagically, but i dont think it so much cause of the random factor.

Comment 12 Zhang Rui 2008-10-29 19:25:35 UTC
giovanni, any update?
Comment 13 Giovanni Pellerano 2008-10-30 00:28:08 UTC
mmm ... now i'm using 2.6.28-rc2-git3 and i did not have any freeze... 

i did not have system freeze but sometimes the acpi stop to work with some errors like:

ACPI Exception (evregion-0419): AE_TIME, Returned by Handler for [EmbeddedControl] [20080926]
ACPI Error (psparse-0524): Method parse/execution failed [\_SB_.BAT0._BST] (Node f701be40), AE_TIME
ACPI Exception (battery-0360): AE_TIME, Evaluating _BST [20080926]

or like

acpid: executing action "/etc/acpi/default.sh battery BAT0 00000080 00000001"
Oct 29 18:00:38 infectedsynapsis logger: ACPI event unhandled: battery BAT0 00000080 00000001
acpid: action exited with status 0
acpid: executing action "/etc/acpi/actions/lm_battery.sh battery BAT0 00000080 00000001"
ACPI: EC: missing confirmations, switch off interrupt mode.
Oct 29 18:00:39 infectedsynapsis ACPI Exception (evregion-0419): AE_TIME, Returned by Handler for [EmbeddedControl] [20080926]
ACPI Error (psparse-0524): Method parse/execution failed [\_SB_.BAT0._STA] (Node f701be10), AE_TIME
ACPI Exception (battery-0310): AE_ERROR, Evaluating _STA [20080926]

can you give information about the test to do on this kernel?
what information do you need? 

Comment 14 Rafael J. Wysocki 2008-11-02 10:58:55 UTC
Please attach the output of acpidump as requested in comment #10.
Comment 15 Giovanni Pellerano 2008-11-02 11:38:12 UTC
Created attachment 18596 [details]
acpi dump output on sony vaio sr19xn
Comment 16 Alan Jenkins 2008-11-02 11:44:37 UTC
I think this latter issue is the same EC problem as reported by Darren Salt on the acpi-devel list.  It was confirmed fixed by

Patch: <http://marc.info/?l=linux-acpi&m=122514341319748&w=4>
Comment 17 Giovanni Pellerano 2008-11-15 05:57:24 UTC
no. :(

i'm using 2.6.28-rc4-git5 on a sony vaio sr19xn and the proplem persist :(

any assumption?
Comment 18 Rafael J. Wysocki 2008-11-16 11:03:31 UTC
Notify-Also : Zhang Rui <rui.zhang@intel.com>
Notify-Also : ykzhao <yakui.zhao@intel.com>
Comment 19 Giovanni Pellerano 2008-11-16 14:58:04 UTC
Rafael, what does this last post mean?

Comment 20 Rafael J. Wysocki 2008-11-16 17:20:34 UTC
This is for the tracking of regressions, who should be sent the automatically generated messages (in addition to the reporter etc.).
Comment 21 Giovanni Pellerano 2008-11-22 15:27:18 UTC
Any Update?

I continue to have the problem on 2.6.28-rc5-git4;

Can i help you doing some tests? 
Comment 22 Zhang Rui 2008-11-23 18:55:50 UTC
the problem still exists in the latest git tree?
I don't know the recent updates of ec driver.
re-assign to Alexey. :)
Comment 23 Rafael J. Wysocki 2008-12-03 16:14:59 UTC
Ignore-Patch : <http://marc.info/?l=linux-acpi&m=122514341319748&w=4>
Comment 24 Rafael J. Wysocki 2008-12-03 16:15:32 UTC
Giovanni, please check 2.6.28-rc7, it contains some important ACPI fixes.
Comment 25 Giovanni Pellerano 2008-12-04 08:53:50 UTC
Thanks Rafael. I'm testing this importans ACPI fixes.

At the moment i did not have the error, but instead I got a lot of other problem =) the battery indicator sometime says me i've 0.1hour of battery [when the battery is fully charges.. sometimes it says that i've 10h of autonomy [when i've 4h max]

do you need some information ? 
Comment 26 Rafael J. Wysocki 2008-12-04 15:12:42 UTC
Created attachment 19149 [details]
Fix ACPI battery regression

Please check if this patch on top of 2.6.28-rc7 fixes the ACPI battery times problem.
Comment 27 Giovanni Pellerano 2008-12-05 10:16:13 UTC
ok now i'm goin to test it.

with the git 3 i get always: 

ACPI: EC: GPE storm detected, transactions will use polling mode
ACPI: EC: missing confirmations, switch off interrupt mode.
Comment 28 Len Brown 2008-12-12 15:19:05 UTC
Is this battery issue still present in 2.6.28-rc8?

Linus reverted some commits to battery.c for that release.
Comment 29 Giovanni Pellerano 2008-12-13 01:38:02 UTC
the remain battery information is now fixed [reverted]

but i always get this:

ACPI: EC: missing confirmations, switch off interrupt mode.
ACPI Exception (evregion-0419): AE_TIME, Returned by Handler for [EmbeddedControl] [20080926]
ACPI Error (psparse-0524): Method parse/execution failed [\_SB_.BAT0._BST] (Node f701be40), AE_TIME
ACPI Exception (battery-0359): AE_TIME, Evaluating _BST [20080926]
Comment 30 Rafael J. Wysocki 2008-12-13 10:49:50 UTC
Please file another bug report for this issue.  I'm closing this one since the original problem appears to have been fixed.