tools/x86/kcpuid: Update bitfields to x86-cpuid-db v2.3

Update kcpuid's CSV file to version 2.3, as generated by x86-cpuid-db.

Summary of the v2.3 changes:

* Per H. Peter Anvin's feedback, leaf 0x3 is not unique to Transmeta as
  the CSV file earlier claimed.  Since leaf 0x3's format differs between
  Intel and Transmeta, and the project does not yet support having the
  same CPUID bitfield with varying interpretations across vendors, leaf
  0x3 is removed for now.  Given that Intel discontinued support for PSN
  from Pentium 4 onward, and Linux force disables it on early boot for
  privacy concerns, this should have minimal impact.

* Leaf 0x80000021: Make bitfield IDs and descriptions coherent with each
  other.  Remove "_support" from bitfield IDs, as no other leaf has such
  convention.

Reported-by: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://gitlab.com/x86-cpuid.org/x86-cpuid-db/-/blob/v2.3/CHANGELOG.rst
Link: https://lore.kernel.org/r/20250324142042.29010-20-darwi@linutronix.de

Closes: https://lkml.kernel.org/r/C7684E03-36E0-4D58-B6F0-78F4DB82D737@zytor.com
This commit is contained in:
Ahmed S. Darwish 2025-03-24 15:20:40 +01:00 committed by Ingo Molnar
parent 5e0c3c5e95
commit 300ba89141

View File

@ -1,5 +1,5 @@
# SPDX-License-Identifier: CC0-1.0
# Generator: x86-cpuid-db v2.2
# Generator: x86-cpuid-db v2.3
#
# Auto-generated file.
@ -116,14 +116,6 @@
0x2, 0, edx, 30:24, desc15 , Descriptor #15
0x2, 0, edx, 31, edx_invalid , Descriptors 12-15 are invalid if set
# Leaf 3H
# Transmeta Processor Serial Number (PSN)
0x3, 0, eax, 31:0, cpu_psn_0 , Processor Serial Number bytes 0 - 3
0x3, 0, ebx, 31:0, cpu_psn_1 , Processor Serial Number bytes 4 - 7
0x3, 0, ecx, 31:0, cpu_psn_2 , Processor Serial Number bytes 8 - 11
0x3, 0, edx, 31:0, cpu_psn_3 , Processor Serial Number bytes 12 - 15
# Leaf 4H
# Intel deterministic cache parameters
@ -1020,20 +1012,20 @@
0x80000021, 0, eax, 0, no_nested_data_bp , No nested data breakpoints
0x80000021, 0, eax, 1, fsgs_non_serializing , WRMSR to {FS,GS,KERNEL_GS}_BASE is non-serializing
0x80000021, 0, eax, 2, lfence_rdtsc , LFENCE always serializing / synchronizes RDTSC
0x80000021, 0, eax, 3, smm_page_cfg_lock , SMM paging configuration lock is supported
0x80000021, 0, eax, 3, smm_page_cfg_lock , SMM paging configuration lock
0x80000021, 0, eax, 6, null_sel_clr_base , Null selector clears base
0x80000021, 0, eax, 7, upper_addr_ignore , EFER MSR Upper Address Ignore Enable bit supported
0x80000021, 0, eax, 8, autoibrs , EFER MSR Automatic IBRS enable bit supported
0x80000021, 0, eax, 9, no_smm_ctl_msr , SMM_CTL MSR (0xc0010116) is not present
0x80000021, 0, eax, 10, fsrs_supported , Fast Short Rep STOSB (FSRS) is supported
0x80000021, 0, eax, 11, fsrc_supported , Fast Short Rep CMPSB (FSRC) is supported
0x80000021, 0, eax, 13, prefetch_ctl_msr , Prefetch control MSR is supported
0x80000021, 0, eax, 7, upper_addr_ignore , EFER MSR Upper Address Ignore
0x80000021, 0, eax, 8, autoibrs , EFER MSR Automatic IBRS
0x80000021, 0, eax, 9, no_smm_ctl_msr , SMM_CTL MSR (0xc0010116) is not available
0x80000021, 0, eax, 10, fsrs , Fast Short Rep STOSB
0x80000021, 0, eax, 11, fsrc , Fast Short Rep CMPSB
0x80000021, 0, eax, 13, prefetch_ctl_msr , Prefetch control MSR is available
0x80000021, 0, eax, 16, opcode_reclaim , Reserves opcode space
0x80000021, 0, eax, 17, user_cpuid_disable , #GP when executing CPUID at CPL > 0 is supported
0x80000021, 0, eax, 18, epsf_supported , Enhanced Predictive Store Forwarding (EPSF) is supported
0x80000021, 0, eax, 18, epsf , Enhanced Predictive Store Forwarding
0x80000021, 0, eax, 22, wl_feedback , Workload-based heuristic feedback to OS
0x80000021, 0, eax, 24, eraps_support , Enhanced Return Address Predictor Security
0x80000021, 0, eax, 27, sbpb , Support for the Selective Branch Predictor Barrier
0x80000021, 0, eax, 24, eraps , Enhanced Return Address Predictor Security
0x80000021, 0, eax, 27, sbpb , Selective Branch Predictor Barrier
0x80000021, 0, eax, 28, ibpb_brtype , Branch predictions flushed from CPU branch predictor
0x80000021, 0, eax, 29, srso_no , CPU is not subject to the SRSO vulnerability
0x80000021, 0, eax, 30, srso_uk_no , CPU is not vulnerable to SRSO at user-kernel boundary

