cpufreq Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ian McConnell <ian@emit.demon.co.uk>
To: CpuFreq <cpufreq@www.linux.org.uk>
Subject: Re: longhaul gives /proc/sys/cpu/0/speed-m{in,max} = 0
Date: Fri, 02 Jan 2004 16:33:49 +0000	[thread overview]
Message-ID: <87znd6l382.fsf@emit.demon.co.uk> (raw)
In-Reply-To: <20040101185556.3354db6e.frx@firenze.linux.it> (Francesco Poli's message of "Thu, 1 Jan 2004 18:55:56 +0100")

Francesco Poli <frx@firenze.linux.it> writes:

> On Tue, 30 Dec 2003 13:38:25 +0000 Ian McConnell wrote:
>
>> Is this right? speed-min and speed-max are both zero so I can't use
>> any of the userspace speed throttling programs such as cpuspeed-1.1.
>
> With 2.4.x kernels, I think you must set the `userspace' governor in
> order to have the CPU clock frequency (and voltage) assigned by a
> userspace process: issue the following command (as root)
>
>     # echo -n "0%0%100%userspace" > /proc/cpufreq
>
> and then you should be able to enjoy cpuspeed or whatever...

Aha, that was the piece of information I was missing.

$ cat /proc/cpufreq 
          minimum CPU frequency  -  maximum CPU frequency  -  policy
CPU  0          399 kHz ( 50 %)  -        798 kHz (100 %)  -  userspace
$ cat /proc/sys/cpu/0/speed-min
399
$ cat /proc/sys/cpu/0/speed-max 
798
$ cat /proc/sys/cpu/0/speed     
798

which all seem good.

Unfortunately, I can't set anything
$ cat /proc/sys/cpu/0/speed-min > /proc/sys/cpu/0/speed
$ cat /proc/sys/cpu/0/speed
798

Even trying

$ echo -n "0%0%50%powersave" > /proc/cpufreq 
$  cat /proc/cpufreq 
          minimum CPU frequency  -  maximum CPU frequency  -  policy
CPU  0          399 kHz ( 50 %)  -        399 kHz ( 50 %)  -  powersave
$ cat /proc/sys/cpu/0/speed
798

$ x86info  -mhz
x86info v1.12b.  Dave Jones 2001-2003
Feedback to <davej@redhat.com>.

Found 1 CPU
--------------------------------------------------------------------------
Family: 6 Model: 7 Stepping: 8
CPU Model : VIA C3 (Samuel 2) [C5B]
800MHz processor (estimate).

I also tried "userspace" and "performance" without any change.


>> Also if /proc/sys/cpu/0/speed = 0, how do I tell what speed my machine
>> is running at?
>
> The following command
>
>     $ cat /proc/cpuinfo
>
> should show the actual CPU clock frequency (among the other things).

I don't think it does. If I remove longhaul.o and install
   http://www3.sympatico.ca/howlettfamily/epia/longhaul-1.2.tar.gz
    (which lets me change the speed, but doesn't give me
    /proc/sys/cpu/0/speed or a working speed governor) 

to change the speed, then /proc/cpuinfo doesn't change (though this may be a
bug in the longhaul-1.2 code)

$ cd longhaul; insmod ./longhaul.o
$ echo 0 > /proc/longhaul
$ cat /proc/longhaul
CPU 6.7.8 
CPU Speed: 399000
FSB: 133
CPU Mult:  30
Longhaul version: 2
Driver version: 1.2
last command: 0
                            7 6 5 4 3 2 1 0
MSR_VIA_LONGHAUL:        0x0000000b000001f0 
MSR_IA32_EBL_CR_POWERON: 0x00000000c0440000 
clock 0x0  399000
clock 0x1  465500
clock 0x2  532000
clock 0x3  598500
clock 0x4  665000
clock 0x5  731500
clock 0x6  798000

$ x86info  -mhz
x86info v1.12b.  Dave Jones 2001-2003
Feedback to <davej@redhat.com>.

Found 1 CPU
--------------------------------------------------------------------------
Family: 6 Model: 7 Stepping: 8
CPU Model : VIA C3 (Samuel 2) [C5B]
400MHz processor (estimate).

However
$ cat  /proc/cpuinfo 
processor       : 0
vendor_id       : CentaurHauls
cpu family      : 6
model           : 7
model name      : VIA Ezra
stepping        : 8
cpu MHz         : 800.047
cache size      : 64 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu de tsc msr cx8 mtrr pge mmx 3dnow
bogomips        : 1595.80

      reply	other threads:[~2004-01-02 16:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-30 13:38 longhaul gives /proc/sys/cpu/0/speed-m{in,max} = 0 Ian McConnell
2004-01-01 17:55 ` Francesco Poli
2004-01-02 16:33   ` Ian McConnell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87znd6l382.fsf@emit.demon.co.uk \
    --to=ian@emit.demon.co.uk \
    --cc=cpufreq@www.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox