Re: Unknown p4-clockmod-capable CPU.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 15 November 2008 15:36:21 johnny strom wrote:
> Hello
> 
> I am trying to load the p4-clockmod module then I get this message:
> 
> p4-clockmod: Unknown p4-clockmod-capable CPU. Please send an e-mail to
> 
> I am running debian Lenny with kernel version 2.6.26.
> /proc/cpuinfo  shows the following.
> 
> processor    : 0
> vendor_id    : GenuineIntel
> cpu family    : 6
> model        : 22
> model name    : Intel(R) Celeron(R) CPU          560  @ 2.13GHz
> stepping    : 1
> cpu MHz        : 2128.267
> cache size    : 1024 KB
> fdiv_bug    : no
> hlt_bug        : no
> f00f_bug    : no
> coma_bug    : no
> fpu        : yes
> fpu_exception    : yes
> cpuid level    : 10
> wp        : yes
> flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx lm 
> constant_tsc arch_perfmon pebs bts pni monitor ds_cpl tm2 ssse3 cx16 
> xtpr lahf_lm
> bogomips    : 4261.31
> clflush size    : 64
> power management:
> 
> 
> I have looked in the bios there is nothing there to adjust power 
> managment, it's an Compaq 6720s.
> Any idea what I can do to get powernowd working?

Celeron 560 doesn't have speedstep, so no P-states. p4-clockmod just do
throttling, so you won't gain much to have a working p4-clockmod (talking
about power saving), mostly only heat reduction. But if you want anyway
to use p4-clockmod, try the attached patches.

BTW, if someone finds useful please apply the patches to kernel too, the
fact is p4-clockmod isn't something very useful unless for p4's that were
known to be hot :)

>
> Best Johnny

--
[]'s
Herton
x86, cpufreq: add to speedstep-lib additional fsb values for core processors

Add additional fsb values to pentium_core_get_frequency, from latest edition
(September 2008) of Intel 64 and IA-32 Architectures Software Develper's Manual,
Volume 3B: System Programming Guide, Part 2. Values added are to detect 800,
1067 and 1333 FSB types.

Signed-off-by: Herton Ronaldo Krzesinski <herton@xxxxxxxxxxxxxxx>

diff -p -up linux-2.6.26/arch/x86/kernel/cpu/cpufreq/speedstep-lib.c.orig linux-2.6.26/arch/x86/kernel/cpu/cpufreq/speedstep-lib.c
--- linux-2.6.26/arch/x86/kernel/cpu/cpufreq/speedstep-lib.c.orig	2008-10-02 21:24:22.000000000 +0000
+++ linux-2.6.26/arch/x86/kernel/cpu/cpufreq/speedstep-lib.c	2008-10-02 21:23:15.000000000 +0000
@@ -139,6 +139,15 @@ static unsigned int pentium_core_get_fre
 	case 3:
 		fsb = 166667;
 		break;
+	case 2:
+		fsb = 200000;
+		break;
+	case 0:
+		fsb = 266667;
+		break;
+	case 4:
+		fsb = 333333;
+		break;
 	default:
 		printk(KERN_ERR "PCORE - MSR_FSB_FREQ undefined value");
 	}
Add Celeron Core support to p4-clockmod.

Signed-off-by: Herton Ronaldo Krzesinski <herton@xxxxxxxxxxxxxxx>

diff -p -up linux-2.6.26/arch/x86/kernel/cpu/cpufreq/p4-clockmod.c.orig linux-2.6.26/arch/x86/kernel/cpu/cpufreq/p4-clockmod.c
--- linux-2.6.26/arch/x86/kernel/cpu/cpufreq/p4-clockmod.c.orig	2008-10-02 22:20:00.000000000 +0000
+++ linux-2.6.26/arch/x86/kernel/cpu/cpufreq/p4-clockmod.c	2008-10-02 22:20:29.000000000 +0000
@@ -160,6 +160,7 @@ static unsigned int cpufreq_p4_get_frequ
 		switch (c->x86_model) {
 		case 0x0E: /* Core */
 		case 0x0F: /* Core Duo */
+		case 0x16: /* Celeron Core */
 			p4clockmod_driver.flags |= CPUFREQ_CONST_LOOPS;
 			return speedstep_get_processor_frequency(SPEEDSTEP_PROCESSOR_PCORE);
 		case 0x0D: /* Pentium M (Dothan) */

[Index of Archives]     [Linux Kernel Devel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Forum]     [Linux SCSI]

  Powered by Linux