[xen stable-4.10] x86/microcode: Add support for fam17h microcode loading

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[xen stable-4.10] x86/microcode: Add support for fam17h microcode loading

commit e5364c32c650fef60b91b9be9b10f38055ffc2cf
Author:     Tom Lendacky <[hidden email]>
AuthorDate: Wed Dec 20 15:43:14 2017 +0100
Commit:     Jan Beulich <[hidden email]>
CommitDate: Wed Dec 20 15:43:14 2017 +0100

    x86/microcode: Add support for fam17h microcode loading
    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.
    Signed-off-by: Tom Lendacky <[hidden email]>
    Signed-off-by: Thomas Gleixner <[hidden email]>
    Reviewed-by: Borislav Petkov <[hidden email]>
    Signed-off-by: Ingo Molnar <[hidden email]>
    [Linux commit f4e9b7af0cd58dd039a0fb2cd67d57cea4889abf]
    Ported to Xen.
    Signed-off-by: Andrew Cooper <[hidden email]>
    Acked-by: Jan Beulich <[hidden email]>
    master commit: 61d458ba8c171809e8dd9abd19339c87f3f934ca
    master date: 2017-12-13 14:30:10 +0000
 xen/arch/x86/microcode_amd.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/xen/arch/x86/microcode_amd.c b/xen/arch/x86/microcode_amd.c
index b54b0b9..53f9f54 100644
--- a/xen/arch/x86/microcode_amd.c
+++ b/xen/arch/x86/microcode_amd.c
@@ -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;
+    case 0x17:
+        max_size = F17H_MPB_MAX_SIZE;
+        break;
         max_size = F1XH_MPB_MAX_SIZE;
generated by git-patchbot for /home/xen/git/xen.git#stable-4.10

Xen-changelog mailing list
[hidden email]