From: Dominik Brodowski <linux@dominikbrodowski.de>
To: Wouter Verhelst <wouter@grep.be>
Cc: cpufreq@www.linux.org.uk
Subject: Re: p4-clockmod doesn't seem to allow the highest possible speed
Date: Sat, 10 Jan 2004 16:38:34 +0100 [thread overview]
Message-ID: <20040110153834.GA8303@dominikbrodowski.de> (raw)
In-Reply-To: <1073746849.1047.14.camel@worldmusic.grep.be>
[-- Attachment #1: Type: text/plain, Size: 1488 bytes --]
> Note that I had to reboot my box to unload the module. This is probably
> related to the above, but just in case it isn't: I cannot rmmod the
> p4-clockmod module, trying anyway results in rmmod segfaulting -- at
> least once the frequency has been altered. I didn't reboot again just to
> test that, but if you want, it's no problem.
That's unrelated, and I was able to reproduce it on my notebook as well. The
attached patch [which should apply with some offset] should fix that. (Davej:
it applies on top of the p4-clockmod-fixup. Please queue for merging with
Linus, thanks.)
On Sat, Jan 10, 2004 at 04:02:52PM +0100, Wouter Verhelst wrote:
> > What does /proc/cpuinfo say before modprobing p4-clockmod, and
> > after modprobing p4-clockmod?
>
> The only difference with the one you already have is the Mhz number
> (which seems logical). Before it's loaded, it's at 2194.424; Immediately
> after loading p4-clockmod, that number was still the same, but in the
> mean time it went back to 1919.054
I think ACPI is messing with us. It detects a high temperature situation,
tries to scale down the CPU, and forces down the CPU speed. Could you send
me the output of /proc/acpi/processor/*/* and /proc/acpi/thermal_zone/*/*
when you notice this situation again?
BTW, could it be that this is still the 2.6.0 module, instead of the 2.6.1
variant? 2.6.1 should report more "clean" values in
/sys/devices/system/cpu/cpufreq/... it should report 2200000 instead of
2193205.
Dominik
[-- Attachment #2: p4-clockmod-fix-oops.diff --]
[-- Type: text/plain, Size: 797 bytes --]
Fix an OOPS in unloading. Reverting frequency changes on unloading is
uncommon for cpufreq drivers, so let's remove this speciality.
arch/i386/kernel/cpu/cpufreq/p4-clockmod.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -ruN linux-original/arch/i386/kernel/cpu/cpufreq/p4-clockmod.c linux/arch/i386/kernel/cpu/cpufreq/p4-clockmod.c
--- linux-original/arch/i386/kernel/cpu/cpufreq/p4-clockmod.c 2004-01-10 16:26:06.914893464 +0100
+++ linux/arch/i386/kernel/cpu/cpufreq/p4-clockmod.c 2004-01-10 16:25:25.983116040 +0100
@@ -246,7 +246,7 @@
static int cpufreq_p4_cpu_exit(struct cpufreq_policy *policy)
{
cpufreq_frequency_table_put_attr(policy->cpu);
- return cpufreq_p4_setdc(policy->cpu, DC_DISABLE);
+ return 0;
}
static struct freq_attr* p4clockmod_attr[] = {
[-- Attachment #3: Type: text/plain, Size: 143 bytes --]
_______________________________________________
Cpufreq mailing list
Cpufreq@www.linux.org.uk
http://www.linux.org.uk/mailman/listinfo/cpufreq
next prev parent reply other threads:[~2004-01-10 15:38 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-09 18:18 p4-clockmod doesn't seem to allow the highest possible speed Wouter Verhelst
2004-01-10 10:15 ` Dominik Brodowski
2004-01-10 11:08 ` Wouter Verhelst
2004-01-10 13:18 ` Dominik Brodowski
2004-01-10 15:02 ` Wouter Verhelst
2004-01-10 15:38 ` Dominik Brodowski [this message]
2004-01-10 16:30 ` Wouter Verhelst
2004-01-10 15:21 ` Wouter Verhelst
2004-01-10 15:41 ` Dominik Brodowski
2004-01-10 16:32 ` Wouter Verhelst
2004-01-10 18:53 ` Ducrot Bruno
2004-01-10 19:35 ` Wouter Verhelst
2004-01-11 15:48 ` Ducrot Bruno
2004-01-11 17:30 ` Dominik Brodowski
2004-01-11 18:05 ` Ducrot Bruno
2004-01-11 17:35 ` Dominik Brodowski
2004-01-11 19:56 ` Wouter Verhelst
2004-01-11 20:06 ` Dominik Brodowski
2004-01-11 20:24 ` Wouter Verhelst
2004-01-12 12:26 ` Ducrot Bruno
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=20040110153834.GA8303@dominikbrodowski.de \
--to=linux@dominikbrodowski.de \
--cc=cpufreq@www.linux.org.uk \
--cc=wouter@grep.be \
/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