• Stephane Eranian's avatar
    i386: Fix perfctr watchdog on core duo · 23d5ea5d
    Stephane Eranian authored
    Fix the NMI watchdog on Intel CoreDuo processor where the kernel would
    get stuck during boot.  The issue is related to errata AE49, where the
    PERFEVTSEL1 counter does not have a working enable bit.  Thus it is not
    possible to use it for NMI.
    
    The patch creates a dedicated wd_ops for CoreDuo which falls back to
    using PERFEVTSEL0.  The other Intel processors supporting the
    architectural PMU will keep on using PERFEVTSEL1 as this allows other
    subsystems, such as perfmon, to use PERFEVTSEL0 for PEBS monitoring in
    particular.  Bug initially reported by Daniel Walker.
    
    AK: Added comments
    Signed-off-by: default avatarStephane Eranian <eranian@hpl.hp.com>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    23d5ea5d
perfctr-watchdog.c 17.7 KB