* equivalent of touch_nmi_watchdog
@ 2004-06-29 11:49 Rajarshi Das
2004-06-29 13:06 ` Benjamin Herrenschmidt
2004-06-29 23:13 ` Anton Blanchard
0 siblings, 2 replies; 5+ messages in thread
From: Rajarshi Das @ 2004-06-29 11:49 UTC (permalink / raw)
To: linuxppc-dev
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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: equivalent of touch_nmi_watchdog
2004-06-29 11:49 equivalent of touch_nmi_watchdog Rajarshi Das
@ 2004-06-29 13:06 ` Benjamin Herrenschmidt
2004-06-29 14:00 ` Rajarshi Das
2004-06-29 23:13 ` Anton Blanchard
1 sibling, 1 reply; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2004-06-29 13:06 UTC (permalink / raw)
To: Rajarshi Das; +Cc: linuxppc-dev list
On Tue, 2004-06-29 at 06:49, Rajarshi Das wrote:
> 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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: equivalent of touch_nmi_watchdog
2004-06-29 13:06 ` Benjamin Herrenschmidt
@ 2004-06-29 14:00 ` Rajarshi Das
2004-06-29 13:46 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 5+ messages in thread
From: Rajarshi Das @ 2004-06-29 14:00 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc-dev
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.
On Tue, 2004-06-29 at 18:36, Benjamin Herrenschmidt wrote:
> On Tue, 2004-06-29 at 06:49, Rajarshi Das wrote:
> > 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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: equivalent of touch_nmi_watchdog
2004-06-29 14:00 ` Rajarshi Das
@ 2004-06-29 13:46 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2004-06-29 13:46 UTC (permalink / raw)
To: Rajarshi Das; +Cc: linuxppc-dev list
On Tue, 2004-06-29 at 09:00, Rajarshi Das wrote:
> 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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: equivalent of touch_nmi_watchdog
2004-06-29 11:49 equivalent of touch_nmi_watchdog Rajarshi Das
2004-06-29 13:06 ` Benjamin Herrenschmidt
@ 2004-06-29 23:13 ` Anton Blanchard
1 sibling, 0 replies; 5+ messages in thread
From: Anton Blanchard @ 2004-06-29 23:13 UTC (permalink / raw)
To: Rajarshi Das; +Cc: linuxppc-dev
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.
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/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-06-29 23:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-29 11:49 equivalent of touch_nmi_watchdog Rajarshi Das
2004-06-29 13:06 ` Benjamin Herrenschmidt
2004-06-29 14:00 ` Rajarshi Das
2004-06-29 13:46 ` Benjamin Herrenschmidt
2004-06-29 23:13 ` Anton Blanchard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.