Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1524932

[PATCH 2/2] mcelog: Print the PPIN in machine check records when it is available

From "Luck, Tony" <tony.luck@intel.com>
Newsgroups linux.kernel
Subject [PATCH 2/2] mcelog: Print the PPIN in machine check records when it is available
Date 2016-11-18 01:40 +0100
Message-ID <sEFnH-84w-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


From: Tony Luck <tony.luck@intel.com>

Intel Xeons from Ivy Bridge onwards support a processor identification
number. Kernels v4.9 and higher include it in the "mce" record.

Signed-off-by: Tony Luck <tony.luck@intel.com>
---
 mcelog.c | 3 +++
 mcelog.h | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/mcelog.c b/mcelog.c
index 7214a0d23f65..e79996db9b5b 100644
--- a/mcelog.c
+++ b/mcelog.c
@@ -441,6 +441,9 @@ static void dump_mce(struct mce *m, unsigned recordlen)
 	if (n > 0)
 		Wprintf("\n");
 
+	if (recordlen >= offsetof(struct mce, ppin) && m->ppin)
+		n += Wprintf("PPIN %llx\n", m->ppin);
+
 	if (recordlen >= offsetof(struct mce, cpuid) && m->cpuid) {
 		u32 fam, mod;
 		parse_cpuid(m->cpuid, &fam, &mod);
diff --git a/mcelog.h b/mcelog.h
index 254b3a092fba..9a54077e5474 100644
--- a/mcelog.h
+++ b/mcelog.h
@@ -31,6 +31,9 @@ struct mce {
 	__u32 socketid;	/* CPU socket ID */
 	__u32 apicid;	/* CPU initial apic ID */
 	__u64 mcgcap;	/* MCGCAP MSR: machine check capabilities of CPU */
+	__u64 synd;	/* MCA_SYND MSR: only valid on SMCA systems */
+	__u64 ipid;	/* MCA_IPID MSR: only valid on SMCA systems */
+	__u64 ppin;	/* Protected Processor Inventory Number */
 };
 
 #define X86_VENDOR_INTEL	0
-- 
2.7.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 2/2] mcelog: Print the PPIN in machine check records when it is available "Luck, Tony" <tony.luck@intel.com> - 2016-11-18 01:40 +0100
  [PATCH 1/2] x86/mce: Include the PPIN in machine check records when it is available "Luck, Tony" <tony.luck@intel.com> - 2016-11-18 01:40 +0100
    Re: [PATCH 1/2] x86/mce: Include the PPIN in machine check records  when it is available Borislav Petkov <bp@suse.de> - 2016-11-18 14:10 +0100
      Re: [PATCH 1/2] x86/mce: Include the PPIN in machine check records  when it is available "Luck, Tony" <tony.luck@intel.com> - 2016-11-18 17:50 +0100
      Re: [PATCH 1/2] x86/mce: Include the PPIN in machine check records when it is available Andi Kleen <andi@firstfloor.org> - 2016-11-18 18:10 +0100
        Re: [PATCH 1/2] x86/mce: Include the PPIN in machine check records  when it is available Borislav Petkov <bp@suse.de> - 2016-11-18 18:50 +0100
        [PATCH v2] x86/mce: Include the PPIN in machine check records when it is available "Luck, Tony" <tony.luck@intel.com> - 2016-11-18 18:50 +0100
          Re: [PATCH v2] x86/mce: Include the PPIN in machine check records  when it is available Borislav Petkov <bp@suse.de> - 2016-11-23 12:50 +0100
            Re: [PATCH v2] x86/mce: Include the PPIN in machine check records  when it is available Henrique de Moraes Holschuh <hmh@hmh.eng.br> - 2016-11-23 14:40 +0100
              Re: [PATCH v2] x86/mce: Include the PPIN in machine check records  when it is available Borislav Petkov <bp@suse.de> - 2016-11-23 14:40 +0100
                Re: [PATCH v2] x86/mce: Include the PPIN in machine check records  when it is available Borislav Petkov <bp@suse.de> - 2016-11-23 16:00 +0100
                Re: [PATCH v2] x86/mce: Include the PPIN in machine check records when it is available Tony Luck <tony.luck@gmail.com> - 2016-11-23 17:50 +0100
                Re: [PATCH v2] x86/mce: Include the PPIN in machine check records  when it is available Borislav Petkov <bp@suse.de> - 2016-11-23 18:00 +0100
                Re: [PATCH v2] x86/mce: Include the PPIN in machine check records  when it is available Henrique de Moraes Holschuh <hmh@hmh.eng.br> - 2016-11-23 18:30 +0100
                Re: [PATCH v2] x86/mce: Include the PPIN in machine check records when it is available Tony Luck <tony.luck@gmail.com> - 2016-11-23 22:00 +0100
                Re: [PATCH v2] x86/mce: Include the PPIN in machine check records  when it is available Henrique de Moraes Holschuh <hmh@hmh.eng.br> - 2016-11-24 12:30 +0100
            [tip:ras/core] x86/mce: Include the PPIN in MCE records when  available tip-bot for Tony Luck <tipbot@zytor.com> - 2016-11-23 17:00 +0100

csiph-web