Skip to content

Commit bdf89df

Browse files
jallen-amdsuryasaimadhu
authored andcommitted
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 <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Cc: [email protected] # v4.14.. Link: https://lkml.kernel.org/r/[email protected]
1 parent b296695 commit bdf89df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/include/asm/microcode_amd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ struct microcode_amd {
4141
unsigned int mpb[0];
4242
};
4343

44-
#define PATCH_MAX_SIZE PAGE_SIZE
44+
#define PATCH_MAX_SIZE (3 * PAGE_SIZE)
4545

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

0 commit comments

Comments
 (0)