Skip to content

Commit 2f9b489

Browse files
committed
Merge: x86/CPU/AMD: Updates to add X86_FEATURE_ZEN6
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/1396 Description: Prepare to add support for Zen6 processors. JIRA: https://issues.redhat.com/browse/RHEL-106911 Build Info: 68794400 Tested: Sanity boot testing on (amd-turin-volcano-01.khw) system. Signed-off-by: Steve Best <sbest@redhat.com> Approved-by: Lenny Szubowicz <lszubowi@redhat.com> Approved-by: David Arcari <darcari@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Scott Weaver <scweaver@redhat.com>
2 parents cc80dc8 + e9f031a commit 2f9b489

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
@@ -83,8 +83,8 @@
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-
#define X86_FEATURE_P3 ( 3*32+ 6) /* P3 */
87-
#define X86_FEATURE_P4 ( 3*32+ 7) /* P4 */
86+
#define X86_FEATURE_ZEN6 ( 3*32+ 6) /* CPU based on Zen6 microarchitecture */
87+
/* 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 */
9090
#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
@@ -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
}

arch/x86/kernel/cpu/intel.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -597,11 +597,6 @@ static void init_intel(struct cpuinfo_x86 *c)
597597
if (p)
598598
strcpy(c->x86_model_id, p);
599599
}
600-
601-
if (c->x86 == 15)
602-
set_cpu_cap(c, X86_FEATURE_P4);
603-
if (c->x86 == 6)
604-
set_cpu_cap(c, X86_FEATURE_P3);
605600
#endif
606601

607602
/* Work around errata */

0 commit comments

Comments
 (0)