x86/microcode: Adjust late loading result reporting message
[ Upstream commit6eab3abac7
] During late microcode loading, the "Reload completed" message is issued unconditionally, regardless of success or failure. Adjust the message to report the result of the update. [ bp: Massage. ] Fixes:9bd681251b
("x86/microcode: Announce reload operation's completion") Suggested-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ashok Raj <ashok.raj@intel.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Tony Luck <tony.luck@intel.com> Link: https://lore.kernel.org/lkml/874judpqqd.ffs@tglx/ Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
36b6fc8334
commit
55a7f88059
@ -521,11 +521,14 @@ static int microcode_reload_late(void)
|
|||||||
store_cpu_caps(&prev_info);
|
store_cpu_caps(&prev_info);
|
||||||
|
|
||||||
ret = stop_machine_cpuslocked(__reload_late, NULL, cpu_online_mask);
|
ret = stop_machine_cpuslocked(__reload_late, NULL, cpu_online_mask);
|
||||||
if (ret == 0)
|
if (!ret) {
|
||||||
|
pr_info("Reload succeeded, microcode revision: 0x%x -> 0x%x\n",
|
||||||
|
old, boot_cpu_data.microcode);
|
||||||
microcode_check(&prev_info);
|
microcode_check(&prev_info);
|
||||||
|
} else {
|
||||||
pr_info("Reload completed, microcode revision: 0x%x -> 0x%x\n",
|
pr_info("Reload failed, current microcode revision: 0x%x\n",
|
||||||
old, boot_cpu_data.microcode);
|
boot_cpu_data.microcode);
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user