Skip to contentSkip to conversation

x86/microcode: Add support for fam17h microcode loading

PATCH In review Andrew Cooper 2 participants 2 messages Dec 13, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/microcode: Add support for fam17h microcode loading

From: Tom Lendacky <[email protected]>

The size for the Microcode Patch Block (MPB) for an AMD family 17h processor is 3200 bytes. Add a #define for fam17h so that it does not default to 2048 bytes and fail a microcode load/update.

[Linux commit f4e9b7af0cd58dd039a0fb2cd67d57cea4889abf]

Ported to Xen.

---
CC: Jan Beulich <[email protected]>

---
 xen/arch/x86/microcode_amd.c | 4 ++++
 1 file changed, 4 insertions(+)
xen/arch/x86/microcode_amd.c +4 -0
index b54b0b9..53f9f54 100644
@@ -107,6 +107,7 @@ static bool_t verify_patch_size(uint32_t patch_size)
 #define F14H_MPB_MAX_SIZE 1824
 #define F15H_MPB_MAX_SIZE 4096
 #define F16H_MPB_MAX_SIZE 3458
+#define F17H_MPB_MAX_SIZE 3200
 
     switch (boot_cpu_data.x86)
     {
@@ -119,6 +120,9 @@ static bool_t verify_patch_size(uint32_t patch_size)
     case 0x16:
         max_size = F16H_MPB_MAX_SIZE;
         break;
+    case 0x17:
+        max_size = F17H_MPB_MAX_SIZE;
+        break;
     default:
         max_size = F1XH_MPB_MAX_SIZE;
         break;
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines
Quoted 1 line
Quoted 1 line · On 13.12.17 at 14:27, <[email protected]> wrote:

From: Tom Lendacky <[email protected]>

The size for the Microcode Patch Block (MPB) for an AMD family 17h processor is 3200 bytes. Add a #define for fam17h so that it does not default to 2048 bytes and fail a microcode load/update.

[Linux commit f4e9b7af0cd58dd039a0fb2cd67d57cea4889abf]
Quoted 3 lines

Ported to Xen.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel