/[packages]/updates/6/kernel/current/PATCHES/patches/x86-microcode-AMD-Add-support-for-fam17h-microcode-l.patch
ViewVC logotype

Contents of /updates/6/kernel/current/PATCHES/patches/x86-microcode-AMD-Add-support-for-fam17h-microcode-l.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1181895 - (show annotations) (download)
Sun Dec 10 14:39:22 2017 UTC (6 years, 4 months ago) by tmb
File size: 1520 byte(s)
- update to 4.14.5
- x86/microcode/AMD: Add support for fam17h microcode loading
- fix e1000e link detection regression


1 From f4e9b7af0cd58dd039a0fb2cd67d57cea4889abf Mon Sep 17 00:00:00 2001
2 From: Tom Lendacky <thomas.lendacky@amd.com>
3 Date: Thu, 30 Nov 2017 16:46:40 -0600
4 Subject: [PATCH] x86/microcode/AMD: Add support for fam17h microcode loading
5
6 The size for the Microcode Patch Block (MPB) for an AMD family 17h
7 processor is 3200 bytes. Add a #define for fam17h so that it does
8 not default to 2048 bytes and fail a microcode load/update.
9
10 Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
11 Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
12 Reviewed-by: Borislav Petkov <bp@alien8.de>
13 Link: https://lkml.kernel.org/r/20171130224640.15391.40247.stgit@tlendack-t1.amdoffice.net
14 Signed-off-by: Ingo Molnar <mingo@kernel.org>
15 ---
16 arch/x86/kernel/cpu/microcode/amd.c | 4 ++++
17 1 file changed, 4 insertions(+)
18
19 diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/microcode/amd.c
20 index c6daec4bdba5..330b8462d426 100644
21 --- a/arch/x86/kernel/cpu/microcode/amd.c
22 +++ b/arch/x86/kernel/cpu/microcode/amd.c
23 @@ -470,6 +470,7 @@ static unsigned int verify_patch_size(u8 family, u32 patch_size,
24 #define F14H_MPB_MAX_SIZE 1824
25 #define F15H_MPB_MAX_SIZE 4096
26 #define F16H_MPB_MAX_SIZE 3458
27 +#define F17H_MPB_MAX_SIZE 3200
28
29 switch (family) {
30 case 0x14:
31 @@ -481,6 +482,9 @@ static unsigned int verify_patch_size(u8 family, u32 patch_size,
32 case 0x16:
33 max_size = F16H_MPB_MAX_SIZE;
34 break;
35 + case 0x17:
36 + max_size = F17H_MPB_MAX_SIZE;
37 + break;
38 default:
39 max_size = F1XH_MPB_MAX_SIZE;
40 break;
41 --
42 2.15.1
43

  ViewVC Help
Powered by ViewVC 1.1.30