Skip to content

Commit e9f031a

Browse files
committed
x86/CPU/AMD: Add X86_FEATURE_ZEN6
JIRA: https://issues.redhat.com/browse/RHEL-106911 commit 24ee8d9 Author: Yazen Ghannam <yazen.ghannam@amd.com> Date: Tue May 13 20:48:57 2025 +0000 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 Signed-off-by: Steve Best <sbest@redhat.com>
1 parent 4b8da81 commit e9f031a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

arch/x86/include/asm/cpufeatures.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
#define X86_FEATURE_CENTAUR_MCR ( 3*32+ 3) /* "centaur_mcr" Centaur MCRs (= MTRRs) */
8484
#define X86_FEATURE_K8 ( 3*32+ 4) /* Opteron, Athlon64 */
8585
#define X86_FEATURE_ZEN5 ( 3*32+ 5) /* CPU based on Zen5 microarchitecture */
86-
/* Free ( 3*32+ 6) */
86+
#define X86_FEATURE_ZEN6 ( 3*32+ 6) /* CPU based on Zen6 microarchitecture */
8787
/* Free ( 3*32+ 7) */
8888
#define X86_FEATURE_CONSTANT_TSC ( 3*32+ 8) /* "constant_tsc" TSC ticks at a constant rate */
8989
#define X86_FEATURE_UP ( 3*32+ 9) /* "up" SMP kernel running on UP */

arch/x86/kernel/cpu/amd.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,11 @@ static void bsp_init_amd(struct cpuinfo_x86 *c)
466466
case 0x60 ... 0x7f:
467467
setup_force_cpu_cap(X86_FEATURE_ZEN5);
468468
break;
469+
case 0x50 ... 0x5f:
470+
case 0x90 ... 0xaf:
471+
case 0xc0 ... 0xcf:
472+
setup_force_cpu_cap(X86_FEATURE_ZEN6);
473+
break;
469474
default:
470475
goto warn;
471476
}

0 commit comments

Comments
 (0)