From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?SmnFmcOtIFByY2hhbA==?= Subject: [BUG] atmel: spi: scheduling while atomic Date: Tue, 8 Sep 2015 14:17:42 +0200 Message-ID: <55EED1E6.7000902@aksignal.cz> Reply-To: jiri.prchal-cKCO0sOKHLPtwjQa/ONI9g@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Ferre, Nicolas" Return-path: Sender: linux-spi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Hi, again I discovered a problem when I access devices on SPI. It appears if I access one device pretty often (about once at second) and the error message appears about 3 times a hour. Nevertheless it works correctly. I thing it's in kernels 3.17 and 3.18 maybe even longer, now I have 3.18.21. ... [10176.960000] BUG: scheduling while atomic: spi0/401/0x00000002 [10176.960000] Modules linked in: [10176.960000] Preemption disabled at:[< (null)>] (null) [10176.960000] [10176.960000] CPU: 0 PID: 401 Comm: spi0 Tainted: G W 3.18.21_cpm9g25 #2 [10176.960000] [] (unwind_backtrace) from [] (show_stack+0x20/0x24) [10176.960000] [] (show_stack) from [] (dump_stack+0x20/0x28) [10176.960000] [] (dump_stack) from [] (__schedule_bug+0x88/0xac) [10176.960000] [] (__schedule_bug) from [] (__schedule+0x68/0x508) [10176.960000] [] (__schedule) from [] (schedule+0xa0/0xa4) [10176.960000] [] (schedule) from [] (schedule_preempt_disabled+0x20/0x2c) [10176.960000] [] (schedule_preempt_disabled) from [] (__mutex_lock_slowpath+0xe8/0x17c) [10176.960000] [] (__mutex_lock_slowpath) from [] (mutex_lock+0x40/0x44) [10176.960000] [] (mutex_lock) from [] (clk_prepare_lock+0x58/0xf4) [10176.960000] [] (clk_prepare_lock) from [] (clk_get_rate+0x1c/0x54) [10176.960000] [] (clk_get_rate) from [] (atmel_spi_transfer_one_message+0x264/0x9ec) [10176.960000] [] (atmel_spi_transfer_one_message) from [] (spi_pump_messages+0x5cc/0x5f0) [10176.960000] [] (spi_pump_messages) from [] (kthread_worker_fn+0x140/0x1ac) [10176.960000] [] (kthread_worker_fn) from [] (kthread+0xd4/0xe8) [10176.960000] [] (kthread) from [] (ret_from_fork+0x14/0x20) ... -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html