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


Groups > linux.kernel > #1619341 > unrolled thread

[PATCH v1] x86/mce: enable PPIN for Knights Landing/Mill

Started byPiotr Luc <piotr.luc@intel.com>
First post2017-04-08 19:30 +0200
Last post2017-04-10 12:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v1] x86/mce: enable PPIN for Knights Landing/Mill Piotr Luc <piotr.luc@intel.com> - 2017-04-08 19:30 +0200
    Re: [PATCH v1] x86/mce: enable PPIN for Knights Landing/Mill Borislav Petkov <bp@alien8.de> - 2017-04-10 12:40 +0200

#1619341 — [PATCH v1] x86/mce: enable PPIN for Knights Landing/Mill

FromPiotr Luc <piotr.luc@intel.com>
Date2017-04-08 19:30 +0200
Subject[PATCH v1] x86/mce: enable PPIN for Knights Landing/Mill
Message-ID<tu2ls-8cD-7@gated-at.bofh.it>
Intel Xeon Phi processors (KNL and KNM) do support PPIN as well, so we
add their CPUIDs to the whitelist of supported processors.
PPIN is a unique number that allows to determine origin of the CPU,
from now on will be logged when an mce error occur.

Signed-off-by: Piotr Luc <piotr.luc@intel.com>
---
 arch/x86/kernel/cpu/mcheck/mce_intel.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/kernel/cpu/mcheck/mce_intel.c b/arch/x86/kernel/cpu/mcheck/mce_intel.c
index 190b3e6..f1c44c3 100644
--- a/arch/x86/kernel/cpu/mcheck/mce_intel.c
+++ b/arch/x86/kernel/cpu/mcheck/mce_intel.c
@@ -481,6 +481,8 @@ static void intel_ppin_init(struct cpuinfo_x86 *c)
 	case INTEL_FAM6_BROADWELL_XEON_D:
 	case INTEL_FAM6_BROADWELL_X:
 	case INTEL_FAM6_SKYLAKE_X:
+	case INTEL_FAM6_XEON_PHI_KNL:
+	case INTEL_FAM6_XEON_PHI_KNM:
 		if (rdmsrl_safe(MSR_PPIN_CTL, &val))
 			return;
 
-- 
2.10.1

[toc] | [next] | [standalone]


#1619791

FromBorislav Petkov <bp@alien8.de>
Date2017-04-10 12:40 +0200
Message-ID<tuETL-7TH-1@gated-at.bofh.it>
In reply to#1619341
On Sat, Apr 08, 2017 at 07:20:04PM +0200, Piotr Luc wrote:
> Intel Xeon Phi processors (KNL and KNM) do support PPIN as well, so we
> add their CPUIDs to the whitelist of supported processors.
> PPIN is a unique number that allows to determine origin of the CPU,
> from now on will be logged when an mce error occur.
> 
> Signed-off-by: Piotr Luc <piotr.luc@intel.com>
> ---
>  arch/x86/kernel/cpu/mcheck/mce_intel.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/x86/kernel/cpu/mcheck/mce_intel.c b/arch/x86/kernel/cpu/mcheck/mce_intel.c
> index 190b3e6..f1c44c3 100644
> --- a/arch/x86/kernel/cpu/mcheck/mce_intel.c
> +++ b/arch/x86/kernel/cpu/mcheck/mce_intel.c
> @@ -481,6 +481,8 @@ static void intel_ppin_init(struct cpuinfo_x86 *c)
>  	case INTEL_FAM6_BROADWELL_XEON_D:
>  	case INTEL_FAM6_BROADWELL_X:
>  	case INTEL_FAM6_SKYLAKE_X:
> +	case INTEL_FAM6_XEON_PHI_KNL:
> +	case INTEL_FAM6_XEON_PHI_KNM:
>  		if (rdmsrl_safe(MSR_PPIN_CTL, &val))
>  			return;
>  
> -- 

Applied, thanks.

-- 
Regards/Gruss,
    Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web