Skip to contentSkip to conversation

equivalent of touch_nmi_watchdog

DISCUSSION Rajarshi Das 3 participants 5 messages Jun 29, 2004

lore
Share & tools
lore
#0 lore raw

Hi,
I am running some code which needs interrupts to be disabled for a reasonable amount of time. A "touch_nmi_watchdog" call is done before this code gets called on i386 platform. How do I do it on ppc64 ? I am using a power 3 machine (type 7044-170) (uniprocessor) and a 2.6.6 kernel.

Thanks in advance,
Rajarshi.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 6 lines · Rajarshi Das

Hi,
I am running some code which needs interrupts to be disabled for a reasonable amount of time. A "touch_nmi_watchdog" call is done before this code gets called on i386 platform. How do I do it on ppc64 ? I am using a power 3 machine (type 7044-170) (uniprocessor) and a 2.6.6 kernel.

Can you tell us more about your code ? It's never a good idea to disable interrupts for more than a few microseconds ...

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#3 lore raw
In reply to Rajarshi Das
Quoted 4 lines · Rajarshi Das

Its basically dumping code. After a panic has happened, interrupts are inhibited, all CPUS (except the host cpu) are frozen, and for each page of data, the dump module writes the dump to disk by calling the host adapter's interrupt handler till I/O completes.

Hrm... a bit scary but might actually work. I don't think we have a clean interface for whatever watchdog service HV may provide though, but I'll let others comment on that.

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#2 lore raw
In reply to Benjamin Herrenschmidt

Its basically dumping code. After a panic has happened, interrupts are inhibited, all CPUS (except the host cpu) are frozen, and for each page of data, the dump module writes the dump to disk by calling the host adapter's interrupt handler till I/O completes.

Rajarshi.

Quoted 8 lines · Benjamin Herrenschmidt
Quoted 6 lines · Rajarshi Das

Hi,
I am running some code which needs interrupts to be disabled for a reasonable amount of time. A "touch_nmi_watchdog" call is done before this code gets called on i386 platform. How do I do it on ppc64 ? I am using a power 3 machine (type 7044-170) (uniprocessor) and a 2.6.6 kernel.

Quoted 7 lines

Can you tell us more about your code ? It's never a good idea to disable interrupts for more than a few microseconds ...

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#4 lore raw
In reply to Rajarshi Das

Hi,

Quoted 5 lines

I am running some code which needs interrupts to be disabled for a reasonable amount of time. A "touch_nmi_watchdog" call is done before this code gets called on i386 platform. How do I do it on ppc64 ? I am using a power 3 machine (type 7044-170) (uniprocessor) and a 2.6.6 kernel.

Check out arch/ppc64/xmon/xmon.c: disable_surveillance() in a recent 2.6 kernel. It might be worth moving that function into rtas.c if you want to use it as well.

Anton

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/