Skip to content

Commit 6fe0a14

Browse files
author
CKI KWF Bot
committed
Merge: Add Zen6 Feature Flag
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/7287 JIRA: https://issues.redhat.com/browse/RHEL-106912 Prepare to add support for Zen6 processors. Signed-off-by: David Arcari <darcari@redhat.com> Approved-by: Steve Best <sbest@redhat.com> Approved-by: Lenny Szubowicz <lszubowi@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: CKI GitLab Kmaint Pipeline Bot <26919896-cki-kmaint-pipeline-bot@users.noreply.gitlab.com>
2 parents de94c64 + 66f0e3e commit 6fe0a14

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

arch/x86/include/asm/cpufeatures.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@
8585
#define X86_FEATURE_CENTAUR_MCR ( 3*32+ 3) /* "centaur_mcr" Centaur MCRs (= MTRRs) */
8686
#define X86_FEATURE_K8 ( 3*32+ 4) /* Opteron, Athlon64 */
8787
#define X86_FEATURE_ZEN5 ( 3*32+ 5) /* CPU based on Zen5 microarchitecture */
88-
#define X86_FEATURE_P3 ( 3*32+ 6) /* P3 */
89-
#define X86_FEATURE_P4 ( 3*32+ 7) /* P4 */
88+
#define X86_FEATURE_ZEN6 ( 3*32+ 6) /* CPU based on Zen6 microarchitecture */
89+
/* Free ( 3*32+ 7) */
9090
#define X86_FEATURE_CONSTANT_TSC ( 3*32+ 8) /* "constant_tsc" TSC ticks at a constant rate */
9191
#define X86_FEATURE_UP ( 3*32+ 9) /* "up" SMP kernel running on UP */
9292
#define X86_FEATURE_ART ( 3*32+10) /* "art" Always running timer (ART) */

arch/x86/kernel/cpu/amd.c

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

arch/x86/kernel/cpu/intel.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -628,11 +628,6 @@ static void init_intel(struct cpuinfo_x86 *c)
628628
if (p)
629629
strcpy(c->x86_model_id, p);
630630
}
631-
632-
if (c->x86 == 15)
633-
set_cpu_cap(c, X86_FEATURE_P4);
634-
if (c->x86 == 6)
635-
set_cpu_cap(c, X86_FEATURE_P3);
636631
#endif
637632

638633
/* Work around errata */

0 commit comments

Comments
 (0)