Skip to contentSkip to conversation

Make overclock possible with cpufreq

DISCUSSION Matteo Giordano 4 participants 4 messages May 28, 2006 – May 29, 2006

lore
Share & tools
lore
#0 lore raw

Hi,
I just subscribed to the list to address this issue (I think it's an *issue*). I'm not a kernel hacker so I'm just guessing here, even if I searched and tried all the afternoon.
It's not possible to use cpufreq with an overclocked CPU because the processor's frequencies are "hardcoded" somewhere (the BIOS or a PSB table?).
So if I push my Athlon 64 3200+ to 2.4GHz the "performance" governor will always put it to 2GHz max, causing the overclock to be useless.

Isn't really possible to take the _actual_ frequencies into cpufreq?

Matteo

#1 lore raw
Quoted 11 lines · Matteo Giordano

I just subscribed to the list to address this issue (I think it's an *issue*).
I'm not a kernel hacker so I'm just guessing here, even if I searched and tried all the afternoon.
It's not possible to use cpufreq with an overclocked CPU because the processor's frequencies are "hardcoded" somewhere (the BIOS or a PSB table?).
So if I push my Athlon 64 3200+ to 2.4GHz the "performance" governor will always put it to 2GHz max, causing the overclock to be useless.

Isn't really possible to take the _actual_ frequencies into cpufreq?

It's reliant upon the BIOS tables describing valid frequency/voltage pairs. Obviously, your BIOS has no knowledge of overclocked values.

There's nothing sane we can do here. The only possible way this could work would be by having a mechanism to feed such pairs to the driver, overriding the BIOS.

Patches to do this have been posted to the list in the past, but I'm not enthusiastic about applying them to the mainline kernel, as the potential for getting something wrong if you don't know what you're doing is huge, and this has the possibility of exposing hard-to-track down bugs.

Dave

Signature · 1 line
http://www.codemonkey.org.uk
#2 lore raw
Quoted 21 lines · Dave Jones
Quoted 11 lines · Matteo Giordano

I just subscribed to the list to address this issue (I think it's an *issue*).
I'm not a kernel hacker so I'm just guessing here, even if I searched and tried all the afternoon.
It's not possible to use cpufreq with an overclocked CPU because the processor's frequencies are "hardcoded" somewhere (the BIOS or a PSB table?).
So if I push my Athlon 64 3200+ to 2.4GHz the "performance" governor will always put it to 2GHz max, causing the overclock to be useless.

Isn't really possible to take the _actual_ frequencies into cpufreq?

It's reliant upon the BIOS tables describing valid frequency/voltage pairs. Obviously, your BIOS has no knowledge of overclocked values.

There's nothing sane we can do here. The only possible way this could work would be by having a mechanism to feed such pairs to the driver, overriding the BIOS.

Quoted 6 lines

Patches to do this have been posted to the list in the past, but I'm not enthusiastic about applying them to the mainline kernel, as the potential for getting something wrong if you don't know what you're doing is huge, and this has the possibility of exposing hard-to-track down bugs.

Unless the processor is "unlocked", it's not possible to put an higher multiplier than the max one anyway. And if the system clock is modified, then it is possible you got instability issues since powernow use an internal counter to the processor clocked by the system clock, and the processor may be awaken before PLL lock on the new frequency. In other word, unless powernow-k8 is changed, you won't be able to set a system clock higher than 240MHz (YMMV).

Signature · 4 lines
Bruno Ducrot

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.
#3 lore raw
In reply to Matteo Giordano
Quoted 10 lines · Matteo Giordano

Hi,
I just subscribed to the list to address this issue (I think it's an *issue*).
I'm not a kernel hacker so I'm just guessing here, even if I searched and tried all the afternoon.
It's not possible to use cpufreq with an overclocked CPU because the processor's frequencies are "hardcoded" somewhere (the BIOS or a PSB table?).
So if I push my Athlon 64 3200+ to 2.4GHz the "performance" governor will always put it to 2GHz max, causing the overclock to be useless.

Note, I'm only a cpufreq user myself, so I might be wrong, but these are my observations:

.) k8 powernow only changes the multiplier, but not the reference clock. Thus if you overclock the reference clock and do not change anything else you should be fine.

.) cpufreq _did_ (back in 2.6.15?) report the actual cpu frequencies in /proc/cpuinfo, but this changed and now it reports the frequency it thinks the cpu is running at.

One way to verify that the cpu is still overclocked is to simply look at the bogomips value in /proc/cpuinfo or run some benchmarks.

In my case I've still got the (expected) higher bogomips value for 2.6 ghz even though cpufreq thinks that the cpu is at 2.2 ghz.

kind regards Philip