]> Git Repo - linux.git/commit
x86/mce/amd: Add PPIN support for AMD MCE
authorWei Huang <[email protected]>
Sat, 21 Mar 2020 19:38:00 +0000 (14:38 -0500)
committerBorislav Petkov <[email protected]>
Sun, 22 Mar 2020 10:03:47 +0000 (11:03 +0100)
commit077168e241ec5a3b273652acb1e85f8bc1dc2d81
treed04952d6ceed16ac88321c282374cbdac6314571
parentd8ecca4043f2d9d89daab7915eca8c2ec6254d0f
x86/mce/amd: Add PPIN support for AMD MCE

Newer AMD CPUs support a feature called protected processor
identification number (PPIN). This feature can be detected via
CPUID_Fn80000008_EBX[23].

However, CPUID alone is not enough to read the processor identification
number - MSR_AMD_PPIN_CTL also needs to be configured properly. If, for
any reason, MSR_AMD_PPIN_CTL[PPIN_EN] can not be turned on, such as
disabled in BIOS, the CPU capability bit X86_FEATURE_AMD_PPIN needs to
be cleared.

When the X86_FEATURE_AMD_PPIN capability is available, the
identification number is issued together with the MCE error info in
order to keep track of the source of MCE errors.

 [ bp: Massage. ]

Co-developed-by: Smita Koralahalli Channabasappa <[email protected]>
Signed-off-by: Smita Koralahalli Channabasappa <[email protected]>
Signed-off-by: Wei Huang <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Acked-by: Tony Luck <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
arch/x86/include/asm/cpufeatures.h
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpu/mce/core.c
This page took 0.054356 seconds and 4 git commands to generate.