On Mon, 30 Jul 2001 16:34:01 -0500,
Steven Walter <[EMAIL PROTECTED]> wrote:
>On boot, the kernel does find and re-enable the APIC on my AMD
>Thunderbird CPU. However, when I go to enable the nmi watchdog (echo
>"1" > /proc/sys/kernel/nmi_watchdog), I get the following message:
>
>"set_nmi_watchdog failed -5, value not changed"
-5 (-EIO) is coming from setup_apic_nmi_watchdog. There are two
possible causes, the cpu bits do not have the X86_FEATURE_APIC bit set
or the MSR numbers for performance counters on AMD are different from
Intel. Can you add debugging printk's to setup_apic_nmi_watchdog in
arch/i386/kernel/apic.c to find out where -EIO is coming from?
On second thoughts, don't bother. The -ac kernels have a different
implementation of NMI via performance counters and that code has
different versions for Interl and K7. I will extract the relevant bits
from the -ac kernels and add them to the kdb patch. That will take me
a couple of days, the apic code in -ac has diverged a long way from the
base kernel.
BTW, echo "1" > /proc/sys/kernel/nmi_watchdog uses the performance
counters on the local APIC, echo "2" uses the timer interrupt on the
external IO-APIC. Did you want to use the local or the IO-APIC?