Skip to content

Commit bb2de0a

Browse files
skoralahsuryasaimadhu
authored andcommitted
x86/mce, EDAC/mce_amd: Print PPIN in machine check records
Print the Protected Processor Identification Number (PPIN) on processors which support it. [ bp: Massage. ] Signed-off-by: Smita Koralahalli <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 5ba7821 commit bb2de0a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

arch/x86/kernel/cpu/mce/core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ static void __print_mce(struct mce *m)
244244
pr_cont("ADDR %llx ", m->addr);
245245
if (m->misc)
246246
pr_cont("MISC %llx ", m->misc);
247+
if (m->ppin)
248+
pr_cont("PPIN %llx ", m->ppin);
247249

248250
if (mce_flags.smca) {
249251
if (m->synd)

drivers/edac/mce_amd.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,9 @@ amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data)
10941094
if (m->status & MCI_STATUS_ADDRV)
10951095
pr_emerg(HW_ERR "Error Addr: 0x%016llx\n", m->addr);
10961096

1097+
if (m->ppin)
1098+
pr_emerg(HW_ERR "PPIN: 0x%016llx\n", m->ppin);
1099+
10971100
if (boot_cpu_has(X86_FEATURE_SMCA)) {
10981101
pr_emerg(HW_ERR "IPID: 0x%016llx", m->ipid);
10991102

0 commit comments

Comments
 (0)