2006-02-03 18:49:13

by Andreas Eriksson

[permalink] [raw]
Subject: can't enable cpufreq ondemand governor

The kernels I have tried it with are 2.6.15-1-686 and 2.6.15-ck3 and
2.6.15 vanilla, and this happens with all of those.
When I try to enable the ondemand or the conservative governors it
gives an error message:

# pwd
/sys/devices/system/cpu/cpu0/cpufreq
# cat scaling_available_governors
userspace conservative ondemand performance
# echo performance > scaling_governor
# echo userspace > scaling_governor
# echo ondemand > scaling_governor
bash: echo: write error: invalid argument
# echo conservative > scaling_governor
bash: echo: write error: invalid argument
# cat scaling_governor
userspace

Here is some info about my system, tell me if you need more:
IBM Thinkpad R40 Laptop
Debian Sid updated yesterday
Pentium 4 2ghz

# lsmod | grep cpu
cpufreq_userspace 4216 1
cpufreq_conservative 6692 0
cpufreq_ondemand 5820 0
# lsmod | grep speed
speedstep_ich 4844 0
speedstep_lib 3972 1 speedstep_ich
freq_table 4164 1 speedstep_ich

Using powernowd with the userspace governor works fine.
Please cc any replies to me since I'm not subscribed to the list.

--
Andreas Eriksson (TPC)


2006-02-03 20:12:55

by Mattia Dongili

[permalink] [raw]
Subject: Re: can't enable cpufreq ondemand governor

On Fri, Feb 03, 2006 at 07:49:10PM +0100, Andreas Eriksson wrote:
> The kernels I have tried it with are 2.6.15-1-686 and 2.6.15-ck3 and
> 2.6.15 vanilla, and this happens with all of those.
[...]
> # lsmod | grep speed
> speedstep_ich 4844 0
> speedstep_lib 3972 1 speedstep_ich
> freq_table 4164 1 speedstep_ich

support for ondemand on speedstep-ich has been merged in 2.6.16-rc1
or .15 but using the -mm patchset.

If you don't want to test such kernels you can grab these 2 commits and
apply to 2.6.15 (they'll probably apply cleanly)
<url>http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff_plain;h=9a7d82a89a8bf55b112f2a5c3b3f405eb95a4303;hp=1a10760c91c394dfe4adfefeeaf85cd8098c4894</url>
<url>http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff_plain;h=1a10760c91c394dfe4adfefeeaf85cd8098c4894;hp=fc457fa7c0cdbfe96812ba377e508880d600298f</url>

hth
--
mattia
:wq!