Skip to content

Commit 5b1586a

Browse files
ashok-rajbp3tk0v
authored andcommitted
x86/microcode/intel: Do not print microcode revision and processor flags
collect_cpu_info() is used to collect the current microcode revision and processor flags on every CPU. It had a weird mechanism to try to mimick a "once" functionality in the sense that, that information should be issued only when it is differing from the previous CPU. However (1): the new calling sequence started doing that in parallel: microcode_init() |-> schedule_on_each_cpu(setup_online_cpu) |-> collect_cpu_info() resulting in multiple redundant prints: microcode: sig=0x50654, pf=0x80, revision=0x2006e05 microcode: sig=0x50654, pf=0x80, revision=0x2006e05 microcode: sig=0x50654, pf=0x80, revision=0x2006e05 However (2): dumping this here is not that important because the kernel does not support mixed silicon steppings microcode. Finally! Besides, there is already a pr_info() in microcode_reload_late() that shows both the old and new revisions. What is more, the CPU signature (sig=0x50654) and Processor Flags (pf=0x80) above aren't that useful to the end user, they are available via /proc/cpuinfo and they don't change anyway. Remove the redundant pr_info(). [ bp: Heavily massage. ] Fixes: b6f8668 ("x86/microcode: Rip out the subsys interface gunk") Reported-by: Tony Luck <[email protected]> Signed-off-by: Ashok Raj <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 0926534 commit 5b1586a

File tree

1 file changed

+0
-8
lines changed
  • arch/x86/kernel/cpu/microcode

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,6 @@ void reload_ucode_intel(void)
554554

555555
static int collect_cpu_info(int cpu_num, struct cpu_signature *csig)
556556
{
557-
static struct cpu_signature prev;
558557
struct cpuinfo_x86 *c = &cpu_data(cpu_num);
559558
unsigned int val[2];
560559

@@ -570,13 +569,6 @@ static int collect_cpu_info(int cpu_num, struct cpu_signature *csig)
570569

571570
csig->rev = c->microcode;
572571

573-
/* No extra locking on prev, races are harmless. */
574-
if (csig->sig != prev.sig || csig->pf != prev.pf || csig->rev != prev.rev) {
575-
pr_info("sig=0x%x, pf=0x%x, revision=0x%x\n",
576-
csig->sig, csig->pf, csig->rev);
577-
prev = *csig;
578-
}
579-
580572
return 0;
581573
}
582574

0 commit comments

Comments
 (0)