[tip: x86/urgent] x86/CPU/AMD: Carve out a Zen5 models range

From: tip-bot2 for Pratik Vishwakarma

Date: Wed Jul 29 2026 - 16:06:42 EST


The following commit has been merged into the x86/urgent branch of tip:

Commit-ID: 52075128273ace53e6254e37899a47d40d4baf45
Gitweb: https://git.kernel.org/tip/52075128273ace53e6254e37899a47d40d4baf45
Author: Pratik Vishwakarma <Pratik.Vishwakarma@xxxxxxx>
AuthorDate: Wed, 29 Jul 2026 05:54:59
Committer: Borislav Petkov (AMD) <bp@xxxxxxxxx>
CommitterDate: Wed, 29 Jul 2026 12:52:27 -07:00

x86/CPU/AMD: Carve out a Zen5 models range

Family 0x1a, model 0xd0..0xd7 belongs to the Zen5 generation. Carve it
out from the larger, Zen6 range where former doesn't belong.

[ bp: Rewrite commit message, add tags. ]

Fixes: b5f53e6d3d32 ("x86/CPU/AMD: Add more Zen6 models")
Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@xxxxxxx>
Signed-off-by: Borislav Petkov (AMD) <bp@xxxxxxxxx>
Cc: <stable@xxxxxxxxxx>
Link: https://patch.msgid.link/20260729055459.15904-1-Pratik.Vishwakarma@xxxxxxx
---
arch/x86/kernel/cpu/amd.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index 487ac14..d61df70 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -515,11 +515,13 @@ static void bsp_init_amd(struct cpuinfo_x86 *c)
case 0x00 ... 0x2f:
case 0x40 ... 0x4f:
case 0x60 ... 0x7f:
+ case 0xd0 ... 0xd7:
setup_force_cpu_cap(X86_FEATURE_ZEN5);
break;
case 0x50 ... 0x5f:
case 0x80 ... 0xaf:
- case 0xc0 ... 0xef:
+ case 0xc0 ... 0xcf:
+ case 0xd8 ... 0xef:
setup_force_cpu_cap(X86_FEATURE_ZEN6);
break;
default: