From: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [RFC][PATCH] fsys_gettimeofday leaps days if it runs with nojitter
Date: Wed, 11 Jul 2007 01:31:38 +0000 [thread overview]
Message-ID: <469432FA.70206@jp.fujitsu.com> (raw)
In-Reply-To: <468CA2D6.40204@jp.fujitsu.com>
Luck, Tony wrote:
> >>> ld4.acq r28 = [r29] // xtime_lock.sequence. Must come first for locking purposes
> >>> + ;;
> >>> (p8) mov r2 = ar.itc // CPU_TIMER. 36 clocks latency!!!
>
> The .acq only causes ordering w.r.t. data accesses. The read from ar.itc
> isn't a data access, so potentially it could still float before the
> ld4.acq. Consuming the value loaded into r28 presumably has to
> ensure that the load completes though.
Hmm, then will this problem not happen if timesource was not ar.itc?
If source is mmio, the read from the address is a data access, isn't it?
> I'm guessing here ... I haven't cross-checked with the architects.
I'll be grad if we can get a comment from Intel's architects.
> Does moving the "and r28 = ~1,r28" up into this slot hurt latency
> for a single call to gettimeofday()? Presumably it will if
> xtime_lock.sequence is not in the cache.
>
> -Tony
It will, I guess.
Anyway, we should make sure that the load of xtime_lock.sequence have
complete before reading ar.itc.
Thanks,
H.Seto
next prev parent reply other threads:[~2007-07-11 1:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-05 7:50 [RFC][PATCH] fsys_gettimeofday leaps days if it runs with nojitter Hidetoshi Seto
2007-07-05 8:48 ` Andreas Schwab
2007-07-05 8:57 ` Hidetoshi Seto
2007-07-10 22:20 ` Luck, Tony
2007-07-11 1:31 ` Hidetoshi Seto [this message]
2007-07-12 22:33 ` Luck, Tony
2007-07-13 1:27 ` Hidetoshi Seto
2007-07-13 9:49 ` Bob Picco
2007-07-13 23:25 ` Luck, Tony
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=469432FA.70206@jp.fujitsu.com \
--to=seto.hidetoshi@jp.fujitsu.com \
--cc=linux-ia64@vger.kernel.org \
/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