mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Andi Kleen <ak@suse.de>
Cc: Andrew Morton <akpm@osdl.org>,
	linux-kernel@vger.kernel.org, fastboot@osdl.org
Subject: Re: [PATCH 1/2] x86_64 nmi_watchdog: Make check_nmi_watchdog static
Date: Tue, 04 Oct 2005 10:01:28 -0600	[thread overview]
Message-ID: <m1ll196zl3.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <200510041732.07007.ak@suse.de> (Andi Kleen's message of "Tue, 4 Oct 2005 17:32:06 +0200")

Andi Kleen <ak@suse.de> writes:

> On Tuesday 04 October 2005 17:26, Eric W. Biederman wrote:
>> Andi Kleen <ak@suse.de> writes:
>> > On Tuesday 04 October 2005 17:11, Eric W. Biederman wrote:
>> >> By using a late_initcall as i386 does we don't need to call
>> >> check_nmi_watchdog manually after SMP startup, and we don't
>> >> need different code paths for SMP and non SMP.
>> >>
>> >> This paves the way for moving apic initialization into init_IRQ,
>> >> where it belongs.
>> >
>> > I don't like it. I want to see a clear message in the log when
>> > the NMI watchdog doesn't work and with your patch that comes too late.
>>
>> Why is it to late?
>
> It's after too much of the boot. e.g. consider analyzing log with a boot hang.
> It's important to know if the NMI watchdog runs or not. For that it is
> best when the test of it happens as early as possible.

That make sense.

>> > -Andi (who has rejected similar patches before)
>>
>> Would it be more appropriate to make this a per cpu check?
>
> That would be fine as long as it's as early as possible.
> But I suspect you'll always need special cases for the BP
> because it needs the timer running first.

Well a special call site certainly but I can probably get away
with a single function called from the appropriate CPU.  I
might even be able to remove nmi_cpu_busy :)

It will take me a bit to get my head back into that part of the
code.  late_initcall was a nice solution from a correctness
and simplicity point of view.  But obviously it had other issues :)

There is the whole late_timer_init() which is probably where
the test needs to happen for the boot processor.

Eric

      reply	other threads:[~2005-10-04 16:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-04 15:11 Eric W. Biederman
2005-10-04 15:21 ` Andi Kleen
2005-10-04 15:26   ` Eric W. Biederman
2005-10-04 15:32     ` Andi Kleen
2005-10-04 16:01       ` Eric W. Biederman [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=m1ll196zl3.fsf@ebiederm.dsl.xmission.com \
    --to=ebiederm@xmission.com \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=fastboot@osdl.org \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®