[tip:x86/amd-nb] x86, nmi: Support NMI watchdog on newer AMD CPU families

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: tip-bot for Andreas Herrmann
Date: Monday, October 4, 2010 - 1:25 pm

Commit-ID:  420b13b60a3e5c5dcc6ec290e131cf5fbc603d94
Gitweb:     http://git.kernel.org/tip/420b13b60a3e5c5dcc6ec290e131cf5fbc603d94
Author:     Andreas Herrmann <andreas.herrmann3@amd.com>
AuthorDate: Thu, 30 Sep 2010 14:33:58 +0200
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Fri, 1 Oct 2010 16:18:32 -0700

x86, nmi: Support NMI watchdog on newer AMD CPU families

CPU families 0x12, 0x14 and 0x15 support this functionality.

Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
LKML-Reference: <20100930123357.GC20545@loge.amd.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
 arch/x86/kernel/cpu/perfctr-watchdog.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/arch/x86/kernel/cpu/perfctr-watchdog.c b/arch/x86/kernel/cpu/perfctr-watchdog.c
index fb329e9..d9f4ff8 100644
--- a/arch/x86/kernel/cpu/perfctr-watchdog.c
+++ b/arch/x86/kernel/cpu/perfctr-watchdog.c
@@ -700,11 +700,10 @@ static void probe_nmi_watchdog(void)
 {
 	switch (boot_cpu_data.x86_vendor) {
 	case X86_VENDOR_AMD:
-		if (boot_cpu_data.x86 != 6 && boot_cpu_data.x86 != 15 &&
-		    boot_cpu_data.x86 != 16 && boot_cpu_data.x86 != 17)
-			return;
-		wd_ops = &k7_wd_ops;
-		break;
+		if (boot_cpu_data.x86 == 6 ||
+		    (boot_cpu_data.x86 >= 0xf && boot_cpu_data.x86 <= 0x15))
+			wd_ops = &k7_wd_ops;
+		return;
 	case X86_VENDOR_INTEL:
 		/* Work around where perfctr1 doesn't have a working enable
 		 * bit as described in the following errata:
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/6] x86, mtrr: Assume SYS_CFG[Tom2ForceMemTypeWB] ..., Andreas Herrmann, (Thu Sep 30, 5:32 am)
[tip:x86/amd-nb] x86, mtrr: Assume SYS_CFG[Tom2ForceMemTyp ..., tip-bot for Andreas ..., (Mon Oct 4, 1:25 pm)
[tip:x86/amd-nb] x86, nmi: Support NMI watchdog on newer A ..., tip-bot for Andreas ..., (Mon Oct 4, 1:25 pm)
[tip:x86/amd-nb] x86, amd: Add support for CPUID topology ..., tip-bot for Andreas ..., (Mon Oct 4, 1:26 pm)
[tip:x86/amd-nb] x86, amd: Extract compute unit informatio ..., tip-bot for Andreas ..., (Mon Oct 4, 1:26 pm)
[tip:x86/amd-nb] x86, amd: Use compute unit information to ..., tip-bot for Andreas ..., (Mon Oct 4, 1:26 pm)
[tip:x86/amd-nb] x86, amd_nb: Enable GART support for AMD ..., tip-bot for Andreas ..., (Mon Oct 4, 1:27 pm)