svn commit: r345075 - in head/sys/x86: include x86

Konstantin Belousov kib at FreeBSD.org
Tue Mar 12 18:59:03 UTC 2019


Author: kib
Date: Tue Mar 12 18:59:01 2019
New Revision: 345075
URL: https://svnweb.freebsd.org/changeset/base/345075

Log:
  Add register number, CPUID bits, and print identification for TSX
  force abort errata.
  
  Sponsored by:	The FreeBSD Foundation
  MFC after:	3 days

Modified:
  head/sys/x86/include/specialreg.h
  head/sys/x86/x86/identcpu.c

Modified: head/sys/x86/include/specialreg.h
==============================================================================
--- head/sys/x86/include/specialreg.h	Tue Mar 12 18:57:11 2019	(r345074)
+++ head/sys/x86/include/specialreg.h	Tue Mar 12 18:59:01 2019	(r345075)
@@ -448,6 +448,7 @@
 /*
  * CPUID instruction 7 Structured Extended Features, leaf 0 edx info
  */
+#define	CPUID_STDEXT3_TSXFA	0x00002000
 #define	CPUID_STDEXT3_IBPB	0x04000000
 #define	CPUID_STDEXT3_STIBP	0x08000000
 #define	CPUID_STDEXT3_L1D_FLUSH	0x10000000
@@ -506,6 +507,7 @@
 #define	MSR_MTRRcap		0x0fe
 #define	MSR_IA32_ARCH_CAP	0x10a
 #define	MSR_IA32_FLUSH_CMD	0x10b
+#define	MSR_TSX_FORCE_ABORT	0x10f
 #define	MSR_BBL_CR_ADDR		0x116
 #define	MSR_BBL_CR_DECC		0x118
 #define	MSR_BBL_CR_CTL		0x119

Modified: head/sys/x86/x86/identcpu.c
==============================================================================
--- head/sys/x86/x86/identcpu.c	Tue Mar 12 18:57:11 2019	(r345074)
+++ head/sys/x86/x86/identcpu.c	Tue Mar 12 18:59:01 2019	(r345075)
@@ -995,6 +995,7 @@ printcpuinfo(void)
 				printf("\n  Structured Extended Features3=0x%b",
 				    cpu_stdext_feature3,
 				       "\020"
+				       "\016TSXFA"
 				       "\033IBPB"
 				       "\034STIBP"
 				       "\035L1DFL"


More information about the svn-src-all mailing list