Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/microcode/AMD: Increase microcode PATCH_MAX_SIZE

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

authored by

John Allen and committed by
Borislav Petkov
bdf89df3 b2966952

+1 -1
+1 -1
arch/x86/include/asm/microcode_amd.h
··· 41 41 unsigned int mpb[0]; 42 42 }; 43 43 44 - #define PATCH_MAX_SIZE PAGE_SIZE 44 + #define PATCH_MAX_SIZE (3 * PAGE_SIZE) 45 45 46 46 #ifdef CONFIG_MICROCODE_AMD 47 47 extern void __init load_ucode_amd_bsp(unsigned int family);