lkml.org 
[lkml]   [2005]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Discuss][i386] Platform SMIs and their interferance with tsc based delay calibration

Venkatesh Pallipadi wrote:

> (0) Estimate a value for loops_per_jiffy
> (1) While (loops_per_jiffy estimate is accurate enough)
> (2) wait for jiffy transition (jiffy1)
> (3) Note down current tsc (tsc1)
> (4) loop until tsc becomes tsc1 + loops_per_jiffy
> (5) check whether jiffy changed since jiffy1 or not
> and refine loops_per_jiffy estimate

>
> Case 2: If SMIs happen between (3) and (4) above, then we can end up
> with a loops_per_jiffy value that is too high.

I don't think this can really happen (at least not on the bootstrap CPU)
because even if an SMI occurs, the CPU must first serve the timer
interrupt and increment jiffies before it continues looping.

However "LPJ too short" is what needs to be avoided at all cost.

Regards and thanks for working on this problem,
Martin
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.040 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site