Skip to contentSkip to conversation

x86/CPU/AMD: Add more models to X86_FEATURE_ZEN5

PATCH Applied Mario Limonciello 2 participants 2 messages Jan 24, 2024 – Jan 25, 2024 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/CPU/AMD: Add more models to X86_FEATURE_ZEN5

Add parts from families 0x20, 0x40 and 0x70 to the synthetic feature flag X86_FEATURE_ZEN5.

---
 arch/x86/kernel/cpu/amd.c | 3 +++
 1 file changed, 3 insertions(+)
arch/x86/kernel/cpu/amd.c +3 -0
index 34e5c2cb8042..310fea1af124 100644
@@ -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:
Signature · 1 line
2.34.1
#1 lore raw
The following commit has been merged into the x86/urgent branch of tip:

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

Commit-ID:     b9328fd636bd50da89e792e135b234ba8e6fe59f
Gitweb:        https://git.kernel.org/tip/b9328fd636bd50da89e792e135b234ba8e6fe59f
Author:        Mario Limonciello <[email protected]>
AuthorDate:    Wed, 24 Jan 2024 16:07:49 -06:00
Committer:     Borislav Petkov (AMD) <[email protected]>
CommitterDate: Thu, 25 Jan 2024 12:26:21 +01:00

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.

---
 arch/x86/kernel/cpu/amd.c | 3 +++
 1 file changed, 3 insertions(+)
arch/x86/kernel/cpu/amd.c +3 -0
index bc49e3b..f3abca3 100644
@@ -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: