• Andi Kleen's avatar
    x86, mce: implement panic synchronization · f94b61c2
    Andi Kleen authored
    In some circumstances multiple CPUs can enter mce_panic() in parallel.
    This gives quite confused output because they will all dump the same
    machine check buffer.
    
    The other problem is that they would all panic in parallel, but not
    process each other's shutdown IPIs because interrupts are disabled.
    
    Detect this situation early on in mce_panic(). On the first CPU
    entering will do the panic, the others will just wait to be killed.
    
    For paranoia reasons in case the other CPU dies during the MCE I added
    a 5 seconds timeout. If it expires each CPU will panic on its own again.
    Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
    Signed-off-by: default avatarHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
    Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
    f94b61c2
mce.c 32.7 KB