All of lore.kernel.org
 help / color / mirror / Atom feed
* bug? acpi p-state + ondemand keeps dropping max freq
@ 2008-06-05 22:30 Kok, Auke
  2008-06-06  4:13 ` Henrique de Moraes Holschuh
                   ` (2 more replies)
  0 siblings, 3 replies; 26+ messages in thread
From: Kok, Auke @ 2008-06-05 22:30 UTC (permalink / raw)
  To: linux-acpi, Linux Kernel Mailing List; +Cc: Brown, Len, cpufreq, Dave Jones


I've consistently experienced the following bizarre problem since 2.6.20, all the
way up to 2.6.25.3 (regressed yesterday and each of these kernels exposes this
behaviour):

/sys/devices/system/cpu/cpu0/cpufreq # grep . *
affected_cpus:0
cpuinfo_cur_freq:800000
cpuinfo_max_freq:1866000
cpuinfo_min_freq:800000
scaling_available_frequencies:1866000 1600000 1333000 1066000 800000
scaling_available_governors:ondemand performance
scaling_cur_freq:800000
scaling_driver:acpi-cpufreq
scaling_governor:ondemand
scaling_max_freq:800000
scaling_min_freq:800000



Notice that scaling_mx_freq dropped down to the lowest possible value and as such
my CPU is only working at 800MHz. At boot time this field properly displays
1866MHz and everything works OK. After a certain period (?) this value drops down
and I cannot manually elevate it back to the normal level:

# echo 1866000 > scaling_max_freq ; cat scaling_max_freq
800000
# echo 1866000 > scaling_max_freq ; cat scaling_max_freq
800000


This renders my Dothan to utterly poor speeds. (standard T43)

performance cpufreq governor makes no difference - I still can't change the
frequency upper/lower values.

Auke

^ permalink raw reply	[flat|nested] 26+ messages in thread
[parent not found: <20080606140846.GA9580@ucw.cz>]
* bug? acpi p-state + ondemand keeps dropping max freq
@ 2008-06-10 21:45 Beglin, Brad R
  0 siblings, 0 replies; 26+ messages in thread
From: Beglin, Brad R @ 2008-06-10 21:45 UTC (permalink / raw)
  To: cpufreq

I am also unable to change my max scaling frequency on my Thinkpad T61.  Interestingly enough, I can change the frequency as long as the new value is less than 1.2 GHz.  If I try to set the new max frequency higher than that, the max scaling frequency file reverts to 1.2GHz.  Here is in example:

# echo 2001000 > scaling_max_freq ; cat scaling_max_freq
1200000

# echo 1000000 > scaling_max_freq ; cat scaling_max_freq
1000000

# echo 1600000 > scaling_max_freq ; cat scaling_max_freq
1200000

# echo 2000000 > scaling_max_freq ; cat scaling_max_freq
1200000

I have also tried to make the change while using "echo -n" with no success.  I have also attempted to use a different governor, but that has no effect.

Here is my cpufreq-info output:

cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 0 1
  hardware limits: 800 MHz - 2.00 GHz
  available frequency steps: 2.00 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz
  available cpufreq governors: conservative, userspace, ondemand, performance
  current policy: frequency should be within 800 MHz and 1.20 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).
analyzing CPU 1:
  driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 0 1
  hardware limits: 800 MHz - 2.00 GHz
  available frequency steps: 2.00 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz
  available cpufreq governors: conservative, userspace, ondemand, performance
  current policy: frequency should be within 800 MHz and 1.20 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).

Hope this helps. mp.

--
Brad R. Beglin
Computational Media Undergraduate
Georgia Institute of Technology

^ permalink raw reply	[flat|nested] 26+ messages in thread
* bug? acpi p-state + ondemand keeps dropping max freq
@ 2008-06-10 22:40 Beglin, Brad R
  2008-06-13 14:21 ` Thomas Renninger
  0 siblings, 1 reply; 26+ messages in thread
From: Beglin, Brad R @ 2008-06-10 22:40 UTC (permalink / raw)
  To: cpufreq

>I am also unable to change my max scaling frequency on my Thinkpad T61.  
>Interestingly enough, I can change the frequency as long as the new value 
>is less than 1.2 GHz.  If I try to set the new max frequency higher than that, 
>the max scaling frequency file reverts to 1.2GHz.  Here is in example:

Well, I did a lot more research, and it seems, at least in my case and probably 
others, that this is a long-time know bug, as detailed here:

http://bugzilla.kernel.org/show_bug.cgi?id=7060
http://lkml.org/lkml/2007/1/16/120
http://www.thinkwiki.org/wiki/Problem_with_CPU_frequency_scaling
http://forums.lenovo.com/lnv/board/message?board.id=T_Series_Thinkpads&thread.id=7420

However, I can report, as outlined in the Thinkwiki.org article, that adding
"processor.ignore_ppc=1" to the kernel boot parameters fixed the problem for me
(with kernel 2.6.25-r4).  

I hope this helps the others who are having the same problem. mp.

--
Brad R. Beglin
Computational Media Undergraduate
Georgia Institute of Technology 

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2008-07-08 10:57 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-05 22:30 bug? acpi p-state + ondemand keeps dropping max freq Kok, Auke
2008-06-06  4:13 ` Henrique de Moraes Holschuh
2008-06-06 16:34   ` Kok, Auke
2008-06-06 19:47     ` Henrique de Moraes Holschuh
2008-06-07  2:46 ` Len Brown
2008-06-07 23:22 ` Björn Steinbrink
2008-06-07 23:22   ` Björn Steinbrink
     [not found] <20080606140846.GA9580@ucw.cz>
2008-06-07 21:39 ` Pavel Machek
2008-06-07 21:54   ` Arjan van de Ven
2008-06-07 21:54     ` Arjan van de Ven
2008-06-07 23:36     ` Holger Macht
2008-06-07 23:36       ` Holger Macht
2008-06-09 16:39     ` Kok, Auke
2008-06-16 10:42     ` Pavel Machek
2008-06-16 10:42       ` Pavel Machek
2008-06-16 14:43       ` Arjan van de Ven
2008-06-17  8:44         ` Pavel Machek
2008-07-05 19:49         ` Björn Steinbrink
2008-07-05 19:49           ` Björn Steinbrink
2008-07-05 20:04           ` Björn Steinbrink
2008-07-05 20:04             ` Björn Steinbrink
2008-06-17 18:15       ` Len Brown
  -- strict thread matches above, loose matches on Subject: below --
2008-06-10 21:45 Beglin, Brad R
2008-06-10 22:40 Beglin, Brad R
2008-06-13 14:21 ` Thomas Renninger
2008-07-08 10:57   ` Arkadiusz Miskiewicz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.