[PATCH v3] i386/cpu: Remove AMX-TF32 CPUID bit from Diamond Rapids

Chang S. Bae posted 1 patch 3 days, 9 hours ago
target/i386/cpu.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
[PATCH v3] i386/cpu: Remove AMX-TF32 CPUID bit from Diamond Rapids
Posted by Chang S. Bae 3 days, 9 hours ago
A recent update (rev. 62) to the Intel document [1] clarifies that the
feature will not be implemented on Diamond Rapids. Listing it would
result in spurious warnings due to the mismatch. Remove the feature from
the CPU model.

Note [1] (rev. 63) now clarifies that the CPUID bit is reserved rather
than removed. So, the existing CPUID bit enumeration does not conflict
with it and can be retained.

[1] Intel Architecture Instruction Set Extensions and Future Features

Cc: qemu-stable@nongnu.org # v11.0+
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
---
V2 -> V3: Remove it from DMR only.
---
 target/i386/cpu.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 5805d33ab92d..5460ad4494a9 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -5726,8 +5726,7 @@ static const X86CPUDefinition builtin_x86_defs[] = {
             CPUID_1E_1_EAX_AMX_INT8_ALIAS | CPUID_1E_1_EAX_AMX_BF16_ALIAS |
             CPUID_1E_1_EAX_AMX_COMPLEX_ALIAS |
             CPUID_1E_1_EAX_AMX_FP16_ALIAS | CPUID_1E_1_EAX_AMX_FP8 |
-            CPUID_1E_1_EAX_AMX_TF32 | CPUID_1E_1_EAX_AMX_AVX512 |
-            CPUID_1E_1_EAX_AMX_MOVRS,
+            CPUID_1E_1_EAX_AMX_AVX512 | CPUID_1E_1_EAX_AMX_MOVRS,
         .features[FEAT_29_0_EBX] = CPUID_29_0_EBX_APX_NCI_NDD_NF,
         /*
          * Though this bit will be set by avx_version=2, it's better to
-- 
2.53.0
Re: [PATCH v3] i386/cpu: Remove AMX-TF32 CPUID bit from Diamond Rapids
Posted by Paolo Bonzini 2 days, 19 hours ago
Queued, thanks.

Paolo