Symmetric Multiprocessing (SMP) development
 help / color / mirror / Atom feed
* [RFC] Fix NMI watchdog documentation
@ 2003-05-24 19:07 Carl-Daniel Hailfinger
  2003-05-24 19:08 ` Zwane Mwaikambo
  2003-05-24 19:12 ` Marc-Christian Petersen
  0 siblings, 2 replies; 5+ messages in thread
From: Carl-Daniel Hailfinger @ 2003-05-24 19:07 UTC (permalink / raw)
  To: Linux Kernel Mailing List, linux-smp, Ingo Molnar

Hello,

Documentation/nmi_watchdog.txt does not say which CONFIG_XYZ option has
to be enabled to use the NMI watchdog, but it mentions that IO-APIC is
somewhat related.

Documentation/Configure.help is equally unclear. The NMI watchdog is
mentioned as related to CONFIG_SMP, and the help text for
CONFIG_X86_UP_APIC says: "The local APIC supports [..] the NMI watchdog"
That does not necessarily mean that NMI is compiled in once local APIC
support is selected.

Can someone please shed some light on this issue? I'm willing to create
a patch to fix the docs once I know if the NMI watchdog is compiled in
alsways or on what it depends.


Regards,
Carl-Daniel
-- 
http://www.hailfinger.org/


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC] Fix NMI watchdog documentation
  2003-05-24 19:07 [RFC] Fix NMI watchdog documentation Carl-Daniel Hailfinger
@ 2003-05-24 19:08 ` Zwane Mwaikambo
  2003-05-24 19:11   ` Zwane Mwaikambo
  2003-05-24 19:12 ` Marc-Christian Petersen
  1 sibling, 1 reply; 5+ messages in thread
From: Zwane Mwaikambo @ 2003-05-24 19:08 UTC (permalink / raw)
  To: Carl-Daniel Hailfinger; +Cc: Linux Kernel Mailing List, linux-smp, Ingo Molnar

On Sat, 24 May 2003, Carl-Daniel Hailfinger wrote:

> Documentation/nmi_watchdog.txt does not say which CONFIG_XYZ option has
> to be enabled to use the NMI watchdog, but it mentions that IO-APIC is
> somewhat related.
> 
> Documentation/Configure.help is equally unclear. The NMI watchdog is
> mentioned as related to CONFIG_SMP, and the help text for
> CONFIG_X86_UP_APIC says: "The local APIC supports [..] the NMI watchdog"
> That does not necessarily mean that NMI is compiled in once local APIC
> support is selected.
> 
> Can someone please shed some light on this issue? I'm willing to create
> a patch to fix the docs once I know if the NMI watchdog is compiled in
> alsways or on what it depends.

For nmi_watchdog=1 the NMI watchdog uses the programmable interval timer
to trigger interrupt events via the IOAPIC. with nmi_watchdog=2 we use the 
performance counters on the processor to trigger these events. IOAPICs 
are generally found on SMP motherboards (but there are UP boards with 
them, it's chipset dependent). Generally i686+ (save some Athlons and a 
few other processors) will work with nmi_watchdog=2.

	Zwane
-- 
function.linuxpower.ca

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC] Fix NMI watchdog documentation
  2003-05-24 19:08 ` Zwane Mwaikambo
@ 2003-05-24 19:11   ` Zwane Mwaikambo
  2003-05-24 19:43     ` Carl-Daniel Hailfinger
  0 siblings, 1 reply; 5+ messages in thread
From: Zwane Mwaikambo @ 2003-05-24 19:11 UTC (permalink / raw)
  To: Carl-Daniel Hailfinger; +Cc: Linux Kernel Mailing List, linux-smp, Ingo Molnar

On Sat, 24 May 2003, Zwane Mwaikambo wrote:

> For nmi_watchdog=1 the NMI watchdog uses the programmable interval timer
> to trigger interrupt events via the IOAPIC. with nmi_watchdog=2 we use the 
> performance counters on the processor to trigger these events. IOAPICs 
> are generally found on SMP motherboards (but there are UP boards with 
> them, it's chipset dependent). Generally i686+ (save some Athlons and a 
> few other processors) will work with nmi_watchdog=2.

