Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1341855 > unrolled thread

Re: [PATCH v8 6/8] x86: tsc: Always Running Timer (ART) correlated clocksource

Started byThomas Gleixner <tglx@linutronix.de>
First post2016-02-24 12:10 +0100
Last post2016-02-24 12:10 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v8 6/8] x86: tsc: Always Running Timer (ART) correlated  clocksource Thomas Gleixner <tglx@linutronix.de> - 2016-02-24 12:10 +0100

#1341855 — Re: [PATCH v8 6/8] x86: tsc: Always Running Timer (ART) correlated clocksource

FromThomas Gleixner <tglx@linutronix.de>
Date2016-02-24 12:10 +0100
SubjectRe: [PATCH v8 6/8] x86: tsc: Always Running Timer (ART) correlated clocksource
Message-ID<r5Fuq-3EV-19@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

On Mon, 22 Feb 2016, Christopher S. Hall wrote:

> On modern Intel systems TSC is derived from the new Always Running Timer
> (ART). ART can be captured simultaneous to the capture of
> audio and network device clocks, allowing a correlation between timebases
> to be constructed. Upon capture, the driver converts the captured ART
> value to the appropriate system clock using the correlated clocksource
> mechanism.
> 
> On systems that support ART a new CPUID leaf (0x15) returns parameters
> “m” and “n” such that:
> 
> TSC_value = (ART_value * m) / n + k [n >= 2]
> 
> [k is an offset that can adjusted by a privileged agent. The
> IA32_TSC_ADJUST MSR is an example of an interface to adjust k.
> See 17.14.4 of the Intel SDM for more details]
> 
> Signed-off-by: Christopher S. Hall <christopher.s.hall@intel.com>
> [jstultz: Tweaked to fix build issue, also reworked math for
> 64bit division on 32bit systems]
> Signed-off-by: John Stultz <john.stultz@linaro.org>

Reviewed-by: Thomas Gleixner <tglx@linutronix.de>

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web