From: John Allen <john.allen@amd.com>
To: bp@alien8.de, linux-kernel@vger.kernel.org
Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org
Subject: [PATCH] x86/microcode/AMD: Increase microcode PATCH_MAX_SIZE
Date: Thu, 9 Apr 2020 10:34:29 -0500 [thread overview]
Message-ID: <20200409152931.GA685273@mojo.amd.com> (raw)
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);
next reply other threads:[~2020-04-09 15:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-09 15:34 John Allen [this message]
2020-04-14 15:46 ` [tip: x86/urgent] x86/microcode/AMD: Increase microcode PATCH_MAX_SIZE 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200409152931.GA685273@mojo.amd.com \
--to=john.allen@amd.com \
--cc=bp@alien8.de \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).