All of lore.kernel.org
 help / color / mirror / Atom feed
* clk-lpc18xx-creg - scheduling while atomic
@ 2016-05-05 11:53 Joachim Eastwood
  2016-05-05 15:11 ` Vladimir Zapolskiy
  0 siblings, 1 reply; 6+ messages in thread
From: Joachim Eastwood @ 2016-05-05 11:53 UTC (permalink / raw)
  To: Mike Turquette, Stephen Boyd; +Cc: linux-clk

Hi,

I just tried next/master on my lpc18xx platform and got a 'scheduling
while atomic' on the msleep in clk_creg_32k_prepare. This does not
occur on 4.6-rc1. See below for backtrace.

According to Documentation/clk.txt, Part 6 - Locking, sleeping is
allowed in prepare functions. Changing the msleep to an mdelay makes
the problem go away.

So any ideas to what is going on?


regards,
Joachim Eastwood


BUG: scheduling while atomic: swapper/0/0x00000002
CPU: 0 PID: 0 Comm: swapper Not tainted
4.6.0-rc6-next-20160505-00001-g5c8320450d1c #826
Hardware name: NXP LPC18xx/43xx (Device Tree)
[<2800be81>] (unwind_backtrace) from [<2800b22f>] (show_stack+0xb/0xc)
[<2800b22f>] (show_stack) from [<2801ea21>] (__schedule_bug+0x2d/0x44)
[<2801ea21>] (__schedule_bug) from [<281dc937>] (__schedule+0x3b/0x268)
[<281dc937>] (__schedule) from [<281dcbbb>] (schedule+0x57/0x64)
[<281dcbbb>] (schedule) from [<281de8ef>] (schedule_timeout+0xfb/0x120)
[<281de8ef>] (schedule_timeout) from [<28030fcd>] (msleep+0xf/0x12)
[<28030fcd>] (msleep) from [<28165a6d>] (clk_creg_32k_prepare+0x1f/0x24)
[<28165a6d>] (clk_creg_32k_prepare) from [<281620d5>]
(clk_core_prepare+0x1d/0x36)
[<281620d5>] (clk_core_prepare) from [<2816340b>] (clk_register+0x22f/0x318)
[<2816340b>] (clk_register) from [<282b06c9>] (lpc18xx_creg_clk_init+0x55/0x84)
[<282b06c9>] (lpc18xx_creg_clk_init) from [<282b0149>] (of_clk_init+0xc1/0x12c)
[<282b0149>] (of_clk_init) from [<282a665d>] (time_init+0x15/0x20)
[<282a665d>] (time_init) from [<282a457d>] (start_kernel+0x169/0x274)
[<282a457d>] (start_kernel) from [<28008025>] (0x28008025)
bad: scheduling from the idle thread!
CPU: 0 PID: 0 Comm: swapper Tainted: G W
4.6.0-rc6-next-20160505-00001-g5c8320450d1c #826

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-05-06 17:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-05 11:53 clk-lpc18xx-creg - scheduling while atomic Joachim Eastwood
2016-05-05 15:11 ` Vladimir Zapolskiy
2016-05-05 16:00   ` Joachim Eastwood
2016-05-06 17:17     ` Stephen Boyd
2016-05-06 17:28       ` Joachim Eastwood
2016-05-06 17:32         ` Stephen Boyd

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.