From mboxrd@z Thu Jan 1 00:00:00 1970 From: xuwei5@hisilicon.com (Wei Xu) Date: Mon, 16 Jul 2018 16:30:36 +0100 Subject: [PATCH 1/3] arm: Convert arm boot_lock to raw In-Reply-To: <20180711110037.12928-2-bigeasy@linutronix.de> References: <20180711110037.12928-1-bigeasy@linutronix.de> <20180711110037.12928-2-bigeasy@linutronix.de> Message-ID: <5B4CBA1C.3060408@hisilicon.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 2018/7/11 12:00, Sebastian Andrzej Siewior wrote: > From: Frank Rowand > > 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" > Cc: Kukjin Kim > Cc: Krzysztof Kozlowski > Cc: Wei Xu > Cc: Tony Lindgren > Cc: Barry Song > Cc: Andy Gross > Cc: David Brown > Cc: Viresh Kumar > Cc: Shiraz Hashim > Cc: Patrice Chotard > Cc: Maxime Ripard > Cc: Chen-Yu Tsai > 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 > Link: http://lkml.kernel.org/r/4E77B952.3010606 at am.sony.com > Signed-off-by: Thomas Gleixner > Tested-by: Tony Lindgren > Acked-by: Krzysztof Kozlowski > Tested-by: Krzysztof Kozlowski [Exynos5422 Linaro PM-QA] > Signed-off-by: Sebastian Andrzej Siewior > --- > 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 (for mach-hisi) Best Regards, Wei