Skip to contentSkip to conversation

cpufreq and P3 speedstep with 2.6.0-test3 kernel

DISCUSSION Johan Bilien 4 participants 14 messages Aug 13, 2003 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to run cpufreq on my IBM laptop Thinkpad T22, with a Pentium 3 900 (with speedstep). I have a linux 2.6.0-test3 kernel, and have speedstep-ich.ko and speedstep-lib.ko compiled as modules. When I insmod speedstep-lib, nothing happens. When I insmod speedstep-ich, I get:

FATAL: Error inserting speedstep_ich (/lib/modules/2.6.0-test3/kernel/arch/i386/kernel/cpu/cpufreq/\
speedstep-ich.ko): No such device

Speedstep is set in the BIOS.

I have nothing in /sys/devices/system/cpu/cpu0, and if I insmod the /proc interface I only get the header in /proc/cpufreq.

Do you have any idea ? Have I misconfigured something ?

Thanks,

Signature · 1 line
Jobi
#1 lore raw
Quoted 10 lines · Johan Bilien

Hi,

I'm trying to run cpufreq on my IBM laptop Thinkpad T22, with a Pentium 3 900 (with speedstep). I have a linux 2.6.0-test3 kernel, and have speedstep-ich.ko and speedstep-lib.ko compiled as modules. When I insmod speedstep-lib, nothing happens. When I insmod speedstep-ich, I get:

FATAL: Error inserting speedstep_ich (/lib/modules/2.6.0-test3/kernel/arch/i386/kernel/cpu/cpufreq/\
speedstep-ich.ko): No such device

could you post the output of
lspci -vx -s0:
please?

Cheers,

Signature · 4 lines
Ducrot Bruno

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.
#2 lore raw
Quoted 5 lines · Ducrot Bruno
Quoted 5 lines

I'm trying to run cpufreq on my IBM laptop Thinkpad T22, with a Pentium 3 900 (with speedstep). I have a linux 2.6.0-test3 kernel, and have speedstep-ich.ko and speedstep-lib.ko compiled as modules. When I insmod speedstep-lib, nothing happens. When I insmod speedstep-ich, I get:

Quoted 7 lines
Quoted 3 lines

FATAL: Error inserting speedstep_ich (/lib/modules/2.6.0-test3/kernel/arch/i386/kernel/cpu/cpufreq/\
speedstep-ich.ko): No such device

could you post the output of
lspci -vx -s0:
please?

13/08 16:08 ~% lspci -vx -s0
00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
Flags: bus master, medium devsel, latency 64
Memory at f8000000 (32-bit, prefetchable) [size=64M]
Capabilities: <available only to root>
00: 86 80 90 71 06 01 10 22 03 00 00 06 00 40 00 00
10: 08 00 00 f8 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 a0 00 00 00 00 00 00 00 00 00 00 00

01:00.0 VGA compatible controller: S3 Inc. 86C270-294 Savage/IX-MV (rev
13) (prog-if 00 [VGA])
Subsystem: IBM ThinkPad T20
Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 11 Memory at f0000000 (32-bit, non-prefetchable) [size=128M] Expansion ROM at <unassigned> [disabled] [size=64K]
Capabilities: <available only to root>
00: 33 53 12 8c 07 00 30 02 13 00 00 03 08 40 00 00
10: 00 00 00 f0 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 14 10 7f 01
30: 00 00 00 00 dc 00 00 00 00 00 00 00 0b 01 04 ff

Thank you for your prompt reply,

Signature · 1 line
Jobi
#14 lore raw
In reply to Ducrot Bruno

Hi !

Quoted 6 lines · Ducrot Bruno

could you post the output of
lspci -vx -s0:
please?

Cheers,

Was speedstep_bx integrated to test3 ? AFAIK T2x series of laptops are built using BX chipset, and speedstep-ich can't deal with it. I've just checked -test2 sources, and there isn't BX-aware code there.
BTW, I've manually integrated speedstep_bx into speedstep-ich.c for 2.4.21-rc1 vanilla (I can't run -ac for various reasons - some other patches are confilcting with -ac patchset). There are some problems with cpufreq in general in plain 2.4.21-rc1 (f.e /proc/sys/cpu interface is broken - speed = speed_min = speed_max = 0), but /proc/cpufreq works well, and I could successfully change policies using /proc/cpufreq. Is anyone interested in diff ?

Signature · 1 line
With all the best, yarick at relex dot ru.
#3 lore raw
In reply to Johan Bilien
Quoted 6 lines · Johan Bilien
Quoted 5 lines · Ducrot Bruno
Quoted 5 lines

I'm trying to run cpufreq on my IBM laptop Thinkpad T22, with a Pentium 3 900 (with speedstep). I have a linux 2.6.0-test3 kernel, and have speedstep-ich.ko and speedstep-lib.ko compiled as modules. When I insmod speedstep-lib, nothing happens. When I insmod speedstep-ich, I get:

Quoted 8 lines
Quoted 7 lines
Quoted 3 lines

FATAL: Error inserting speedstep_ich (/lib/modules/2.6.0-test3/kernel/arch/i386/kernel/cpu/cpufreq/\
speedstep-ich.ko): No such device

could you post the output of
lspci -vx -s0:
please?

Could you please read http://www.poupinou.org/cpufreq/
and:

ftp://ftp.poupinou.org/cpufreq/speedstep-detect.tar.gz

then give me output of ./speedstep-detect
both on battery and ac ?

Then please could you please try:

ftp://ftp.poupinou.org/cpufreq/speedstep-piix4-260-test3.diff.bz2

via something like:
modprobe speedstep-piix4 gpo_hilo=0

(I need to update the www page, btw..)

I am not sure for the gpo_hilo option, though, but I do have some reports on that kind of laptops. See at
http://www.poupinou.org/cpufreq/reports.html

Just to be safe, runing speedstep-detect
will give the confirmation, or not, that gpo_hilo is really 0 as already reported.

Cheers,

Signature · 4 lines
Ducrot Bruno

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.
#15 lore raw
In reply to Yaroslav Rastrigin
Quoted 11 lines · Yaroslav Rastrigin

Hi !

Quoted 6 lines · Ducrot Bruno

could you post the output of
lspci -vx -s0:
please?

Cheers,

Was speedstep_bx integrated to test3 ? AFAIK T2x series of laptops are built using BX chipset, and speedstep-ich can't deal with it. I've just checked -test2 sources, and there isn't BX-aware code there.

No. That one is still not integrated. There are at least some known chipset bugs before even considering to submit to linus or alan.

Quoted 5 lines

BTW, I've manually integrated speedstep_bx into speedstep-ich.c for 2.4.21-rc1 vanilla (I can't run -ac for various reasons - some other patches are confilcting with -ac patchset). There are some problems with cpufreq in general in plain 2.4.21-rc1 (f.e /proc/sys/cpu interface is broken - speed = speed_min = speed_max = 0)

You have to switch to the userspace policy via something like:

echo 0:1000000:userspace > /proc/cpufreq

before using the really old interface under /proc/sys/cpu.

Quoted 3 lines

, but /proc/cpufreq works well, and I could
successfully change policies using /proc/cpufreq. Is anyone interested in diff ?

I guess yes, but only if you are using patch from davej at first:
http://www.codemonkey.org.uk/cpufreq/
and if you use the speedstep-piix4.c found on cvs (with a one-liner patch, though).

I am also surprised that patch for ac do not apply to latter davej one?

Cheers,

Signature · 4 lines
Ducrot Bruno

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.
#4 lore raw
In reply to Ducrot Bruno
Quoted 7 lines · Ducrot Bruno

Could you please read http://www.poupinou.org/cpufreq/
and:

ftp://ftp.poupinou.org/cpufreq/speedstep-detect.tar.gz

then give me output of ./speedstep-detect
both on battery and ac ?

on AC:

dmi_scan: return:
DMI 2.3 present.
46 structures occupying 1585 bytes.
DMI table at 0x07FF0000.
BIOS Vendor: IBM
BIOS Version: 16ET27WW (1.07 )
BIOS Release: 09/19/2001
System Vendor: IBM
Product Name: 26474EG
Version: Not Available
Board Vendor: IBM
Board Name: 26474EG
Board Version: Not Available
Trying Intel's int15 GSIC:
BIOS support GSIC call:

	signature: GSIC
	command port = 0x00b2
	command =      0x0082
	event port =   0x00c000b3
	flags =        0x07d00000

probing chipsets: Found PIIX4
pmbase at 0x1000
Dumping PM IO register for this southbridge:
PMCNTRL (0x1004): 0x1400

(0x1006):         0x0000
GPEN (0x100e):    0x0201
PCNTRL (0x1010):  0x00000200
(0x1016):         0x0000
DEVSTS (0x101c):  0x00000000
GLBLEN (0x1020):  0x0501
(0x1022):         0x00000000
GLBCTL (0x1028):  0x06019705
DEVCTL (0x102c):  0x00000000
GPIs: (0x1030):   0x070862
(0x1033):         0x00
GPOs: (0x1034):   0x7f7786fe
(0x1038):         0x62 0x08 0x07 0x00 0xfe 0x86 0x77 0x7f 

You need to boot on AC and battery and see if GPOs change. Then, see if one bit change in between, you have then to note the number of this bit. This will be the gpo_hilo= number kernel option for enabling the speedstep-piix4 module under Linux.

                                      ..28..24..20..16..12...8...4...0
        GPOs: (0x1034):   0x7f7786fe  01111111011101111000011011111110

on battery:

dmi_scan: return:
DMI 2.3 present.
46 structures occupying 1585 bytes.
DMI table at 0x07FF0000.
BIOS Vendor: IBM
BIOS Version: 16ET27WW (1.07 )
BIOS Release: 09/19/2001
System Vendor: IBM
Product Name: 26474EG
Version: Not Available
Board Vendor: IBM
Board Name: 26474EG
Board Version: Not Available
Trying Intel's int15 GSIC:
BIOS support GSIC call:

	signature: GSIC
	command port = 0x00b2
	command =      0x0082
	event port =   0x00c000b3
	flags =        0x07d00000

probing chipsets: Found PIIX4
pmbase at 0x1000
Dumping PM IO register for this southbridge:
PMCNTRL (0x1004): 0x1400

(0x1006):         0x0000
GPEN (0x100e):    0x0201
PCNTRL (0x1010):  0x00002200
(0x1016):         0x0000
DEVSTS (0x101c):  0x00000000
GLBLEN (0x1020):  0x0501
(0x1022):         0x00000000
GLBCTL (0x1028):  0x06010305
DEVCTL (0x102c):  0x00000000
GPIs: (0x1030):   0x070862
(0x1033):         0x00
GPOs: (0x1034):   0x7f7786fe
(0x1038):         0x62 0x08 0x07 0x00 0xfe 0x86 0x77 0x7f 

You need to boot on AC and battery and see if GPOs change. Then, see if one bit change in between, you have then to note the number of this bit. This will be the gpo_hilo= number kernel option for enabling the speedstep-piix4 module under Linux.

                                      ..28..24..20..16..12...8...4...0
        GPOs: (0x1034):   0x7f7786fe  01111111011101111000011011111110
Quoted 6 lines

Then please could you please try:

ftp://ftp.poupinou.org/cpufreq/speedstep-piix4-260-test3.diff.bz2

via something like:
modprobe speedstep-piix4 gpo_hilo=0

I tried this, but I get:

13/08 16:50 /usr/src/linux-2.6.0-test3# modprobe
speedstep-piix4 gpo_hilo=0
FATAL: Error inserting speedstep_piix4 (/lib/modules/2.6.0-test3/kernel/arch/i386/kernel/cpu/cpufreq/speedstep-piix4.ko):
No such device
zsh: 3871 exit 1 modprobe speedstep-piix4 gpo_hilo=0

Signature · 1 line
jobi
#5 lore raw
Quoted 8 lines · Johan Bilien
Quoted 7 lines · Ducrot Bruno

Could you please read http://www.poupinou.org/cpufreq/
and:

ftp://ftp.poupinou.org/cpufreq/speedstep-detect.tar.gz

then give me output of ./speedstep-detect
both on battery and ac ?

Could you please retry, but with 'speedstep' turned off in bios?

Defining
#define SPEEDSTEP_DEBUG
in speedstep-lib.c and in speedstep-piix4.c will be also usefull.

Cheers,

Signature · 4 lines
Ducrot Bruno

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.
#6 lore raw
Quoted 11 lines · Ducrot Bruno
Quoted 8 lines · Johan Bilien
Quoted 7 lines · Ducrot Bruno

Could you please read http://www.poupinou.org/cpufreq/
and:

ftp://ftp.poupinou.org/cpufreq/speedstep-detect.tar.gz

then give me output of ./speedstep-detect
both on battery and ac ?

Could you please retry, but with 'speedstep' turned off in bios?

Here are the results:

on AC:

dmi_scan: return:
DMI 2.3 present.
46 structures occupying 1585 bytes.
DMI table at 0x07FF0000.
BIOS Vendor: IBM
BIOS Version: 16ET27WW (1.07 )
BIOS Release: 09/19/2001
System Vendor: IBM
Product Name: 26474EG
Version: Not Available
Board Vendor: IBM
Board Name: 26474EG
Board Version: Not Available
Trying Intel's int15 GSIC:
BIOS support GSIC call:

	signature: GSIC
	command port = 0x00b2
	command =      0x0082
	event port =   0x00c000b3
	flags =        0x07d00000

probing chipsets: Found PIIX4
pmbase at 0x1000
Dumping PM IO register for this southbridge:
PMCNTRL (0x1004): 0x1400

(0x1006):         0x0000
GPEN (0x100e):    0x0201
PCNTRL (0x1010):  0x00000200
(0x1016):         0x0000
DEVSTS (0x101c):  0x00000000
GLBLEN (0x1020):  0x0501
(0x1022):         0x00000000
GLBCTL (0x1028):  0x06019705
DEVCTL (0x102c):  0x00000000
GPIs: (0x1030):   0x050862
(0x1033):         0x00
GPOs: (0x1034):   0x7f7786ff
(0x1038):         0x62 0x08 0x05 0x00 0xff 0x86 0x77 0x7f 

You need to boot on AC and battery and see if GPOs change. Then, see if one bit change in between, you have then to note the number of this bit. This will be the gpo_hilo= number kernel option for enabling the speedstep-piix4 module under Linux.

                                      ..28..24..20..16..12...8...4...0
        GPOs: (0x1034):   0x7f7786ff  01111111011101111000011011111111

on battery:

dmi_scan: return:
DMI 2.3 present.
46 structures occupying 1585 bytes.
DMI table at 0x07FF0000.
BIOS Vendor: IBM
BIOS Version: 16ET27WW (1.07 )
BIOS Release: 09/19/2001
System Vendor: IBM
Product Name: 26474EG
Version: Not Available
Board Vendor: IBM
Board Name: 26474EG
Board Version: Not Available
Trying Intel's int15 GSIC:
BIOS support GSIC call:

	signature: GSIC
	command port = 0x00b2
	command =      0x0082
	event port =   0x00c000b3
	flags =        0x07d00000

probing chipsets: Found PIIX4
pmbase at 0x1000
Dumping PM IO register for this southbridge:
PMCNTRL (0x1004): 0x1400

(0x1006):         0x0000
GPEN (0x100e):    0x0201
PCNTRL (0x1010):  0x00002200
(0x1016):         0x0000
DEVSTS (0x101c):  0x00000000
GLBLEN (0x1020):  0x0501
(0x1022):         0x00000000
GLBCTL (0x1028):  0x06019705
DEVCTL (0x102c):  0x00000000
GPIs: (0x1030):   0x070862
(0x1033):         0x00
GPOs: (0x1034):   0x7f7786ff
(0x1038):         0x62 0x08 0x07 0x00 0xff 0x86 0x77 0x7f 

You need to boot on AC and battery and see if GPOs change. Then, see if one bit change in between, you have then to note the number of this bit. This will be the gpo_hilo= number kernel option for enabling the speedstep-piix4 module under Linux.

                                      ..28..24..20..16..12...8...4...0
        GPOs: (0x1034):   0x7f7786ff  01111111011101111000011011111111
Quoted 3 lines

Defining
#define SPEEDSTEP_DEBUG
in speedstep-lib.c and in speedstep-piix4.c will be also usefull.

I recompiled the modules with SPEEDSTEP_DEBUG, and know when I do modprobe speedstep-piix4 I get in the syslog:

Aug 13 17:22:15 naboo kernel: cpufreq: Coppermine:
MSR_IA32_EBL_CR_POWERON is 0x46480020, 0x0
Aug 13 17:22:15 naboo kernel: cpufreq: Coppermine: MSR_IA32_PLATFORM ID

is 0x0, 0x48550000

