From: Thomas Gleixner <tglx@linutronix.de>
To: Bin Gao <bin.gao@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
x86@kernel.org, LKML <linux-kernel@vger.kernel.org>,
bin.gao@intel.com, John Stultz <john.stultz@linaro.org>
Subject: Re: x86/tsc: Set X86_FEATURE_TSC_RELIABLE to skip refined calibration
Date: Fri, 17 Jun 2016 09:48:13 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.11.1606170946561.5839@nanos> (raw)
In-Reply-To: <20160616231002.GA95072@worksta>
On Thu, 16 Jun 2016, Bin Gao wrote:
> Unlike PIT based calibration which counts TSC cycles against another timer,
> MSR or CPUID method has no calibration - it simply multiplies the known
> frequency of a timer by a ratio. So TSC frequency computed by MSR or CPUID
> is the final frequency and doesn't need the refined calibration process.
> We used to use set_cpu_cap(&boot_cpu_data, X86_FEATURE_TSC_RELIABLE) but
> it actually doesn't skip refined calibration because the flag is cleared
> later in identify_cpu(). A cpu caps flag is not cleared only if it's set
> by setup_force_cpu_cap(). This patch sets the flag in tsc_msr.c and
> replaces set_cpu_cap() with setup_force_cpu_cap() in other files.
I'm not entirely sure that this is correct. At least I want to know John
Stultz's opinion on that.
Thanks,
tglx
next prev parent reply other threads:[~2016-06-17 7:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-16 23:10 Bin Gao
2016-06-17 7:48 ` Thomas Gleixner [this message]
2016-06-20 23:20 ` John Stultz
2016-06-20 23:55 ` Bin Gao
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=alpine.DEB.2.11.1606170946561.5839@nanos \
--to=tglx@linutronix.de \
--cc=bin.gao@intel.com \
--cc=bin.gao@linux.intel.com \
--cc=hpa@zytor.com \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=x86@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
all inboxes | Powered by JetHome®