xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@novell.com>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Cc: Borislav Petkov <borislav.petkov@amd.com>
Subject: [PATCH] x86/AMD: don't set ARAT feature flag on family F CPUs
Date: Thu, 19 May 2011 13:09:09 +0100	[thread overview]
Message-ID: <4DD52485020000780004220B@vpn.id2.novell.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 612 bytes --]

Following Linux commit 14fb57dccb6e1defe9f89a66f548fcb24c374c1d from
Borislav Petkov.

Signed-off-by: Jan Beulich <jbeulich@novell.com>

--- a/xen/arch/x86/cpu/amd.c
+++ b/xen/arch/x86/cpu/amd.c
@@ -475,7 +475,7 @@ static void __devinit init_amd(struct cp
 #endif
 
 	/* As a rule processors have APIC timer running in deep C states */
-	if (c->x86 >= 0xf && !cpu_has_amd_erratum(c, AMD_ERRATUM_400))
+	if (c->x86 > 0xf && !cpu_has_amd_erratum(c, AMD_ERRATUM_400))
 		set_bit(X86_FEATURE_ARAT, c->x86_capability);
 
 	/* Prevent TSC drift in non single-processor, single-core platforms. */




[-- Attachment #2: x86-AMD-ARAT-adjust.patch --]
[-- Type: text/plain, Size: 606 bytes --]

Following Linux commit 14fb57dccb6e1defe9f89a66f548fcb24c374c1d from
Borislav Petkov.

Signed-off-by: Jan Beulich <jbeulich@novell.com>

--- a/xen/arch/x86/cpu/amd.c
+++ b/xen/arch/x86/cpu/amd.c
@@ -475,7 +475,7 @@ static void __devinit init_amd(struct cp
 #endif
 
 	/* As a rule processors have APIC timer running in deep C states */
-	if (c->x86 >= 0xf && !cpu_has_amd_erratum(c, AMD_ERRATUM_400))
+	if (c->x86 > 0xf && !cpu_has_amd_erratum(c, AMD_ERRATUM_400))
 		set_bit(X86_FEATURE_ARAT, c->x86_capability);
 
 	/* Prevent TSC drift in non single-processor, single-core platforms. */

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

                 reply	other threads:[~2011-05-19 12:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4DD52485020000780004220B@vpn.id2.novell.com \
    --to=jbeulich@novell.com \
    --cc=borislav.petkov@amd.com \
    --cc=xen-devel@lists.xensource.com \
    /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;
as well as URLs for NNTP newsgroup(s).