Re: [PATCH] cpuidle: Measure idle state durations with monotonic clock

2012-11-26 Thread Len Brown
k_idle_wakeup_event() is part of the scheduler. The scheduler doesn't know what a cpuidle_device is, and probably should not grow such a dependency. cheers, -Len Brown, Intel Open Source Technology Center > But this does not seem to come in way of this patch for now.Anyway I > have added

Re: [PATCH] cpuidle: Measure idle state durations with monotonic clock

2012-11-26 Thread Len Brown
>> drivers/idle/intel_idle.c | 14 +- Acked-by: Len Brown thanks! -Len -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kern

Re: [PATCH 1/4] intel_idle: stop using driver_data for static flags

2013-02-02 Thread Len Brown
IME_VALID I like your syntax better than what I used -- thanks for suggesting it. I can't use it as-is, however, because I really do need to be able to support unique parameters on each entry (eg. different flags for C3 on different processors). When some of the logical and functional chang

[PATCH 01/16] intel_idle: stop using driver_data for static flags

2013-02-08 Thread Len Brown
From: Len Brown The commit, 4202735e8ab6ecfb0381631a0d0b58fefe0bd4e2 (cpuidle: Split cpuidle_state structure and move per-cpu statistics fields) observed that the MWAIT flags for Cn on every processor to date were the same, and created get_driver_data() to supply them. Unfortunately, that

[PATCH 10/16] cpuidle: remove vestage definition of cpuidle_state_usage.driver_data

2013-02-08 Thread Len Brown
From: Len Brown This field is no longer used. Signed-off-by: Len Brown --- include/linux/cpuidle.h | 22 -- 1 file changed, 22 deletions(-) diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index 24cd1037..480c14d 100644 --- a/include/linux/cpuidle.h +++ b

[PATCH 14/16] intel_idle: remove use and definition of MWAIT_MAX_NUM_CSTATES

2013-02-08 Thread Len Brown
From: Len Brown Cosmetic only. Replace use of MWAIT_MAX_NUM_CSTATES with CPUIDLE_STATE_MAX. They are both 8, so this patch has no functional change. The reason to change is that intel_idle will soon be able to export more than the 8 "major" states supported by MWAIT. When we hit that

[PATCH 16/16] intel_idle: export both C1 and C1E

2013-02-08 Thread Len Brown
From: Len Brown Here we disable HW promotion of C1 to C1E and export both C1 and C1E and distinct C-states. This allows a cpuidle governor to choose a lower latency C-state than C1E when necessary to satisfy performance and QOS constraints -- and still save power versus polling. This also

[PATCH 02/16] Replace the flag by a simple global boolean in the cpuidle.c. That will allow to cleanup the rest of the code right after, because the ops won't make sense.

2013-02-08 Thread Len Brown
From: Daniel Lezcano Signed-off-by: Daniel Lezcano Acked-by: Sekhar Nori Signed-off-by: Len Brown --- arch/arm/mach-davinci/cpuidle.c | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/arch/arm/mach-davinci/cpuidle.c b/arch/arm/mach-davinci

[PATCH 12/16] tools/power turbostat: support Haswell

2013-02-08 Thread Len Brown
From: Len Brown This patch enables turbostat to run properly on the next-generation Intel(R) Microarchitecture, code named "Haswell" (HSW). HSW supports the BCLK and counters found in SNB. Signed-off-by: Len Brown --- tools/power/x86/turbostat/turbostat.c | 11 ++- 1 file c

[PATCH 15/16] intel_idle: remove assumption of one C-state per MWAIT flag

2013-02-08 Thread Len Brown
From: Len Brown Remove the assumption that cstate_tables are indexed by MWAIT flag values. Each entry identifies itself via its own flags value. This change is needed to support multiple states that share the same MWAIT flags. Note that this can have an effect on what state is described by &#

[PATCH 13/16] tools/power turbostat: decode MSR_IA32_POWER_CTL

2013-02-08 Thread Len Brown
From: Len Brown When verbose is enabled, print the C1E-Enable bit in MSR_IA32_POWER_CTL. also delete some redundant tests on the verbose variable. Signed-off-by: Len Brown --- arch/x86/include/uapi/asm/msr-index.h | 2 ++ tools/power/x86/turbostat/turbostat.c | 13 +++-- 2 files

[PATCH 11/16] intel_idle: support Haswell

2013-02-08 Thread Len Brown
From: Len Brown This patch enables intel_idle to run on the next-generation Intel(R) Microarchitecture code named "Haswell". Signed-off-by: Len Brown --- drivers/idle/intel_idle.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/dr

[PATCH 09/16] ACPI / idle: remove usage of the statedata

2013-02-08 Thread Len Brown
From: Daniel Lezcano Len Brown sent a patch to remove this field in the intel_idle driver. The other user of this field is the davinci cpuidle driver and a patch has been sent to remove the usage of it. This patch removes the last user of this field. Signed-off-by: Daniel Lezcano Signed-off

idle patches queued for Linux-3.9

2013-02-08 Thread Len Brown
The following is my idle patch queue for Linux-3.9. As noted below, some patches are unchanged since last seen on the list, some are re-freshed, and some are new. Please let me know if you see troubles with any of them. thanks, Len Brown, Intel Open Source Technology Center [PATCH 01/16

[PATCH 03/16] davinci: cpuidle - move code to prevent forward declaration

2013-02-08 Thread Len Brown
From: Daniel Lezcano The patch is mindless, it just moves the idle function below in the file in order to prevent forward declaration in the next patch. Signed-off-by: Daniel Lezcano Acked-by: Sekhar Nori Signed-off-by: Len Brown --- arch/arm/mach-davinci/cpuidle.c | 72

[PATCH 05/16] davinci: cpuidle - remove useless initialization

2013-02-08 Thread Len Brown
From: Daniel Lezcano The device->state_count is initialized in the cpuidle_register_device function. Signed-off-by: Daniel Lezcano Acked-by: Sekhar Nori Signed-off-by: Len Brown --- arch/arm/mach-davinci/cpuidle.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/mach-davi

[PATCH 04/16] davinci: cpuidle - remove the ops

2013-02-08 Thread Len Brown
ld removed. Signed-off-by: Daniel Lezcano Acked-by: Sekhar Nori Signed-off-by: Len Brown --- arch/arm/mach-davinci/cpuidle.c | 33 ++--- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/arch/arm/mach-davinci/cpuidle.c b/arch/arm/mach-davinci/cpuidle.c ind

[PATCH 08/16] ACPI / idle: pass the cpuidle_device parameter

2013-02-08 Thread Len Brown
-off-by: Len Brown --- drivers/acpi/processor_idle.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 82626e9..6837065 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c

[PATCH 07/16] ACPI / idle : remove pointless headers

2013-02-08 Thread Len Brown
From: Daniel Lezcano These different headers are not needed. Signed-off-by: Daniel Lezcano Signed-off-by: Len Brown --- drivers/acpi/processor_idle.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi

[PATCH 06/16] ACPI / idle: remove unused definition

2013-02-08 Thread Len Brown
From: Daniel Lezcano The different definitions are not used anywhere in the code. Signed-off-by: Daniel Lezcano Signed-off-by: Len Brown --- drivers/acpi/processor_idle.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c

[PATCH 01/16] APM idle: register apm_cpu_idle via cpuidle

2013-02-09 Thread Len Brown
From: Len Brown Update APM to register its local idle routine with cpuidle. This allows us to stop exporting pm_idle to modules on x86. The Kconfig sub-option, APM_CPU_IDLE, now depends on on CPU_IDLE. Compile-tested only. Signed-off-by: Len Brown Cc: Jiri Kosina --- arch/x86/Kconfig

[PATCH 04/16] sparc idle: rename pm_idle to sparc_idle

2013-02-09 Thread Len Brown
From: Len Brown (pm_idle)() is being removed from linux/pm.h because Linux does not have such a cross-architecture concept. sparc uses an idle function pointer in its architecture specific code. So we re-name sparc use of pm_idle to sparc_idle. Maybe some day, SPARC will cut over to cpuidle

[PATCH 10/16] m32r idle: delete pm_idle, and other dead idle code

2013-02-09 Thread Len Brown
From: Len Brown All paths on m32r lead to cpu_relax(). So delete the dead code and simply call cpu_relax() directly. Signed-off-by: Len Brown Cc: linux-m...@ml.linux-m32r.org --- arch/m32r/kernel/process.c | 51 ++ 1 file changed, 2 insertions

[PATCH 16/16] xen idle: make xen-specific macro xen-specific

2013-02-09 Thread Len Brown
From: Len Brown This macro is only invoked by Xen, so make its definition specific to Xen. > set_pm_idle_to_default() < xen_set_default_idle() Signed-off-by: Len Brown Cc: xen-de...@lists.xensource.com --- arch/x86/include/asm/processor.h | 6 +- arch/x86/kernel/process.c

[PATCH 07/16] ARM64 idle: delete pm_idle

2013-02-09 Thread Len Brown
From: Len Brown pm_idle() on arm64 was a synonym for default_idle(), so remove it and invoke default_idle() directly. Signed-off-by: Len Brown Cc: linux-arm-ker...@lists.infradead.org --- arch/arm64/kernel/process.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff

[PATCH 08/16] cris idle: delete idle and pm_idle

2013-02-09 Thread Len Brown
From: Len Brown pm_idle() and idle() served no purpose on cris -- invoke default_idle() directly. Signed-off-by: Len Brown Cc: linux-cris-ker...@axis.com --- arch/cris/kernel/process.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/arch/cris/kernel/process.c b

[PATCH 15/16] PM idle: remove global declaration of pm_idle

2013-02-09 Thread Len Brown
From: Len Brown pm_idle appears in no generic Linux code, it appears only in architecture-specific code. Thus, pm_idle should not be declared in pm.h. Architectures that use an idle function pointer should delcare one local to their architecture, and/or use cpuidle. Signed-off-by: Len Brown

[PATCH 14/16] unicore32 idle: delete stray pm_idle comment

2013-02-09 Thread Len Brown
From: Len Brown as pm_idle() has already been deleted from this code, the comment was a stray. Signed-off-by: Len Brown Cc: Guan Xuetao --- arch/unicore32/kernel/process.c | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/unicore32/kernel/process.c b/arch/unicore32/kernel

[PATCH 13/16] openrisc idle: delete pm_idle

2013-02-09 Thread Len Brown
From: Len Brown pm_idle() on openrisc was dead code. Signed-off-by: Len Brown Cc: li...@lists.openrisc.net --- arch/openrisc/kernel/idle.c | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/openrisc/kernel/idle.c b/arch/openrisc/kernel/idle.c index 7d618fe..5e8a3b6 100644 --- a/arch

[PATCH 03/16] sh idle: rename global pm_idle to static sh_idle

2013-02-09 Thread Len Brown
From: Len Brown SH idle code could use some simplification. This patch enables that by guaranteeing that "sh_idle" is local, and thus architecture specific. Signed-off-by: Len Brown Cc: linux...@vger.kernel.org --- arch/sh/kernel/idle.c | 12 ++-- 1 file changed, 6 insert

[PATCH 09/16] ia64 idle: delete pm_idle

2013-02-09 Thread Len Brown
From: Len Brown pm_idle() on ia64 was a synonym for default_idle(). So simply invoke default_idle() directly. Signed-off-by: Len Brown Cc: linux-i...@vger.kernel.org --- arch/ia64/kernel/process.c | 3 --- arch/ia64/kernel/setup.c | 1 - 2 files changed, 4 deletions(-) diff --git a/arch

[PATCH 12/16] mn10300 idle: delete pm_idle

2013-02-09 Thread Len Brown
From: Len Brown pm_idle on mn10300 served no purpose. Signed-off-by: Len Brown Cc: linux-am33-l...@redhat.com --- arch/mn10300/kernel/process.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/mn10300/kernel/process.c b/arch/mn10300/kernel/process.c index eb09f5a..84f4e97 100644

[PATCH 11/16] microblaze idle: delete pm_idle

2013-02-09 Thread Len Brown
From: Len Brown pm_idle on microblaze served no purpose. Signed-off-by: Len Brown Cc: microblaze-ucli...@itee.uq.edu.au --- arch/microblaze/kernel/process.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/microblaze/kernel/process.c b/arch/microblaze/kernel/process.c index a5b74f7

[PATCH 06/16] ARM idle: delete pm_idle

2013-02-09 Thread Len Brown
From: Len Brown pm_idle() on ARM was a synonym for default_idle(), so simply invoke default_idle() directly. Signed-off-by: Len Brown Cc: linux-arm-ker...@lists.infradead.org --- arch/arm/kernel/process.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/arch

pm_idle cleanup patch series

2013-02-09 Thread Len Brown
only. thanks, Len Brown, Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH 05/16] blackfin idle: delete pm_idle

2013-02-09 Thread Len Brown
From: Len Brown pm_idle is dead code on blackfin. Signed-off-by: Len Brown Cc: uclinux-dist-de...@blackfin.uclinux.org --- arch/blackfin/kernel/process.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/blackfin/kernel/process.c b/arch/blackfin/kernel/process.c index 3e16ad9

[PATCH 02/16] x86 idle: rename global pm_idle to static x86_idle

2013-02-09 Thread Len Brown
From: Len Brown (pm_idle)() is being removed from linux/pm.h because Linux does not have such a cross-architecture concept. x86 uses an idle function pointer in its architecture specific code as a backup to cpuidle. So we re-name x86 use of pm_idle to x86_idle, and make it static to x86

Two x86 idle cleanups

2013-02-10 Thread Len Brown
my tree. thanks, Len Brown, Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FA

[PATCH 1/2] x86 idle: remove mwait_idle() and "idle=mwait" cmdline param

2013-02-10 Thread Len Brown
From: Len Brown mwait_idle() is a C1-only idle loop intended to be more efficient than HLT, starting on Pentium-4 HT-enabled processors. But mwait_idle() has been replaced by the more general mwait_idle_with_hints(), which handles both C1 and deeper C-states. ACPI processor_idle and intel_idle

[PATCH 2/2] x86 idle: remove 32-bit-only "no-hlt" parameter, hlt_works_ok flag

2013-02-10 Thread Len Brown
From: Len Brown Remove 32-bit x86 a cmdline param "no-hlt", and the cpuinfo_x86.hlt_works_ok that it sets. If a user wants to avoid HLT, then "idle=poll" is much more useful, as it avoids invocation of HLT in idle, while "no-hlt" failed to do so. Indeed, hlt_wo

[PATCH 2/2 v2] x86 idle: remove 32-bit-only "no-hlt" parameter, hlt_works_ok flag

2013-02-10 Thread Len Brown
From: Len Brown Remove 32-bit x86 a cmdline param "no-hlt", and the cpuinfo_x86.hlt_works_ok that it sets. If a user wants to avoid HLT, then "idle=poll" is much more useful, as it avoids invocation of HLT in idle, while "no-hlt" failed to do so. Indeed, hlt_wo

Re: [PATCH 06/16] ARM idle: delete pm_idle

2013-02-11 Thread Len Brown
On 02/11/2013 11:11 AM, Russell King - ARM Linux wrote: > On Mon, Feb 11, 2013 at 04:02:30PM +, Catalin Marinas wrote: >> On Sun, Feb 10, 2013 at 05:58:13AM +0000, Len Brown wrote: >>> pm_idle() on ARM was a synonym for default_idle(), >>> so simply invoke default

Re: [PATCH 01/16] APM idle: register apm_cpu_idle via cpuidle

2013-02-11 Thread Len Brown
On 02/11/2013 04:18 AM, Daniel Lezcano wrote: > On 02/10/2013 06:58 AM, Len Brown wrote: >> From: Len Brown >> >> Update APM to register its local idle routine with cpuidle. >> >> This allows us to stop exporting pm_idle to modules on x86. >> >> The

APM: Request to Test

2013-02-11 Thread Len Brown
Thanks, Daniel, for reviewing the patch -- never would have worked... Here is v2. Is there anybody out there with an APM box that can run an upstream kernel with this patch in it? thanks, -Len -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

[PATCH v2] APM idle: register apm_cpu_idle via cpuidle

2013-02-11 Thread Len Brown
From: Len Brown Update APM to register its local idle routine with cpuidle. This allows us to stop exporting pm_idle to modules on x86. The Kconfig sub-option, APM_CPU_IDLE, now depends on on CPU_IDLE. Compile-tested only. Signed-off-by: Len Brown Cc: Jiri Kosina --- v2: updates from

Re: linux-next: build failure after merge of the final tree (acpi tree related)

2013-02-11 Thread Len Brown
idle)(void); > +#endif > > #endif > Thank you Stephen! The last time I compiled a sparc kernel was in 1993:-) I've added your fix and Dave's Ack to this patch, and updated it in my next branch. Len Brown, Intel Open Source Technology Center -- To unsubscribe fro

Re: linux-next: manual merge of the acpi tree with the pm tree

2013-02-11 Thread Len Brown
merge fix-ups. We'll either merge the rjw and the lenb trees before sending to Linus, or let him repeat your merge fix-ups as he likes to do. BTW. Rafael's "pm" tree now carries the ACPI patch stream, so it is probably a mis-representation to call my tree the "acpi"

Re: [PATCH 14/16] intel_idle: remove use and definition of MWAIT_MAX_NUM_CSTATES

2013-02-11 Thread Len Brown
On 02/11/2013 03:53 AM, Daniel Lezcano wrote: > On 02/09/2013 02:08 AM, Len Brown wrote: >> The reason to change is that intel_idle will soon be able >> to export more than the 8 "major" states supported by MWAIT. >> When we hit that limit, it is important to kno

Should SPARC use cpuidle? (was: linux-next: build failure after merge of the final tree (acpi tree related))

2013-02-12 Thread Len Brown
On 02/12/2013 12:35 PM, Sam Ravnborg wrote: >>> Signed-off-by: Stephen Rothwell >>> --- >>> arch/sparc/include/asm/processor.h | 2 ++ >>> 1 file changed, 2 insertions(+) >>> >>> diff --git a/arch/sparc/include/asm/processor.h >>> b/arch/sparc/include/asm/processor.h >>> index 34baa35..622cfa5 1

Re: Should SPARC use cpuidle?

2013-02-12 Thread Len Brown
d to sending patches via thunderbird. hopefully this attachment works... >From 358ca5d7e02c4559ad3fbf8135421e4a3753e979 Mon Sep 17 00:00:00 2001 From: Len Brown Date: Sat, 9 Feb 2013 23:27:26 -0500 Subject: [PATCH] sparc idle: rename pm_idle to sparc_idle Reply-To: Len Brown Organization: Intel Op

[PATCH 1/4] intel_idle: stop using driver_data for static flags

2013-01-31 Thread Len Brown
From: Len Brown The commit, 4202735e8ab6ecfb0381631a0d0b58fefe0bd4e2 (cpuidle: Split cpuidle_state structure and move per-cpu statistics fields) observed that the MWAIT flags for Cn on every processor to date were the same, and created get_driver_data() to supply them. Unfortunately, that

[PATCH 4/4] intel_idle: initial HSW support

2013-01-31 Thread Len Brown
From: Len Brown This patch enables intel_idle to run on the next-generation Intel(R) Microarchitecture code named Haswell. Signed-off-by: Len Brown --- drivers/idle/intel_idle.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/idle

intel_idle and turbostat patches supporting Haswell

2013-01-31 Thread Len Brown
Here are some pathces I have queued in my tree for the next release to support Haswell. Please let me know if you see issues with any of them. thanks! -Len -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordo

[PATCH 3/4] tools/power turbostat: decode MSR_IA32_POWER_CTL

2013-01-31 Thread Len Brown
From: Len Brown When verbose is enabled, print the C1E-Enable bit in MSR_IA32_POWER_CTL. also delete some redundant tests on the verbose variable. Signed-off-by: Len Brown --- arch/x86/include/uapi/asm/msr-index.h | 2 ++ tools/power/x86/turbostat/turbostat.c | 13 +++-- 2 files

[PATCH 2/4] tools/power turbostat: support HSW

2013-01-31 Thread Len Brown
From: Len Brown This patch enables turbostat to run properly on the next-generation Intel(R) Microarchitecture, code named Haswell (HSW). HSW supports the BCLK and counters found in SNB. Signed-off-by: Len Brown --- tools/power/x86/turbostat/turbostat.c | 11 ++- 1 file changed, 10

Re: [PATCH 1/4] intel_idle: stop using driver_data for static flags

2013-02-01 Thread Len Brown
On 02/01/2013 03:44 AM, Daniel Lezcano wrote: > On 02/01/2013 05:11 AM, Len Brown wrote: >> From: Len Brown >> >> The commit, 4202735e8ab6ecfb0381631a0d0b58fefe0bd4e2 >> (cpuidle: Split cpuidle_state structure and move per-cpu statistics fields) >> observed tha

Re: [PATCH 1/4] intel_idle: stop using driver_data for static flags

2013-02-01 Thread Len Brown
something 'generic' isn't going to make the code easier to read. thanks, Len Brown, Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at ht

Re: [PATCH v2] APM idle: register apm_cpu_idle via cpuidle

2013-02-20 Thread Len Brown
On 02/18/2013 08:30 AM, Jiri Kosina wrote: > On Mon, 11 Feb 2013, Len Brown wrote: > >> From: Len Brown >> >> Update APM to register its local idle routine with cpuidle. >> >> This allows us to stop exporting pm_idle to modules on x86. >> >> The

Re: [PATCH 05/16] blackfin idle: delete pm_idle

2013-02-20 Thread Len Brown
> Otherwise the patch seems to work fine. Thanks for testing Lars! Sorry about breaking the build w/ my slopyness -- will get that patched up. cheers, Len Brown, Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

[PATCH 01/37] Hibernation: Introduce SNAPSHOT_GET_IMAGE_SIZE ioctl

2008-01-31 Thread Len Brown
nation image header, owned by the kernel, in order to obtain the size of the image. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- Documentation/power/userland-swsusp.txt | 12 ++

suspend patches for 2.6.25-rc0

2008-01-31 Thread Len Brown
This is the suspend queue for 2.6.25 -- freshly re-based to the HEAD of Linus' tree. I plan to send a pull request tomorrow. thanks, -Len -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.k

[PATCH 02/37] Hibernation: Rework platform support ioctls (rev. 2)

2008-01-31 Thread Len Brown
ed-by: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- Documentation/power/userland-swsusp.txt | 24 -- kernel/power/power.h|9 ++ kernel/power/user.c | 39 +++-

[PATCH 11/37] Hibernation: New testing facility (rev. 2)

2008-01-31 Thread Len Brown
will wait for 5 seconds and carry out the resume operations needed to transition the system back to the fully functional state. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]>

[PATCH 13/37] PM: Make PM_TRACE more architecture independent

2008-01-31 Thread Len Brown
. Basically, to support PM_TRACE, you add a Kconfig option that selects PM_TRACE and provides the infrastructure as per the help text of PM_TRACE. Signed-off-by: Johannes Berg <[EMAIL PROTECTED]> Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROT

[PATCH 03/37] Hibernation: Mark SNAPSHOT_SET_SWAP_FILE ioctl as deprecated (rev. 2)

2008-01-31 Thread Len Brown
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Mark the SNAPSHOT_SET_SWAP_FILE ioctl belonging to the hibernation userland interface as deprecated. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Len Brown

[PATCH 06/37] ACPI: Fix mismerge in acpi_hibernation_finish

2008-01-31 Thread Len Brown
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Some code in acpi_hibernation_finish() was moved to acpi_hibernation_leave(), but the old copy had been left (it's harmless, but also useless). Remove it. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Signed-off-by: Len Brown

[PATCH 07/37] Hibernation: Move function prototypes to header

2008-01-31 Thread Len Brown
ROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- kernel/power/power.h|8 kernel/power/snapshot.c |1 - kernel/power/swsusp.c |8 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/kernel/power/power.h b/kernel/power/power.h index

[PATCH 23/37] Suspend: Clean up Kconfig (V2)

2008-01-31 Thread Len Brown
-by: Russell King <[EMAIL PROTECTED]> Acked-by: Paul Mackerras <[EMAIL PROTECTED]> Acked-by: Ralf Baechle <[EMAIL PROTECTED]> Acked-by: Paul Mundt <[EMAIL PROTECTED]> Cc: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Signed

[PATCH 08/37] Hibernation: Add PM_RESTORE_PREPARE and PM_POST_RESTORE notifiers (rev. 2)

2008-01-31 Thread Len Brown
EMAIL PROTECTED]> Signed-off-by: "Rafael J. Wysocki" <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- Documentation/power/notifiers.txt |8 include/linux/notifier.h |2 ++ kernel/power/disk.c |5 +

[PATCH 09/37] Suspend: Testing facility (rev. 2)

