Skip to contentSkip to conversation

Help! Cpufreq makes my laptop crash!

DISCUSSION olgaAr 3 participants 11 messages Jul 14, 2004 – Jul 15, 2004

lore
Share & tools
lore

olgaAr

author
#0 lore raw

Hello all,

I hope someone out there can help me with my problem which I've been playing around for quite some time now:
I have enabled cpufreq and powernow support in my 2.6.7-gentoo-r6 kernel, and everything works fine so far. I can manually switch between different CPU frequencies, my battery all of a sudden lasts longer than 50 minutes, and I'm happy...
After some time, however, the system will simply freeze! It can't even be pinged from outside any longer! The log files also don't give a hint about what might cause the lockups. If, however I tell cpufreq to run my cpu at maximum frequency, it runs fine for hours. So what's the deal? What causes my lappie to crash when trying to save power?

cpuinfo says this:
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 8
model name : mobile AMD Athlon(tm) XP 1800+
stepping : 0
cpu MHz : 1526.282
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca
cmov pat p
se36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow
bogomips : 3006.46

and here's lspci, just in case:
0000:00:00.0 Host bridge: VIA Technologies, Inc. P/KN266 Host Bridge 0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP] 0000:00:09.0 CardBus bridge: ENE Technology Inc CB1410 Cardbus Controller 0000:00:0a.0 Network controller: Intel Corp.: Unknown device 1043 (rev 04) 0000:00:0b.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)
0000:00:10.0 USB Controller: VIA Technologies, Inc. USB (rev 80) 0000:00:10.1 USB Controller: VIA Technologies, Inc. USB (rev 80) 0000:00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82) 0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge 0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586/B/686A/B PIPC Bus Master IDE (rev 06)
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233 AC97 Audio Controller (rev 50)
0000:00:11.6 Communication controller: VIA Technologies, Inc. Intel 537 [AC97 Modem] (rev 80)
0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
0000:01:00.0 VGA compatible controller: S3 Inc. VT8751 [ProSavageDDR P4M266] VGA Controller

Sorry for the lengty mail, I just wanted to provide all details needed in advance.

Thank you very much in advance!
Oliver Gmelch

#1 lore raw

What type of computer is this? Can you attach the relevant lines in dmesg that begin with "powernow:" ? Are you only manually setting the speed or using a program such as cpuspeed, powernowd, etc? at what speed(s) will the computer crash? All speeds except the max? Only the lowest?

Thanks,
Carl Thompson

Quoting olgaAr <[email protected]>:

Quoted 69 lines

Hello all,

I hope someone out there can help me with my problem which I've been playing around for quite some time now:
I have enabled cpufreq and powernow support in my 2.6.7-gentoo-r6 kernel, and everything works fine so far. I can manually switch between different CPU frequencies, my battery all of a sudden lasts longer than 50 minutes, and I'm happy...
After some time, however, the system will simply freeze! It can't even be pinged from outside any longer! The log files also don't give a hint about what might cause the lockups. If, however I tell cpufreq to run my cpu at maximum frequency, it runs fine for hours. So what's the deal? What causes my lappie to crash when trying to save power?

cpuinfo says this:
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 8
model name : mobile AMD Athlon(tm) XP 1800+
stepping : 0
cpu MHz : 1526.282
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca
cmov pat p
se36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow
bogomips : 3006.46

and here's lspci, just in case:
0000:00:00.0 Host bridge: VIA Technologies, Inc. P/KN266 Host Bridge 0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP] 0000:00:09.0 CardBus bridge: ENE Technology Inc CB1410 Cardbus Controller 0000:00:0a.0 Network controller: Intel Corp.: Unknown device 1043 (rev 04) 0000:00:0b.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)
0000:00:10.0 USB Controller: VIA Technologies, Inc. USB (rev 80) 0000:00:10.1 USB Controller: VIA Technologies, Inc. USB (rev 80) 0000:00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82) 0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge 0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586/B/686A/B PIPC Bus Master IDE (rev 06)
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233 AC97 Audio Controller (rev 50)
0000:00:11.6 Communication controller: VIA Technologies, Inc. Intel 537 [AC97 Modem] (rev 80)
0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
0000:01:00.0 VGA compatible controller: S3 Inc. VT8751 [ProSavageDDR P4M266] VGA Controller

Sorry for the lengty mail, I just wanted to provide all details needed in advance.

Thank you very much in advance!
Oliver Gmelch

_______________________________________________
Cpufreq mailing list
[email protected]
http://www.linux.org.uk/mailman/listinfo/cpufreq

author
#2 lore raw
Quoted 87 lines · Carl Thompson

What type of computer is this? Can you attach the relevant lines in dmesg that begin with "powernow:" ? Are you only manually setting the speed or using a program such as cpuspeed, powernowd, etc? at what speed(s) will the computer crash? All speeds except the max? Only the lowest?

Thanks,
Carl Thompson

Quoting olgaAr <[email protected]>:

Quoted 61 lines

Hello all,

I hope someone out there can help me with my problem which I've been playing around for quite some time now:
I have enabled cpufreq and powernow support in my 2.6.7-gentoo-r6 kernel, and everything works fine so far. I can manually switch between different CPU frequencies, my battery all of a sudden lasts longer than 50 minutes, and I'm happy...
After some time, however, the system will simply freeze! It can't even be pinged from outside any longer! The log files also don't give a hint about what might cause the lockups. If, however I tell cpufreq to run my cpu at maximum frequency, it runs fine for hours. So what's the deal? What causes my lappie to crash when trying to save power?

cpuinfo says this:
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 8
model name : mobile AMD Athlon(tm) XP 1800+
stepping : 0
cpu MHz : 1526.282
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca
cmov pat p
se36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow
bogomips : 3006.46

and here's lspci, just in case:
0000:00:00.0 Host bridge: VIA Technologies, Inc. P/KN266 Host Bridge 0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP] 0000:00:09.0 CardBus bridge: ENE Technology Inc CB1410 Cardbus Controller 0000:00:0a.0 Network controller: Intel Corp.: Unknown device 1043 (rev 04) 0000:00:0b.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)
0000:00:10.0 USB Controller: VIA Technologies, Inc. USB (rev 80) 0000:00:10.1 USB Controller: VIA Technologies, Inc. USB (rev 80) 0000:00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82) 0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge 0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586/B/686A/B PIPC Bus Master IDE (rev 06)
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233 AC97 Audio Controller (rev 50)
0000:00:11.6 Communication controller: VIA Technologies, Inc. Intel 537 [AC97 Modem] (rev 80)
0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
0000:01:00.0 VGA compatible controller: S3 Inc. VT8751 [ProSavageDDR P4M266] VGA Controller

Sorry for the lengty mail, I just wanted to provide all details needed in advance.

Quoted 8 lines

Thank you very much in advance!
Oliver Gmelch

_______________________________________________
Cpufreq mailing list
[email protected]
http://www.linux.org.uk/mailman/listinfo/cpufreq

Quoted 5 lines

_______________________________________________
Cpufreq mailing list
[email protected]
http://www.linux.org.uk/mailman/listinfo/cpufreq

Hello Carl,
Thank you for your reply. Looks like I have forgotten the most important facts... Well, however, here they are:

powernow: PowerNOW! Technology present. Can scale: frequency and voltage.
powernow: FSB: 132.720 MHz
powernow: Found PSB header at c00f0e40
powernow: Table version: 0x12
powernow: Flags: 0x0 (Mobile voltage regulator)
powernow: Settling Time: 100 microseconds.
powernow: Has 1 PST tables. (Only dumping ones relevant to this CPU).
powernow: PST:0 (@c00f0e50)
powernow:  cpuid: 0x780 fsb: 133        maxFID: 0x1     startvid: 0x9
powernow:    FID: 0x4 (5.0x [663MHz])   VID: 0x19 (1.050V)
powernow:    FID: 0x6 (6.0x [796MHz])   VID: 0x19 (1.050V)
powernow:    FID: 0x7 (6.5x [862MHz])   VID: 0x17 (1.100V)
powernow:    FID: 0x8 (7.0x [929MHz])   VID: 0x15 (1.150V)
powernow:    FID: 0x9 (7.5x [995MHz])   VID: 0x13 (1.200V)
powernow:    FID: 0xa (8.0x [1061MHz])  VID: 0x11 (1.250V)
powernow:    FID: 0xb (8.5x [1128MHz])  VID: 0xe (1.300V)
powernow:    FID: 0xc (9.0x [1194MHz])  VID: 0xd (1.350V)
powernow:    FID: 0xd (9.5x [1260MHz])  VID: 0xc (1.400V)
powernow:    FID: 0xe (10.0x [1327MHz]) VID: 0xb (1.450V)
powernow:    FID: 0xf (10.5x [1393MHz]) VID: 0xa (1.500V)
powernow:    FID: 0x1 (11.5x [1526MHz]) VID: 0x9 (1.550V)
powernow: SGTC: 13333
powernow: Minimum speed 663 MHz. Maximum speed 1526 MHz.

So it is a AMD Athlon XP mobile 1800+

I am currently using speedfreq to control the cpuspeed. As it seems, the only time it doesn't hang up after a certain period of time is when it is using max speed (speedfreq -p 1525 does the trick)

Thanks,
Oliver Gmelch

#3 lore raw

Try my CPUSpeed program and see if it works better for you:

http://carlthompson.net/software/cpuspeed

Sometimes older mobile Athlons have problems. Supposedly a workaround is in CPUFreq but maybe it doesn't work right in your case. CPUSpeed has a workaround that might work if this is the problem.

Carl Thompson

Quoting olgaAr <[email protected]>:

Quoted 135 lines
Quoted 87 lines · Carl Thompson

What type of computer is this? Can you attach the relevant lines in dmesg that begin with "powernow:" ? Are you only manually setting the speed or using a program such as cpuspeed, powernowd, etc? at what speed(s) will the computer crash? All speeds except the max? Only the lowest?

Thanks,
Carl Thompson

Quoting olgaAr <[email protected]>:

Quoted 61 lines

Hello all,

I hope someone out there can help me with my problem which I've been playing around for quite some time now:
I have enabled cpufreq and powernow support in my 2.6.7-gentoo-r6 kernel, and everything works fine so far. I can manually switch between different CPU frequencies, my battery all of a sudden lasts longer than 50 minutes, and I'm happy...
After some time, however, the system will simply freeze! It can't even be pinged from outside any longer! The log files also don't give a hint about what might cause the lockups. If, however I tell cpufreq to run my cpu at maximum frequency, it runs fine for hours. So what's the deal? What causes my lappie to crash when trying to save power?

cpuinfo says this:
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 8
model name : mobile AMD Athlon(tm) XP 1800+
stepping : 0
cpu MHz : 1526.282
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca
cmov pat p
se36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow
bogomips : 3006.46

and here's lspci, just in case:
0000:00:00.0 Host bridge: VIA Technologies, Inc. P/KN266 Host Bridge 0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP] 0000:00:09.0 CardBus bridge: ENE Technology Inc CB1410 Cardbus Controller 0000:00:0a.0 Network controller: Intel Corp.: Unknown device 1043 (rev 04) 0000:00:0b.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)
0000:00:10.0 USB Controller: VIA Technologies, Inc. USB (rev 80) 0000:00:10.1 USB Controller: VIA Technologies, Inc. USB (rev 80) 0000:00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82) 0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge 0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586/B/686A/B PIPC Bus Master IDE (rev 06)
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233 AC97 Audio Controller (rev 50)
0000:00:11.6 Communication controller: VIA Technologies, Inc. Intel 537 [AC97 Modem] (rev 80)
0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
0000:01:00.0 VGA compatible controller: S3 Inc. VT8751 [ProSavageDDR P4M266] VGA Controller

Sorry for the lengty mail, I just wanted to provide all details needed in advance.

Quoted 8 lines

Thank you very much in advance!
Oliver Gmelch

_______________________________________________
Cpufreq mailing list
[email protected]
http://www.linux.org.uk/mailman/listinfo/cpufreq

Quoted 5 lines

_______________________________________________
Cpufreq mailing list
[email protected]
http://www.linux.org.uk/mailman/listinfo/cpufreq

Hello Carl,
Thank you for your reply. Looks like I have forgotten the most important facts... Well, however, here they are:

powernow: PowerNOW! Technology present. Can scale: frequency and voltage.
powernow: FSB: 132.720 MHz
powernow: Found PSB header at c00f0e40
powernow: Table version: 0x12
powernow: Flags: 0x0 (Mobile voltage regulator)
powernow: Settling Time: 100 microseconds.
powernow: Has 1 PST tables. (Only dumping ones relevant to this CPU).
powernow: PST:0 (@c00f0e50)
powernow:  cpuid: 0x780 fsb: 133        maxFID: 0x1     startvid: 0x9
powernow:    FID: 0x4 (5.0x [663MHz])   VID: 0x19 (1.050V)
powernow:    FID: 0x6 (6.0x [796MHz])   VID: 0x19 (1.050V)
powernow:    FID: 0x7 (6.5x [862MHz])   VID: 0x17 (1.100V)
powernow:    FID: 0x8 (7.0x [929MHz])   VID: 0x15 (1.150V)
powernow:    FID: 0x9 (7.5x [995MHz])   VID: 0x13 (1.200V)
powernow:    FID: 0xa (8.0x [1061MHz])  VID: 0x11 (1.250V)
powernow:    FID: 0xb (8.5x [1128MHz])  VID: 0xe (1.300V)
powernow:    FID: 0xc (9.0x [1194MHz])  VID: 0xd (1.350V)
powernow:    FID: 0xd (9.5x [1260MHz])  VID: 0xc (1.400V)
powernow:    FID: 0xe (10.0x [1327MHz]) VID: 0xb (1.450V)
powernow:    FID: 0xf (10.5x [1393MHz]) VID: 0xa (1.500V)
powernow:    FID: 0x1 (11.5x [1526MHz]) VID: 0x9 (1.550V)
powernow: SGTC: 13333
powernow: Minimum speed 663 MHz. Maximum speed 1526 MHz.

So it is a AMD Athlon XP mobile 1800+

I am currently using speedfreq to control the cpuspeed. As it seems, the only time it doesn't hang up after a certain period of time is when it is using max speed (speedfreq -p 1525 does the trick)

Thanks,
Oliver Gmelch

_______________________________________________
Cpufreq mailing list
[email protected]
http://www.linux.org.uk/mailman/listinfo/cpufreq

#4 lore raw
Quoted 9 lines · Carl Thompson

Try my CPUSpeed program and see if it works better for you:

http://carlthompson.net/software/cpuspeed

Sometimes older mobile Athlons have problems. Supposedly a workaround is in CPUFreq but maybe it doesn't work right in your case. CPUSpeed has a workaround that might work if this is the problem.

Hi Carl,