1 # SPDX-License-Identifier: CC0-1.0
2 # Generator: x86-cpuid-db v2.2 # Generator: x86-cpuid-db v2.3
3 #
4 # Auto-generated file.
5 # Please submit all updates and bugfixes to https://x86-cpuid.org
116 # Leaf 4H 0x4, 31:0, eax, 25:14, num_threads_sharing , Number logical CPUs sharing this cache
117 # Intel deterministic cache parameters 0x4, 31:0, eax, 31:26, num_cores_on_die , Number of cores in the physical package
118 0x4, 31:0, eax, 4:0, cache_type , Cache type field 0x4, 31:0, ebx, 11:0, cache_linesize , System coherency line size (0-based)
0x4, 31:0, eax, 7:5, cache_level , Cache level (1-based)
0x4, 31:0, eax, 8, cache_self_init , Self-initializing cache level
0x4, 31:0, eax, 9, fully_associative , Fully-associative cache
0x4, 31:0, eax, 25:14, num_threads_sharing , Number logical CPUs sharing this cache
0x4, 31:0, eax, 31:26, num_cores_on_die , Number of cores in the physical package
0x4, 31:0, ebx, 11:0, cache_linesize , System coherency line size (0-based)
0x4, 31:0, ebx, 21:12, cache_npartitions , Physical line partitions (0-based)
0x4, 31:0, ebx, 31:22, cache_nways , Ways of associativity (0-based)
119 0x4, 31:0, ecx, 30:0, cache_nsets , Cache number of sets (0-based) 0x4, 31:0, ebx, 21:12, cache_npartitions , Physical line partitions (0-based)
120 0x4, 31:0, edx, 0, wbinvd_rll_no_guarantee, WBINVD/INVD not guaranteed for Remote Lower-Level caches 0x4, 31:0, ebx, 31:22, cache_nways , Ways of associativity (0-based)
121 0x4, 31:0, edx, 1, ll_inclusive , Cache is inclusive of Lower-Level caches 0x4, 31:0, ecx, 30:0, cache_nsets , Cache number of sets (0-based)
1012 # Leaf 80860007H 0x80860006, 0, ecx, 31:0, cpu_info_14 , CPU info string bytes 56 - 59
1013 # Transmeta live CPU information 0x80860006, 0, edx, 31:0, cpu_info_15 , CPU info string bytes 60 - 63
1014 0x80860007, 0, eax, 31:0, cpu_cur_mhz , Current CPU frequency, in MHz # Leaf 80860007H
1015 0x80860007, 0, ebx, 31:0, cpu_cur_voltage , Current CPU voltage, in millivolts # Transmeta live CPU information
1016 0x80860007, 0, ecx, 31:0, cpu_cur_perf_pctg , Current CPU performance percentage, 0 - 100 0x80860007, 0, eax, 31:0, cpu_cur_mhz , Current CPU frequency, in MHz
1017 0x80860007, 0, edx, 31:0, cpu_cur_gate_delay , Current CPU gate delay, in femtoseconds 0x80860007, 0, ebx, 31:0, cpu_cur_voltage , Current CPU voltage, in millivolts
1018 # Leaf C0000000H 0x80860007, 0, ecx, 31:0, cpu_cur_perf_pctg , Current CPU performance percentage, 0 - 100
1019 # Maximum Centaur/Zhaoxin leaf number 0x80860007, 0, edx, 31:0, cpu_cur_gate_delay , Current CPU gate delay, in femtoseconds
1020 0xc0000000, 0, eax, 31:0, max_cntr_leaf , Maximum Centaur/Zhaoxin leaf number # Leaf C0000000H
1021 # Leaf C0000001H # Maximum Centaur/Zhaoxin leaf number
1022 # Centaur/Zhaoxin extended CPU features 0xc0000000, 0, eax, 31:0, max_cntr_leaf , Maximum Centaur/Zhaoxin leaf number
1023 0xc0000001, 0, edx, 0, ccs_sm2 , CCS SM2 instructions # Leaf C0000001H
1024 0xc0000001, 0, edx, 1, ccs_sm2_en , CCS SM2 enabled # Centaur/Zhaoxin extended CPU features
1025 0xc0000001, 0, edx, 2, xstore , Random Number Generator 0xc0000001, 0, edx, 0, ccs_sm2 , CCS SM2 instructions
1026 0xc0000001, 0, edx, 3, xstore_en , RNG enabled 0xc0000001, 0, edx, 1, ccs_sm2_en , CCS SM2 enabled
1027 0xc0000001, 0, edx, 4, ccs_sm3_sm4 , CCS SM3 and SM4 instructions 0xc0000001, 0, edx, 2, xstore , Random Number Generator
1028 0xc0000001, 0, edx, 5, ccs_sm3_sm4_en , CCS SM3/SM4 enabled 0xc0000001, 0, edx, 3, xstore_en , RNG enabled
1029 0xc0000001, 0, edx, 6, ace , Advanced Cryptography Engine 0xc0000001, 0, edx, 4, ccs_sm3_sm4 , CCS SM3 and SM4 instructions
1030 0xc0000001, 0, edx, 7, ace_en , ACE enabled 0xc0000001, 0, edx, 5, ccs_sm3_sm4_en , CCS SM3/SM4 enabled
1031 0xc0000001, 0, edx, 8, ace2 , Advanced Cryptography Engine v2 0xc0000001, 0, edx, 6, ace , Advanced Cryptography Engine