summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJohn Allen <john.allen@amd.com>2020-04-09 10:34:29 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-24 08:00:58 +0200
commitfdb1ccf027ecf6a10b8704ec1e546cff0b10a57d (patch)
tree8c7f8260ac9adc592fc91783c93978805425a756 /arch
parent4d7e37a4040e1189e721e805180e093848510b09 (diff)
downloadlinux-stable-fdb1ccf027ecf6a10b8704ec1e546cff0b10a57d.tar.gz
linux-stable-fdb1ccf027ecf6a10b8704ec1e546cff0b10a57d.tar.bz2
linux-stable-fdb1ccf027ecf6a10b8704ec1e546cff0b10a57d.zip
x86/microcode/AMD: Increase microcode PATCH_MAX_SIZE
commit bdf89df3c54518eed879d8fac7577fcfb220c67e 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>
Diffstat (limited to 'arch')
-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 209492849566..5c524d4f71cd 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);