aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2009-04-28 17:32:56 -0400
committerH. Peter Anvin <hpa@zytor.com>2009-05-28 12:24:13 -0400
commit7856f6cce4a8cda8c1f94b99605c07d16b8d8dec (patch)
tree71415ceae2ffb1ca97ad82027e0a26024cc89b67 /arch/x86
parent45f458e9a8a216b02b76fe61d9e8bc40d659fbe8 (diff)
x86, mce: enable MCE_INTEL for 32bit new MCE
Enable the 64bit MCE_INTEL code (CMCI, thermal interrupts) for 32bit NEW_MCE. Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/Kconfig2
-rw-r--r--arch/x86/include/asm/entry_arch.h4
-rw-r--r--arch/x86/include/asm/hardirq.h2
-rw-r--r--arch/x86/include/asm/irq_vectors.h5
-rw-r--r--arch/x86/kernel/cpu/mcheck/threshold.c2
-rw-r--r--arch/x86/kernel/entry_64.S2
-rw-r--r--arch/x86/kernel/irqinit_32.c4
-rw-r--r--arch/x86/kernel/traps.c2
8 files changed, 16 insertions, 7 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index c1c5ccd1937f..e1c9f77f69ec 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -808,7 +808,7 @@ config X86_NEW_MCE
808config X86_MCE_INTEL 808config X86_MCE_INTEL
809 def_bool y 809 def_bool y
810 prompt "Intel MCE features" 810 prompt "Intel MCE features"
811 depends on X86_64 && X86_MCE && X86_LOCAL_APIC 811 depends on X86_NEW_MCE && X86_LOCAL_APIC
812 ---help--- 812 ---help---
813 Additional support for intel specific MCE features such as 813 Additional support for intel specific MCE features such as
814 the thermal monitor. 814 the thermal monitor.
diff --git a/arch/x86/include/asm/entry_arch.h b/arch/x86/include/asm/entry_arch.h
index 486c9e946f5c..b2eb9c066843 100644
--- a/arch/x86/include/asm/entry_arch.h
+++ b/arch/x86/include/asm/entry_arch.h
@@ -56,4 +56,8 @@ BUILD_INTERRUPT(perf_counter_interrupt, LOCAL_PERF_VECTOR)
56BUILD_INTERRUPT(thermal_interrupt,THERMAL_APIC_VECTOR) 56BUILD_INTERRUPT(thermal_interrupt,THERMAL_APIC_VECTOR)
57#endif 57#endif
58 58
59#ifdef CONFIG_X86_MCE_THRESHOLD
60BUILD_INTERRUPT(threshold_interrupt,THRESHOLD_APIC_VECTOR)
61#endif
62
59#endif 63#endif
diff --git a/arch/x86/include/asm/hardirq.h b/arch/x86/include/asm/hardirq.h
index 37555e52f980..922ee7c29693 100644
--- a/arch/x86/include/asm/hardirq.h
+++ b/arch/x86/include/asm/hardirq.h
@@ -20,7 +20,7 @@ typedef struct {
20#endif 20#endif
21#ifdef CONFIG_X86_MCE 21#ifdef CONFIG_X86_MCE
22 unsigned int irq_thermal_count; 22 unsigned int irq_thermal_count;
23# ifdef CONFIG_X86_64 23# ifdef CONFIG_X86_MCE_THRESHOLD
24 unsigned int irq_threshold_count; 24 unsigned int irq_threshold_count;
25# endif 25# endif
26#endif 26#endif
diff --git a/arch/x86/include/asm/irq_vectors.h b/arch/x86/include/asm/irq_vectors.h
index 3cbd79bbb47c..451e24d18050 100644
--- a/arch/x86/include/asm/irq_vectors.h
+++ b/arch/x86/include/asm/irq_vectors.h
@@ -87,10 +87,11 @@
87#define CALL_FUNCTION_SINGLE_VECTOR 0xfb 87#define CALL_FUNCTION_SINGLE_VECTOR 0xfb
88#define THERMAL_APIC_VECTOR 0xfa 88#define THERMAL_APIC_VECTOR 0xfa
89 89
90#define THRESHOLD_APIC_VECTOR 0xf9
91
90#ifdef CONFIG_X86_32 92#ifdef CONFIG_X86_32
91/* 0xf8 - 0xf9 : free */ 93/* 0xf9 : free */
92#else 94#else
93# define THRESHOLD_APIC_VECTOR 0xf9
94# define UV_BAU_MESSAGE 0xf8 95# define UV_BAU_MESSAGE 0xf8
95#endif 96#endif
96 97
diff --git a/arch/x86/kernel/cpu/mcheck/threshold.c b/arch/x86/kernel/cpu/mcheck/threshold.c
index 23ee9e730f78..d746df2909c9 100644
--- a/arch/x86/kernel/cpu/mcheck/threshold.c
+++ b/arch/x86/kernel/cpu/mcheck/threshold.c
@@ -17,7 +17,7 @@ static void default_threshold_interrupt(void)
17 17
18void (*mce_threshold_vector)(void) = default_threshold_interrupt; 18void (*mce_threshold_vector)(void) = default_threshold_interrupt;
19 19
20asmlinkage void mce_threshold_interrupt(void) 20asmlinkage void smp_threshold_interrupt(void)
21{ 21{
22 exit_idle(); 22 exit_idle();
23 irq_enter(); 23 irq_enter();
diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S
index 63276c45bffa..a31a7f29cffe 100644
--- a/arch/x86/kernel/entry_64.S
+++ b/arch/x86/kernel/entry_64.S
@@ -1007,7 +1007,7 @@ apicinterrupt INVALIDATE_TLB_VECTOR_START+7 \
1007#endif 1007#endif
1008 1008
1009apicinterrupt THRESHOLD_APIC_VECTOR \ 1009apicinterrupt THRESHOLD_APIC_VECTOR \
1010 threshold_interrupt mce_threshold_interrupt 1010 threshold_interrupt smp_threshold_interrupt
1011apicinterrupt THERMAL_APIC_VECTOR \ 1011apicinterrupt THERMAL_APIC_VECTOR \
1012 thermal_interrupt smp_thermal_interrupt 1012 thermal_interrupt smp_thermal_interrupt
1013 1013
diff --git a/arch/x86/kernel/irqinit_32.c b/arch/x86/kernel/irqinit_32.c
index 98846e03211e..2512ad93dabf 100644
--- a/arch/x86/kernel/irqinit_32.c
+++ b/arch/x86/kernel/irqinit_32.c
@@ -186,6 +186,10 @@ void __init native_init_IRQ(void)
186 alloc_intr_gate(THERMAL_APIC_VECTOR, thermal_interrupt); 186 alloc_intr_gate(THERMAL_APIC_VECTOR, thermal_interrupt);
187#endif 187#endif
188 188
189#ifdef CONFIG_X86_MCE_THRESHOLD
190 alloc_intr_gate(THRESHOLD_APIC_VECTOR, threshold_interrupt);
191#endif
192
189 if (!acpi_ioapic) 193 if (!acpi_ioapic)
190 setup_irq(2, &irq2); 194 setup_irq(2, &irq2);
191 195
diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c
index ad771f15bddd..0d358c884b35 100644
--- a/arch/x86/kernel/traps.c
+++ b/arch/x86/kernel/traps.c
@@ -804,7 +804,7 @@ asmlinkage void __attribute__((weak)) smp_thermal_interrupt(void)
804{ 804{
805} 805}
806 806
807asmlinkage void __attribute__((weak)) mce_threshold_interrupt(void) 807asmlinkage void __attribute__((weak)) smp_threshold_interrupt(void)
808{ 808{
809} 809}
810 810