android_kernel_samsung_a7y1.../arch/x86
Prarit Bhargava 4095b43ef5 x86/microcode: Make sure boot_cpu_data.microcode is up-to-date
commit 370a132bb2227ff76278f98370e0e701d86ff752 upstream.

When preparing an MCE record for logging, boot_cpu_data.microcode is used
to read out the microcode revision on the box.

However, on systems where late microcode update has happened, the microcode
revision output in a MCE log record is wrong because
boot_cpu_data.microcode is not updated when the microcode gets updated.

But, the microcode revision saved in boot_cpu_data's microcode member
should be kept up-to-date, regardless, for consistency.

Make it so.

Fixes: fa94d0c6e0f3 ("x86/MCE: Save microcode revision in machine check records")
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: sironi@amazon.de
Link: http://lkml.kernel.org/r/20180731112739.32338-1-prarit@redhat.com
[bwh: Backported to 4.4: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-06 16:50:23 +02:00
..
boot x86/build: Specify elf_i386 linker emulation explicitly for i386 objects 2020-04-06 14:56:37 +02:00
configs A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crypto crypto: x86/poly1305 - fix overflow during partial reduction 2020-04-06 15:51:38 +02:00
entry x86/vdso: Pass --eh-frame-hdr to the linker 2020-04-06 16:49:35 +02:00
ia32 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
include x86/speculation: Remove SPECTRE_V2_IBRS in enum spectre_v2_mitigation 2020-04-06 16:50:20 +02:00
kernel x86/microcode: Make sure boot_cpu_data.microcode is up-to-date 2020-04-06 16:50:23 +02:00
kvm x86/bugs: Add AMD's SPEC_CTRL MSR usage 2020-04-06 16:50:10 +02:00
lguest A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lib A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
math-emu A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mm A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
net A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
oprofile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
platform A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
power A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
purgatory A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ras A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
realmode x86/build: Specify elf_i386 linker emulation explicitly for i386 objects 2020-04-06 14:56:37 +02:00
tools A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
um A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
video A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kbuild A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig x86/smp: Enforce CONFIG_HOTPLUG_CPU when SMP=y 2020-04-06 13:01:35 +02:00
Kconfig.cpu A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig.debug A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile_32.cpu A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile.um A750FXXU4CTBC 2020-03-27 21:51:54 +05:30