WSL2-Linux-Kernel/arch
Yazen Ghannam 360ecf5186 x86/mce/AMD: Get address from already initialized block
commit 27bd595027 upstream.

The block address is saved after the block is initialized when
threshold_init_device() is called.

Use the saved block address, if available, rather than trying to
rediscover it.

This will avoid a call trace, when resuming from suspend, due to the
rdmsr_safe_on_cpu() call in get_block_address(). The rdmsr_safe_on_cpu()
call issues an IPI but we're running with interrupts disabled. This
triggers:

    WARNING: CPU: 0 PID: 11523 at kernel/smp.c:291 smp_call_function_single+0xdc/0xe0

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: <stable@vger.kernel.org> # 4.14.x
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20180221101900.10326-8-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-19 08:56:20 +02:00
..
alpha vgacon: Set VGA struct resource types 2018-03-24 11:01:25 +01:00
arc
arm ARM: dts: ls1021a: add "fsl,ls1021a-esdhc" compatible string to esdhc node 2018-04-12 12:32:11 +02:00
arm64 crypto: arm64/aes-ce-cipher - move assembler code to .S file 2018-04-12 12:32:21 +02:00
blackfin
c6x
cris
frv
h8300 h8300: remove extraneous __BIG_ENDIAN definition 2018-03-28 18:24:38 +02:00
hexagon
ia64 ia64, sched/cputime: Fix build error if CONFIG_VIRT_CPU_ACCOUNTING_NATIVE=y 2018-03-03 10:24:35 +01:00
m32r m32r: fix endianness constraints 2018-02-28 10:19:44 +01:00
m68k
metag
microblaze microblaze: fix endian handling 2018-02-28 10:19:45 +01:00
mips MIPS: lantiq: ase: Enable MFD_SYSCON 2018-03-28 18:24:28 +02:00
mn10300
nios2
openrisc
parisc parisc: Fix HPMC handler by increasing size to multiple of 16 bytes 2018-04-19 08:56:16 +02:00
powerpc KVM: PPC: Book3S HV: trace_tlbie must not be called in realmode 2018-04-19 08:56:17 +02:00
s390 s390/ipl: ensure loadparm valid flag is set 2018-04-19 08:56:19 +02:00
score
sh SolutionEngine771x: fix Ether platform data 2018-03-03 10:24:36 +01:00
sparc
tile
um
unicore32
x86 x86/mce/AMD: Get address from already initialized block 2018-04-19 08:56:20 +02:00
xtensa
.gitignore
Kconfig