Skip to content

Commit

Permalink
x86/microcode/AMD: Increase microcode PATCH_MAX_SIZE
Browse files Browse the repository at this point in the history
commit bdf89df upstream.

Future AMD CPUs will have microcode patches that exceed the default 4K
patch size. Raise our limit.

Signed-off-by: John Allen <john.allen@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: stable@vger.kernel.org # v4.14..
Link: https://lkml.kernel.org/r/20200409152931.GA685273@mojo.amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
John Allen authored and Greg Kroah-Hartman committed Apr 21, 2020
1 parent 856a74f commit b538aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/include/asm/microcode_amd.h
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ struct microcode_amd {
unsigned int mpb[0];
};

#define PATCH_MAX_SIZE PAGE_SIZE
#define PATCH_MAX_SIZE (3 * PAGE_SIZE)

#ifdef CONFIG_MICROCODE_AMD
extern void __init load_ucode_amd_bsp(unsigned int family);

0 comments on commit b538aac

Please sign in to comment.