I think powernow-k7 do not have trouble for the bug there were some times ago.
I don't think really that your workaround is no more needed, as I said you some times ago.
The problem was that the SGTC that have to be put was wrong (and so the processor will resume, but the PLL haven't had enough time to stabilize).

I would buy more at that time on a wrong value for the MSR CLK_CTL, though I can't be sure at 100% at that time (and I have no documentation for that MSR unfortunately), which may introduce an hang when we enter the ACPI idle loop. Maybe if olgaAr can test without the ACPI processor support to see what happens.

Cheers,

Signature · 4 lines
Bruno Ducrot

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.
author
#5 lore raw

Hi Carl, hi Bruno,

I am not quite sure about how to help you. "Testing without the ACPI processor support" - do you mean CONFIG_X86_ACPI_CPUFREQ by that? Or do you refer to CONFIG_ACPI_PROCESSOR?

Carl: I have just downloaded your version of cpuspeed. Will be testing it in a few minutes' time.

Cheers,
Oliver

#6 lore raw
Quoted 5 lines · olgaAr

Hi Carl, hi Bruno,

I am not quite sure about how to help you. "Testing without the ACPI processor support" - do you mean CONFIG_X86_ACPI_CPUFREQ by that? Or do you refer to CONFIG_ACPI_PROCESSOR?

CONFIG_ACPI_PROCESSOR
I was talking about the ACPI idle loop stuff, not frequency change in fact.

Quoted 4 lines

Carl: I have just downloaded your version of cpuspeed. Will be testing it in a few minutes' time.

Signature · 4 lines
Bruno Ducrot

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.
author
#7 lore raw

Hi,

Having tried Carl's cpuspeed, I have to regret it didn't help any further. My lappie crashed just as it did with speedfreq before... So next thing I'm going to do is compiling a new kernel without CONFIG_ACPI_PROCESSOR. Hope that helps...

Cheers,
Oliver

#8 lore raw
In reply to Bruno Ducrot
Quoted 10 lines · Bruno Ducrot
Quoted 5 lines · olgaAr

Hi Carl, hi Bruno,

I am not quite sure about how to help you. "Testing without the ACPI processor support" - do you mean CONFIG_X86_ACPI_CPUFREQ by that? Or do you refer to CONFIG_ACPI_PROCESSOR?

CONFIG_ACPI_PROCESSOR
I was talking about the ACPI idle loop stuff, not frequency change in fact.

Compile it as a module in fact, then 'modprobe processor' after your testings (or after 30 minutes).
A mobile AMD athlon XP without the ACPI idle loop could potentially overheat fast...

Cheers,

Signature · 4 lines
Bruno Ducrot

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

Compile it as a module in fact, then 'modprobe processor' after your testings (or after 30 minutes).
A mobile AMD athlon XP without the ACPI idle loop could potentially overheat fast...

Cheers,

Well, I had it compiled as module before. I already tried unloading powernow_k7, thermal and processor. When reloading powernow_k7, the "processor" module was reloaded as well?!

Cheers,
Oliver

#10 lore raw
Quoted 7 lines · olgaAr
Quoted 5 lines · Bruno Ducrot

Compile it as a module in fact, then 'modprobe processor' after your testings (or after 30 minutes).
A mobile AMD athlon XP without the ACPI idle loop could potentially overheat fast...

Quoted 8 lines
Quoted 4 lines

Cheers,

Well, I had it compiled as module before. I already tried unloading powernow_k7, thermal and processor. When reloading powernow_k7, the "processor" module was reloaded as well?!

Yes. This patch should fix that. Sorry...
PS: this will never go to mainline. It's only for testing purpose.

arch/i386/kernel/cpu/cpufreq/powernow-k7.c +4 -4
@@ -28,7 +28,7 @@
 #include <asm/io.h>
 #include <asm/system.h>
 
-#if defined(CONFIG_ACPI_PROCESSOR) || defined(CONFIG_ACPI_PROCESSOR_MODULE)
+#if defined(CONFIG_ACPI_PROCESSOR)
 #include <linux/acpi.h>
 #include <acpi/processor.h>
 #endif
@@ -63,7 +63,7 @@ struct pst_s {
 	u8 numpstates;
 };
 
-#if defined(CONFIG_ACPI_PROCESSOR) || defined(CONFIG_ACPI_PROCESSOR_MODULE)
+#if defined(CONFIG_ACPI_PROCESSOR)
 union powernow_acpi_control_t {
 	struct {
 		unsigned long fid:5,
@@ -293,7 +293,7 @@ static void change_speed (unsigned int i
 }
 
 
-#if defined(CONFIG_ACPI_PROCESSOR) || defined(CONFIG_ACPI_PROCESSOR_MODULE)
+#if defined(CONFIG_ACPI_PROCESSOR)
 
 struct acpi_processor_performance *acpi_processor_perf;
 
@@ -644,7 +644,7 @@ static int __init powernow_init (void)
 
 static void __exit powernow_exit (void)
 {
-#if defined(CONFIG_ACPI_PROCESSOR) || defined(CONFIG_ACPI_PROCESSOR_MODULE)
+#if defined(CONFIG_ACPI_PROCESSOR)
 	if (acpi_processor_perf) {
 		acpi_processor_unregister_performance(acpi_processor_perf, 0);
 		kfree(acpi_processor_perf);
Signature · 4 lines
Bruno Ducrot

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