From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Lin Ming <mlin@ss.pku.edu.cn>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>,
Steven Noonan <steven@uplinklabs.net>,
Ben Guthro <ben@guthro.net>,
Jeremy Fitzhardinge <jeremy@goop.org>,
Marcus Granado <marcus.granado@citrix.com>,
xen-devel@lists.xen.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 0/2] fix "perf top" soft lockups under Xen
Date: Fri, 20 Apr 2012 12:21:34 -0400 [thread overview]
Message-ID: <20120420162134.GB28366@phenom.dumpdata.com> (raw)
In-Reply-To: <1334938265-3844-1-git-send-email-mlin@ss.pku.edu.cn>
On Sat, Apr 21, 2012 at 12:11:03AM +0800, Lin Ming wrote:
> v2:
> - fix compile issues if no CONFIG_SMP, Konrad Rzeszutek Wilk
> - move inc_irq_stat after irq_work_run
They look good to me (and they work nicely - thanks!)
so putting in the 3.5 queue.
>
> These 2 patches fixed the "perf top" soft lockups under Xen
> reported by Steven at: https://lkml.org/lkml/2012/2/9/506
>
> Both Steven and I tested it and "perf top" works well now.
>
> The soft lockup code path is:
>
> __irq_work_queue
> arch_irq_work_raise
> apic->send_IPI_self(IRQ_WORK_VECTOR);
> apic_send_IPI_self
> __default_send_IPI_shortcut
> __xapic_wait_icr_idle
>
> static inline void __xapic_wait_icr_idle(void)
> {
> while (native_apic_mem_read(APIC_ICR) & APIC_ICR_BUSY)
> cpu_relax();
> }
> The lockup happens at above while looop.
>
> The cause is that Xen has not implemented the APIC IPI interface yet.
> Xen has IPI interface: xen_send_IPI_one, but it's only used in
> xen_smp_send_reschedule, xen_smp_send_call_function_ipi and
> xen_smp_send_call_function_single_ipi, etc.
>
> So we need to implement Xen's APIC IPI interface as Ben's patch does.
> And implement Xen's IRQ_WORK_VECTOR handler.
>
> Ben Guthro (1):
> xen: implement apic ipi interface
>
> Lin Ming (1):
> xen: implement IRQ_WORK_VECTOR handler
>
> arch/x86/include/asm/xen/events.h | 1 +
> arch/x86/xen/enlighten.c | 9 +++
> arch/x86/xen/smp.c | 111 +++++++++++++++++++++++++++++++++++-
> arch/x86/xen/smp.h | 12 ++++
> 4 files changed, 129 insertions(+), 4 deletions(-)
prev parent reply other threads:[~2012-04-20 16:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-20 16:11 [PATCH v2 0/2] fix "perf top" soft lockups under Xen Lin Ming
2012-04-20 16:11 ` [PATCH v2 1/2] xen: implement apic ipi interface Lin Ming
2012-04-20 16:11 ` [PATCH v2 2/2] xen: implement IRQ_WORK_VECTOR handler Lin Ming
2012-04-20 16:21 ` Konrad Rzeszutek Wilk [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=20120420162134.GB28366@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=a.p.zijlstra@chello.nl \
--cc=ben@guthro.net \
--cc=jeremy@goop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcus.granado@citrix.com \
--cc=mlin@ss.pku.edu.cn \
--cc=steven@uplinklabs.net \
--cc=xen-devel@lists.xen.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