Skip to contentSkip to conversation

Enable TSC_RELIABLE for AMD servers

PATCH In review Dan Magenheimer 2 participants 2 messages Oct 20, 2009 – Oct 22, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Enable TSC_RELIABLE for AMD servers

(Mark, please ack)

Enable TSC_RELIABLE for AMD servers

Except for a published BIOS errata on family 11h processors, all AMD servers that have the Invariant TSC bit set have a reliable TSC so Xen should not write to the TSC.

xen/arch/x86/cpu/amd.c +2 -0
diff -r d7d7f978d704 xen/arch/x86/cpu/amd.c
@@ -465,6 +465,8 @@ static void __devinit init_amd(struct cp
 		if (c->x86_power & (1<<8)) {
 			set_bit(X86_FEATURE_CONSTANT_TSC, c->x86_capability);
 			set_bit(X86_FEATURE_NONSTOP_TSC, c->x86_capability);
+			if (c->x86 != 0x11)
+				set_bit(X86_FEATURE_TSC_RELIABLE, c->x86_capability);
 		}
 	}
Acked-by on v1 1/1
#1 lore raw

The TSC on AMD processors with the invariant TSC
bit is reliable per Xen's definition of the term.

-Mark Langsdorf
Operating System Research Center
AMD

Quoted 41 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dan Magenheimer
Sent: Tuesday, October 20, 2009 10:05 AM
To: Xen-Devel (E-mail)
Cc: Langsdorf, Mark; Keir Fraser
Subject: [Xen-devel] [PATCH] Enable TSC_RELIABLE for AMD servers

(Mark, please ack)

Enable TSC_RELIABLE for AMD servers

Except for a published BIOS errata on family 11h processors, all AMD servers that have the Invariant TSC bit set have a reliable TSC so Xen should not write to the TSC.

diff -r d7d7f978d704 xen/arch/x86/cpu/amd.c

xen/arch/x86/cpu/amd.c +2 -0
@@ -465,6 +465,8 @@ static void __devinit init_amd(struct cp
 		if (c->x86_power & (1<<8)) {
 			set_bit(X86_FEATURE_CONSTANT_TSC, 
 c->x86_capability);
 			set_bit(X86_FEATURE_NONSTOP_TSC, 
 c->x86_capability);
+			if (c->x86 != 0x11)
+				
 set_bit(X86_FEATURE_TSC_RELIABLE, c->x86_capability);
xen/arch/x86/cpu/amd.c +0 -0
 		}
 	}

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel