MCA support for Intel64
RFC PATCH 2/2 MCA support for Intel64
Hi,
This is a linux/x86_64 part patch.
Signed-off-by Kazuhiro Suzuki <[email protected]>
Thanks,
KAZ
arch/x86_64/Kconfig +0 -1
@@ -472,7 +472,6 @@ config X86_MCE bool "Machine check support" if EMBEDDED - depends on !X86_64_XEN default y help Include a machine check error handler to report hardware errors.
arch/x86_64/kernel/apic-xen.c +8 -0
@@ -60,6 +60,14 @@int setup_profiling_timer (unsigned int multiplier) {return -EINVAL ; +} + +void setup_APIC_extened_lvt (unsigned char lvt_off,unsigned char vector, +unsigned char msg_type,unsigned char mask) +{ +unsigned long reg = (lvt_off <<4 ) +K8_APIC_EXT_LVT_BASE ; +unsigned int v = (mask <<16 ) | (msg_type <<8 ) | vector; +apic_write (reg, v); }void smp_local_timer_interrupt (struct pt_regs *regs)
arch/x86_64/kernel/entry-xen.S +5 -4
@@ -1259,12 +1259,13 @@ #ifdef CONFIG_X86_MCE /* runs on exception stack */ ENTRY(machine_check) - INTR_FRAME +/* INTR_FRAME pushq $0 CFI_ADJUST_CFA_OFFSET 8 - paranoidentry do_machine_check - jmp paranoid_exit1 - CFI_ENDPROC + paranoidentry do_machine_check*/ + errorentry do_machine_check +/* jmp paranoid_exit1 + CFI_ENDPROC*/ END(machine_check) #endif
arch/x86_64/kernel/mce-xen.c new file +683 -0
683 lines not on this page · raw message
buildconfigs/linux-defconfig_xen_x86_64 +3 -0
@@ -142,6 +142,9 @@ CONFIG_HOTPLUG_CPU=y CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y CONFIG_SWIOTLB=y +CONFIG_X86_MCE=y +CONFIG_X86_MCE_INTEL=y +CONFIG_X86_MCE_AMD=y CONFIG_KEXEC=y # CONFIG_CRASH_DUMP is not set CONFIG_PHYSICAL_START=0x200000
include/asm-x86_64/mach-xen/asm/hw_irq.h +2 -0
@@ -51,8 +51,10 @@#define CALL_FUNCTION_VECTOR 0xfc/* fb free - please don't readd KDB here because it's useless (hint - think what a NMI bit does to a vector) */ +#endif #define THERMAL_APIC_VECTOR 0xfa#define THRESHOLD_APIC_VECTOR 0xf9 +#ifndef CONFIG_XEN /* f8 free */ #define INVALIDATE_TLB_VECTOR_END 0xf7#define INVALIDATE_TLB_VECTOR_START 0xf0/* f0-f7 used for TLB flush */
include/asm-x86_64/mach-xen/asm/hypercall.h +6 -0
@@ -412,4 +412,10 @@ return _hypercall2(int, kexec_op, op, args); } +static inline int __must_check +HYPERVISOR_mca ( +const xen_mc_t *mc) +{ +return _hypercall1 (int, mca, mc); +}#endif /* __HYPERCALL_H__ */
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel