i386/cpu: Remove AMX-TF32 CPUID bit
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
@@ -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
@@ -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
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.0A 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)Cc Zhao Liu <[email protected]>Signed-off-by Chang S. Bae <[email protected]>
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
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
Reviewed-by Zhao Liu <[email protected]>
Thanks!