Skip to contentSkip to conversation

x86/cpu/amd: Use ZEN_MODEL_STEP_UCODE() for erratum_1386_microcode[]

PATCH Applied Andrew Cooper 2 participants 2 messages Nov 26, 2025 – Dec 15, 2025 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/cpu/amd: Use ZEN_MODEL_STEP_UCODE() for erratum_1386_microcode[]

... to simplify the result.

No functional change.

---
CC: Borislav Petkov <[email protected]>
CC: Mario Limonciello <[email protected]>
CC: [email protected]
CC: [email protected]

---
 arch/x86/kernel/cpu/amd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/cpu/amd.c +2 -2
index a92750f3079a..505ff37b850c 100644
@@ -873,8 +873,8 @@ static void init_amd_bd(struct cpuinfo_x86 *c)
 }
 
 static const struct x86_cpu_id erratum_1386_microcode[] = {
-	X86_MATCH_VFM_STEPS(VFM_MAKE(X86_VENDOR_AMD, 0x17, 0x01), 0x2, 0x2, 0x0800126e),
-	X86_MATCH_VFM_STEPS(VFM_MAKE(X86_VENDOR_AMD, 0x17, 0x31), 0x0, 0x0, 0x08301052),
+	ZEN_MODEL_STEP_UCODE(0x17, 0x01, 0x2, 0x0800126e),
+	ZEN_MODEL_STEP_UCODE(0x17, 0x31, 0x0, 0x08301052),
 	{}
 };
 
Signature · 1 line
2.39.5
merge bot Applied
#1 lore raw
The following commit has been merged into the x86/cpu branch of tip:

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

Commit-ID:     a2aabcfc6015b6196f161b6bf4df1519ab09c3e1
Gitweb:        https://git.kernel.org/tip/a2aabcfc6015b6196f161b6bf4df1519ab09c3e1
Author:        Andrew Cooper <[email protected]>
AuthorDate:    Wed, 26 Nov 2025 11:34:42 
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Sun, 14 Dec 2025 09:55:47 +01:00

x86/cpu/amd: Use ZEN_MODEL_STEP_UCODE() for erratum_1386_microcode[]

... to simplify the result.

No functional change.

---
 arch/x86/kernel/cpu/amd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/cpu/amd.c +2 -2
index 86059f2..c04f53f 100644
@@ -873,8 +873,8 @@ static void init_amd_bd(struct cpuinfo_x86 *c)
 }
 
 static const struct x86_cpu_id erratum_1386_microcode[] = {
-	X86_MATCH_VFM_STEPS(VFM_MAKE(X86_VENDOR_AMD, 0x17, 0x01), 0x2, 0x2, 0x0800126e),
-	X86_MATCH_VFM_STEPS(VFM_MAKE(X86_VENDOR_AMD, 0x17, 0x31), 0x0, 0x0, 0x08301052),
+	ZEN_MODEL_STEP_UCODE(0x17, 0x01, 0x2, 0x0800126e),
+	ZEN_MODEL_STEP_UCODE(0x17, 0x31, 0x0, 0x08301052),
 	{}
 };