summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorJohn Allen <john.allen@amd.com>2020-04-09 17:34:29 +0200
committerBorislav Petkov <bp@suse.de>2020-04-14 17:34:46 +0200
commitbdf89df3c54518eed879d8fac7577fcfb220c67e (patch)
tree87902cf8bd1464880ae7bf01006d6b87d8b9861b /arch/x86
parentobjtool: Make BP scratch register warning more robust (diff)
downloadlinux-bdf89df3c54518eed879d8fac7577fcfb220c67e.tar.xz
linux-bdf89df3c54518eed879d8fac7577fcfb220c67e.zip
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
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/include/asm/microcode_amd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/microcode_amd.h b/arch/x86/include/asm/microcode_amd.h
index 6685e1218959..7063b5a43220 100644
--- a/arch/x86/include/asm/microcode_amd.h
+++ b/arch/x86/include/asm/microcode_amd.h
@@ -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);