linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* My P3 runs at.... zero Mhz (bug rpt)
@ 2003-04-18  2:10 Jeff Garzik
  2003-04-18  4:44 ` Jurriaan
  2003-04-18  5:08 ` [patch] mach_countup() fix Andrew Morton
  0 siblings, 2 replies; 7+ messages in thread
From: Jeff Garzik @ 2003-04-18  2:10 UTC (permalink / raw)
  To: LKML

Just booted into 2.5.67-BK-latest (plus my __builtin_memcpy patch). 
Everything seems to be running just fine, so naturally one must nitpick 
little things like being told my CPU is running at 0.000 Mhz.  :)

2.4.x reports the Mhz correctly.  I don't recall if 2.5.x did in the 
past, but can check if needed.



sh-2.05b$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 7
model name      : Pentium III (Katmai)
stepping        : 3
cpu MHz         : 0.000
cache size      : 512 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 sep mtrr pge mca 
cmov pat pse36 mmx fxsr sse
bogomips        : 494.59


Selected dmesg bits:
Calibrating delay loop... 494.59 BogoMIPS
Memory: 644596k/655296k available (2192k kernel code, 9960k reserved, 
694k data, 296k init, 0k highmem)
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
CPU serial number disabled.
CPU:     After generic, caps: 0383f9ff 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: Intel Pentium III (Katmai) stepping 03
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
IA-32 Microcode Update Driver: v1.11 <tigran@veritas.com>
Enabling SEP on CPU 0


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: My P3 runs at.... zero Mhz (bug rpt)
  2003-04-18  2:10 My P3 runs at.... zero Mhz (bug rpt) Jeff Garzik
@ 2003-04-18  4:44 ` Jurriaan
  2003-04-18 21:11   ` Dave Jones
  2003-04-18  5:08 ` [patch] mach_countup() fix Andrew Morton
  1 sibling, 1 reply; 7+ messages in thread
From: Jurriaan @ 2003-04-18  4:44 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: LKML

From: Jeff Garzik <jgarzik@pobox.com>
Date: Thu, Apr 17, 2003 at 10:10:53PM -0400
> Just booted into 2.5.67-BK-latest (plus my __builtin_memcpy patch). 
> Everything seems to be running just fine, so naturally one must nitpick 
> little things like being told my CPU is running at 0.000 Mhz.  :)
> 
fwiw, my Athlon XP2400 does the same in 2.5.67-ac1:

processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 6
model		: 8
model name	: AMD Athlon(tm) XP 2400+
stepping	: 1
cpu MHz		: 0.000
cache size	: 256 KB
bogomips	: 1970.17

Interesting enough, even the bogomips have halved w.r.t. earlier 2.5.x
kernels and 2.4.2x kernels. Booting a 2.4.21-pre7 kernel on the same
machine gets me close to 4000 bogomips, as is proper for a 2 GHz cpu.

The ioapic code does report the correct bus-speed however.

Ah well, they were bogus to begin with.
-- 
"I am not to be trifled with!"
"I didn't bring a trifle," Hawk said to Fisher. "Did you think to
bring a trifle?" "Knew I forgot something," said Fisher.
	Simon R Green - Beyond the Blue Moon
Debian (Unstable) GNU/Linux 2.5.67-ac1 1970 bogomips load av: 1.48 1.62 1.79

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [patch] mach_countup() fix
  2003-04-18  2:10 My P3 runs at.... zero Mhz (bug rpt) Jeff Garzik
  2003-04-18  4:44 ` Jurriaan
@ 2003-04-18  5:08 ` Andrew Morton
  1 sibling, 0 replies; 7+ messages in thread
From: Andrew Morton @ 2003-04-18  5:08 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: linux-kernel, Linus Torvalds

Jeff Garzik <jgarzik@pobox.com> wrote:
>
> Just booted into 2.5.67-BK-latest (plus my __builtin_memcpy patch). 
> Everything seems to be running just fine, so naturally one must nitpick 
> little things like being told my CPU is running at 0.000 Mhz.  :)
> 

Missing parentheses in mach_countup().


diff -puN include/asm-i386/mach-default/mach_timer.h~a include/asm-i386/mach-default/mach_timer.h
--- 25/include/asm-i386/mach-default/mach_timer.h~a	2003-04-17 22:02:12.000000000 -0700
+++ 25-akpm/include/asm-i386/mach-default/mach_timer.h	2003-04-17 22:02:49.000000000 -0700
@@ -40,7 +40,7 @@ static inline void mach_countup(unsigned
 {
 	*count = 0L;
 	do {
-		*count++;
+		(*count)++;
 	} while ((inb_p(0x61) & 0x20) == 0);
 }
 

_


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: My P3 runs at.... zero Mhz (bug rpt)
  2003-04-18  4:44 ` Jurriaan
@ 2003-04-18 21:11   ` Dave Jones
  2003-04-18 21:44     ` Petr Konecny
  0 siblings, 1 reply; 7+ messages in thread
From: Dave Jones @ 2003-04-18 21:11 UTC (permalink / raw)
  To: Jurriaan; +Cc: Jeff Garzik, LKML

