Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 6 Nov 2002 12:53:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 6 Nov 2002 12:53:51 -0500 Received: from gateway-1237.mvista.com ([12.44.186.158]:58607 "EHLO av.mvista.com") by vger.kernel.org with ESMTP id ; Wed, 6 Nov 2002 12:53:49 -0500 Message-ID: <3DC9588D.C3574CB5@mvista.com> Date: Wed, 06 Nov 2002 09:59:41 -0800 From: george anzinger Organization: Monta Vista Software X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12-20b i686) X-Accept-Language: en MIME-Version: 1.0 To: Mikael Pettersson CC: Ingo Molnar , "linux-kernel@vger.kernel.org" Subject: Re: NMI watchdog question. References: <3DC8AD8A.20494DC0@mvista.com> <15816.62663.166644.782004@kim.it.uu.se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1981 Lines: 49 Mikael Pettersson wrote: > > george anzinger writes: > > In attempting to understand how the NMI watchdog works I > > think I have found that: > > > > a. the NMI interrupts are generated by the performance > > counter in the cpu and > ... > > If this is so (and help me to understand if it is not), then > > what do the timer interrupts going thru the IO_APIC have to > > do with the NMI watchdog. > > Before 2.4, the NMI watchdog was only available for SMP boxes, > since it used the I/O APIC to send NMIs to the CPUs. Then the > ability to use the *local* APIC on UP machines was introduced, > and with it the ability to drive the NMI watchdog from the CPU > itself, via performance counter overflow interrupts. > > The NMI watchdog still supports both these modes of operation. > Typically, the performance counter + local APIC mode kicks in > when (a) you asked for it, or (b) you asked for the I/O APIC > mode but it wasn't available. So then the NMI checks for timer interrupts being serviced in this case? But, still, why the turn off if the timer does not go thru the APIC? The case this came up in is an SMP machine, but the test in apic.c shows that the PIT interrupt does not go thru the APIC. Leaving NMI on seems to work, so I am wondering if this is just old code. > > /Mikael > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- George Anzinger george@mvista.com High-res-timers: http://sourceforge.net/projects/high-res-timers/ Preemption patch: http://www.kernel.org/pub/linux/kernel/people/rml - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/