From: One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk>
To: Alex <xor@xor.bz>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: TSC Problems (warp between CPUs)
Date: Sat, 28 Dec 2013 14:35:47 +0000 [thread overview]
Message-ID: <20131228143547.38d0a0b9@alan.etchedpixels.co.uk> (raw)
In-Reply-To: <fcade74fbf715ff965b5a1d3b21e2c21@xor.bz>
> not guaranteed to be precise. For example a SMI (System Management
> Interrupt) could interrupt the software flow that is attempting to write
> the time-stamp counter immediately prior to the WRMSR. This could mean
> the value written to the TSC could vary by thousands to millions of
> clocks.
Yes SMI is a disaster area for any real time activity (and many other
things ;) ), but many systems actually make little use of it, especially
once the USB is owned by the OS.
For synchronization you can retry the sync if it isn't within an
acceptable range. The odds of getting an SMI mid sync setup should be
very very low, so the odds of repeating the failure several times should
be negligible and after a few tries you could give up and assume the
hardware is buggered then fall back to HPET.
Alan
next prev parent reply other threads:[~2013-12-28 14:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-28 2:24 Alex
2013-12-28 4:02 ` Mike Galbraith
2013-12-28 9:51 ` Alex
2013-12-28 13:38 ` el_es
2013-12-28 14:35 ` One Thousand Gnomes [this message]
2013-12-29 0:21 ` Alex
2013-12-31 21:24 ` Alex
2014-10-07 10:19 ` Adrian Vasile
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131228143547.38d0a0b9@alan.etchedpixels.co.uk \
--to=gnomes@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=xor@xor.bz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®