2008-01-31 Thread Len Brown
-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- kernel/power/main.c | 108 + kernel/power/power.h | 18 2 files changed, 117

[PATCH 10/37] suspend: build fix responding to 2.6.25 kset change

2008-01-31 Thread Len Brown
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- kernel/power/main.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/kernel/power/main.c b/kernel/

[PATCH 24/37] ACPI: clear GPE earily in resume to avoid warning

2008-01-31 Thread Len Brown
-enabled. Signed-off-by: Shaohua Li <[EMAIL PROTECTED]> Acked-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/sleep/main.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/acpi/sleep/m

[PATCH 19/37] Hibernation: Remove unnecessary variable declaration

2008-01-31 Thread Len Brown
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Remove the unnecessary extern declaration of resume_file[] from kernel/power/swap.c . Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]>

[PATCH 12/37] PM: Suspend/hibernation debug documentation update (rev. 2)

2008-01-31 Thread Len Brown
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Update the suspend/hibernation debugging and testing documentation to describe the newly introduced testing facilities. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by:

[PATCH 14/37] PM: Convert PM notifiers to out-of-line code

2008-01-31 Thread Len Brown
Signed-off-by: Alan Stern <[EMAIL PROTECTED]> Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- include/linux/suspend.h | 13 ++--- kernel/power/main.c | 28 ++-- kernel/power/power.h

[PATCH 25/37] suspend: fix ia64 allmodconfig build

2008-01-31 Thread Len Brown
From: Rafael J. Wysocki <[EMAIL PROTECTED]> kernel/power/main.c:488: error: ‘pm_test_attr’ undeclared here (not in a function) Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- kernel/power/main.c |7 ++-

[PATCH 21/37] Hibernation: Update messages

2008-01-31 Thread Len Brown
Wysocki <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- kernel/power/disk.c | 28 +++- kernel/power/snapshot.c | 23 --- kernel/power/swap.c | 31 +

[PATCH 31/37] ACPI hibernation: Call _PTS before suspending devices

2008-01-31 Thread Len Brown
ng the 'acpi_new_pts_ordering' kernel command line option. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/sleep/main.c | 36 +--- 1 files changed, 25 insertions(+), 11 deletions(-) dif

[PATCH 22/37] Hibernation: Clean up Kconfig (V2)

2008-01-31 Thread Len Brown
D]> Acked-by: Paul Mackerras <[EMAIL PROTECTED]> Cc: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- arch/powerpc/Kconfig | 14 -- arch/x86/Kconfig |

[PATCH 28/37] ACPI: Separate disabling of GPEs from _PTS

2008-01-31 Thread Len Brown
ending devices, we need to disable GPEs separately. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/hardware/hwsleep.c |4 drivers/acpi/sleep/main.c | 17 ++

[PATCH 30/37] Hibernation: Introduce begin() and end() callbacks

2008-01-31 Thread Len Brown
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Introduce global hibernation callback .end() and rename global hibernation callback .start() to .begin(), in analogy with the recent modifications of the global suspend callbacks. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Signed

[PATCH 32/37] ACPI: Print message before calling _PTS

2008-01-31 Thread Len Brown
Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/sleep/main.c |4 +++- drivers/acpi/sleep/sleep.h |2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/sleep/main.c b/drivers/acpi/sleep/main.c index 10db8

[PATCH 35/37] Suspend: Invoke suspend notifications after console switch

2008-01-31 Thread Len Brown
ocki <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- kernel/power/main.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/power/main.c b/kernel/power/main.c index e47214c..6a6d5eb 100644 --- a/kernel/power/main.c +++ b/kernel/power/m

[PATCH 37/37] PM: Remove obsolete /sys/devices/.../power/state docs

2008-01-31 Thread Len Brown
ed-off-by: David Brownell <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- Documentation/power/devices.txt | 49 ---

[PATCH 36/37] Hibernation: Invoke suspend notifications after console switch

2008-01-31 Thread Len Brown
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Following the recent change in the suspend code path, switch consoles before calling PM notifiers during hibernation. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- kernel/p

[PATCH 17/37] Suspend: Fix comment in main.c

2008-01-31 Thread Len Brown
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Fix a comment in kernel/power/main.c so that it doesn't contain lines longer that 80 characters. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMA

[PATCH 20/37] Suspend: Use common prefix in messages

2008-01-31 Thread Len Brown
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Make suspend messages start with one common prefix "PM: ". Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- kernel/p

[PATCH 29/37] ACPI suspend: Call _PTS before suspending devices

2008-01-31 Thread Len Brown
eed be. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- Documentation/kernel-parameters.txt |5 +++ drivers/acpi/sleep/main.c | 51 ++- 2 files changed, 43 insertions(+), 13 deletion

[PATCH 33/37] Suspend: Add config option to disable the freezer if architecture wants that

2008-01-31 Thread Len Brown
J. Wysocki <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- arch/powerpc/Kconfig |4 kernel/power/Kconfig | 11 +++ kernel/power/main.c |6 +++--- kernel/power/power.h | 22 ++ 4 files changed, 40 insertions(+), 3 d

[PATCH 34/37] Suspend: Clean up suspend_64.c

2008-01-31 Thread Len Brown
From: Borislav Petkov <[EMAIL PROTECTED]> There's a freakishly long comment in suspend_64.c, shorten it. Signed-off-by: Borislav Petkov <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Signed-off-by

[PATCH 27/37] ACPI: Separate invocations of _GTS and _BFS from _PTS and _WAK

2008-01-31 Thread Len Brown
re has returned control to the OS on wake up. Move the execution of _GTS and _BFS to the right places. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/h

[PATCH 15/37] Suspend: Fix compilation warning for CONFIG_SUSPEND unset

2008-01-31 Thread Len Brown
Rafael J. Wysocki <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- kernel/power/main.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kernel/power/main.c b/kernel/power/main.c index 0a9f2

[PATCH 16/37] Hibernation: Move low level resume to disk.c

2008-01-31 Thread Len Brown
PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- kernel/power/disk.c | 49 - kernel/power/power.h |1 - kernel/power/swsusp.c | 35 --- 3 file

[PATCH 26/37] Suspend: Introduce begin() and end() callbacks

2008-01-31 Thread Len Brown
dering requirements). Introduce the global suspend callback .end() to be executed at the end of the suspend sequence and rename the .set_target() global suspend callback to .begin(). Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> ---

[PATCH 18/37] Hibernation: Fix comment in disk.c

2008-01-31 Thread Len Brown
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Fix a comment in kernel/power/disk.c so that it doesn't contain lines longer that 80 characters. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMA

[PATCH 05/37] Hibernation: Introduce exportable suspend ioctls header (rev. 2)

2008-01-31 Thread Len Brown
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Move the definitions of hibernation ioctls to a separate header file in include/linux, which can be exported to the user space. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> Signed

[PATCH 04/37] Hibernation: Correct definitions of some ioctls (rev. 2)

2008-01-31 Thread Len Brown
isting ones as deprecated. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> Acked-by: Pavel Machek <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- Documentation/power/userland-swsusp.txt | 26 +- kernel/power/power.h

Re: kernel panic on 2.6.24/iTCO_wdt not rebooting machine

2008-02-01 Thread Len Brown
On Friday 01 February 2008 10:12, Denys Fedoryshchenko wrote: > Hi > > I sent already report to netdev, but most interesting question i have, that > machine is not rebooted (it was set over sysctl value to kernel.panic) and > watchdog didnt reboot it too. > > I set: > > kernel.panic = 10 > ke

Re: 2.6.24-git9 ACPI oops - regression

2008-02-01 Thread Len Brown
On Friday 01 February 2008 09:29, Rafael J. Wysocki wrote: > [Relevant CCs added.] > > On Friday, 1 of February 2008, Lukas Hejtmanek wrote: > > Hello, > > > > I encountered oops on my laptop Lenovo T61 and dock. If I press undock on > > the > > dock, I got the following oops: this worked in 2.

Re: kernel panic on 2.6.24/iTCO_wdt not rebooting machine

2008-02-01 Thread Len Brown
On Friday 01 February 2008 14:15, Denys Fedoryshchenko wrote: > > On Fri, 1 Feb 2008 12:11:41 -0500, Len Brown wrote > > > > What do you see if you build with CONFIG_HIGH_RES_TIMERS=n > > > > Does it work better if you boot with "acpi=off"? >

  1   2   3   4   5   6   7   8   9   10   >