Forgot this bit;

w/ CONFIG_X86_LOCAL_APIC=y you only have nmi_watchdog=2

w/ CONFIG_X86_IO_APIC=y you have nmi_watchdog=1 and 2

w/ CONFIG_SMP you have nmi_watchdog=1 and 2 as it depends on 
CONFIG_X86_IO_APIC

	Zwane

-- 
function.linuxpower.ca

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC] Fix NMI watchdog documentation
  2003-05-24 19:07 [RFC] Fix NMI watchdog documentation Carl-Daniel Hailfinger
  2003-05-24 19:08 ` Zwane Mwaikambo
@ 2003-05-24 19:12 ` Marc-Christian Petersen
  1 sibling, 0 replies; 5+ messages in thread
From: Marc-Christian Petersen @ 2003-05-24 19:12 UTC (permalink / raw)
  To: Carl-Daniel Hailfinger, Linux Kernel Mailing List, linux-smp,
	Ingo Molnar

On Saturday 24 May 2003 21:07, Carl-Daniel Hailfinger wrote:

Hi Carl-Daniel,

> Documentation/nmi_watchdog.txt does not say which CONFIG_XYZ option has
> to be enabled to use the NMI watchdog, but it mentions that IO-APIC is
> somewhat related.
>
> Documentation/Configure.help is equally unclear. The NMI watchdog is
> mentioned as related to CONFIG_SMP, and the help text for
> CONFIG_X86_UP_APIC says: "The local APIC supports [..] the NMI watchdog"
> That does not necessarily mean that NMI is compiled in once local APIC
> support is selected.
>
> Can someone please shed some light on this issue? I'm willing to create
> a patch to fix the docs once I know if the NMI watchdog is compiled in
> alsways or on what it depends.
the nmi_watchdog is always compiled in if you select "CONFIG_X86_LOCAL_APIC"

see "arch/i386/kernel/Makefile"

ciao, Marc



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC] Fix NMI watchdog documentation
  2003-05-24 19:11   ` Zwane Mwaikambo
@ 2003-05-24 19:43     ` Carl-Daniel Hailfinger
  0 siblings, 0 replies; 5+ messages in thread
From: Carl-Daniel Hailfinger @ 2003-05-24 19:43 UTC (permalink / raw)
  To: Zwane Mwaikambo
  Cc: Linux Kernel Mailing List, linux-smp, Ingo Molnar,
	Marc-Christian Petersen

Zwane Mwaikambo wrote:
> On Sat, 24 May 2003, Zwane Mwaikambo wrote:
> 
> 
>>For nmi_watchdog=1 the NMI watchdog uses the programmable interval timer
>>to trigger interrupt events via the IOAPIC. with nmi_watchdog=2 we use the 
>>performance counters on the processor to trigger these events. IOAPICs 
>>are generally found on SMP motherboards (but there are UP boards with 
>>them, it's chipset dependent). Generally i686+ (save some Athlons and a 
>>few other processors) will work with nmi_watchdog=2.
> 
> 
> Forgot this bit;
> 
> w/ CONFIG_X86_LOCAL_APIC=y you only have nmi_watchdog=2
> 
> w/ CONFIG_X86_IO_APIC=y you have nmi_watchdog=1 and 2
> 
> w/ CONFIG_SMP you have nmi_watchdog=1 and 2 as it depends on 
> CONFIG_X86_IO_APIC

Marc-Christian Petersen wrote:
> the nmi_watchdog is always compiled in if you select "CONFIG_X86_LOCAL_APIC"
> 
> see "arch/i386/kernel/Makefile"

Thanks to all who responded. I will prepare a patch for
Documentation/nmi_watchdog.txt to clarify it and send the patch to Linus
and Marcelo.


Regards,
Carl-Daniel
-- 
http://www.hailfinger.org/


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-05-24 19:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-24 19:07 [RFC] Fix NMI watchdog documentation Carl-Daniel Hailfinger
2003-05-24 19:08 ` Zwane Mwaikambo
2003-05-24 19:11   ` Zwane Mwaikambo
2003-05-24 19:43     ` Carl-Daniel Hailfinger
2003-05-24 19:12 ` Marc-Christian Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox