From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Adrien Thierry <athierry@redhat.com>
Cc: linux-rt-users@vger.kernel.org,
"Rafael J. Wysocki" <rafael@kernel.org>,
Kevin Hilman <khilman@kernel.org>,
Ulf Hansson <ulf.hansson@linaro.org>,
Len Brown <len.brown@intel.com>, Pavel Machek <pavel@ucw.cz>,
Andrew Halaney <ahalaney@redhat.com>,
Eric Chanudet <echanude@redhat.com>,
Brian Masney <bmasney@redhat.com>,
linux-pm@vger.kernel.org
Subject: Re: [PATCH RFC] base: power: replace generic_pm_domain spinlock by raw spinlock
Date: Thu, 16 Jun 2022 08:17:13 +0200 [thread overview]
Message-ID: <YqrK6RZes4W4bZJd@kroah.com> (raw)
In-Reply-To: <20220615203605.1068453-1-athierry@redhat.com>
On Wed, Jun 15, 2022 at 04:36:05PM -0400, Adrien Thierry wrote:
> We've been encountering a BUG: scheduling while atomic while running the
> 5.18.0-rt11 kernel on a Qualcomm SoC (see stacktrace below).
>
> It seems to occur because a spinlock is taken in the PSCI idle code path
> in the idle loop. With the RT patchset applied and CONFIG_PREEMPT_RT
> enabled, spinlocks can sleep, thus triggering the bug.
>
> In order to prevent this, replace the generic_pm_domain spinlock by a
> raw spinlock.
Ick. I'll leave this to the RT people, but having a spinlock sleep
feels totally wrong overall and I didn't think that was something that
actually happened.
For mainline, I don't think this is a valid change at this point in time
untill you all work out the details more.
thanks,
greg k-h
next prev parent reply other threads:[~2022-06-16 6:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-15 20:36 [PATCH RFC] base: power: replace generic_pm_domain spinlock by raw spinlock Adrien Thierry
2022-06-15 21:44 ` Ulf Hansson
2022-06-15 21:53 ` Ulf Hansson
2022-06-16 6:17 ` Greg Kroah-Hartman [this message]
2022-12-16 10:20 ` Krzysztof Kozlowski
2022-12-16 14:13 ` Adrien Thierry
2022-12-16 14:42 ` Krzysztof Kozlowski
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=YqrK6RZes4W4bZJd@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=ahalaney@redhat.com \
--cc=athierry@redhat.com \
--cc=bmasney@redhat.com \
--cc=echanude@redhat.com \
--cc=khilman@kernel.org \
--cc=len.brown@intel.com \
--cc=linux-pm@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=rafael@kernel.org \
--cc=ulf.hansson@linaro.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