[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180601121939.GA23298@nazgul.tnic>
Date: Fri, 1 Jun 2018 14:19:39 +0200
From: Borislav Petkov <bp@...en8.de>
To: Filippo Sironi <sironi@...zon.de>
Cc: tony.luck@...el.com, linux-edac@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] x86/MCE: Get microcode revision from cpu_info instead of
boot_cpu_data
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.
--
Powered by blists - more mailing lists