From: Wei Xu <xuwei5@hisilicon.com>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
linux-arm-kernel@lists.infradead.org
Cc: "Barry Song" <baohua@kernel.org>,
linux-samsung-soc@vger.kernel.org,
"Tony Lindgren" <tony@atomide.com>,
"Frank Rowand" <frank.rowand@am.sony.com>,
linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org,
"Russell King" <linux@armlinux.org.uk>,
"Krzysztof Kozlowski" <krzk@kernel.org>,
"Patrice Chotard" <patrice.chotard@st.com>,
"Maxime Ripard" <maxime.ripard@bootlin.com>,
"David Brown" <david.brown@linaro.org>,
"Chen-Yu Tsai" <wens@csie.org>, "Kukjin Kim" <kgene@kernel.org>,
"Viresh Kumar" <vireshk@kernel.org>,
"Andy Gross" <andy.gross@linaro.org>,
tglx@linutronix.de, linux-omap@vger.kernel.org,
"Shiraz Hashim" <shiraz.linux.kernel@gmail.com>,
"Andreas Färber" <afaerber@suse.de>
Subject: Re: [PATCH 1/3] arm: Convert arm boot_lock to raw
Date: Mon, 16 Jul 2018 16:30:36 +0100 [thread overview]
Message-ID: <5B4CBA1C.3060408@hisilicon.com> (raw)
In-Reply-To: <20180711110037.12928-2-bigeasy@linutronix.de>
On 2018/7/11 12:00, Sebastian Andrzej Siewior wrote:
> From: Frank Rowand <frank.rowand@am.sony.com>
>
> The arm boot_lock is used by the secondary processor startup code. The locking
> task is the idle thread, which has idle->sched_class == &idle_sched_class.
> idle_sched_class->enqueue_task == NULL, so if the idle task blocks on the
> lock, the attempt to wake it when the lock becomes available will fail:
>
> try_to_wake_up()
> ...
> activate_task()
> enqueue_task()
> p->sched_class->enqueue_task(rq, p, flags)
>
> Fix by converting boot_lock to a raw spin lock.
>
> Cc: "Andreas Färber" <afaerber@suse.de>
> Cc: Kukjin Kim <kgene@kernel.org>
> Cc: Krzysztof Kozlowski <krzk@kernel.org>
> Cc: Wei Xu <xuwei5@hisilicon.com>
> Cc: Tony Lindgren <tony@atomide.com>
> Cc: Barry Song <baohua@kernel.org>
> Cc: Andy Gross <andy.gross@linaro.org>
> Cc: David Brown <david.brown@linaro.org>
> Cc: Viresh Kumar <vireshk@kernel.org>
> Cc: Shiraz Hashim <shiraz.linux.kernel@gmail.com>
> Cc: Patrice Chotard <patrice.chotard@st.com>
> Cc: Maxime Ripard <maxime.ripard@bootlin.com>
> Cc: Chen-Yu Tsai <wens@csie.org>
> Cc: linux-samsung-soc@vger.kernel.org
> Cc: linux-omap@vger.kernel.org
> Cc: linux-arm-msm@vger.kernel.org
> Cc: linux-soc@vger.kernel.org
> Signed-off-by: Frank Rowand <frank.rowand@am.sony.com>
> Link: http://lkml.kernel.org/r/4E77B952.3010606@am.sony.com
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> Tested-by: Tony Lindgren <tony@atomide.com>
> Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
> Tested-by: Krzysztof Kozlowski <krzk@kernel.org> [Exynos5422 Linaro PM-QA]
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> ---
> arch/arm/mach-actions/platsmp.c | 6 +++---
> arch/arm/mach-exynos/platsmp.c | 12 ++++++------
> arch/arm/mach-hisi/platmcpm.c | 22 +++++++++++-----------
Thanks!
Acked-by: Wei Xu <xuwei5@hisilicon.com> (for mach-hisi)
Best Regards,
Wei
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: xuwei5@hisilicon.com (Wei Xu)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] arm: Convert arm boot_lock to raw
Date: Mon, 16 Jul 2018 16:30:36 +0100 [thread overview]
Message-ID: <5B4CBA1C.3060408@hisilicon.com> (raw)
In-Reply-To: <20180711110037.12928-2-bigeasy@linutronix.de>
On 2018/7/11 12:00, Sebastian Andrzej Siewior wrote:
> From: Frank Rowand <frank.rowand@am.sony.com>
>
> The arm boot_lock is used by the secondary processor startup code. The locking
> task is the idle thread, which has idle->sched_class == &idle_sched_class.
> idle_sched_class->enqueue_task == NULL, so if the idle task blocks on the
> lock, the attempt to wake it when the lock becomes available will fail:
>
> try_to_wake_up()
> ...
> activate_task()
> enqueue_task()
> p->sched_class->enqueue_task(rq, p, flags)
>
> Fix by converting boot_lock to a raw spin lock.
>
> Cc: "Andreas F?rber" <afaerber@suse.de>
> Cc: Kukjin Kim <kgene@kernel.org>
> Cc: Krzysztof Kozlowski <krzk@kernel.org>
> Cc: Wei Xu <xuwei5@hisilicon.com>
> Cc: Tony Lindgren <tony@atomide.com>
> Cc: Barry Song <baohua@kernel.org>
> Cc: Andy Gross <andy.gross@linaro.org>
> Cc: David Brown <david.brown@linaro.org>
> Cc: Viresh Kumar <vireshk@kernel.org>
> Cc: Shiraz Hashim <shiraz.linux.kernel@gmail.com>
> Cc: Patrice Chotard <patrice.chotard@st.com>
> Cc: Maxime Ripard <maxime.ripard@bootlin.com>
> Cc: Chen-Yu Tsai <wens@csie.org>
> Cc: linux-samsung-soc at vger.kernel.org
> Cc: linux-omap at vger.kernel.org
> Cc: linux-arm-msm at vger.kernel.org
> Cc: linux-soc at vger.kernel.org
> Signed-off-by: Frank Rowand <frank.rowand@am.sony.com>
> Link: http://lkml.kernel.org/r/4E77B952.3010606 at am.sony.com
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> Tested-by: Tony Lindgren <tony@atomide.com>
> Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
> Tested-by: Krzysztof Kozlowski <krzk@kernel.org> [Exynos5422 Linaro PM-QA]
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> ---
> arch/arm/mach-actions/platsmp.c | 6 +++---
> arch/arm/mach-exynos/platsmp.c | 12 ++++++------
> arch/arm/mach-hisi/platmcpm.c | 22 +++++++++++-----------
Thanks!
Acked-by: Wei Xu <xuwei5@hisilicon.com> (for mach-hisi)
Best Regards,
Wei
next prev parent reply other threads:[~2018-07-16 15:30 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-11 11:00 [PATCH 0/3] arm: covert a few locks to raw_spin_lock_t Sebastian Andrzej Siewior
2018-07-11 11:00 ` [PATCH 1/3] arm: Convert arm boot_lock to raw Sebastian Andrzej Siewior
2018-07-11 11:00 ` Sebastian Andrzej Siewior
2018-07-11 15:29 ` Andreas Färber
2018-07-11 15:29 ` Andreas Färber
2018-07-16 4:20 ` Viresh Kumar
2018-07-16 4:20 ` Viresh Kumar
2018-07-16 7:42 ` Patrice CHOTARD
2018-07-16 7:42 ` Patrice CHOTARD
2018-07-16 15:30 ` Wei Xu [this message]
2018-07-16 15:30 ` Wei Xu
2018-07-11 11:00 ` [PATCH 2/3] arm: kprobe: replace patch_lock to raw lock Sebastian Andrzej Siewior
2018-07-11 11:00 ` [PATCH 3/3] arm: use a raw_spin_lock in unwind Sebastian Andrzej Siewior
-- strict thread matches above, loose matches on Subject: below --
2018-12-07 10:27 [PATCH 0/3 REPOST] arm: covert a few spinlock_t locks to raw_spinlock_t Sebastian Andrzej Siewior
2018-12-07 10:27 ` [PATCH 1/3] arm: Convert arm boot_lock to raw Sebastian Andrzej Siewior
2018-12-07 12:49 ` Linus Walleij
2018-12-07 12:49 ` Linus Walleij
2018-12-07 13:00 ` Russell King - ARM Linux
2018-12-07 13:00 ` Russell King - ARM Linux
2018-12-08 23:15 ` Linus Walleij
2018-12-08 23:15 ` Linus Walleij
2018-12-09 0:41 ` Russell King - ARM Linux
2018-12-09 0:41 ` Russell King - ARM Linux
2018-12-10 14:37 ` Sebastian Andrzej Siewior
2018-12-10 14:37 ` Sebastian Andrzej Siewior
2018-12-11 18:19 ` Linus Walleij
2018-12-11 18:19 ` Linus Walleij
2018-12-11 21:29 ` Sebastian Andrzej Siewior
2018-12-11 21:29 ` Sebastian Andrzej Siewior
2018-12-13 11:48 ` Russell King - ARM Linux
2018-12-13 11:48 ` Russell King - ARM Linux
2018-12-13 12:42 ` Sebastian Andrzej Siewior
2018-12-13 12:42 ` Sebastian Andrzej Siewior
2018-12-12 11:15 ` Russell King - ARM Linux
2018-12-12 11:15 ` Russell King - ARM Linux
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=5B4CBA1C.3060408@hisilicon.com \
--to=xuwei5@hisilicon.com \
--cc=afaerber@suse.de \
--cc=andy.gross@linaro.org \
--cc=baohua@kernel.org \
--cc=bigeasy@linutronix.de \
--cc=david.brown@linaro.org \
--cc=frank.rowand@am.sony.com \
--cc=kgene@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux-soc@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=maxime.ripard@bootlin.com \
--cc=patrice.chotard@st.com \
--cc=shiraz.linux.kernel@gmail.com \
--cc=tglx@linutronix.de \
--cc=tony@atomide.com \
--cc=vireshk@kernel.org \
--cc=wens@csie.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 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.