b1dca6
commit ac3bda9a251f1512650f7b2c10d711c740ee0b78
b1dca6
Author: H.J. Lu <hjl.tools@gmail.com>
b1dca6
Date:   Wed Aug 5 08:20:52 2020 -0700
b1dca6
b1dca6
    x86: Rename Intel CPU feature names
b1dca6
    
b1dca6
    Intel64 and IA-32 Architectures Software Developer’s Manual has changed
b1dca6
    the following CPU feature names:
b1dca6
    
b1dca6
    1. The CPU feature of Enhanced Intel SpeedStep Technology is renamed
b1dca6
    from EST to EIST.
b1dca6
    2. The CPU feature which supports Platform Quality of Service Monitoring
b1dca6
    (PQM) capability is changed to Intel Resource Director Technology
b1dca6
    (Intel RDT) Monitoring capability, i.e. PQM is renamed to RDT_M.
b1dca6
    3. The CPU feature which supports Platform Quality of Service
b1dca6
    Enforcement (PQE) capability is changed to Intel Resource Director
b1dca6
    Technology (Intel RDT) Allocation capability, i.e. PQE is renamed to
b1dca6
    RDT_A.
b1dca6
b1dca6
diff --git a/sysdeps/x86/cpu-features.h b/sysdeps/x86/cpu-features.h
b1dca6
index 21708c028a12dbb2..3b401d441b8d370a 100644
b1dca6
--- a/sysdeps/x86/cpu-features.h
b1dca6
+++ b/sysdeps/x86/cpu-features.h
b1dca6
@@ -156,7 +156,7 @@ extern const struct cpu_features *__get_cpu_features (void)
b1dca6
 #define bit_cpu_DS_CPL		(1u << 4)
b1dca6
 #define bit_cpu_VMX		(1u << 5)
b1dca6
 #define bit_cpu_SMX		(1u << 6)
b1dca6
-#define bit_cpu_EST		(1u << 7)
b1dca6
+#define bit_cpu_EIST		(1u << 7)
b1dca6
 #define bit_cpu_TM2		(1u << 8)
b1dca6
 #define bit_cpu_SSSE3		(1u << 9)
b1dca6
 #define bit_cpu_CNXT_ID		(1u << 10)
b1dca6
@@ -231,10 +231,10 @@ extern const struct cpu_features *__get_cpu_features (void)
b1dca6
 #define bit_cpu_ERMS		(1u << 9)
b1dca6
 #define bit_cpu_INVPCID		(1u << 10)
b1dca6
 #define bit_cpu_RTM		(1u << 11)
b1dca6
-#define bit_cpu_PQM		(1u << 12)
b1dca6
+#define bit_cpu_RDT_M		(1u << 12)
b1dca6
 #define bit_cpu_DEPR_FPU_CS_DS	(1u << 13)
b1dca6
 #define bit_cpu_MPX		(1u << 14)
b1dca6
-#define bit_cpu_PQE		(1u << 15)
b1dca6
+#define bit_cpu_RDT_A		(1u << 15)
b1dca6
 #define bit_cpu_AVX512F		(1u << 16)
b1dca6
 #define bit_cpu_AVX512DQ	(1u << 17)
b1dca6
 #define bit_cpu_RDSEED		(1u << 18)
b1dca6
@@ -371,7 +371,7 @@ extern const struct cpu_features *__get_cpu_features (void)
b1dca6
 #define index_cpu_DS_CPL	COMMON_CPUID_INDEX_1
b1dca6
 #define index_cpu_VMX		COMMON_CPUID_INDEX_1
b1dca6
 #define index_cpu_SMX		COMMON_CPUID_INDEX_1
b1dca6
-#define index_cpu_EST		COMMON_CPUID_INDEX_1
b1dca6
+#define index_cpu_EIST		COMMON_CPUID_INDEX_1
b1dca6
 #define index_cpu_TM2		COMMON_CPUID_INDEX_1
b1dca6
 #define index_cpu_SSSE3		COMMON_CPUID_INDEX_1
b1dca6
 #define index_cpu_CNXT_ID	COMMON_CPUID_INDEX_1
b1dca6
@@ -446,10 +446,10 @@ extern const struct cpu_features *__get_cpu_features (void)
b1dca6
 #define index_cpu_ERMS		COMMON_CPUID_INDEX_7
b1dca6
 #define index_cpu_INVPCID	COMMON_CPUID_INDEX_7
b1dca6
 #define index_cpu_RTM		COMMON_CPUID_INDEX_7
b1dca6
-#define index_cpu_PQM		COMMON_CPUID_INDEX_7
b1dca6
+#define index_cpu_RDT_M		COMMON_CPUID_INDEX_7
b1dca6
 #define index_cpu_DEPR_FPU_CS_DS COMMON_CPUID_INDEX_7
b1dca6
 #define index_cpu_MPX		COMMON_CPUID_INDEX_7
b1dca6
-#define index_cpu_PQE		COMMON_CPUID_INDEX_7
b1dca6
+#define index_cpu_RDT_A		COMMON_CPUID_INDEX_7
b1dca6
 #define index_cpu_AVX512F	COMMON_CPUID_INDEX_7
b1dca6
 #define index_cpu_AVX512DQ	COMMON_CPUID_INDEX_7
