Re: 2.6.25 regression: powertop says 120K wakeups/sec

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Venki Pallipadi
Date: Friday, March 28, 2008 - 1:30 pm

On Fri, Mar 28, 2008 at 12:44:26PM -0700, David Brownell wrote:

No. If powertop is reporting that many wakeups, there should be that many as
powertop gets wakeups from usage in /proc/acpi/processor/CPU*/power

Can you send me the output of
# grep . /sys/devices/system/cpu/cpu*/cpuidle/*/*
with upstream kernel.

Below is a test patch which should effectively revert commit bc71bec91f987
Can you check with this patch on latest git and see whether things come back
to normal.

Also, it will help if you can send the output of acpidump from this system.

Thanks,
Venki


---
 drivers/acpi/processor_idle.c |   11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

Index: linux-2.6/drivers/acpi/processor_idle.c
===================================================================
--- linux-2.6.orig/drivers/acpi/processor_idle.c	2008-03-28 12:07:23.000000000 -0700
+++ linux-2.6/drivers/acpi/processor_idle.c	2008-03-28 13:17:31.000000000 -0700
@@ -943,16 +943,15 @@ static int acpi_processor_get_power_info
 			if (acpi_processor_ffh_cstate_probe
 					(pr->id, &cx, reg) == 0) {
 				cx.entry_method = ACPI_CSTATE_FFH;
-			} else if (cx.type == ACPI_STATE_C1) {
+			} else if (cx.type != ACPI_STATE_C1) {
 				/*
 				 * C1 is a special case where FIXED_HARDWARE
 				 * can be handled in non-MWAIT way as well.
 				 * In that case, save this _CST entry info.
+				 * That is, we retain space_id of SYSTEM_IO for
+				 * halt based C1.
 				 * Otherwise, ignore this info and continue.
 				 */
-				cx.entry_method = ACPI_CSTATE_HALT;
-				snprintf(cx.desc, ACPI_CX_DESC_LEN, "ACPI HLT");
-			} else {
 				continue;
 			}
 		} else {
@@ -1398,8 +1397,6 @@ static inline void acpi_idle_do_entry(st
 	if (cx->entry_method == ACPI_CSTATE_FFH) {
 		/* Call into architectural FFH based C-state */
 		acpi_processor_ffh_cstate_enter(cx);
-	} else if (cx->entry_method == ACPI_CSTATE_HALT) {
-		acpi_safe_halt();
 	} else {
 		int unused;
 		/* IO port based C-state */
@@ -1443,7 +1440,7 @@ static int acpi_idle_enter_c1(struct cpu
 		acpi_idle_update_bm_rld(pr, cx);
 
 	t1 = inl(acpi_gbl_FADT.xpm_timer_block.address);
-	acpi_idle_do_entry(cx);
+	acpi_safe_halt();
 	t2 = inl(acpi_gbl_FADT.xpm_timer_block.address);
 
 	local_irq_enable();
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.25 regression: powertop says 120K wakeups/sec, David Brownell, (Sat Mar 22, 1:24 pm)
Re: 2.6.25 regression: powertop says 120K wakeups/sec, Andrew Morton, (Sat Mar 22, 5:35 pm)
Re: 2.6.25 regression: powertop says 120K wakeups/sec, Alexey Starikovskiy, (Sun Mar 23, 11:04 am)
Re: 2.6.25 regression: powertop says 120K wakeups/sec, David Brownell, (Fri Mar 28, 12:01 pm)
RE: 2.6.25 regression: powertop says 120K wakeups/sec, Pallipadi, Venkatesh, (Fri Mar 28, 12:13 pm)
Re: 2.6.25 regression: powertop says 120K wakeups/sec, David Brownell, (Fri Mar 28, 12:44 pm)
Re: 2.6.25 regression: powertop says 120K wakeups/sec, Venki Pallipadi, (Fri Mar 28, 1:30 pm)
Re: 2.6.25 regression: powertop says 120K wakeups/sec, David Brownell, (Fri Mar 28, 2:09 pm)
RE: 2.6.25 regression: powertop says 120K wakeups/sec, Pallipadi, Venkatesh, (Fri Mar 28, 2:55 pm)
Re: 2.6.25 regression: powertop says 120K wakeups/sec, David Brownell, (Fri Mar 28, 3:09 pm)
Re: 2.6.25 regression: powertop says 120K wakeups/sec, Venki Pallipadi, (Fri Mar 28, 3:56 pm)
Re: 2.6.25 regression: powertop says 120K wakeups/sec, Rafael J. Wysocki, (Fri Mar 28, 4:01 pm)
RE: 2.6.25 regression: powertop says 120K wakeups/sec, Pallipadi, Venkatesh, (Fri Mar 28, 4:07 pm)
Re: 2.6.25 regression: powertop says 120K wakeups/sec, David Brownell, (Fri Mar 28, 4:36 pm)
RE: 2.6.25 regression: powertop says 120K wakeups/sec, Pallipadi, Venkatesh, (Fri Mar 28, 4:51 pm)
Re: 2.6.25 regression: powertop says 120K wakeups/sec, David Brownell, (Fri Mar 28, 5:15 pm)
RE: 2.6.25 regression: powertop says 120K wakeups/sec, Pallipadi, Venkatesh, (Mon Mar 31, 11:34 am)