Bug 42770 - ~80000 wakeups/sec after unplugging AC
Summary: ~80000 wakeups/sec after unplugging AC
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Power Management
Classification: Unclassified
Component: intel_idle (show other bugs)
Hardware: All Linux
: P1 high
Assignee: power-management_intel_idle@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-14 11:13 UTC by Tom D.
Modified: 2012-05-24 08:12 UTC (History)
3 users (show)

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


Attachments
3.2.2-pf kernel config (79.64 KB, text/plain)
2012-02-14 11:13 UTC, Tom D.
Details
wakeups in 2.6.32.57 (3.24 KB, text/plain)
2012-02-18 12:27 UTC, Tom D.
Details
wakeups in 2.6.33.20 (3.18 KB, text/plain)
2012-02-18 12:28 UTC, Tom D.
Details
acpidump file (136.94 KB, text/plain)
2012-02-22 12:05 UTC, Tom D.
Details
cat /proc/interrupts on AC (922 bytes, text/plain)
2012-02-22 12:07 UTC, Tom D.
Details
cat /proc/interrupts unplugged AC (922 bytes, text/plain)
2012-02-22 12:07 UTC, Tom D.
Details
cat /sys/firmware/acpi/interrupts/* on AC (745 bytes, text/plain)
2012-02-22 12:08 UTC, Tom D.
Details
cat /sys/firmware/acpi/interrupts/* unplugged AC (745 bytes, text/plain)
2012-02-22 12:10 UTC, Tom D.
Details
list of /sys/firmware/acpi/interrupts/ (273 bytes, text/plain)
2012-02-22 12:11 UTC, Tom D.
Details
cat /sys/firmware/acpi/interrupts/* unplugged AC after ~25min (668 bytes, text/plain)
2012-02-22 12:37 UTC, Tom D.
Details

Description Tom D. 2012-02-14 11:13:32 UTC
Created attachment 72372 [details]
3.2.2-pf kernel config

Latest working kernel I know: 2.6.32-zen7
Kernel I work on now: 3.2.2-pf

Distribution: Funtoo x86
Hardware: Asus A6RP BIOS: 214, on ATI IXP SB4xx and Intel Celeron m420 cpu

Overview:
I talking here what is going on in CLI. With AC adapter plugged in I have in idle ~40 wakeups/sec. This is normal, but when I unplug power source, then there`s going magic. In 2.6.32 power usage is ~16W and wakeups ~40-300.
Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        (56,5%)
polling		  0,0ms ( 0,0%)
C1 halt		  1,4ms ( 0,1%)
C2		  0,0ms (43,5%)
C3		  0,5ms ( 0,0%)

Wakeups-from-idle per second : 85103,9	interval: 15,0s
Power usage (ACPI estimate): 20,7W (1,3 hours) 
Top causes for wakeups:
  50,7% ( 20,9)   BFS
  47,2% ( 19,5)   [extra timer interrupt]
   1,5% (  0,6)   [pata_atiixp] <interrupt>
   0,5% (  0,2)   init
   0,2% (  0,1)   X 

This is huge problem, because power usage is going up to ~24-25W and on battery form 3.5h to 2h or lower.
From what I remember this odd behaviour on zen is from 2.6.33. I check newest stable on vanilla: 2.6.32.57 and 2.6.33.20. On 3.2.1 vanilla this was still present. Next kernel was 3.2.2-pf.

Steps to reproduce: 
Get Asus a6rp, boot and unplug ac adapter.
Comment 1 Tom D. 2012-02-18 12:27:43 UTC
Created attachment 72435 [details]
wakeups in 2.6.32.57

Powertop test after compiled latest vanilla 2.5.32.57
Comment 2 Tom D. 2012-02-18 12:28:48 UTC
Created attachment 72436 [details]
wakeups in 2.6.33.20

Powertop test after compiled latest vanilla 2.5.33.20
Comment 3 Zhang Rui 2012-02-20 06:11:00 UTC
it seems there is an interrupt storm.

please attach the output of "cat /proc/interrupts" and "grep . /sys/firmware/acpi/interrupts/", both before and after unplugging the AC adapter.
please attach the output of acpidump as well.
Comment 4 Tom D. 2012-02-22 12:05:03 UTC
Created attachment 72461 [details]
acpidump file
Comment 5 Tom D. 2012-02-22 12:07:08 UTC
Created attachment 72462 [details]
cat /proc/interrupts on AC
Comment 6 Tom D. 2012-02-22 12:07:53 UTC
Created attachment 72463 [details]
cat /proc/interrupts unplugged AC
Comment 7 Tom D. 2012-02-22 12:08:59 UTC
Created attachment 72464 [details]
cat /sys/firmware/acpi/interrupts/* on AC
Comment 8 Tom D. 2012-02-22 12:10:06 UTC
Created attachment 72465 [details]
cat /sys/firmware/acpi/interrupts/* unplugged AC
Comment 9 Tom D. 2012-02-22 12:11:28 UTC
Created attachment 72466 [details]
list of /sys/firmware/acpi/interrupts/
Comment 10 Tom D. 2012-02-22 12:37:29 UTC
Created attachment 72467 [details]
cat /sys/firmware/acpi/interrupts/* unplugged AC after ~25min
Comment 11 Len Brown 2012-03-06 02:50:23 UTC
This does not appear to be an interrupt storm.

It may be the result of the system failing to
enter a C-state, and immediately re-trying.

please attach the complete output from "demsg"

If it shows intel_idle, as your .config suggests it may,
please try disabling the deepest c-state.

eg. boot with
intel_idle.max_cstate=5
and lower 5 until the problem goes away.

The C-state are visible in
grep . /sys/devices/system/cpu/cpu0/cpuidle/*/*
Comment 12 Zhang Rui 2012-05-24 08:12:40 UTC
bug closed as there is no response from the bug reporter.
please feel free to reopen it if the problem still exists in the latest upstream kernel.

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