b1dca6
 #define index_cpu_RDSEED	COMMON_CPUID_INDEX_7
b1dca6
@@ -584,7 +584,7 @@ extern const struct cpu_features *__get_cpu_features (void)
b1dca6
 #define reg_DS_CPL		ecx
b1dca6
 #define reg_VMX			ecx
b1dca6
 #define reg_SMX			ecx
b1dca6
-#define reg_EST			ecx
b1dca6
+#define reg_EIST		ecx
b1dca6
 #define reg_TM2			ecx
b1dca6
 #define reg_SSSE3		ecx
b1dca6
 #define reg_CNXT_ID		ecx
b1dca6
@@ -659,10 +659,10 @@ extern const struct cpu_features *__get_cpu_features (void)
b1dca6
 #define reg_ERMS		ebx
b1dca6
 #define reg_INVPCID		ebx
b1dca6
 #define reg_RTM			ebx
b1dca6
-#define reg_PQM			ebx
b1dca6
+#define reg_RDT_M		ebx
b1dca6
 #define reg_DEPR_FPU_CS_DS	ebx
b1dca6
 #define reg_MPX			ebx
b1dca6
-#define reg_PQE			ebx
b1dca6
+#define reg_RDT_A		ebx
b1dca6
 #define reg_AVX512F		ebx
b1dca6
 #define reg_AVX512DQ		ebx
b1dca6
 #define reg_RDSEED		ebx
b1dca6
diff --git a/sysdeps/x86/tst-get-cpu-features.c b/sysdeps/x86/tst-get-cpu-features.c
b1dca6
index 85ec9d5a091e2c88..582b125a2dad3f21 100644
b1dca6
--- a/sysdeps/x86/tst-get-cpu-features.c
b1dca6
+++ b/sysdeps/x86/tst-get-cpu-features.c
b1dca6
@@ -73,7 +73,7 @@ do_test (void)
b1dca6
   CHECK_CPU_FEATURE (DS_CPL);
b1dca6
   CHECK_CPU_FEATURE (VMX);
b1dca6
   CHECK_CPU_FEATURE (SMX);
b1dca6
-  CHECK_CPU_FEATURE (EST);
b1dca6
+  CHECK_CPU_FEATURE (EIST);
b1dca6
   CHECK_CPU_FEATURE (TM2);
b1dca6
   CHECK_CPU_FEATURE (SSSE3);
b1dca6
   CHECK_CPU_FEATURE (CNXT_ID);
b1dca6
@@ -136,10 +136,10 @@ do_test (void)
b1dca6
   CHECK_CPU_FEATURE (ERMS);
b1dca6
   CHECK_CPU_FEATURE (INVPCID);
b1dca6
   CHECK_CPU_FEATURE (RTM);
b1dca6
-  CHECK_CPU_FEATURE (PQM);
b1dca6
+  CHECK_CPU_FEATURE (RDT_M);
b1dca6
   CHECK_CPU_FEATURE (DEPR_FPU_CS_DS);
b1dca6
   CHECK_CPU_FEATURE (MPX);
b1dca6
-  CHECK_CPU_FEATURE (PQE);
b1dca6
+  CHECK_CPU_FEATURE (RDT_A);
b1dca6
   CHECK_CPU_FEATURE (AVX512F);
b1dca6
   CHECK_CPU_FEATURE (AVX512DQ);
b1dca6
   CHECK_CPU_FEATURE (RDSEED);
b1dca6
@@ -226,7 +226,7 @@ do_test (void)
b1dca6
   CHECK_CPU_FEATURE_USABLE (DS_CPL);
b1dca6
   CHECK_CPU_FEATURE_USABLE (VMX);
b1dca6
   CHECK_CPU_FEATURE_USABLE (SMX);
b1dca6
-  CHECK_CPU_FEATURE_USABLE (EST);
b1dca6
+  CHECK_CPU_FEATURE_USABLE (EIST);
b1dca6
   CHECK_CPU_FEATURE_USABLE (TM2);
b1dca6
   CHECK_CPU_FEATURE_USABLE (SSSE3);
b1dca6
   CHECK_CPU_FEATURE_USABLE (CNXT_ID);
b1dca6
@@ -289,10 +289,10 @@ do_test (void)
b1dca6
   CHECK_CPU_FEATURE_USABLE (ERMS);
b1dca6
   CHECK_CPU_FEATURE_USABLE (INVPCID);
b1dca6
   CHECK_CPU_FEATURE_USABLE (RTM);
b1dca6
-  CHECK_CPU_FEATURE_USABLE (PQM);
b1dca6
+  CHECK_CPU_FEATURE_USABLE (RDT_M);
b1dca6
   CHECK_CPU_FEATURE_USABLE (DEPR_FPU_CS_DS);
b1dca6
   CHECK_CPU_FEATURE_USABLE (MPX);
b1dca6
-  CHECK_CPU_FEATURE_USABLE (PQE);
b1dca6
+  CHECK_CPU_FEATURE_USABLE (RDT_A);
b1dca6
   CHECK_CPU_FEATURE_USABLE (AVX512F);
b1dca6
   CHECK_CPU_FEATURE_USABLE (AVX512DQ);
b1dca6
   CHECK_CPU_FEATURE_USABLE (RDSEED);