x86/mce/AMD: Fix logic to obtain block address
authorAravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
Mon, 7 Mar 2016 13:02:19 +0000 (14:02 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 8 Mar 2016 10:48:14 +0000 (11:48 +0100)
commit8dd1e17a55b0bb1206c71c7a4344c5e3037cdf65
tree965582ba90770e01a42f051b2af5351b1ae95911
parentbe0aec23bf4624fd55650629fe8df20483487049
x86/mce/AMD: Fix logic to obtain block address

In upcoming processors, the BLKPTR field is no longer used to indicate
the MSR number of the additional register. Insted, it simply indicates
the prescence of additional MSRs.

Fix the logic here to gather MSR address from MSR_AMD64_SMCA_MCx_MISC()
for newer processors and fall back to existing logic for older
processors.

[ Drop nextaddr_out label; style cleanups. ]
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
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/1457021458-2522-4-git-send-email-Aravind.Gopalakrishnan@amd.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/mce.h
arch/x86/kernel/cpu/mcheck/mce_amd.c