Skip to content

Commit 6eab3ab

Browse files
ashok-rajbp3tk0v
authored andcommitted
x86/microcode: Adjust late loading result reporting message
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: 9bd6812 ("x86/microcode: Announce reload operation's completion") Suggested-by: Thomas Gleixner <[email protected]> Signed-off-by: Ashok Raj <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Tony Luck <[email protected]> Link: https://lore.kernel.org/lkml/874judpqqd.ffs@tglx/
1 parent c0dd924 commit 6eab3ab

File tree

1 file changed

+7
-4
lines changed
  • arch/x86/kernel/cpu/microcode

1 file changed

+7
-4
lines changed

arch/x86/kernel/cpu/microcode/core.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,11 +453,14 @@ static int microcode_reload_late(void)
453453
store_cpu_caps(&prev_info);
454454

455455
ret = stop_machine_cpuslocked(__reload_late, NULL, cpu_online_mask);
456-
if (ret == 0)
456+
if (!ret) {
457+
pr_info("Reload succeeded, microcode revision: 0x%x -> 0x%x\n",
458+
old, boot_cpu_data.microcode);
457459
microcode_check(&prev_info);
458-
459-
pr_info("Reload completed, microcode revision: 0x%x -> 0x%x\n",
460-
old, boot_cpu_data.microcode);
460+
} else {
461+
pr_info("Reload failed, current microcode revision: 0x%x\n",
462+
boot_cpu_data.microcode);
463+
}
461464

462465
return ret;
463466
}

0 commit comments

Comments
 (0)