x86/CPU/AMD: Add X86_FEATURE_ZEN6

Add a synthetic feature flag for Zen6.

[ bp: Move the feature flag to a free slot and avoid future merge
conflicts from incoming stuff. ]

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250513204857.3376577-1-yazen.ghannam@amd.com

authored by Yazen Ghannam and committed by Borislav Petkov (AMD) 24ee8d94 82b7f88f

+6 -1
+1 -1
arch/x86/include/asm/cpufeatures.h
··· 75 75 #define X86_FEATURE_CENTAUR_MCR ( 3*32+ 3) /* "centaur_mcr" Centaur MCRs (= MTRRs) */ 76 76 #define X86_FEATURE_K8 ( 3*32+ 4) /* Opteron, Athlon64 */ 77 77 #define X86_FEATURE_ZEN5 ( 3*32+ 5) /* CPU based on Zen5 microarchitecture */ 78 - /* Free ( 3*32+ 6) */ 78 + #define X86_FEATURE_ZEN6 ( 3*32+ 6) /* CPU based on Zen6 microarchitecture */ 79 79 /* Free ( 3*32+ 7) */ 80 80 #define X86_FEATURE_CONSTANT_TSC ( 3*32+ 8) /* "constant_tsc" TSC ticks at a constant rate */ 81 81 #define X86_FEATURE_UP ( 3*32+ 9) /* "up" SMP kernel running on UP */
+5
arch/x86/kernel/cpu/amd.c
··· 472 472 case 0x60 ... 0x7f: 473 473 setup_force_cpu_cap(X86_FEATURE_ZEN5); 474 474 break; 475 + case 0x50 ... 0x5f: 476 + case 0x90 ... 0xaf: 477 + case 0xc0 ... 0xcf: 478 + setup_force_cpu_cap(X86_FEATURE_ZEN6); 479 + break; 475 480 default: 476 481 goto warn; 477 482 }