[rh7] x86/microcode/intel: hide warning on high order allocation for microcode area

Submitted by Konstantin Khorenko on July 20, 2018, 10:59 a.m.


Message ID 20180720105917.28050-1-khorenko@virtuozzo.com
State New
Series "x86/microcode/intel: hide warning on high order allocation for microcode area"
Headers show

Commit Message

Konstantin Khorenko July 20, 2018, 10:59 a.m.
Microcode blob can require a page of 3rd order and loading microcode
data is done using "wrmsr" asm instruction, so we cannot substitute
kmalloc() with kvmalloc() here.

Let's just hide the warning for this scenario, microcode update is a
rare operation anyway.


Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>
 arch/x86/kernel/cpu/microcode/intel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/arch/x86/kernel/cpu/microcode/intel.c b/arch/x86/kernel/cpu/microcode/intel.c
index d256424d710d..0b3e769e35db 100644
--- a/arch/x86/kernel/cpu/microcode/intel.c
+++ b/arch/x86/kernel/cpu/microcode/intel.c
@@ -216,7 +216,7 @@  save_microcode(struct mc_saved_data *mcs,
 		mc_hdr = &mc->hdr;
 		size   = get_totalsize(mc_hdr);
-		saved_ptr[i] = kmemdup(mc, size, GFP_KERNEL);
+		saved_ptr[i] = kmemdup(mc, size, GFP_KERNEL | __GFP_NOWARN);
 		if (!saved_ptr[i]) {
 			ret = -ENOMEM;
 			goto err;