From: Keith Owens <kaos@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [RFC] Extend notify_die() hooks for IA64
Date: Thu, 27 Oct 2005 00:29:25 +0000 [thread overview]
Message-ID: <17762.1130372965@ocs3.ocs.com.au> (raw)
In-Reply-To: <10137.1128667602@kao2.melbourne.sgi.com>
On Wed, 26 Oct 2005 14:15:52 -0500,
Dean Nelson <dcn@sgi.com> wrote:
>On Fri, Oct 07, 2005 at 04:46:42PM +1000, Keith Owens wrote:
>> This mail is only for discussion, the patch is 2.6.15-rc1 material. It
>> has been compiled and has minimal testing. Against 2.6.14-rc3.
>
>I applied your patch to Tony Luck's test tree. Added some changes of my own
>to XPC so it would register for the notify_die() callouts. And I did some
>preliminary testing which showed that things for the most part worked as
>advertised.
>
>I used DIE_MACHINE_RESTART and DIE_MACHINE_HALT to get XPC to indicate to
>other partitions (on a SGI Altix system) to disengage from accessing the
>terminating partitions memory.
>
>And I used DIE_MCA_MONARCH_ENTER and DIE_INIT_MONARCH_ENTER to indicate to
>other partitions to ignore the fact that our heartbeat wasn't incrementing.
>And I used DIE_MCA_MONARCH_LEAVE and DIE_INIT_MONARCH_LEAVE to indicate that
>we should now be heartbeating again.
>
>I also needed to make a few changes to kdebug.h and trap.c (see patch below)
>to allow register_notify_die() to be utilized by a module. And I added an
>unregister_notify_die() since a module can be removed. Would it be acceptable
>to add such changes should your proposed patch find approval?
Both registering and unregistering notify_die() is racy. NMI type
events can occur at any time so another cpu could be running the notify
chain while you are modifying it. There is a continuing discussion on
lkml about this topic at the moment, Subject: Notifier chains are unsafe.
>Is there a reason why the notify_die() callout isn't being added to
>emergency_restart()?
emergency_restart() is not supposed to block or sleep. So I was
unhappy about adding any notify_die callbacks to that function. This
is also part of the current discussion on lkml, should notify_die
functions be able to block?
prev parent reply other threads:[~2005-10-27 0:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-07 6:46 [RFC] Extend notify_die() hooks for IA64 Keith Owens
2005-10-21 19:00 ` Dean Nelson
2005-10-26 19:15 ` Dean Nelson
2005-10-27 0:29 ` Keith Owens [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17762.1130372965@ocs3.ocs.com.au \
--to=kaos@sgi.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox