From: Michael Bohan <mbohan@codeaurora.org>
To: Borislav Petkov <bp@alien8.de>,
Santosh Shilimkar <santosh.shilimkar@ti.com>,
Kevin Cernekee <cernekee@gmail.com>,
mingo@elte.hu, akpm@linux-foundation.org,
simon.kagstrom@netinsight.
Subject: Re: console_cpu_notify can cause scheduling BUG during CPU hotplug
Date: Wed, 27 Apr 2011 15:12:19 -0700 [thread overview]
Message-ID: <4DB894C3.2040300@codeaurora.org> (raw)
In-Reply-To: <20110427073839.GA16718@liondog.tnic>
On 4/27/2011 12:38 AM, Borislav Petkov wrote:
> Great, whatever you guys come up with, we'd like to give it a run too.
> We (AMD) hit the same issue in one of our tests but in our case we end
> up in an endless loop of the state machine at stop_machine_cpu_stop()
> since the core being offlined cannot ack the state transition to
> STOPMACHINE_EXIT due to a similar reason.
>
> One possible fix is dropping CPU_DYING from console_cpu_notify()
> since it is called into by the offlining path in
> kernel/cpu.c::take_cpu_down().
This seems to be a different problem. Could you elaborate about why
removing CPU_DYING from console_cpu_notify resolves your problem? What
are other possible fixes?
In the failure case I witnessed, we're attempting to sleep in atomic
mode, which is a clear violation caused by the addition of CPU_DYING. I
haven't thoroughly investigated whether other actions in
console_cpu_notify (eg. ONLINE, DEAD, DOWN_FAILED, UP_CANCELED) are in
atomic mode violation as well.
Thanks,
Mike
--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
WARNING: multiple messages have this Message-ID (diff)
From: mbohan@codeaurora.org (Michael Bohan)
To: linux-arm-kernel@lists.infradead.org
Subject: console_cpu_notify can cause scheduling BUG during CPU hotplug
Date: Wed, 27 Apr 2011 15:12:19 -0700 [thread overview]
Message-ID: <4DB894C3.2040300@codeaurora.org> (raw)
In-Reply-To: <20110427073839.GA16718@liondog.tnic>
On 4/27/2011 12:38 AM, Borislav Petkov wrote:
> Great, whatever you guys come up with, we'd like to give it a run too.
> We (AMD) hit the same issue in one of our tests but in our case we end
> up in an endless loop of the state machine at stop_machine_cpu_stop()
> since the core being offlined cannot ack the state transition to
> STOPMACHINE_EXIT due to a similar reason.
>
> One possible fix is dropping CPU_DYING from console_cpu_notify()
> since it is called into by the offlining path in
> kernel/cpu.c::take_cpu_down().
This seems to be a different problem. Could you elaborate about why
removing CPU_DYING from console_cpu_notify resolves your problem? What
are other possible fixes?
In the failure case I witnessed, we're attempting to sleep in atomic
mode, which is a clear violation caused by the addition of CPU_DYING. I
haven't thoroughly investigated whether other actions in
console_cpu_notify (eg. ONLINE, DEAD, DOWN_FAILED, UP_CANCELED) are in
atomic mode violation as well.
Thanks,
Mike
--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
WARNING: multiple messages have this Message-ID (diff)
From: Michael Bohan <mbohan@codeaurora.org>
To: Borislav Petkov <bp@alien8.de>,
Santosh Shilimkar <santosh.shilimkar@ti.com>,
Kevin Cernekee <cernekee@gmail.com>,
mingo@elte.hu, akpm@linux-foundation.org,
simon.kagstrom@netinsight.net, David.Woodhouse@intel.com,
lethal@linux-sh.org, tj@kernel.org, linux-kernel@vger.kernel.org,
linux-arm-msm@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Conny Seidel <conny.seidel@amd.com>,
Borislav Petkov <borislav.petkov@amd.com>
Subject: Re: console_cpu_notify can cause scheduling BUG during CPU hotplug
Date: Wed, 27 Apr 2011 15:12:19 -0700 [thread overview]
Message-ID: <4DB894C3.2040300@codeaurora.org> (raw)
In-Reply-To: <20110427073839.GA16718@liondog.tnic>
On 4/27/2011 12:38 AM, Borislav Petkov wrote:
> Great, whatever you guys come up with, we'd like to give it a run too.
> We (AMD) hit the same issue in one of our tests but in our case we end
> up in an endless loop of the state machine at stop_machine_cpu_stop()
> since the core being offlined cannot ack the state transition to
> STOPMACHINE_EXIT due to a similar reason.
>
> One possible fix is dropping CPU_DYING from console_cpu_notify()
> since it is called into by the offlining path in
> kernel/cpu.c::take_cpu_down().
This seems to be a different problem. Could you elaborate about why
removing CPU_DYING from console_cpu_notify resolves your problem? What
are other possible fixes?
In the failure case I witnessed, we're attempting to sleep in atomic
mode, which is a clear violation caused by the addition of CPU_DYING. I
haven't thoroughly investigated whether other actions in
console_cpu_notify (eg. ONLINE, DEAD, DOWN_FAILED, UP_CANCELED) are in
atomic mode violation as well.
Thanks,
Mike
--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
next prev parent reply other threads:[~2011-04-27 22:12 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-25 23:33 console_cpu_notify can cause scheduling BUG during CPU hotplug Michael Bohan
2011-04-25 23:33 ` Michael Bohan
2011-04-25 23:33 ` Michael Bohan
2011-04-26 0:18 ` Kevin Cernekee
2011-04-26 0:18 ` Kevin Cernekee
2011-04-26 5:58 ` Santosh Shilimkar
2011-04-26 5:58 ` Santosh Shilimkar
2011-04-26 5:58 ` Santosh Shilimkar
2011-04-26 21:06 ` Michael Bohan
2011-04-26 21:06 ` Michael Bohan
2011-04-27 7:38 ` Borislav Petkov
2011-04-27 7:38 ` Borislav Petkov
2011-04-27 22:12 ` Michael Bohan [this message]
2011-04-27 22:12 ` Michael Bohan
2011-04-27 22:12 ` Michael Bohan
2011-04-30 8:38 ` Borislav Petkov
2011-04-30 8:38 ` Borislav Petkov
2011-05-09 20:39 ` Michael Bohan
2011-05-09 20:39 ` Michael Bohan
2011-05-09 20:39 ` Michael Bohan
-- strict thread matches above, loose matches on Subject: below --
2011-08-30 8:37 Shen Canquan
2011-09-05 8:34 ` canquan.shen
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=4DB894C3.2040300@codeaurora.org \
--to=mbohan@codeaurora.org \
--cc=akpm@linux-foundation.org \
--cc=bp@alien8.de \
--cc=cernekee@gmail.com \
--cc=mingo@elte.hu \
--cc=santosh.shilimkar@ti.com \
--cc=simon.kagstrom@netinsight. \
/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.