summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2024-01-24 23:07:49 +0100
committerBorislav Petkov (AMD) <bp@alien8.de>2024-01-25 12:26:21 +0100
commitb9328fd636bd50da89e792e135b234ba8e6fe59f (patch)
treea731caaa5bde6faacaa2a4b1fcc2b592aa704170 /arch
parentx86/entry/ia32: Ensure s32 is sign extended to s64 (diff)
downloadlinux-b9328fd636bd50da89e792e135b234ba8e6fe59f.tar.xz
linux-b9328fd636bd50da89e792e135b234ba8e6fe59f.zip
x86/CPU/AMD: Add more models to X86_FEATURE_ZEN5
Add model ranges starting at 0x20, 0x40 and 0x70 to the synthetic feature flag X86_FEATURE_ZEN5. Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/20240124220749.2983-1-mario.limonciello@amd.com
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/cpu/amd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index bc49e3b3aae0..f3abca334199 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -573,6 +573,9 @@ static void bsp_init_amd(struct cpuinfo_x86 *c)
case 0x1a:
switch (c->x86_model) {
case 0x00 ... 0x0f:
+ case 0x20 ... 0x2f:
+ case 0x40 ... 0x4f:
+ case 0x70 ... 0x7f:
setup_force_cpu_cap(X86_FEATURE_ZEN5);
break;
default: