|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 6/5] x86/nmi: Support watchdogs on Intel Fam18/19 CPUs
It is the Pentium 4 (Fam15) which is the odd-one-out. The counter indicies
used in the P6 went on to be declared architectural, and Fam18/19 continue
using the architectural indices.
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
CC: Jan Beulich <jbeulich@xxxxxxxx>
CC: Roger Pau Monné <roger@xxxxxxxxxxxxxx>
CC: Teddy Astie <teddy.astie@xxxxxxxxxx>
This wants backporting to 4.21. So does "Check MSR_MISC_ENABLE for all Intel
platforms" on which it texturally depends.
---
xen/arch/x86/nmi.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/xen/arch/x86/nmi.c b/xen/arch/x86/nmi.c
index b3d18270b13a..0a03ef68b586 100644
--- a/xen/arch/x86/nmi.c
+++ b/xen/arch/x86/nmi.c
@@ -329,17 +329,12 @@ void setup_apic_nmi_watchdog(void)
break;
}
- switch ( boot_cpu_data.family )
- {
- case 6:
+ if ( boot_cpu_data.family == 15 )
+ setup_p4_watchdog(misc);
+ else
setup_p6_watchdog((boot_cpu_data.model < 14)
? P6_EVENT_CPU_CLOCKS_NOT_HALTED
: CORE_EVENT_CPU_CLOCKS_NOT_HALTED);
- break;
- case 15:
- setup_p4_watchdog(misc);
- break;
- }
break;
}
--
2.39.5
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |