linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* BUG: sleeping function called from invalid context at include/linux/freezer.h:45
       [not found] <CAH9JG2XniMv5dVf1DixGNaQAJk-sZjnV9HfYeihEJP3JDyC4+Q@mail.gmail.com>
@ 2012-01-10 13:04 ` Srivatsa S. Bhat
  2012-01-11  0:57   ` Kyungmin Park
  0 siblings, 1 reply; 2+ messages in thread
From: Srivatsa S. Bhat @ 2012-01-10 13:04 UTC (permalink / raw)
  To: linux-arm-kernel

On 01/10/2012 09:57 AM, Kyungmin Park wrote:

> Dear all
> 
> with the latest kernel. I got the below bug message.
> It calls the sleep function. Does it intended operation?
> 
> static inline bool try_to_freeze(void)
> {
>         might_sleep();
>         if (likely(!freezing(current)))
>                 return false;
>         return __refrigerator(false);
> }
> 
> # poweroff
> [    6.852523] BUG: sleeping function called from invalid context at
> include/linux/freezer.h:45
> [    6.859489] in_atomic(): 0, irqs_disabled(): 128, pid: 1, name: init
> [    6.865846] [<c0013508>] (unwind_backtrace+0x0/0xec) from
> [<c0010124>] (do_signal+0x88/0x588)
> [    6.874337] [<c0010124>] (do_signal+0x88/0x588) from [<c001063c>]
> (do_notify_resume+0x18/0x38)
> [    6.882928] [<c001063c>] (do_notify_resume+0x18/0x38) from
> [<c000dc18>] (work_pending+0x24/0x28)
> 


You seem to be running on Arm architecture. Can you please try the patch
at https://lkml.org/lkml/2011/8/25/231 ?

Regards,
Srivatsa S. Bhat
IBM Linux Technology Center

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

* BUG: sleeping function called from invalid context at include/linux/freezer.h:45
  2012-01-10 13:04 ` BUG: sleeping function called from invalid context at include/linux/freezer.h:45 Srivatsa S. Bhat
@ 2012-01-11  0:57   ` Kyungmin Park
  0 siblings, 0 replies; 2+ messages in thread
From: Kyungmin Park @ 2012-01-11  0:57 UTC (permalink / raw)
  To: linux-arm-kernel

On 1/10/12, Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> wrote:
> On 01/10/2012 09:57 AM, Kyungmin Park wrote:
>
>> Dear all
>>
>> with the latest kernel. I got the below bug message.
>> It calls the sleep function. Does it intended operation?
>>
>> static inline bool try_to_freeze(void)
>> {
>>         might_sleep();
>>         if (likely(!freezing(current)))
>>                 return false;
>>         return __refrigerator(false);
>> }
>>
>> # poweroff
>> [    6.852523] BUG: sleeping function called from invalid context at
>> include/linux/freezer.h:45
>> [    6.859489] in_atomic(): 0, irqs_disabled(): 128, pid: 1, name: init
>> [    6.865846] [<c0013508>] (unwind_backtrace+0x0/0xec) from
>> [<c0010124>] (do_signal+0x88/0x588)
>> [    6.874337] [<c0010124>] (do_signal+0x88/0x588) from [<c001063c>]
>> (do_notify_resume+0x18/0x38)
>> [    6.882928] [<c001063c>] (do_notify_resume+0x18/0x38) from
>> [<c000dc18>] (work_pending+0x24/0x28)
>>
>
>
> You seem to be running on Arm architecture. Can you please try the patch
> at https://lkml.org/lkml/2011/8/25/231 ?

Thank you,
It's working and I read the all mails related with this issue. and
need to fix it at arm side.

I think some more codes from arm are needed to work it properly.

Thank you,
Kyungmin Park
>
> Regards,
> Srivatsa S. Bhat
> IBM Linux Technology Center
>
>

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

end of thread, other threads:[~2012-01-11  0:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAH9JG2XniMv5dVf1DixGNaQAJk-sZjnV9HfYeihEJP3JDyC4+Q@mail.gmail.com>
2012-01-10 13:04 ` BUG: sleeping function called from invalid context at include/linux/freezer.h:45 Srivatsa S. Bhat
2012-01-11  0:57   ` Kyungmin Park

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).