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


Groups > linux.kernel > #1367806

[PATCH 5/9] x86 tsc_msr: Add Airmont reference clock values

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Len Brown <lenb@kernel.org>
Newsgroups linux.kernel
Subject [PATCH 5/9] x86 tsc_msr: Add Airmont reference clock values
Date Thu, 31 Mar 2016 06:20:03 +0200
Message-ID <riCfp-7Lb-19@gated-at.bofh.it> (permalink)
References <riCfn-7Lb-3@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references:reply-to:organization; bh=APz2fU+2RT/h1OctyYDzdUzr75/wQDPrrNilBtKv4Ik=; b=aSdLkV3hVRKikmWzZmZJyJTkMDVJileBWvV6EEugkdEZKLrFYuPBS4A+8AzUA7fhfj 4AvPfa8C10ivmHRkI21e0VeE0ycQyzr4AAg5WQhpvfrUmQnYoWnlQWiAZm/4EyTyiZyc N0otZNG2jmvyxMIpoHxSbgi77Il2FKi9nllH5QzGkNz1JBktMQGa1JULfpy/jcO8j04P N7te7eGdVWimg5kgC9lOp4nT0CqqQcYwk6DQ6v64gfTeh+yt9t1LBgmVWnaH+SZ/egAH y8wnXl2Nj/D5uI/SCYdjMEzcYPLHDwg0UsV5xK3wBUahimHnuBJhG05lfXiMI0EniS9k mmug==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references:reply-to:organization; bh=APz2fU+2RT/h1OctyYDzdUzr75/wQDPrrNilBtKv4Ik=; b=QT4SO9RVQR845ZELyZBMqdZKSxP5U+PFPwjkLig5pNmgUD5O3464YbMrrkjRPIV9Bc P/G0MWeTRbKv9x4hQ5sLWp8bc32FNUn9rmvwtvek4JjHho+GmnGnYRiHfV1W1DzHYZsI JeW9OZdwy6Y93mVq6+0l6FsvJbBB7DrSfL8400FVylMaNIQnZEiRgperCrGXRWpAORdW pQkMIFHNBDuPXkCQlbBVYrCX17jQWujqPIkGXWoBoe+DlDh2ahb2zu3DDvRUDjOjkbtW W9BF9UGM1avLtVJKjOEb0odH9LZb8UPJCklLJEGTraWXxRb5l5i4sqyjOzSwJiKBbHfj 6oqA==
X-Gm-Message-State AD7BkJIpl94naittRXy5yynfxLF9rSnLz+l6I7c0Zu303llhK5VBuf+65WemtKA6a795sw==
X-Received by 10.129.122.16 with SMTP id v16mr6410761ywc.219.1459397676174; Wed, 30 Mar 2016 21:14:36 -0700 (PDT)
X-Mailer git-send-email 2.8.0.rc4.16.g56331f8
Reply-To Len Brown <lenb@kernel.org>
Organization Intel Open Source Technology Center
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 38
X-Original-Cc linux-kernel@vger.kernel.org, Len Brown <len.brown@intel.com>
X-Original-Date Thu, 31 Mar 2016 00:13:51 -0400
X-Original-Message-ID <4a62ba36cf4fb77ea35dee1f5992e0e7c48dad14.1459397558.git.len.brown@intel.com>
X-Original-References <1459397635-4871-1-git-send-email-lenb@kernel.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1367806

Show key headers only | View raw


From: Len Brown <len.brown@intel.com>

per the Intel 64 and IA-32 Architecture Software Developer's Manual...

Add the reference clock for Intel Atom Processors
Based on the Airmont Microarchitecture.

Reported-by: Stephane Gasparini <stephane.gasparini@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
---
 arch/x86/kernel/tsc_msr.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/x86/kernel/tsc_msr.c b/arch/x86/kernel/tsc_msr.c
index 19f2a9a..59c371e 100644
--- a/arch/x86/kernel/tsc_msr.c
+++ b/arch/x86/kernel/tsc_msr.c
@@ -13,7 +13,7 @@
 #include <asm/apic.h>
 #include <asm/param.h>
 
-#define MAX_NUM_FREQS	8
+#define MAX_NUM_FREQS	9
 
 /*
  * If MSR_PERF_STAT[31] is set, the maximum resolved bus ratio can be
@@ -40,6 +40,9 @@ static struct freq_desc freq_desc_tables[] = {
 	{ 6, 0x37, 1, { 83300, 100000, 133300, 116700, 80000, 0, 0, 0 } },
 	/* ANN - Intel Atom processor Z3500 series */
 	{ 6, 0x5a, 1, { 83300, 100000, 133300, 100000, 0, 0, 0, 0 } },
+	/* AMT - Intel Atom processor X7-Z8000 and X5-Z8000 series */
+	{ 6, 0x4c, 1, { 83300, 100000, 133300, 116700,
+			80000, 93300, 90000, 88900, 87500 } },
 };
 
 static int match_cpu(u8 family, u8 model)
-- 
2.8.0.rc4.16.g56331f8

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH 0/9] x86: TSC calibration update Len Brown <lenb@kernel.org> - 2016-03-31 06:20 +0200
  [PATCH 6/9] x86 tsc_msr: Extend to include Intel Core Architecture Len Brown <lenb@kernel.org> - 2016-03-31 06:20 +0200
  [PATCH 2/9] x86 tsc_msr: Remove debugging messages Len Brown <lenb@kernel.org> - 2016-03-31 06:20 +0200
  [PATCH 9/9] x86 tsc: enumerate BXT tsc_khz via CPUID Len Brown <lenb@kernel.org> - 2016-03-31 06:20 +0200
  [PATCH 4/9] x86 tsc_msr: Correct Silvermont reference clock values Len Brown <lenb@kernel.org> - 2016-03-31 06:20 +0200
  [PATCH 5/9] x86 tsc_msr: Add Airmont reference clock values Len Brown <lenb@kernel.org> - 2016-03-31 06:20 +0200

csiph-web