On Fri, Apr 18, 2003 at 06:44:54AM +0200, Jurriaan wrote:
 > From: Jeff Garzik <jgarzik@pobox.com>
 > Date: Thu, Apr 17, 2003 at 10:10:53PM -0400
 > > Just booted into 2.5.67-BK-latest (plus my __builtin_memcpy patch). 
 > > Everything seems to be running just fine, so naturally one must nitpick 
 > > little things like being told my CPU is running at 0.000 Mhz.  :)
 > > 
 > fwiw, my Athlon XP2400 does the same in 2.5.67-ac1:
 > 
 > processor	: 0
 > vendor_id	: AuthenticAMD
 > cpu family	: 6
 > model		: 8
 > model name	: AMD Athlon(tm) XP 2400+
 > stepping	: 1
 > cpu MHz		: 0.000
 > cache size	: 256 KB
 > bogomips	: 1970.17


Curious. Do either of you have any cpufreq bits enabled?
If so, does it go away if you disable them?
That frobs with cpu_khz, so it *could* be not initialising
it someplace.  Especially if your hardware turns out to be
unsupported by any of the cpufreq backend drivers..

		Dave

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: My P3 runs at.... zero Mhz (bug rpt)
  2003-04-18 21:11   ` Dave Jones
@ 2003-04-18 21:44     ` Petr Konecny
  2003-04-18 23:50       ` Alan Cox
  0 siblings, 1 reply; 7+ messages in thread
From: Petr Konecny @ 2003-04-18 21:44 UTC (permalink / raw)
  To: linux-kernel; +Cc: Dave Jones, Jurriaan, Jeff Garzik, Alan Cox

>>>>> Dave Jones (Dave) said:

 Dave> On Fri, Apr 18, 2003 at 06:44:54AM +0200, Jurriaan wrote:
 >> From: Jeff Garzik <jgarzik@pobox.com>
 >> Date: Thu, Apr 17, 2003 at 10:10:53PM -0400
 >> > Just booted into 2.5.67-BK-latest (plus my __builtin_memcpy patch). 
 >> > Everything seems to be running just fine, so naturally one must nitpick 
 >> > little things like being told my CPU is running at 0.000 Mhz.  :)
 >> > 
 >> fwiw, my Athlon XP2400 does the same in 2.5.67-ac1:
 >> 
 >> processor	: 0
 >> vendor_id	: AuthenticAMD
 >> cpu family	: 6
 >> model		: 8
 >> model name	: AMD Athlon(tm) XP 2400+
 >> stepping	: 1
 >> cpu MHz		: 0.000
 >> cache size	: 256 KB
 >> bogomips	: 1970.17


 Dave> Curious. Do either of you have any cpufreq bits enabled?
 Dave> If so, does it go away if you disable them?
 Dave> That frobs with cpu_khz, so it *could* be not initialising
 Dave> it someplace.  Especially if your hardware turns out to be
 Dave> unsupported by any of the cpufreq backend drivers..
It does not help me with 2.5.67-ac2 + pcmcia patch. I get 0.000 MHz,
589.82 BogoMIPS with or without CPUFreq. It did the same thing with
2.5.67-ac1 (did not test w/o CPUFreq).

The box is 600 MHz PIII (Coppermine) in Dell Inspiron 5000. On the plus
side I kind of like the # of insns per clock cycle ;-)

As Jeff said it's almost OK otherwise; it hangs on boot without the
pcmcia patch and I saw USB Storage oopses.

                                                Petr

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: My P3 runs at.... zero Mhz (bug rpt)
  2003-04-18 21:44     ` Petr Konecny
@ 2003-04-18 23:50       ` Alan Cox
  2003-04-19  0:07         ` Jeff Garzik
  0 siblings, 1 reply; 7+ messages in thread
From: Alan Cox @ 2003-04-18 23:50 UTC (permalink / raw)
  To: Petr Konecny; +Cc: linux-kernel, Dave Jones, Jurriaan, Jeff Garzik, Alan Cox

> It does not help me with 2.5.67-ac2 + pcmcia patch. I get 0.000 MHz,
> 589.82 BogoMIPS with or without CPUFreq. It did the same thing with
> 2.5.67-ac1 (did not test w/o CPUFreq).

Its a bug in the mach- patches. Someone sent a fix to l/k


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: My P3 runs at.... zero Mhz (bug rpt)
  2003-04-18 23:50       ` Alan Cox
@ 2003-04-19  0:07         ` Jeff Garzik
  0 siblings, 0 replies; 7+ messages in thread
From: Jeff Garzik @ 2003-04-19  0:07 UTC (permalink / raw)
  To: Alan Cox; +Cc: Petr Konecny, linux-kernel, Dave Jones, Jurriaan

Alan Cox wrote:
>>It does not help me with 2.5.67-ac2 + pcmcia patch. I get 0.000 MHz,
>>589.82 BogoMIPS with or without CPUFreq. It did the same thing with
>>2.5.67-ac1 (did not test w/o CPUFreq).
> 
> 
> Its a bug in the mach- patches. Someone sent a fix to l/k


Yep.  Linus committed a better fix, too.  :)

	Jeff




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-04-18 23:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-18  2:10 My P3 runs at.... zero Mhz (bug rpt) Jeff Garzik
2003-04-18  4:44 ` Jurriaan
2003-04-18 21:11   ` Dave Jones
2003-04-18 21:44     ` Petr Konecny
2003-04-18 23:50       ` Alan Cox
2003-04-19  0:07         ` Jeff Garzik
2003-04-18  5:08 ` [patch] mach_countup() fix Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).