mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* RE: CPU frequency shifting "problems"
@ 2001-09-28  1:24 Grover, Andrew
  2001-09-28 21:54 ` Linus Torvalds
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Grover, Andrew @ 2001-09-28  1:24 UTC (permalink / raw)
  To: 'Alan Cox', torvalds; +Cc: padraig, linux-kernel

> From: Alan Cox [mailto:alan@lxorguk.ukuu.org.uk]
> Sent: Thursday, September 27, 2001 5:56 PM
> To: torvalds@transmeta.com
> Cc: padraig@antefacto.com; linux-kernel@vger.kernel.org
> Subject: Re: CPU frequency shifting "problems"
> Importance: High
> 
> 
> > For example, the Intel "SpeedStep" CPU's are completely broken under
> > Linux, and real-time will advance at different speeds in DC 
> and AC modes,
> > because Intel actually changes the frequency of the TSC 
> _and_ they don't
> > document how to figure out that it changed.
> 
> The change is APM or ACPI initiated. Intel won't tell anyone anything
> useful but Microsoft have published some of the required 
> intel confidential
> information which helps a bit

APM is a lost cause, but the correct solution for ACPI systems is to use the
PM timer. This totally obviates the need to really care about the CPU's
effective frequency at all. Even if you knew all the details of SpeedStep
(and I've seen the same MS doc you have Alan and was surprised at its
detail) you'd still be hosed if the CPU throttles...you'd be hosed in a
*good* way because at least any delays would be longer (not shorter) than
expected but your times would be off nonetheless.

Regards -- Andy

^ permalink raw reply	[flat|nested] 17+ messages in thread
[parent not found: <8FB7D6BCE8A2D511B88C00508B68C2081971E4@orsmsx102.jf.intel.com>]
* RE: CPU frequency shifting "problems"
@ 2001-09-28 22:47 Grover, Andrew
  2001-09-29  1:10 ` Gerhard Mack
  0 siblings, 1 reply; 17+ messages in thread
From: Grover, Andrew @ 2001-09-28 22:47 UTC (permalink / raw)
  To: 'Alan Cox'; +Cc: torvalds, padraig, linux-kernel

> From: Alan Cox [mailto:alan@lxorguk.ukuu.org.uk]
> Remember you get an interrupt from the transition that you 
> can steal from
> the ROM gunge, or is that another deep intel secret you can't 
> comment on 8)
> 
> Just why are intel so obsessed by secrets about something 
> every other vendor
> does anyway ? 

I agree and have said the very thing internally, but TPTB have determined
that the benefit of an open source driver is outweighed by the perceived
competitive advantage of keeping it a trade secret. :(

-- Andy

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Locking comment on shrink_caches()
@ 2001-09-26 18:24 Linus Torvalds
  2001-09-26 18:40 ` Dave Jones
  0 siblings, 1 reply; 17+ messages in thread
From: Linus Torvalds @ 2001-09-26 18:24 UTC (permalink / raw)
  To: Dave Jones; +Cc: Alan Cox, David S. Miller, bcrl, marcelo, andrea, linux-kernel


On Wed, 26 Sep 2001, Dave Jones wrote:
> On Wed, 26 Sep 2001, Alan Cox wrote:
>
> > VIA Cyrix CIII (original generation 0.18u)
> >
> > nothing: 28 cycles
> > locked add: 29 cycles
> > cpuid: 72 cycles
>
> Interesting. From a newer C3..
>
> nothing: 30 cycles
> locked add: 31 cycles
> cpuid: 79 cycles
>
> Only slightly worse, but I'd not expected this.

That difference can easily be explained by the compiler and options.

You should use "gcc -O2" at least, in order to avoid having gcc do
unnecessary spills to memory in between the timings. And there may be some
versions of gcc that en dup spilling even then.

		Linus


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

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

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-28  1:24 CPU frequency shifting "problems" Grover, Andrew
2001-09-28 21:54 ` Linus Torvalds
2001-09-29  0:37   ` Jonathan Morton
2001-09-28 22:30 ` Alan Cox
2001-10-01  9:28 ` Pavel Machek
     [not found] <8FB7D6BCE8A2D511B88C00508B68C2081971E4@orsmsx102.jf.intel.com>
2001-09-28 23:09 ` Alan Cox
  -- strict thread matches above, loose matches on Subject: below --
2001-09-28 22:47 Grover, Andrew
2001-09-29  1:10 ` Gerhard Mack
2001-09-26 18:24 Locking comment on shrink_caches() Linus Torvalds
2001-09-26 18:40 ` Dave Jones
2001-09-26 19:12   ` Linus Torvalds
2001-09-27 12:22     ` CPU frequency shifting "problems" Padraig Brady
2001-09-27 12:44       ` Dave Jones
2001-09-27 23:23       ` Linus Torvalds
2001-09-28  0:55         ` Alan Cox
2001-09-28  2:12           ` Stefan Smietanowski
2001-09-28  8:55         ` Jamie Lokier
2001-09-28 16:11           ` Linus Torvalds
2001-09-28 20:29             ` Eric W. Biederman
2001-09-28 22:24               ` Jamie Lokier

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

all inboxes | Powered by JetHome®