From: Ingo Molnar <mingo@kernel.org>
To: Wanpeng Li <kernellwp@gmail.com>
Cc: linux-kernel@vger.kernel.org, Wanpeng Li <wanpeng.li@hotmail.com>,
Mike Galbraith <efault@gmx.de>,
Peter Zijlstra <peterz@infradead.org>,
Thomas Gleixner <tglx@linutronix.de>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH v2] x86/msr: Add write msr notrace to avoid the debug codes splash
Date: Tue, 18 Oct 2016 11:24:48 +0200 [thread overview]
Message-ID: <20161018092448.GA28727@gmail.com> (raw)
In-Reply-To: <1476706603-29346-1-git-send-email-wanpeng.li@hotmail.com>
* Wanpeng Li <kernellwp@gmail.com> wrote:
> ===============================
> [ INFO: suspicious RCU usage. ]
> 4.8.0+ #24 Not tainted
> -------------------------------
> ./arch/x86/include/asm/msr-trace.h:47 suspicious rcu_dereference_check() usage!
>
> other info that might help us debug this:
>
> RCU used illegally from idle CPU!
> rcu_scheduler_active = 1, debug_locks = 0
> RCU used illegally from extended quiescent state!
> no locks held by swapper/1/0.
>
> [<ffffffff9d492b95>] do_trace_write_msr+0x135/0x140
> [<ffffffff9d06f860>] native_write_msr+0x20/0x30
> [<ffffffff9d065fad>] native_apic_msr_eoi_write+0x1d/0x30
> [<ffffffff9d05bd1d>] smp_reschedule_interrupt+0x1d/0x30
> [<ffffffff9d8daec6>] reschedule_interrupt+0x96/0xa0
>
> As Peterz pointed out:
>
> | The thing is, many many smp_reschedule_interrupt() invocations don't
> | actually execute anything much at all and are only send to tickle the
> | return to user path (which does the actual preemption).
>
> This patch add write msr notrace to avoid the debug codes splash.
>
> Suggested-by: Peter Zijlstra <peterz@infradead.org>
> Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
> Cc: Ingo Molnar <mingo@kernel.org>
> Cc: Mike Galbraith <efault@gmx.de>
> Cc: Peter Zijlstra <peterz@infradead.org>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Paolo Bonzini <pbonzini@redhat.com>
> Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
> ---
> v1 -> v2:
> * add write msr notrace to avoid debug codes splash instead of slowdown a very frequent interrupt
>
> arch/x86/include/asm/apic.h | 4 ++--
> arch/x86/include/asm/msr.h | 15 +++++++++++++++
> arch/x86/kernel/kvm.c | 2 +-
> 3 files changed, 18 insertions(+), 3 deletions(-)
Could you please do this on top of -tip and also include the revert of:
# 1ec6ec14a294 x86/smp: Add irq_enter/exit() in smp_reschedule_interrupt()
in your v3 patch, because I'd rather avoid rebasing x86/urgent.
Thanks,
Ingo
next prev parent reply other threads:[~2016-10-18 9:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-17 12:16 [PATCH v2] x86/msr: Add write msr notrace to avoid the debug codes splash Wanpeng Li
2016-10-18 9:24 ` Ingo Molnar [this message]
2016-10-18 9:30 ` Wanpeng Li
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=20161018092448.GA28727@gmail.com \
--to=mingo@kernel.org \
--cc=efault@gmx.de \
--cc=kernellwp@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
--cc=wanpeng.li@hotmail.com \
/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.