All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keith Owens <kaos@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Fastboot] [Patch] IA64 Kexec/Kdump patch for 2.6.18-rc6
Date: Fri, 15 Sep 2006 07:27:10 +0000	[thread overview]
Message-ID: <478.1158305230@kao2.melbourne.sgi.com> (raw)
In-Reply-To: <BAC6D88895D68Findou.takao@jp.fujitsu.com>

Takao Indoh (on Fri, 15 Sep 2006 14:34:16 +0900) wrote:
>I have one question. When one cpu sends IPI and other cpus receive INIT
>interrupt, which cpus become monarch? Is there possibility that all cpus
>which receive INIT become slave cpu? If so, these cpus must wait until
>monarch cpu comes. 
>
>        if (!sos->monarch) {
>                ia64_mc_info.imi_rendez_checkin[cpu] = IA64_MCA_RENDEZ_CHECKIN_INIT;
>                while (monarch_cpu = -1)
>                       cpu_relax();     /* spin until monarch enters */
>
>It means these cpus enter infinite loop because the remaining one cpu
>never comes to ia64_init_handler.

Correct, and it does happen.  KDB has already solved this problem, the
monarch cpu is the one that started the debug[*] process, all the other
cpus have to be treated as slaves, whether they are interrupted by IPI
or NMI/INIT.  It gets complicated by broken proms that treat some INIT
events as monarch when they are really slaves.

I am back from vacation and am now working on a common 'crash stop'
synchronization interface that can be used by all the debug[*] tools,
instead of everybody inventing their own and tripping over each other.
Obviously it is based on the KDB patch, but it will be generic enough
that anybody can use it.

[*] Using the term 'debug' generically here.  It can be a debugger like
    kdb, kgdb, nlkd or a crash dump tool like lkcd, crash or kexec.
    They all have the same synchronization requirements, stop all cpus
    using NMI/INIT where necessary and save the state of all the cpus
    for later diagnosis.


  parent reply	other threads:[~2006-09-15  7:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-15  5:34 [Fastboot] [Patch] IA64 Kexec/Kdump patch for 2.6.18-rc6 Takao Indoh
2006-09-15  5:58 ` Takao Indoh
2006-09-15  7:27 ` Keith Owens [this message]
2006-09-15 14:09 ` Don Zickus
2006-09-19 10:13 ` Gerald Pfeifer
2006-09-19 22:39 ` Keith Owens
2006-09-22  4:09 ` [Fastboot] [Patch] ia64 Kexec/Kdump patch for 2.6.18 Horms
2006-09-22  7:39 ` Horms

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=478.1158305230@kao2.melbourne.sgi.com \
    --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 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.