]> git.karo-electronics.de Git - linux-beck.git/commit
x86/mce: Include the PPIN in MCE records when available
authorTony Luck <tony.luck@intel.com>
Fri, 18 Nov 2016 17:48:36 +0000 (09:48 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 23 Nov 2016 15:51:52 +0000 (16:51 +0100)
commit3f5a7896a5096fd50030a04d4c3f28a7441e30a5
tree3ec4ee771f874daac8b1519b117f156049a29f89
parentf5382de9d4b1d67cc858c49fa6077720621576ea
x86/mce: Include the PPIN in MCE records when available

Intel Xeons from Ivy Bridge onwards support a processor identification
number set in the factory. To the user this is a handy unique number to
identify a particular CPU. Intel can decode this to the fab/production
run to track errors. On systems that have it, include it in the machine
check record. I'm told that this would be helpful for users that run
large data centers with multi-socket servers to keep track of which CPUs
are seeing errors.

Boris:
* Add some clarifying comments and spacing.
* Mask out [63:2] in the disabled-but-not-locked case
* Call the MSR variable "val" for more readability.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Cc: Ashok Raj <ashok.raj@intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: x86-ml <x86@kernel.org>
Link: http://lkml.kernel.org/r/20161123114855.njguoaygp3qnbkia@pd.tnic
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/cpufeatures.h
arch/x86/include/asm/msr-index.h
arch/x86/include/uapi/asm/mce.h
arch/x86/kernel/cpu/mcheck/mce.c
arch/x86/kernel/cpu/mcheck/mce_intel.c