powertop suggests a patch to save power

Bug #117974 reported by Nicolò Chieffo
14
Affects Status Importance Assigned to Milestone
linux-source-2.6.22 (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: linux-source-2.6.22

running powertop I get this suggestion:

Suggestion: enable the HPET (Multimedia Timer) in your BIOS or add
the kernel patch to force-enable HPET. HPET support allows Linux to
have much longer sleep intervals.

since from my BIOS it is not possible to do anything about HPET, I would like to have this patch applied.

http://www.linuxpowertop.org/patches/hpet_patches_45.patch

my system details:
bios-version:0208
system-manufacturer:ASUSTeK Computer Inc.
system-product-name:M6Ne
system-version:1.0

Nicolò Chieffo (yelo3)
description: updated
Revision history for this message
Ben Collins (ben-collins) wrote :

Not so sure this will get in. This sort of patch is a case-by-case type, and I'm a little reluctant to include it for fear of regressions.

Changed in linux-source-2.6.22:
assignee: nobody → ubuntu-kernel-team
importance: Undecided → Wishlist
status: Unconfirmed → Confirmed
Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: [Bug 117974] Re: powertop suggests a patch to save power

do you mean performance regression? because of the patch aim or
because the patch is not well done?
And also, why a case-by-case type? in the sense that some users could
avoid using the patch because their BIOS allows that option? It could
be important to know how many laptop users can edit this option!

Revision history for this message
Ben Collins (ben-collins) wrote :

On Thu, 2007-05-31 at 16:45 +0000, Nicolò Chieffo wrote:
> do you mean performance regression? because of the patch aim or
> because the patch is not well done?
> And also, why a case-by-case type? in the sense that some users could
> avoid using the patch because their BIOS allows that option? It could
> be important to know how many laptop users can edit this option!

When I mention regressions and case-by-base, I mean the same thing.
Basically that force enabling HPET on some systems will cause bad things
to happen. So we can't just include this by default.

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

ok, understood.
I hope bad things are not bad crashes!

Have you got any ideas why intel proposed this patch without telling
anything about instability?
Is it possible to know which systems may be bad effected?
Do you know when this patch can be enabled safely?

thank you for your explanations

Revision history for this message
Ben Collins (ben-collins) wrote :

On Thu, 2007-05-31 at 17:41 +0000, Nicolò Chieffo wrote:
> ok, understood.
> I hope bad things are not bad crashes!
>
> Have you got any ideas why intel proposed this patch without telling
> anything about instability?
> Is it possible to know which systems may be bad effected?
> Do you know when this patch can be enabled safely?

The patch is fine, it's just not well tested. When it gets suitable
testing, it'll probably go to upstream kernel and makes its way down to
our kernel.

Revision history for this message
FriedChicken (domlyons) wrote :

I've got an ASUS A6Km Notebook and I've got the same problems as Nicolò Chieffo. Maybe there would be a way to include this patch and activate it only by a special boot option? Because the High Precision Event Timer seems to show a noticeable effect on some systems if it's aktivated.

Revision history for this message
ubuntu_demon (ubuntu-demon) wrote :

The "force enable HPET" patch-set is mentioned in Outstanding Issues of https://wiki.ubuntu.com/power-management-in-Ubuntu

Revision history for this message
Benjamin Pineau (ben-pineau) wrote :

The patchs in PowerTOP's site aren't really updated.
Better is to grab them where they are maintained, at http://www.tglx.de/projects/hrtimers/2.6.22/broken-out/ (plus there's more patchs related to HPET improvments there).

ubuntu_demon : it may be more in point to attach such bugs to the blueprint (since the Launchpad interface allows that, and because there's quite a lot of bugs related to power efficiency, it's more efficiently handled linked / tracked down from blueprint than from the wiki) : https://blueprints.launchpad.net/ubuntu/+spec/power-management-in-ubuntu
I've added it there, already.

Revision history for this message
ubuntu_demon (ubuntu-demon) wrote :

to Benjamin Pineau :

Thanks I didn't know you could assign bugs to blueprints. (I already added the bug to the wiki page)

Revision history for this message
Benjamin Pineau (ben-pineau) wrote :

Quick update: those patches made their way in Linus' git repository, and are all merged in 2.6.24-rc1 and up.

So HPET is now (as of 2.6.24-rc1) force enabled by default for all chipsets known to support such timers, even when this functionality is hidden by the BIOS. But only if the HPET timer is officially documented in the chipset's specifications.

Also merged, the patches for the remaining chipsets (nVidia nforce4, Via VT8235 and VT8237, Intel ICH4), where an HPET timer has been found, is known to work, as been tested by the powertop and hrtimers userbase, but is not officially documented. But in this later case, the HPET timer isn't activated by default, in the stock kernel : you have to pass the "hpet=force" kernel boot option to enable it. See "hpet=" in Documentation/kernel-parameters.txt (for a kernel > 2.6.24-rc1).

So this bug should be closed as soon as Ubuntu rebase on 2.6.24. Or even right now : it wouldn't make much sense to backport it in 2.6.22 or .23, we'd better wait a bit. Admittedly, a remaining question would be: should we force enable undocumented hpet timers when they are supported (but not enabled by default) in the vanilla kernel ?

Revision history for this message
unggnu (unggnu) wrote :

That sounds great. A hpet force grub option would be the best since it should be regression free..

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

2.6.24 is now available in Ubuntu 8.04 development version, so HPET should be there. The question about whether to force-enable it for undocumented but supporting platforms is on the power management wiki page.

Changed in linux-source-2.6.22:
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.