Skip to content

Commit

Permalink
x86/mce, EDAC/mce_amd: Print PPIN in machine check records
Browse files Browse the repository at this point in the history
Print the Protected Processor Identification Number (PPIN) on processors
which support it.

 [ bp: Massage. ]

Signed-off-by: Smita Koralahalli <Smita.KoralahalliChannabasappa@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200623130059.8870-1-Smita.KoralahalliChannabasappa@amd.com
  • Loading branch information
Smita Koralahalli authored and Borislav Petkov committed Jun 23, 2020
1 parent 5ba7821 commit bb2de0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/kernel/cpu/mce/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ static void __print_mce(struct mce *m)
pr_cont("ADDR %llx ", m->addr);
if (m->misc)
pr_cont("MISC %llx ", m->misc);
if (m->ppin)
pr_cont("PPIN %llx ", m->ppin);

if (mce_flags.smca) {
if (m->synd)
Expand Down
3 changes: 3 additions & 0 deletions drivers/edac/mce_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,9 @@ amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data)
if (m->status & MCI_STATUS_ADDRV)
pr_emerg(HW_ERR "Error Addr: 0x%016llx\n", m->addr);

if (m->ppin)
pr_emerg(HW_ERR "PPIN: 0x%016llx\n", m->ppin);

if (boot_cpu_has(X86_FEATURE_SMCA)) {
pr_emerg(HW_ERR "IPID: 0x%016llx", m->ipid);

Expand Down

0 comments on commit bb2de0a

Please sign in to comment.