linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] x86/MCE: Get microcode revision from cpu_info instead of boot_cpu_data
@ 2018-06-01 12:19 Borislav Petkov
  2018-07-31 11:27 ` [PATCH v2] arch/x86: Fix boot_cpu_data.microcode version output Prarit Bhargava
  0 siblings, 1 reply; 13+ messages in thread
From: Borislav Petkov @ 2018-06-01 12:19 UTC (permalink / raw)
  To: Filippo Sironi; +Cc: tony.luck, linux-edac, linux-kernel

On Fri, Jun 01, 2018 at 01:30:26PM +0200, Filippo Sironi wrote:
> Commit fa94d0c6e0f3 ("x86/MCE: Save microcode revision in machine check
> records") extended MCE entries to report the microcode revision taken
> from boot_cpu_data. Unfortunately, boot_cpu_data isn't updated on late
> microcode loading,

Actually, I'd prefer if we fixed *that* instead by adding:

	/* Update boot_cpu_data's revision too, if we're on the BSP: */
	if (c->cpu_index == boot_cpu_data.cpu_index)
		boot_cpu_data.microcode = <new rev>;

to the end of ->apply_microcode() functions so that boot_cpu_data has
the correct revision too, in case something else queries it.

Thx.

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.
--

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-08-01 16:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <<20180731112739.32338-1-prarit@redhat.com>
2018-08-01  6:38 ` [PATCH v2] arch/x86: Fix boot_cpu_data.microcode version output Oleksandr Natalenko
2018-08-01 11:38   ` Prarit Bhargava
2018-08-01 14:16     ` Oleksandr Natalenko
2018-08-01 15:29       ` Borislav Petkov
2018-08-01 15:59         ` Luck, Tony
2018-08-01 16:01           ` Oleksandr Natalenko
2018-08-01 16:14             ` Boris Petkov
2018-06-01 12:19 [PATCH] x86/MCE: Get microcode revision from cpu_info instead of boot_cpu_data Borislav Petkov
2018-07-31 11:27 ` [PATCH v2] arch/x86: Fix boot_cpu_data.microcode version output Prarit Bhargava
2018-07-31 11:46   ` Sironi, Filippo
2018-07-31 13:00     ` Borislav Petkov
2018-07-31 15:31       ` Sironi, Filippo
2018-08-01 15:43   ` Borislav Petkov
2018-08-01 15:55     ` Prarit Bhargava

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).