Skip to contentSkip to conversation

i386/cpu: Remove AMX-TF32 CPUID bit

PATCH Superseded Chang S. Bae 2 participants 3 messages Jul 8 – Jul 9

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386/cpu: Remove AMX-TF32 CPUID bit

A recent revision of the Intel document [1] removed AMX-TF32, confirming that the feature will not be implemented in future processors. Remove the feature bit definition and its enumeration from the Diamond Rapids CPU model.

[1] Intel Architecture Instruction Set Extensions and Future Features

    (Rev.062)

---
KVM side posting:
https://lore.kernel.org/all/[email protected]

---
 target/i386/cpu.c | 5 ++---
 target/i386/cpu.h | 2 --
 2 files changed, 2 insertions(+), 5 deletions(-)
target/i386/cpu.c +2 -3
index 5805d33ab92d..bde501ad8f7b 100644
@@ -1319,7 +1319,7 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
         .type = CPUID_FEATURE_WORD,
         .feat_names = {
             "amx-int8-alias", "amx-bf16-alias", "amx-complex-alias", "amx-fp16-alias",
-            "amx-fp8", NULL, "amx-tf32", "amx-avx512",
+            "amx-fp8", NULL, NULL, "amx-avx512",
             "amx-movrs", NULL, NULL, NULL,
             NULL, NULL, NULL, NULL,
             NULL, NULL, NULL, NULL,
@@ -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
target/i386/cpu.h +0 -2
index e6a197602d87..8354c0753f0d 100644
@@ -1111,8 +1111,6 @@ uint64_t x86_cpu_get_supported_feature_word(X86CPU *cpu, FeatureWord w);
 #define CPUID_1E_1_EAX_AMX_FP16_ALIAS      (1U << 3)
 /* AMX_FP8 instruction */
 #define CPUID_1E_1_EAX_AMX_FP8              (1U << 4)
-/* AMX_TF32 instruction */
-#define CPUID_1E_1_EAX_AMX_TF32             (1U << 6)
 /* AMX_AVX512 instruction */
 #define CPUID_1E_1_EAX_AMX_AVX512           (1U << 7)
 /* AMX_MOVRS instruction */
Signature · 1 line
2.53.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Chang S. Bae

Date: Wed, 8 Jul 2026 21:03:26 +0000
From: "Chang S. Bae" <[email protected]>
Subject: [PATCH] i386/cpu: Remove AMX-TF32 CPUID bit
X-Mailer: git-send-email 2.51.0

A recent revision of the Intel document [1] removed AMX-TF32, confirming that the feature will not be implemented in future processors. Remove the feature bit definition and its enumeration from the Diamond Rapids CPU model.

[1] Intel Architecture Instruction Set Extensions and Future Features

    (Rev.062)
Quoted 7 lines

---
KVM side posting:
https://lore.kernel.org/all/[email protected]

---
 target/i386/cpu.c | 5 ++---
 target/i386/cpu.h | 2 --
 2 files changed, 2 insertions(+), 5 deletions(-)> 

(Cc stable list)

At present, there's no user for DMR CPU model, so I think it's safe to drop this feature flag from DMR CPU model driectly.

But to avoid unnecessary warning on older QEMU, IMO this patch should be backported to the stable QEMU as well.

Regards,
Zhao

#2 lore raw
Quoted 8 lines · Zhao Liu

(Cc stable list)

At present, there's no user for DMR CPU model, so I think it's safe to drop this feature flag from DMR CPU model driectly.

But to avoid unnecessary warning on older QEMU, IMO this patch should be backported to the stable QEMU as well.

Yes, I think so.

Quoted 2 lines

Thanks!