x86/mce/AMD: Collect error info even if valid bits are not set
authorBorislav Petkov <bp@suse.de>
Wed, 21 Feb 2018 10:18:56 +0000 (11:18 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 21 Feb 2018 16:00:54 +0000 (17:00 +0100)
commit4b1e84276a6172980c5bf39aa091ba13e90d6dad
tree32c103a79a5ac99c9d2c1fa00e76993599736e47
parentb2fbf6f282147b42d669a4bd4a7b1de2e2d6a792
x86/mce/AMD: Collect error info even if valid bits are not set

The MCA banks log error info into MCA_ADDR, MCA_MISC0, and MCA_SYND even
if the corresponding valid bits are not set:

"Error handlers should save the values in MCA_ADDR, MCA_MISC0,
and MCA_SYND even if MCA_STATUS[AddrV], MCA_STATUS[MiscV], and
MCA_STATUS[SyndV] are zero."

Do so by setting those bits so that code down the MCE processing path
doesn't need to be changed.

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/20180221101900.10326-5-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/mcheck/mce.c