linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86/microcode/AMD: Increase microcode PATCH_MAX_SIZE
@ 2020-04-09 15:34 John Allen
  2020-04-14 15:46 ` [tip: x86/urgent] " tip-bot2 for John Allen
  0 siblings, 1 reply; 8+ messages in thread
From: John Allen @ 2020-04-09 15:34 UTC (permalink / raw)
  To: bp, linux-kernel; +Cc: tglx, mingo, hpa, x86


Future AMD cpus will have microcode patches that exceed the default 4K
page size.

Signed-off-by: John Allen <john.allen@amd.com>
Cc: stable@vger.kernel.org
---
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);

^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH] x86/microcode/AMD: Increase microcode PATCH_MAX_SIZE
@ 2023-07-20 20:28 John Allen
  2023-07-21  4:47 ` Jiri Slaby
  2023-07-21 15:49 ` Borislav Petkov
  0 siblings, 2 replies; 8+ messages in thread
From: John Allen @ 2023-07-20 20:28 UTC (permalink / raw)
  To: bp, linux-kernel; +Cc: tglx, mingo, hpa, x86, John Allen, stable

Future AMD cpus will have microcode patches that exceed the current
limit of three 4K pages. Increase substantially to avoid future size
increases.

Signed-off-by: John Allen <john.allen@amd.com>
Cc: stable@vger.kernel.org
---
 arch/x86/include/asm/microcode_amd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/microcode_amd.h b/arch/x86/include/asm/microcode_amd.h
index e6662adf3af4..e3d5f5ae2f46 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[];
 };
 
-#define PATCH_MAX_SIZE (3 * PAGE_SIZE)
+#define PATCH_MAX_SIZE (8 * PAGE_SIZE)
 
 #ifdef CONFIG_MICROCODE_AMD
 extern void __init load_ucode_amd_bsp(unsigned int family);
-- 
2.39.3


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-07-22  7:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-09 15:34 [PATCH] x86/microcode/AMD: Increase microcode PATCH_MAX_SIZE John Allen
2020-04-14 15:46 ` [tip: x86/urgent] " tip-bot2 for John Allen
2023-07-20 20:28 [PATCH] " John Allen
2023-07-21  4:47 ` Jiri Slaby
2023-07-21  7:38   ` Borislav Petkov
2023-07-21 15:49 ` Borislav Petkov
2023-07-21 16:42   ` John Allen
2023-07-22  7:28     ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).