From mboxrd@z Thu Jan 1 00:00:00 1970 From: dhylands@gmail.com (Dave Hylands) Date: Mon, 9 May 2011 23:08:17 -0700 Subject: BUG: scheduling while atomic In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi Sandeep, Sending to the list this time... On Mon, May 9, 2011 at 10:51 PM, sandeep kumar wrote: > Here is the following logs i got when i collected ramdump from my > development mobile after going to kernel panic > Kernel version is 2.6.35.7, Android version GingerBread. > > BUG: scheduling while atomic: pppd/675/0x00000203 > <4>[?? 85.745849] Modules linked in: dhd hotspot_event_monitoring bthid > cmc7xx_sdio > <4>[?? 85.746032] [] (unwind_backtrace+0x0/0x168) from > [] (dump_stack+0x18/0x1c) > <4>[?? 85.746154] [] (dump_stack+0x18/0x1c) from [] > (__schedule_bug+0x54/0x68) > <4>[?? 85.746246] [] (__schedule_bug+0x54/0x68) from [] > (schedule+0x78/0x48c) > <4>[?? 85.746337] [] (schedule+0x78/0x48c) from [] > (schedule_timeout+0x24/0x23c) > <4>[?? 85.746429] [] (schedule_timeout+0x24/0x23c) from > [] (__down+0x88/0xc4) > <4>[?? 85.746520] [] (__down+0x88/0xc4) from [] > (down+0x44/0x84) > <4>[?? 85.746643] [] (down+0x44/0x84) from [] > (dpram_write+0x64/0x884) > <4>[?? 85.746734] [] (dpram_write+0x64/0x884) from [] > (vs_write+0x104/0x154) > <4>[?? 85.746826] [] (vs_write+0x104/0x154) from [] > (ppp_async_push+0x110/0x584) > <4>[?? 85.746917] [] (ppp_async_push+0x110/0x584) from > [] (ppp_async_send+0x50/0x58) > <4>[?? 85.747009] [] (ppp_async_send+0x50/0x58) from [] > (ppp_channel_push+0x60/0x100) > <4>[?? 85.747100] [] (ppp_channel_push+0x60/0x100) from > [] (ppp_write+0x100/0x108) Looking at the source, ppp_channel_push calls spin_lock_bh which enters the atomic context. dpram_write tries to call down from within this context, which isn't legal. -- Dave Hylands Shuswap, BC, Canada http://www.davehylands.com