I get 55C idle, and 60/61C compiling (1600 @ 0.908 volt). Before @ 1600 I got over 76, so this is very very good.rschwarze wrote:i don't know what the four voltage numbers mean.
btw, which temperature do you get in idle mode? and which temperature while compiling?




Code: Select all
CC arch/i386/kernel/cpu/cpufreq/speedstep-centrino.o
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:346: error: `dothan_1599' unde
clared here (not in a function)
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:346: error: initializer elemen
t is not constant
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:346: error: (near initializati
on for `models[13].op_points')
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:346: error: initializer elemen
t is not constant
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:346: error: (near initializati
on for `models[13]')
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:347: error: initializer elemen
t is not constant
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:347: error: (near initializati
on for `models[14]')
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:348: error: initializer elemen
t is not constant
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:348: error: (near initializati
on for `models[15]')
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:349: error: initializer elemen
t is not constant
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:349: error: (near initializati
on for `models[16]')
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:350: error: initializer elemen
t is not constant
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:350: error: (near initializati
on for `models[17]')
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:353: error: initializer elemen
t is not constant
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:353: error: (near initializati on for `models[18]')
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:354: error: initializer elemen t is not constant
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:354: error: (near initializati on for `models[19]')
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:355: error: initializer elemen t is not constant
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:355: error: (near initializati on for `models[20]')
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:356: error: initializer elemen t is not constant
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:356: error: (near initializati on for `models[21]')
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:358: error: initializer elemen t is not constant
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:358: error: (near initializati on for `models[22]')
make[3]: *** [arch/i386/kernel/cpu/cpufreq/speedstep-centrino.o] Fehler 1
make[2]: *** [arch/i386/kernel/cpu/cpufreq] Fehler 2
make[1]: *** [arch/i386/kernel/cpu] Fehler 2
Code: Select all
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/cpufreq.h>
#include <linux/config.h>
#include <linux/delay.h>
#include <linux/compiler.h>
#ifdef CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI
#include <linux/acpi.h>
#include <acpi/processor.h>
#endif
#include <asm/msr.h>
#include <asm/processor.h>
#include <asm/cpufeature.h>
#include "speedstep-est-common.h"
#define PFX "speedstep-centrino: "
#define MAINTAINER "Jeremy Fitzhardinge <jeremy@goop.org>"
#define dprintk(msg...) cpufreq_debug_printk(CPUFREQ_DEBUG_DRIVER, "speedstep-centrino", msg)
struct cpu_id
{
__u8 x86; /* CPU family */
__u8 x86_model; /* model */
__u8 x86_mask; /* stepping */
};
enum {
CPU_BANIAS,
CPU_DOTHAN_A1,
CPU_DOTHAN_A2,
CPU_DOTHAN_B0,
CPU_DOTHAN_C0,
};
static const struct cpu_id cpu_ids[] = {
[CPU_BANIAS] = { 6, 9, 5 },
[CPU_DOTHAN_A1] = { 6, 13, 1 },
[CPU_DOTHAN_A2] = { 6, 13, 2 },
[CPU_DOTHAN_B0] = { 6, 13, 6 },
[CPU_DOTHAN_C0] = { 6, 13, 8 },
};
#define N_IDS (sizeof(cpu_ids)/sizeof(cpu_ids[0]))
struct cpu_model
{
const struct cpu_id *cpu_id;
const char *model_name;
unsigned max_freq; /* max clock in kHz */
struct cpufreq_frequency_table *op_points; /* clock/voltage pairs */
};
static int centrino_verify_cpu_id(const struct cpuinfo_x86 *c, const struct cpu_id *x);
/* Operating points for current CPU */
static struct cpu_model *centrino_model[NR_CPUS];
static const struct cpu_id *centrino_cpu[NR_CPUS];
static struct cpufreq_driver centrino_driver;
#ifdef CONFIG_X86_SPEEDSTEP_CENTRINO_TABLE
/* Computes the correct form for IA32_PERF_CTL MSR for a particular
frequency/voltage operating point; frequency in MHz, volts in mV.
This is stored as "index" in the structure. */
#define OP(mhz, mv) \
{ \
.frequency = (mhz) * 1000, \
.index = (((mhz)/100) << 8) | ((mv - 700) / 16) \
}
/*
* These voltage tables were derived from the Intel Pentium M
* datasheet, document 25261202.pdf, Table 5. I have verified they
* are consistent with my IBM ThinkPad X31, which has a 1.3GHz Pentium
* M.
*/
/* Ultra Low Voltage Intel Pentium M processor 900MHz (Banias) */
static struct cpufreq_frequency_table banias_900[] =
{
OP(600, 844),
OP(800, 988),
OP(900, 1004),
{ .frequency = CPUFREQ_TABLE_END }
};
/* Ultra Low Voltage Intel Pentium M processor 1000MHz (Banias) */
static struct cpufreq_frequency_table banias_1000[] =
{
OP(600, 844),
OP(800, 972),
OP(900, 988),
OP(1000, 1004),
{ .frequency = CPUFREQ_TABLE_END }
};
/* Low Voltage Intel Pentium M processor 1.10GHz (Banias) */
static struct cpufreq_frequency_table banias_1100[] =
{
OP( 600, 956),
OP( 800, 1020),
OP( 900, 1100),
OP(1000, 1164),
OP(1100, 1180),
{ .frequency = CPUFREQ_TABLE_END }
};
/* Low Voltage Intel Pentium M processor 1.20GHz (Banias) */
static struct cpufreq_frequency_table banias_1200[] =
{
OP( 600, 956),
OP( 800, 1004),
OP( 900, 1020),
OP(1000, 1100),
OP(1100, 1164),
OP(1200, 1180),
{ .frequency = CPUFREQ_TABLE_END }
};
/* Intel Pentium M processor 1.30GHz (Banias) */
static struct cpufreq_frequency_table banias_1300[] =
{
OP( 600, 956),
OP( 800, 1260),
OP(1000, 1292),
OP(1200, 1356),
OP(1300, 1388),
{ .frequency = CPUFREQ_TABLE_END }
};
/* Intel Pentium M processor 1.40GHz (Banias) */
static struct cpufreq_frequency_table banias_1400[] =
{
OP( 600, 956),
OP( 800, 1180),
OP(1000, 1308),
OP(1200, 1436),
OP(1400, 1484),
{ .frequency = CPUFREQ_TABLE_END }
};
/* Intel Pentium M processor 1.50GHz (Banias) */
static struct cpufreq_frequency_table banias_1500[] =
{
OP( 600, 956),
OP( 800, 1116),
OP(1000, 1228),
OP(1200, 1356),
OP(1400, 1452),
OP(1500, 1484),
{ .frequency = CPUFREQ_TABLE_END }
};
/* Intel Pentium M processor 1.60GHz (Banias) */
static struct cpufreq_frequency_table banias_1600[] =
{
OP( 600, 956),
OP( 800, 1036),
OP(1000, 1164),
OP(1200, 1276),
OP(1400, 1420),
OP(1600, 1484),
{ .frequency = CPUFREQ_TABLE_END }
};
/* Intel Pentium M processor 1.70GHz (Banias) */
static struct cpufreq_frequency_table banias_1700[] =
{
OP( 600, 956),
OP( 800, 1004),
OP(1000, 1116),
OP(1200, 1228),
OP(1400, 1308),
OP(1700, 1484),
{ .frequency = CPUFREQ_TABLE_END }
};
#undef OP
/* Dothan processor datasheet 30218903.pdf defines 4 voltages for each
frequency (VID#A through VID#D) - this macro allows us to define all
of these but we only use the VID#C voltages at compile time - this may
need some work if we want to select the voltage profile at runtime. */
#define OP(mhz, mva, mvb, mvc, mvd) \
{ \
.frequency = (mhz) * 1000, \
.index = (((mhz)/100) << 8) | ((mvc - 700) / 16) \
}
/* Intel Pentium M processor 733 / 1.10GHz (Dothan) */
static struct cpufreq_frequency_table dothan_1100[] =
{
OP( 500, 700, 700, 700, 700),
OP( 600, 700, 700, 700, 700),
OP( 800, 748, 748, 748, 748),
OP( 900, 764, 764, 764, 764),
OP(1000, 812, 812, 812, 812),
OP(1100, 844, 844, 844, 844),
{ .frequency = CPUFREQ_TABLE_END }
};
/* Intel Pentium M processor 710 / 1.40GHz (Dothan) */
static struct cpufreq_frequency_table dothan_1400[] =
{
OP( 400, 700, 700, 700, 700),
OP( 600, 700, 700, 700, 700),
OP( 800, 750, 750, 750, 750),
OP(1000, 810, 810, 810, 810),
OP(1200, 870, 870, 870, 870),
OP(1400, 920, 920, 920, 920),
{ .frequency = CPUFREQ_TABLE_END }
};
/* Intel Pentium M processor 715 / 1.50GHz (Dothan) */
static struct cpufreq_frequency_table dothan_1500[] =
{
OP( 600, 988, 988, 988, 988),
OP( 800, 1068, 1068, 1068, 1052),
OP(1000, 700, 1148, 1132, 1116),
OP(1200, 1228, 1212, 1212, 1180),
OP(1500, 1340, 1324, 1308, 1276),
{ .frequency = CPUFREQ_TABLE_END }
};
/* Intel Pentium M processor 725 / 1.60GHz (Dothan) */
static struct cpufreq_frequency_table dothan_1600[] =
{
OP( 600, 800, 988, 988, 988),
OP( 800, 800, 1068, 1052, 1052),
OP(1000, 1132, 1132, 1116, 1116),
OP(1200, 1212, 1196, 1180, 1164),
OP(1400, 1276, 1260, 1244, 1228),
OP(1600, 1340, 1324, 1308, 1276),
{ .frequency = CPUFREQ_TABLE_END }
};
/* Intel Pentium M processor 735 / 1.70GHz (Dothan) */
static struct cpufreq_frequency_table dothan_1700[] =
{
OP( 600, 988, 988, 988, 988),
OP( 800, 1052, 1052, 1052, 1052),
OP(1000, 1116, 1116, 1116, 1100),
OP(1200, 1180, 1180, 1164, 1148),
OP(1400, 1244, 1244, 1228, 1212),
OP(1700, 1340, 1324, 1308, 1276),
{ .frequency = CPUFREQ_TABLE_END }
};
/* Intel Pentium M processor 745 / 1.80GHz (Dothan) */
static struct cpufreq_frequency_table dothan_1800[] =
{
OP( 600, 988, 988, 988, 988),
OP( 800, 1052, 1052, 1052, 1036),
OP(1000, 1116, 1100, 1100, 1084),
OP(1200, 1164, 1164, 1148, 1132),
OP(1400, 1228, 1212, 1212, 1180),
OP(1600, 1292, 1276, 1260, 1228),
OP(1800, 1340, 1324, 1308, 1276),
{ .frequency = CPUFREQ_TABLE_END }
};
/* Intel Pentium M processor 755 / 2.00GHz (Dothan) */
static struct cpufreq_frequency_table dothan_2000[] =
{
OP( 600, 988, 988, 988, 988),
OP( 800, 1052, 1036, 1036, 1036),
OP(1000, 1100, 1084, 1084, 1084),
OP(1200, 1148, 1132, 1132, 1116),
OP(1400, 1196, 1180, 1180, 1164),
OP(1600, 1244, 1228, 1228, 1196),
OP(1800, 1292, 1276, 1276, 1244),
OP(2000, 1340, 1324, 1308, 1276),
{ .frequency = CPUFREQ_TABLE_END }
};
/* Intel Pentium M processor 730 / 1.599GHz (Dothan) */
static struct cpufreq_frequency_table dothan_1599[] =
{
OP( 600, 812, 812, 812, 812)
OP( 800, 812, 812, 812, 812),
OP(1067, 700, 700, 700, 700),
OP(1333, 1004, 1004, 1004, 1004),
OP(1600, 1100, 1100, 1100, 1100),
{ .frequency = CPUFREQ_TABLE_END }
};
/* Intel Pentium M processor 750 / 1.86GHz (Dothan) */
static struct cpufreq_frequency_table dothan_1867[] =
{
OP( 800, 880, 880, 880, 880),
OP(1333, 1010, 1010, 1010, 1010),
OP(1867, 1120, 1120, 1120, 1120),
{ .frequency = CPUFREQ_TABLE_END }
};
#undef OP
#define _BANIAS(cpuid, max, name) \
{ .cpu_id = cpuid, \
.model_name = "Intel(R) Pentium(R) M processor " name "MHz", \
.max_freq = (max)*1000, \
.op_points = banias_##max, \
}
#define BANIAS(max) _BANIAS(&cpu_ids[CPU_BANIAS], max, #max)
#define DOTHAN(cpuid, max, name) \
{ .cpu_id = cpuid, \
.model_name = "Intel(R) Pentium(R) M processor " name "GHz", \
.max_freq = (max)*1000, \
.op_points = dothan_##max, \
}
/* CPU models, their operating frequency range, and freq/voltage
operating points */
static struct cpu_model models[] =
{
_BANIAS(&cpu_ids[CPU_BANIAS], 900, " 900"),
BANIAS(1000),
BANIAS(1100),
BANIAS(1200),
BANIAS(1300),
BANIAS(1400),
BANIAS(1500),
BANIAS(1600),
BANIAS(1700),
DOTHAN(&cpu_ids[CPU_DOTHAN_B0], 1100, "1.10"),
DOTHAN(&cpu_ids[CPU_DOTHAN_B0], 1400, "1.40"),
DOTHAN(&cpu_ids[CPU_DOTHAN_B0], 1500, "1.50"),
DOTHAN(&cpu_ids[CPU_DOTHAN_B0], 1600, "1.60"),
DOTHAN(&cpu_ids[CPU_DOTHAN_B0], 1599, "1.60"),
DOTHAN(&cpu_ids[CPU_DOTHAN_B0], 1700, "1.70"),
DOTHAN(&cpu_ids[CPU_DOTHAN_B0], 1800, "1.80"),
DOTHAN(&cpu_ids[CPU_DOTHAN_B0], 2000, "2.00"),
DOTHAN(&cpu_ids[CPU_DOTHAN_C0], 1867, "1.86"),
/* NULL model_name is a wildcard */
{ &cpu_ids[CPU_DOTHAN_A1], NULL, 0, NULL },
{ &cpu_ids[CPU_DOTHAN_A2], NULL, 0, NULL },
{ &cpu_ids[CPU_DOTHAN_B0], NULL, 0, NULL },
{ &cpu_ids[CPU_DOTHAN_C0], NULL, 0, NULL },
{ NULL, }
};
#undef _BANIAS
#undef BANIAS
#undef DOTHANCode: Select all
DOTHAN(&cpu_ids[CPU_DOTHAN_B0], 1600, "1.60")Code: Select all
static struct cpufreq_frequency_table banias_1600[] = Code: Select all
static struct cpufreq_frequency_table banias_1599[] = 
Code: Select all
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:181: warning: `banias_1599' defined but not used
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:253: warning: `dothan_1600' defined but not used





Code: Select all
./mprime: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
Code: Select all
/* Intel Pentium M processor 710 / 1.40GHz (Dothan) */
static struct cpufreq_frequency_table dothan_1400[] =
{
OP( 600, 700, 700, 700, 700),
OP( 800, 770, 770, 770, 769),
OP(1000, 840, 840, 840, 840),
OP(1200, 910, 910, 910, 910),
OP(1400, 980, 980, 980, 980),
{ .frequency = CPUFREQ_TABLE_END }
};
/* Intel Pentium M processor 715 / 1.50GHz (Dothan) */
static struct cpufreq_frequency_table dothan_1500[] =
{
OP( 600, 700, 700, 700, 700),
OP( 800, 1068, 1068, 1068, 1052),
OP(1000, 1148, 1148, 1132, 1116),
OP(1200, 1228, 1212, 1212, 1180),
OP(1500, 1340, 1324, 1308, 1276),
{ .frequency = CPUFREQ_TABLE_END }
};
Code: Select all
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 13
model name : Intel(R) Pentium(R) M processor 1.50GHz
stepping : 8
cpu MHz : 599.642
cache size : 2048 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx est tm2
bogomips : 1189.47