]> git.baikalelectronics.ru Git - kernel.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)
commitbe8f418393c7bea9743fddd004b151b22de6629c
tree3ec4ee771f874daac8b1519b117f156049a29f89
parent1c79ed288d6faee6ae9a2d51478c8cc568348112
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