]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-5.15/x86-cpu-amd-update-the-zenbleed-microcode-revisions.patch
5.4-stable patches
[thirdparty/kernel/stable-queue.git] / queue-5.15 / x86-cpu-amd-update-the-zenbleed-microcode-revisions.patch
1 From 4f1230a3aa120bf662051b03d3d7ebdb39ece452 Mon Sep 17 00:00:00 2001
2 From: Sasha Levin <sashal@kernel.org>
3 Date: Fri, 15 Mar 2024 22:42:27 +0100
4 Subject: x86/CPU/AMD: Update the Zenbleed microcode revisions
5
6 From: Borislav Petkov (AMD) <bp@alien8.de>
7
8 [ Upstream commit 5c84b051bd4e777cf37aaff983277e58c99618d5 ]
9
10 Update them to the correct revision numbers.
11
12 Fixes: 522b1d69219d ("x86/cpu/amd: Add a Zenbleed fix")
13 Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
14 Cc: <stable@kernel.org>
15 Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
16 Signed-off-by: Sasha Levin <sashal@kernel.org>
17 ---
18 arch/x86/kernel/cpu/amd.c | 10 +++++-----
19 1 file changed, 5 insertions(+), 5 deletions(-)
20
21 diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
22 index dba7fe7ecea91..9fb890574f36b 100644
23 --- a/arch/x86/kernel/cpu/amd.c
24 +++ b/arch/x86/kernel/cpu/amd.c
25 @@ -1021,11 +1021,11 @@ static bool cpu_has_zenbleed_microcode(void)
26 u32 good_rev = 0;
27
28 switch (boot_cpu_data.x86_model) {
29 - case 0x30 ... 0x3f: good_rev = 0x0830107a; break;
30 - case 0x60 ... 0x67: good_rev = 0x0860010b; break;
31 - case 0x68 ... 0x6f: good_rev = 0x08608105; break;
32 - case 0x70 ... 0x7f: good_rev = 0x08701032; break;
33 - case 0xa0 ... 0xaf: good_rev = 0x08a00008; break;
34 + case 0x30 ... 0x3f: good_rev = 0x0830107b; break;
35 + case 0x60 ... 0x67: good_rev = 0x0860010c; break;
36 + case 0x68 ... 0x6f: good_rev = 0x08608107; break;
37 + case 0x70 ... 0x7f: good_rev = 0x08701033; break;
38 + case 0xa0 ... 0xaf: good_rev = 0x08a00009; break;
39
40 default:
41 return false;
42 --
43 2.43.0
44