From: Ingo Molnar <mingo2.kernel.org@gmail.com>
To: "Jan H. Schönherr" <jschoenh@amazon.de>
Cc: Thomas Gleixner <tglx@linutronix.de>,
x86@kernel.org, linux-kernel@vger.kernel.org,
Anthony Liguori <aliguori@amazon.com>,
Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
Tim Deegan <tim@xen.org>, Gang Wei <gang.wei@intel.com>,
Linus Torvalds <torvalds@linux-foundation.org>,
Len Brown <lenb@kernel.org>
Subject: Re: [PATCH] x86: skip delays during SMP initialization similar to Xen
Date: Wed, 6 May 2015 10:27:59 +0200 [thread overview]
Message-ID: <20150506082759.GA30019@gmail.com> (raw)
In-Reply-To: <1430732554-7294-1-git-send-email-jschoenh@amazon.de>
* Jan H. Schönherr <jschoenh@amazon.de> wrote:
> Remove the per-CPU delays during SMP initialization, which seems to be
> possible on newer architectures with an x2APIC.
>
> Xen does this since 2011. In fact, this commit is basically a
> combination of the following Xen commits. The first removes the delays,
> the second fixes an issue with the removal:
>
> commit 68fce206f6dba9981e8322269db49692c95ce250
> Author: Tim Deegan <Tim.Deegan@citrix.com>
> Date: Tue Jul 19 14:13:01 2011 +0100
>
> x86: Remove timeouts from INIT-SIPI-SIPI sequence when using x2apic.
>
> Some of the timeouts are pointless since they're waiting for the ICR
> to ack the IPI delivery and that doesn't happen on x2apic.
> The others should be benign (and are suggested in the SDM) but
> removing them makes AP bringup much more reliable on some test boxes.
>
> Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
>
> commit f12ee533150761df5a7099c83f2a5fa6c07d1187
> Author: Gang Wei <gang.wei@intel.com>
> Date: Thu Dec 29 10:07:54 2011 +0000
>
> X86: Add a delay between INIT & SIPIs for tboot AP bring-up in X2APIC case
>
> Without this delay, Xen could not bring APs up while working with
> TXT/tboot, because tboot needs some time in APs to handle INIT before
> becoming ready for receiving SIPIs (this delay was removed as part of
> c/s 23724 by Tim Deegan).
>
> Signed-off-by: Gang Wei <gang.wei@intel.com>
> Acked-by: Keir Fraser <keir@xen.org>
> Acked-by: Tim Deegan <tim@xen.org>
> Committed-by: Tim Deegan <tim@xen.org>
>
> Signed-off-by: Jan H. Schönherr <jschoenh@amazon.de>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Ingo Molnar <mingo@redhat.com>
> Cc: H. Peter Anvin <hpa@zytor.com>
> Cc: Tim Deegan <tim@xen.org>
> Cc: Gang Wei <gang.wei@intel.com>
> ---
> arch/x86/kernel/smpboot.c | 61 +++++++++++++++++++++++++++++------------------
> 1 file changed, 38 insertions(+), 23 deletions(-)
>
> This patch is against Linux 4.1-rc1.
So I really like this, as it nicely side-steps the 'when should we do
the legacy delays' issue by flagging on x2apic support.
If anyone has objections, please holler.
Thanks,
Ingo
next prev parent reply other threads:[~2015-05-06 8:28 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-04 9:42 Jan H. Schönherr
2015-05-06 8:27 ` Ingo Molnar [this message]
2015-05-07 1:27 ` Len Brown
2015-05-07 10:23 ` Ingo Molnar
2015-05-12 8:03 ` Len Brown
2015-05-12 9:43 ` Ingo Molnar
2015-05-12 9:47 ` Ingo Molnar
2015-05-12 10:12 ` Borislav Petkov
2015-05-14 6:36 ` Len Brown
2015-05-14 6:44 ` Ingo Molnar
2015-05-16 8:46 ` Len Brown
2015-05-17 5:02 ` Ingo Molnar
2015-05-28 5:31 ` Len Brown
2015-05-29 2:16 ` Len Brown
2015-05-14 7:18 ` Len Brown
2015-05-14 14:25 ` "Jan H. Schönherr"
2015-05-14 17:57 ` Ingo Molnar
2015-05-16 9:07 ` Len Brown
2015-05-17 5:26 ` Ingo Molnar
2015-05-06 10:13 ` [tip:x86/apic] x86/smpboot: Skip " tip-bot for Jan H. Schönherr
2015-05-13 7:15 ` [tip:x86/apic] Revert f5d6a52f5111 ("x86/smpboot: Skip delays during SMP initialization similar to Xen") tip-bot for Ingo Molnar
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=20150506082759.GA30019@gmail.com \
--to=mingo2.kernel.org@gmail.com \
--cc=aliguori@amazon.com \
--cc=gang.wei@intel.com \
--cc=hpa@zytor.com \
--cc=jschoenh@amazon.de \
--cc=lenb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=tim@xen.org \
--cc=torvalds@linux-foundation.org \
--cc=x86@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
Powered by JetHome