Signature · 1 line
Jobi
#9 lore raw
In reply to a message not in the archive
Quoted 18 lines · Ducrot Bruno
Quoted 7 lines

Try this:

arch/i386/kernel/cpu/cpufreq/speedstep-lib.c line 206

Quoted 8 lines
arch/i386/kernel/cpu/cpufreq/speedstep-lib.c +1 -1
@@ -200,7 +200,7 @@
 		 */
 		rdmsr(MSR_IA32_PLATFORM_ID, msr_lo, msr_hi);
 		dprintk(KERN_DEBUG "cpufreq: Coppermine: MSR_IA32_PLATFORM ID is 0x%x, 0x%x\n", msr_lo, msr_hi);
-		if ((msr_hi & (1<<18)) && (msr_hi & (3<<24))) {
+		if ((msr_lo & (1<<18)) && (msr_lo & (3<<24))) {
 			if (c->x86_mask == 0x01)
 				return SPEEDSTEP_PROCESSOR_PIII_C_EARLY;
 			else

Grumble. I should be tired or what..

Quoted 2 lines

Could you try to remove the if () actually?
I'm not sure if the latter is correct anyway.

Do you mean the whole if () {}, or just the if() ? And the if ((msr_hi ... )) or the (c->x86 ...) ?

Signature · 1 line
Jobi
#10 lore raw
Quoted 19 lines · Johan Bilien
Quoted 18 lines · Ducrot Bruno
Quoted 7 lines

Try this:

arch/i386/kernel/cpu/cpufreq/speedstep-lib.c line 206

Quoted 8 lines
arch/i386/kernel/cpu/cpufreq/speedstep-lib.c +1 -1
@@ -200,7 +200,7 @@
 		 */
 		rdmsr(MSR_IA32_PLATFORM_ID, msr_lo, msr_hi);
 		dprintk(KERN_DEBUG "cpufreq: Coppermine: MSR_IA32_PLATFORM ID is 0x%x, 0x%x\n", msr_lo, msr_hi);
-		if ((msr_hi & (1<<18)) && (msr_hi & (3<<24))) {
+		if ((msr_lo & (1<<18)) && (msr_lo & (3<<24))) {
 			if (c->x86_mask == 0x01)
 				return SPEEDSTEP_PROCESSOR_PIII_C_EARLY;
 			else

Grumble. I should be tired or what..

Quoted 5 lines
Quoted 2 lines

Could you try to remove the if () actually?
I'm not sure if the latter is correct anyway.

Do you mean the whole if () {}, or just the if() ? And the if ((msr_hi ... )) or the (c->x86 ...) ?

I should be more precise. Just the first if(). The

	if (c->x86_mask == 0x01)
		return ...
	else
		return ...

is needed..

Signature · 4 lines
Ducrot Bruno

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.
#11 lore raw
Quoted 7 lines · Ducrot Bruno

I should be more precise. Just the first if(). The

	if (c->x86_mask == 0x01)
		return ...
	else
		return ...

is needed..

That's what I had understood, just wanted to be sure.

Here's what I get in the syslog when I modprobe speedstep-piix4 gpo_hilo=0 (I still get nothing in /sys/devices...)

Aug 13 18:02:36 naboo kernel: cpufreq: Coppermine:
MSR_IA32_EBL_CR_POWERON is 0x4c080020, 0x0
Aug 13 18:02:36 naboo kernel: cpufreq: Coppermine: MSR_IA32_PLATFORM ID
is 0x0, 0x550000
Aug 13 18:02:36 naboo kernel: speedstep-lib: P3 -
MSR_IA32_EBL_CR_POWERON: 0x4c080020 0x0
Aug 13 18:02:36 naboo kernel: speedstep-lib: P3 -
MSR_IA32_EBL_CR_POWERON: 0x4c080020 0x0
Aug 13 18:02:36 naboo kernel: cntb before: 0x000000e1
Aug 13 18:02:36 naboo kernel: cntb after:  0x000007e1
Aug 13 18:02:36 naboo kernel: reading 7f7786fe from 1034
Aug 13 18:02:36 naboo kernel: new gpo: 7f7786ff
Aug 13 18:02:36 naboo kernel: pcntrl before: 0x00000200
Aug 13 18:02:36 naboo kernel: pcntrl after:  0x00001a00
Aug 13 18:02:36 naboo kernel: speedstep-lib: P3 -
MSR_IA32_EBL_CR_POWERON: 0x46480020 0x0
Aug 13 18:02:36 naboo kernel: cpufreq: change to 0 MHz succeded
Aug 13 18:02:36 naboo kernel: speedstep-lib: P3 -
MSR_IA32_EBL_CR_POWERON: 0x46480020 0x0
Aug 13 18:02:36 naboo kernel: speedstep-lib: P3 -
MSR_IA32_EBL_CR_POWERON: 0x46480020 0x0
Aug 13 18:02:36 naboo kernel: cntb before: 0x000000e1
Aug 13 18:02:36 naboo kernel: cntb after:  0x000007e1
Aug 13 18:02:36 naboo kernel: reading 7f7786ff from 1034
Aug 13 18:02:36 naboo kernel: new gpo: 7f7786fe
Aug 13 18:02:36 naboo kernel: pcntrl before: 0x00000200
Aug 13 18:02:36 naboo kernel: pcntrl after:  0x00001a00
Aug 13 18:02:36 naboo kernel: speedstep-lib: P3 -
MSR_IA32_EBL_CR_POWERON: 0x46480020 0x0
Aug 13 18:02:36 naboo kernel: cpufreq: change failed
Aug 13 18:02:36 naboo kernel: speedstep-lib: P3 -

MSR_IA32_EBL_CR_POWERON: 0x46480020 0x0

Signature · 1 line
Jobi
#12 lore raw
In reply to Johan Bilien
Quoted 18 lines · Ducrot Bruno
Quoted 7 lines

Try this:

arch/i386/kernel/cpu/cpufreq/speedstep-lib.c line 206

Quoted 8 lines
arch/i386/kernel/cpu/cpufreq/speedstep-lib.c +1 -1
@@ -200,7 +200,7 @@
 		 */
 		rdmsr(MSR_IA32_PLATFORM_ID, msr_lo, msr_hi);
 		dprintk(KERN_DEBUG "cpufreq: Coppermine: MSR_IA32_PLATFORM ID is 0x%x, 0x%x\n", msr_lo, msr_hi);
-		if ((msr_hi & (1<<18)) && (msr_hi & (3<<24))) {
+		if ((msr_lo & (1<<18)) && (msr_lo & (3<<24))) {
 			if (c->x86_mask == 0x01)
 				return SPEEDSTEP_PROCESSOR_PIII_C_EARLY;
 			else

Grumble. I should be tired or what..

Quoted 2 lines

Could you try to remove the if () actually?
I'm not sure if the latter is correct anyway.

That's what I could find from intel's documentation on
http://www.intel.com/support/processors/sb/cs-003779-prd24.htm

Regards,

Signature · 4 lines
Samuel Thibault <[email protected]>
Be warned that typing \fBkillall \fIname\fP may not have the desired
effect on non-Linux systems, especially when done by a privileged user.
(From the killall manual page)
#13 lore raw
Quoted 19 lines · Samuel Thibault
Quoted 18 lines · Ducrot Bruno
Quoted 7 lines

Try this:

arch/i386/kernel/cpu/cpufreq/speedstep-lib.c line 206

Quoted 8 lines
arch/i386/kernel/cpu/cpufreq/speedstep-lib.c +1 -1
@@ -200,7 +200,7 @@
 		 */
 		rdmsr(MSR_IA32_PLATFORM_ID, msr_lo, msr_hi);
 		dprintk(KERN_DEBUG "cpufreq: Coppermine: MSR_IA32_PLATFORM ID is 0x%x, 0x%x\n", msr_lo, msr_hi);
-		if ((msr_hi & (1<<18)) && (msr_hi & (3<<24))) {
+		if ((msr_lo & (1<<18)) && (msr_lo & (3<<24))) {
 			if (c->x86_mask == 0x01)
 				return SPEEDSTEP_PROCESSOR_PIII_C_EARLY;
 			else

Grumble. I should be tired or what..

Quoted 5 lines
Quoted 2 lines

Could you try to remove the if () actually?
I'm not sure if the latter is correct anyway.

That's what I could find from intel's documentation on
http://www.intel.com/support/processors/sb/cs-003779-prd24.htm

I know that url, but never trust documentations even from the vendor.

Signature · 4 lines
Ducrot Bruno

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.