Hi all,
I am working on android, linux kernel version: 2.6.35.11
I am getting this following error message. I know it occurs when u call a sleeping function in atomic context.
As far as i knew the entire stack of functions,nothing is atomic context(these are standard platform dev add functions...)
Now i want to know these things..
1) Is there any method to know, when and where this atomic context started?
(i put a log in the "msm_bus_fabric_probe" function, to check whether it is atomic or not using "in_atomic()"..it is giving '0', and also i read that in_atomic wont always work well in all cases in the header file)
2) Can we neglect this warning, is it very important? because lot of similer cases,(where "clk_get_sys" is called)
are working fine. only this thing is showing warning message. can we overlook this?
pls tell me
[ 0.267394] BUG: sleeping function called from invalid context at /home/sandeep_CELOX_NTT/android/kernel/kernel/mutex.c:94
<3>[ 0.267455] in_atomic(): 1, irqs_disabled(): 0, pid: 1, name: swapper
<4>[ 0.267517] [<c01076a0>] (unwind_backtrace+0x0/0x164) from [<c07233f0>] (mutex_lock+0x18/0x38)
<4>[ 0.267578] [<c07233f0>] (mutex_lock+0x18/0x38) from [<c010e5dc>] (clk_get_sys+0x2c/0xe4)
<4>[ 0.267608] [<c010e5dc>] (clk_get_sys+0x2c/0xe4) from [<c01869b4>] (msm_bus_fabric_probe+0x630/0x818)
<4>[ 0.267639] [<c01869b4>] (msm_bus_fabric_probe+0x630/0x818) from [<c0417b2c>] (platform_drv_probe+0x18/0x1c)
<4>[ 0.267669] [<c0417b2c>] (platform_drv_probe+0x18/0x1c) from [<c0416788>] (driver_probe_device+0x19c/0x34c)
<4>[ 0.267730] [<c0416788>] (driver_probe_device+0x19c/0x34c) from [<c04159c0>] (bus_for_each_drv+0x48/0x84)
<4>[ 0.267761] [<c04159c0>] (bus_for_each_drv+0x48/0x84) from [<c0416a84>] (device_attach+0x64/0x88)
<4>[ 0.267791] [<c0416a84>] (device_attach+0x64/0x88) from [<c0415788>] (bus_probe_device+0x24/0x40)
<4>[ 0.267822] [<c0415788>] (bus_probe_device+0x24/0x40) from [<c04139a0>] (device_add+0x39c/0x52c)
<4>[ 0.267852] [<c04139a0>] (device_add+0x39c/0x52c) from [<c0418158>] (platform_device_add+0x16c/0x1e8)
<4>[ 0.267883] [<c0418158>] (platform_device_add+0x16c/0x1e8) from [<c0418498>] (platform_add_devices+0x1c/0x60)
<4>[ 0.267913] [<c0418498>] (platform_add_devices+0x1c/0x60) from [<c00147d4>] (msm8x60_init+0x378/0x14a4)
--
With regards,
Sandeep Kumar Anantapalli,
<3>[ 0.267455] in_atomic(): 1, irqs_disabled(): 0, pid: 1, name: swapper
<4>[ 0.267517] [<c01076a0>] (unwind_backtrace+0x0/0x164) from [<c07233f0>] (mutex_lock+0x18/0x38)
<4>[ 0.267578] [<c07233f0>] (mutex_lock+0x18/0x38) from [<c010e5dc>] (clk_get_sys+0x2c/0xe4)
<4>[ 0.267608] [<c010e5dc>] (clk_get_sys+0x2c/0xe4) from [<c01869b4>] (msm_bus_fabric_probe+0x630/0x818)
<4>[ 0.267639] [<c01869b4>] (msm_bus_fabric_probe+0x630/0x818) from [<c0417b2c>] (platform_drv_probe+0x18/0x1c)
<4>[ 0.267669] [<c0417b2c>] (platform_drv_probe+0x18/0x1c) from [<c0416788>] (driver_probe_device+0x19c/0x34c)
<4>[ 0.267730] [<c0416788>] (driver_probe_device+0x19c/0x34c) from [<c04159c0>] (bus_for_each_drv+0x48/0x84)
<4>[ 0.267761] [<c04159c0>] (bus_for_each_drv+0x48/0x84) from [<c0416a84>] (device_attach+0x64/0x88)
<4>[ 0.267791] [<c0416a84>] (device_attach+0x64/0x88) from [<c0415788>] (bus_probe_device+0x24/0x40)
<4>[ 0.267822] [<c0415788>] (bus_probe_device+0x24/0x40) from [<c04139a0>] (device_add+0x39c/0x52c)
<4>[ 0.267852] [<c04139a0>] (device_add+0x39c/0x52c) from [<c0418158>] (platform_device_add+0x16c/0x1e8)
<4>[ 0.267883] [<c0418158>] (platform_device_add+0x16c/0x1e8) from [<c0418498>] (platform_add_devices+0x1c/0x60)
<4>[ 0.267913] [<c0418498>] (platform_add_devices+0x1c/0x60) from [<c00147d4>] (msm8x60_init+0x378/0x14a4)
--
With regards,
Sandeep Kumar Anantapalli,
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies