From mboxrd@z Thu Jan 1 00:00:00 1970 From: jiri.prchal@aksignal.cz (=?UTF-8?B?SmnFmcOtIFByY2hhbA==?=) Date: Tue, 04 Mar 2014 15:29:16 +0100 Subject: [BUG] atmel: spi: scheduling while atomic Message-ID: <5315E33C.5000205@aksignal.cz> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi, I discovered some problem when I access anything on SPI. But it seems to work correctly, only log is full of this messages. I've tried kernels 3.13.0 and 3.14.0, both are the same. [ 0.875000] atmel_spi f0000000.spi: version: 0x212 [ 0.878906] atmel_spi f0000000.spi: Using dma0chan0 (tx) and dma0chan1 (rx) for DMA transfers [ 0.882812] atmel_spi f0000000.spi: Atmel SPI Controller at 0xf0000000 (irq 28) ... [ 0.890625] BUG: scheduling while atomic: spi0/383/0x00000002 [ 0.894531] Modules linked in: [ 0.894531] CPU: 0 PID: 383 Comm: spi0 Not tainted 3.14.0-rc4_cpm9g25+ #1 [ 0.894531] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 0.894531] [] (show_stack) from [] (__schedule_bug+0x48/0x60) [ 0.894531] [] (__schedule_bug) from [] (__schedule+0x60/0x484) [ 0.894531] [] (__schedule) from [] (schedule_timeout+0x17c/0x1ac) [ 0.894531] [] (schedule_timeout) from [] (wait_for_common+0x10c/0x1f0) [ 0.894531] [] (wait_for_common) from [] (atmel_spi_transfer_one_message+0x71c/0xa48) [ 0.894531] [] (atmel_spi_transfer_one_message) from [] (spi_pump_messages+0x210/0x238) [ 0.894531] [] (spi_pump_messages) from [] (kthread_worker_fn+0x15c/0x1b4) [ 0.894531] [] (kthread_worker_fn) from [] (kthread+0xb8/0xcc) [ 0.894531] [] (kthread) from [] (ret_from_fork+0x14/0x24) [ 0.898437] at25 spi0.0: 128 KByte at25 eeprom, pagesize 512 ... [ 3204.558593] BUG: scheduling while atomic: spi0/383/0x00000002 [ 3204.562500] Modules linked in: [ 3204.562500] CPU: 0 PID: 383 Comm: spi0 Tainted: G W 3.14.0-rc4_cpm9g25+ #1 [ 3204.562500] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 3204.566406] [] (show_stack) from [] (__schedule_bug+0x48/0x60) [ 3204.566406] [] (__schedule_bug) from [] (__schedule+0x60/0x484) [ 3204.566406] [] (__schedule) from [] (schedule_timeout+0x17c/0x1ac) [ 3204.566406] [] (schedule_timeout) from [] (wait_for_common+0x10c/0x1f0) [ 3204.566406] [] (wait_for_common) from [] (atmel_spi_transfer_one_message+0x71c/0xa48) [ 3204.566406] [] (atmel_spi_transfer_one_message) from [] (spi_pump_messages+0x210/0x238) [ 3204.566406] [] (spi_pump_messages) from [] (kthread_worker_fn+0x15c/0x1b4) [ 3204.566406] [] (kthread_worker_fn) from [] (kthread+0xb8/0xcc) [ 3204.566406] [] (kthread) from [] (ret_from_fork+0x14/0x24) [ 3204.570312] BUG: scheduling while atomic: spi0/383/0x00000002 [ 3204.574218] Modules linked in: [ 3204.574218] CPU: 0 PID: 383 Comm: spi0 Tainted: G W 3.14.0-rc4_cpm9g25+ #1 [ 3204.574218] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 3204.574218] [] (show_stack) from [] (__schedule_bug+0x48/0x60) [ 3204.574218] [] (__schedule_bug) from [] (__schedule+0x60/0x484) [ 3204.574218] [] (__schedule) from [] (schedule_timeout+0x17c/0x1ac) [ 3204.574218] [] (schedule_timeout) from [] (wait_for_common+0x10c/0x1f0) [ 3204.574218] [] (wait_for_common) from [] (atmel_spi_transfer_one_message+0x71c/0xa48) [ 3204.574218] [] (atmel_spi_transfer_one_message) from [] (spi_pump_messages+0x210/0x238) [ 3204.574218] [] (spi_pump_messages) from [] (kthread_worker_fn+0x15c/0x1b4) [ 3204.574218] [] (kthread_worker_fn) from [] (kthread+0xb8/0xcc) [ 3204.574218] [] (kthread) from [] (ret_from_fork+0x14/0x24)