Frequency scaling doesn't work in current kernels

Bug #706089 reported by A.Kromic
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Low
Unassigned

Bug Description

I have a Lenovo Thinkpad R61i laptop, and CPU scaling works perfectly with kernels up to 2.6.32-24. Any newer kernel in Ubuntu is unable to scale my CPU frequency above the lowest (800MHz). The same goes with maverick-backported 2.6.35 kernels.

WORKAROUND: processor.ignore_ppc=1 to grub boot parameters .

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: linux-image-2.6.32-28-generic 2.6.32-28.55
Regression: Yes
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.32-28.55-generic 2.6.32.27+drm33.12
Uname: Linux 2.6.32-28-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: CONEXANT Analog [CONEXANT Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: arny 2551 F.... pulseaudio
 /dev/snd/pcmC0D0p: arny 2551 F...m pulseaudio
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfe100000 irq 17'
   Mixer name : 'Conexant CX20549 (Venice)'
   Components : 'HDA:14f15045,17aa20dc,00100100'
   Controls : 19
   Simple ctrls : 9
Card29.Amixer.info:
 Card hw:29 'ThinkPadEC'/'ThinkPad Console Audio Control at EC reg 0x30, fw 7KHT24WW-1.08'
   Mixer name : 'ThinkPad EC 7KHT24WW-1.08'
   Components : ''
   Controls : 1
   Simple ctrls : 1
Card29.Amixer.values:
 Simple mixer control 'Console',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
CheckboxSubmission: f36e81446aef1e927a74b9f40ed42e87
CheckboxSystem: 7f8062de7650099ca95bda200bc0be52
Date: Fri Jan 21 22:12:02 2011
HibernationDevice: RESUME=UUID=8c0c0afd-cc75-42f0-97cc-f7e38f416c4a
MachineType: LENOVO 7650A9G
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcCmdLine: root=UUID=93bea984-6682-48b6-b69e-3504833449be ro vga=792
ProcEnviron:
 PATH=(custom, user)
 LANG=en_IE.utf8
 SHELL=/bin/zsh
RelatedPackageVersions: linux-firmware 1.34.3
SourcePackage: linux
WpaSupplicantLog:

dmi.bios.date: 05/13/2009
dmi.bios.vendor: LENOVO
dmi.bios.version: 7PETC2WW (2.22 )
dmi.board.name: 7650A9G
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr7PETC2WW(2.22):bd05/13/2009:svnLENOVO:pn7650A9G:pvrThinkPadR61e:rvnLENOVO:rn7650A9G:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 7650A9G
dmi.product.version: ThinkPad R61e
dmi.sys.vendor: LENOVO

Revision history for this message
A.Kromic (akromic) wrote :
Revision history for this message
A.Kromic (akromic) wrote :

An additional note, although I use Lucid on amd64 arch, I've also checked with Maverick i386 livecd and that arch's 2.6.35 kernel also doesnt scale my CPU.

Revision history for this message
A.Kromic (akromic) wrote :

Still NOT fixed for 2.6.32-30 and 2.6.35-25!

This still means I can not update my Lucid kernel, nor upgrade to Maverick!

Someone else should have noticed this bug besides me..? I don't have THAT special machine to be the only one affected ;)

Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Rusty (rustychris) wrote :

I have the same behavior on my Asus laptop, running 64 bit kubuntu.

from /proc/cpuinfo (booted in 2.6.32) it is a
model 23
Intel(R) Core(TM)2 Duo CPU P8700 @ 2.53GHz
stepping 10

When I boot to either 2.6.38-8 or 2.6.35-25 I'm stuck at 800MHz on both cores, and unable to set a minimum cpu speed above 800MHz.

When I boot to 2.6.32-24, it behaves as usual, running at 800MHz and going up to 2.534 GHz when needed.

This started when I upgraded from Maverick to Natty.

Revision history for this message
Litold (litold) wrote :

I have the same problem on my MSI laptop, with Ubuntu 10.10 x64

vendor_id : AuthenticAMD
cpu family : 15
model : 104
model name : AMD Turion(tm) 64 X2 Mobile Technology TL-60

Frequency Scaling not working

Revision history for this message
A.Kromic (akromic) wrote :

Still not working with latest release kernels: 2.6.32-32 (Lucid), 2.6.35-28 (Maverick, backported to Lucid) and 2.6.38-8 (Natty)

Revision history for this message
A.Kromic (akromic) wrote :

@Litold: please check your CPU governor - maybe your machine purposely sets the lowest frequency when CPU unloaded... You may also recheck when the CPU is under high load.

Another thing I've remembered to mention - it doesn't matter if I boot a 32- or 64-bit system, with both scaling works fine with older kernels up to 2.6.32-24, and doesn't work at all with any newer kernel.

Revision history for this message
Nicolai_J. (fireandfuel) wrote :

Please post which CPU you have and the contents of the following files - after trying to scale the frequency:

/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq (normally needs root privileges to read)
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Revision history for this message
Litold (litold) wrote :

Issue is solved by adding processor.ignore_ppc=1 to grub boot parameters

Revision history for this message
A.Kromic (akromic) wrote :

That kernel option works for me too!

I confirm, in both 2.6.32-32 and the latest 2.6.35 frequency scaling now works normally with that option. What does it do?

Revision history for this message
A.Kromic (akromic) wrote :

I wonder if that helps with Bug #786897 ...

fireandfuel, could you check?

Revision history for this message
Nicolai_J. (fireandfuel) wrote :

@A.Kromic: It works for me, too.

Thank you very, very much, Litold.

Revision history for this message
Nicolai_J. (fireandfuel) wrote :

I updated the BIOS of my Laptop to Version 1.20 (released only a few days ago) and the problem disappears ( and I removed the 'now useless' boot parameter). ^^

Revision history for this message
A.Kromic (akromic) wrote :

My problem is described here: http://www.thinkwiki.org/wiki/Problem_with_CPU_frequency_scaling

The issue was running with 65W adapter and no battery. However, the laptop happily worked that way at full speed for a long time until the kernel version when that "protection measure" was added, and it worked fine all the time afterwards, first by using the old kernel, and then by using that kernel option. So I guess in this case the kernel protected me from nothing really; I suppose every other R6x/T6x/X6x Thinkpad with that problem can work that way with no ill effects.

Revision history for this message
David Nemeskey (nemeskeyd) wrote :

I have the same problem with a Dell Inspiron 1420 under Precise. Except:
- I am using a 90W adapter, and I still only get 800 MHz
- The kernel option does not solve the problem for me :(

tags: added: regression-release
removed: regression-update
Revision history for this message
penalvch (penalvch) wrote :

A.Kromic, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? Can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/ .

If it remains an issue, could you run the following command in the development release from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux <replace-with-bug-number>

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please do not test the kernel in the daily folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. As well, please comment on which kernel version specifically you tested.

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream', and comment as to why specifically you were unable to test it.

Please let us know your results. Thanks in advance.

Helpful Bug Reporting Links:
https://help.ubuntu.com/community/ReportingBugs#Bug_Reporting_Etiquette
https://help.ubuntu.com/community/ReportingBugs#A3._Make_sure_the_bug_hasn.27t_already_been_reported
https://help.ubuntu.com/community/ReportingBugs#Adding_Apport_Debug_Information_to_an_Existing_Launchpad_Bug
https://help.ubuntu.com/community/ReportingBugs#Adding_Additional_Attachments_to_an_Existing_Launchpad_Bug

tags: added: maverick
tags: added: natty
description: updated
Changed in linux (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
David Nemeskey (nemeskeyd) wrote :

Christopher: I have just commented on this issue a few days ago, how come it doesn't qualify as 'recent activity'?! Yes, this problem is still very much an issue.

If you wish, I could also execute the apport command. Is it OK or do you require the debug information from the original reporter?

Revision history for this message
penalvch (penalvch) wrote :

David Nemeskey, as per https://help.ubuntu.com/community/ReportingBugs#A3._Make_sure_the_bug_hasn.27t_already_been_reported , if you would like a bug you have addressed, and you are not the original reporter, please file a new report via a terminal and feel free to subscribe me to it:
ubuntu-bug linux

Thanks!

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
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.