public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RE: cpu not detected(x86)
@ 2001-08-07 22:22 Petr Vandrovec
  0 siblings, 0 replies; 9+ messages in thread
From: Petr Vandrovec @ 2001-08-07 22:22 UTC (permalink / raw)
  To: Dave Jones; +Cc: Nico Schottelius, Linux Kernel Mailing List, andrew.grover

On  7 Aug 01 at 22:09, Dave Jones wrote:
> 
> "The counter is incremented on every processor clock cycle,
>  even when the processor is halted by the HLT instruction or
>  the external STPCLK# pin"

But not if clocks are completely stopped, not through STPCLK, but
just stopped.
 
> "The RDTSC instruction reads the time-stamp counter and is
>   _guaranteed_ to return a monotonically increasing unique value
>  _whenever_ executed, except for 64-bit wraparound".

This only says that two consecutive RDTSC do not return same value.
                                            Best regards,
                                                    Petr Vandrovec
                                                    vandrove@vc.cvut.cz
                                                    

^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: cpu not detected(x86)
@ 2001-08-21 20:33 Grover, Andrew
  0 siblings, 0 replies; 9+ messages in thread
From: Grover, Andrew @ 2001-08-21 20:33 UTC (permalink / raw)
  To: 'Nico Schottelius', Luigi Genoni; +Cc: Linux Kernel Mailing List

> From: Nico Schottelius [mailto:nicos@pcsystems.de]
> > I would like to know, if your CPU is on a laptop, are you 
> sure that your
> > power management works well?
> 
> No, seems like ACPI killed the cpu speed.
> I can't undernstand why ACPI is not marked EXPERIMENTAL,
> if those things are normal!

It is.

Regards -- Andy


^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <no.id>]
* RE: cpu not detected(x86)
@ 2001-08-07 19:40 Grover, Andrew
  2001-08-07 20:09 ` Dave Jones
  0 siblings, 1 reply; 9+ messages in thread
From: Grover, Andrew @ 2001-08-07 19:40 UTC (permalink / raw)
  To: 'Dave Jones', Nico Schottelius; +Cc: Linux Kernel Mailing List

> From: Dave Jones [mailto:davej@suse.de]
> Speedstep is voodoo. No-one other than Intel have knowledge of
> how it works. On my P3-700 I've seen speeds range from as low
> as 2MHz[1] -> 266MHz (using an ACPI kernel), and the 550/700 on APM.
> I've also seen other laptops do speed scaling between 2MHz->full clock
> speed whilst on APM.

SpeedStep only drops it to 550 MHz. Any further drops are because of ACPI
processor power or thermal management throwing off your program, because the
current Linux gettimeofday code doesn't think the TSC is ever halted. But,
it is, when the processor is put into C2 or C3. Any benchmark which 1) uses
the TSC and 2) does a sleep() will be wrong.

So, you might try a couple things:

1) Config out the ACPI CPU code. Without it, the system will only exec
"hlt", and the TSC keeps running.

2) Keep the CPU 100% busy throughout the duration of your benchmark.

Longer-term, we need to change the kernel to not use the TSC for udelay, but
to use the PM Timer, if ACPI is going to be monkeying with CPU power states.

Regards -- Andy

PS Your system may also be throttling. It throttles in 12.5% increments, so
that should be borne out in the MHz number if that's what it is doing.


> 
> Run the MHz tester (URL below), and put the box under some load.
> It should increase the MHz accordingly.  How high it goes seems
> to depend on how good your BIOS support for it is.
> 
> Also try switching between ACPI & APM kernels, to see what
> difference it makes.
> 
> regards,
> 
> Dave.
> 
> [1] Actually slower than this, the MHz calculation code takes some
> cycles, so it's an estimate only. http://www.codemonkey.org.uk/MHz.c
> 
> -- 
> | Dave Jones.        http://www.suse.de/~davej
> | SuSE Labs
> 
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread
* cpu not detected(x86)
@ 2001-08-07 15:09 Nico Schottelius
  2001-08-07 15:27 ` Dave Jones
  2001-08-07 23:51 ` Luigi Genoni
  0 siblings, 2 replies; 9+ messages in thread
From: Nico Schottelius @ 2001-08-07 15:09 UTC (permalink / raw)
  To: Linux Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 426 bytes --]

Hello!

I am trying to run 2.4.7 and have heavily problems with my cpu.
The kernel retected another speed at every start! I attached
three times CPUINFO. The cpu in reality is a p3 650 mhz speedstep.
(may switch down to 500 mhz, but 126 _not_).

Who changed something in the 2.4.7 source ?
I am more or less unable to run X with netscape to write this email
with 126 Mhz!

What to do, where to fix ? Please help asap!

Nico



[-- Attachment #2: CPUINFO --]
[-- Type: text/plain, Size: 376 bytes --]

processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 8
model name	: Pentium III (Coppermine)
stepping	: 6
cpu MHz		: 161.858
cache size	: 256 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	: 330.95


[-- Attachment #3: CPUINFO2 --]
[-- Type: text/plain, Size: 376 bytes --]

processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 8
model name	: Pentium III (Coppermine)
stepping	: 6
cpu MHz		: 127.553
cache size	: 256 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	: 244.94


[-- Attachment #4: CPUINFO3 --]
[-- Type: text/plain, Size: 376 bytes --]

processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 8
model name	: Pentium III (Coppermine)
stepping	: 6
cpu MHz		: 162.371
cache size	: 256 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	: 317.84


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

end of thread, other threads:[~2001-08-21 20:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-07 22:22 cpu not detected(x86) Petr Vandrovec
  -- strict thread matches above, loose matches on Subject: below --
2001-08-21 20:33 Grover, Andrew
     [not found] <no.id>
2001-08-07 20:03 ` Alan Cox
2001-08-07 19:40 Grover, Andrew
2001-08-07 20:09 ` Dave Jones
2001-08-07 15:09 Nico Schottelius
2001-08-07 15:27 ` Dave Jones
2001-08-07 23:51 ` Luigi Genoni
2001-08-21 20:12   ` Nico Schottelius

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox