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