All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@amd.com>
To: Mathieu Roy <yeupou@gnu.org>
Cc: cpufreq@vger.kernel.org
Subject: Re: cpufreq --hwfreq / --freq and overclocking
Date: Mon, 3 Sep 2012 13:39:21 +0200	[thread overview]
Message-ID: <504496E9.7070109@amd.com> (raw)
In-Reply-To: <201208071309.27662@bender.stalag13.ici>

On 08/07/2012 01:09 PM, Mathieu Roy wrote:
> Hello,
>
> Is there any way to get the actual real hardware CPU frequency in the case of an overclocked CPU?
>
> Running at max, I get
>    # cpufreq-info --hwfreq
> 3000000
>    # cpufreq-info --freq
> 3000000

Both command lines eventually query the frequency from an ACPI table. 
This table will be filled at boot time by the BIOS.
Now it depends on how you overclock your system. If you use the BIOS, it 
_could_ adapt the ACPI table and enter the actual values here, but 
obviously it does not do this.
If you do this outside of the BIOS, ACPI is usually not altered, so you 
are out of luck then.

> However, dmidecode shows, according to BIOS settings:
> 	Version: AMD Athlon(tm) II X4 640 Processor
> 	External Clock: 230 MHz
> 	Max Speed: 3700 MHz
> 	Current Speed: 3450 MHz

So this gives a hint that the BIOS knows about the overclocked system. I 
guess that it just does not report this into the _PSS object, probably 
because the official recommendation in the AMD manuals is to use 200 MHz 
as the base frequency.

> Which frequency value is the correct one? I assume cpufreq does not
> override the BIOS overclocking settings (external clock at 230 instead
> of 200, hence the CPU at 3450 instead of 3000), so is there any way for
> cpufreq to adjust and report correct values?

cpufreq just reports the _PSS ACPI content and does not alter or 
override any settings. I guess it is out of scope for the rather generic 
cpufreq subsystem to query any actual overclocked system bus frequencies 
and report those values instead.

However you could use more hardware dedicated tools to read the data 
directly from the system and compute the actual frequencies. As I am not 
an overclocker, I don't know of any Linux tools who do this, but maybe 
someone from the list does.

Regards,
Andre.


-- 
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany


      reply	other threads:[~2012-09-03 11:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-07 11:09 cpufreq --hwfreq / --freq and overclocking Mathieu Roy
2012-09-03 11:39 ` Andre Przywara [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=504496E9.7070109@amd.com \
    --to=andre.przywara@amd.com \
    --cc=cpufreq@vger.kernel.org \
    --cc=yeupou@gnu.org \
    /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 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.