We are facing issue when we press the POWER button to resume from suspend mode, when the system is in low power
Kenrel:3.0.8; omap4460: ES1.1; android: 4.0.1
Seeing this message in console...
---------------------------------------------------------
...
Resume caused by IRQ 69, gp timer
.
Powerdomain (core_pwrdm) didn't enter target state 1 Vs achived state 3. current state 3
Powerdomain (mpu_pwrdm) didn't enter target state 1 Vs achived state 3. current state 3
Powerdomain (l4per_pwrdm) didn't enter target state 1 Vs achived state 3. current state 3
Could not enter target state in pm_suspen.
----------------------------------------
from the log it looks to me that, it did not goto the supend state at all. but while pressing the power button it does not wake-up
Could you please get back if someone faced this similar issue? In case need further debug info i can post it over here...
Thanks
Venkat
Hi Venkat,
Venkateswaran Thyagarajan94947Kenrel:3.0.8; omap4460: ES1.1; android: 4.0.1
It looks like your post should apply more to the Android forum than the Linux forum. I'm moving it accordingly where other experts may be able to help you.
--Sid
Need more information? Some Categories on TI's processors wiki are -
http://processors.wiki.ti.com/index.php/Category:DaVinci
http://processors.wiki.ti.com/index.php/Category:DaVinci_Linux
http://processors.wiki.ti.com/index.php/Category:EZSDK
http://processors.wiki.ti.com/index.php/Category:DVSDK
http://processors.wiki.ti.com/index.php/Category:OMX
I have not seen this. However, can you attach a complete console log?
Jon
Hi Jon,
Here is the serial console log...
root@android:/ # [ 1777.065582] PM: Syncing filesystems ... [ 1777.071228] twl: invalid module number 107[ 1777.168334] done.[ 1777.170806] Freezing user space processes ... (elapsed 0.02 seconds) done.[ 1777.204254] Freezing remaining freezable tasks ... (elapsed 0.02 seconds) done.[ 1777.235504] Suspending console(s) (use no_console_suspend to debug)[ 1777.256317] PVR: PVRSRVDriverSuspend(pDevice=c789e800)[ 1777.256378] PVR: SysSystemPrePowerState: Entering state D3[ 1777.256408] PVR: Uninstalling device LISR on IRQ 53 with cookie c7a2f200[ 1777.256469] PVR: DisableSystemClocks: Disabling System Clocks[ 1777.261322] PM: suspend of devices complete after 15.533 msecs[ 1777.263458] PM: late suspend of devices complete after 2.105 msecs[ 1777.263488] Disabling non-boot CPUs ...[ 1777.278503] CPU1: shutdown[ 1777.282287] Resume caused by IRQ 29, localtimer[ 1777.282318] PD_CORE curr=ON prev=ON logic=ON[ 1777.282379] PD_L4_PER curr=ON prev=ON logic=ON[ 1777.282409] PD_MPU curr=ON prev=ON logic=ON[ 1777.282440] Powerdomain (core_pwrdm) didn't enter target state 1 Vs achieved state 3. current state 3[ 1777.282470] Powerdomain (mpu_pwrdm) didn't enter target state 1 Vs achieved state 3. current state 3[ 1777.282501] Powerdomain (l4per_pwrdm) didn't enter target state 1 Vs achieved state 3. current state 3[ 1777.282531] Could not enter target state in pm_suspend[ 1777.282806] Enabling non-boot CPUs ...[ 1777.307769] CPU1: Booted secondary processor[ 1777.309692] thermal_cooling_dev_register:Found cpu cpu[ 1777.309692] omap_safe_zone:hot spot temp 28523[ 1777.309692] CPU1 is up[ 1777.311798] PM: early resume of devices complete after 1.861 msecs[ 1777.313842] Switched to NOHz mode on CPU #1[ 1777.613220] PVR: PVRSRVDriverResume(pDevice=c789e800)[ 1777.613281] PVR: SysSystemPostPowerState: Entering state D0[ 1777.613311] PVR: EnableSystemClocks: Enabling System Clocks[ 1777.613342] PVR: Installing device LISR SGX ISR on IRQ 53 with cookie c7a2f200[ 1777.614196] wakeup wake lock: musb_autosuspend_wake_lock[ 1777.617675] twl: invalid module number 107[ 1777.644439] PM: resume of devices complete after 332.061 msecs[ 1777.824279] Restarting tasks ... done.[ 1777.833099] suspend: exit suspend, ret = 0 (2000-01-01 01:19:17.546374889 UTC)[ 1778.003417] hub 1-0:1.0: activate --> -22[ 1778.043426] PM: Syncing filesystems ... done.[ 1778.055480] Freezing user space processes ... (elapsed 0.02 seconds) done.[ 1778.090332] Freezing remaining freezable tasks ... (elapsed 0.02 seconds) done.[ 1778.121582] Suspending console(s) (use no_console_suspend to debug)[ 1778.142150] PVR: PVRSRVDriverSuspend(pDevice=c789e800)[ 1778.142211] PVR: SysSystemPrePowerState: Entering state D3[ 1778.142242] PVR: Uninstalling device LISR on IRQ 53 with cookie c7a2f200[ 1778.142303] PVR: DisableSystemClocks: Disabling System Clocks[ 1778.147033] PM: suspend of devices complete after 15.136 msecs[ 1778.149169] PM: late suspend of devices complete after 2.105 msecs[ 1778.149200] Disabling non-boot CPUs ...[ 1778.150482] CPU1: shutdown[ 1778.171691] Resume caused by IRQ 69, gp timer[ 1778.171752] Successfully put all powerdomains to target state[ 1778.171936] Enabling non-boot CPUs ...[ 1778.192138] CPU1: Booted secondary processor[ 1778.193634] Switched to NOHz mode on CPU #1[ 1778.194122] thermal_cooling_dev_register:Found cpu cpu[ 1778.194122] omap_read_current_temp:Invalid adc code reported by the sensor 0[ 1778.194213] CPU1 is up[ 1778.196746] PM: early resume of devices complete after 2.532 msecs[ 1778.491058] PVR: PVRSRVDriverResume(pDevice=c789e800)[ 1778.491088] PVR: SysSystemPostPowerState: Entering state D0[ 1778.491119] PVR: EnableSystemClocks: Enabling System Clocks[ 1778.491180] PVR: Installing device LISR SGX ISR on IRQ 53 with cookie c7a2f200[ 1778.491973] wakeup wake lock: musb_autosuspend_wake_lock[ 1778.495269] twl: invalid module number 107[ 1778.524078] PM: resume of devices complete after 327.026 msecs[ 1778.661956] Restarting tasks ... [ 1778.665618] hub 1-0:1.0: activate --> -22[ 1778.670043] done.[ 1778.670288] suspend: exit suspend, ret = 0 (2000-01-01 01:19:18.383563597 UTC)[ 1778.718750] PM: Syncing filesystems ... done.[ 1778.731079] Freezing user space processes ... (elapsed 0.02 seconds) done.[ 1778.759124] Freezing remaining freezable tasks ... (elapsed 0.02 seconds) done.[ 1778.790374] Suspending console(s) (use no_console_suspend to debug)[ 1778.811035] PVR: PVRSRVDriverSuspend(pDevice=c789e800)[ 1778.811096] PVR: SysSystemPrePowerState: Entering state D3[ 1778.811126] PVR: Uninstalling device LISR on IRQ 53 with cookie c7a2f200[ 1778.811187] PVR: DisableSystemClocks: Disabling System Clocks[ 1778.816040] PM: suspend of devices complete after 15.380 msecs[ 1778.818176] PM: late suspend of devices complete after 1.922 msecs[ 1778.818206] Disabling non-boot CPUs ...[ 1778.819458] CPU1: shutdown[ 1778.823150] Resume caused by IRQ 69, gp timer[ 1778.823181] PD_CORE curr=ON prev=ON logic=ON[ 1778.823242] PD_L4_PER curr=ON prev=ON logic=ON[ 1778.823272] PD_MPU curr=ON prev=ON logic=ON[ 1778.823303] Powerdomain (core_pwrdm) didn't enter target state 1 Vs achieved state 3. current state 3[ 1778.823333] Powerdomain (mpu_pwrdm) didn't enter target state 1 Vs achieved state 3. current state 3[ 1778.823364] Powerdomain (l4per_pwrdm) didn't enter target state 1 Vs achieved state 3. current state 3[ 1778.823394] Could not enter target state in pm_suspend[ 1778.823608] Enabling non-boot CPUs ...[ 1778.843017] CPU1: Booted secondary processor[ 1778.844879] thermal_cooling_dev_register:Found cpu cpu[ 1778.844879] omap_read_current_temp:Invalid adc code reported by the sensor 0[ 1778.844879] CPU1 is up[ 1778.845031] Switched to NOHz mode on CPU #1[ 1778.846923] PM: early resume of devices complete after 1.892 msecs[ 1779.128814] PVR: PVRSRVDriverResume(pDevice=c789e800)[ 1779.128875] PVR: SysSystemPostPowerState: Entering state D0[ 1779.128906] PVR: EnableSystemClocks: Enabling System Clocks[ 1779.128936] PVR: Installing device LISR SGX ISR on IRQ 53 with cookie c7a2f200[ 1779.129760] wakeup wake lock: musb_autosuspend_wake_lock[ 1779.133331] twl: invalid module number 107[ 1779.159973] PM: resume of devices complete after 312.469 msecs[ 1779.342681] Restarting tasks ... done.[ 1779.351470] suspend: exit suspend, ret = 0 (2000-01-01 01:19:19.064746454 UTC)[ 1779.519866] hub 1-0:1.0: activate --> -22[ 1779.568603] PM: Syncing filesystems ... done.[ 1779.581146] Freezing user space processes ... (elapsed 0.02 seconds) done.[ 1779.613769] Freezing remaining freezable tasks ... (elapsed 0.02 seconds) done.[ 1779.645019] Suspending console(s) (use no_console_suspend to debug)[ 1779.666015] PVR: PVRSRVDriverSuspend(pDevice=c789e800)[ 1779.666046] PVR: SysSystemPrePowerState: Entering state D3[ 1779.666107] PVR: Uninstalling device LISR on IRQ 53 with cookie c7a2f200[ 1779.666137] PVR: DisableSystemClocks: Disabling System Clocks[ 1779.670928] PM: suspend of devices complete after 15.655 msecs[ 1779.673065] PM: late suspend of devices complete after 1.892 msecs[ 1779.673095] Disabling non-boot CPUs ...[ 1779.674438] CPU1: shutdown[ 1779.695587] Resume caused by IRQ 69, gp timer[ 1779.695648] Successfully put all powerdomains to target state[ 1779.695831] Enabling non-boot CPUs ...[ 1779.719207] CPU1: Booted secondary processor[ 1779.721160] thermal_cooling_dev_register:Found cpu cpu[ 1779.721160] omap_read_current_temp:Invalid adc code reported by the sensor 0[ 1779.721160] CPU1 is up[ 1779.723114] PM: early resume of devices complete after 1.953 msecs[ 1779.724945] Switched to NOHz mode on CPU #1[ 1780.008758] PVR: PVRSRVDriverResume(pDevice=c789e800)[ 1780.008789] PVR: SysSystemPostPowerState: Entering state D0[ 1780.008819] PVR: EnableSystemClocks: Enabling System Clocks[ 1780.008880] PVR: Installing device LISR SGX ISR on IRQ 53 with cookie c7a2f200[ 1780.009704] wakeup wake lock: musb_autosuspend_wake_lock[ 1780.013153] twl: invalid module number 107[ 1780.039947] PM: resume of devices complete after 316.314 msecs[ 1780.177764] Restarting tasks ... [ 1780.181427] hub 1-0:1.0: activate --> -22[ 1780.189727] done.[ 1780.192382] suspend: exit suspend, ret = 0 (2000-01-01 01:19:19.905688821 UTC)[ 1780.235992] PM: Syncing filesystems ... done.[ 1780.247436] Freezing user space processes ... (elapsed 0.01 seconds) done.[ 1780.274963] Freezing remaining freezable tasks ... (elapsed 0.02 seconds) done.[ 1780.306182] Suspending console(s) (use no_console_suspend to debug)[ 1780.326660] PVR: PVRSRVDriverSuspend(pDevice=c789e800)[ 1780.326690] PVR: SysSystemPrePowerState: Entering state D3[ 1780.326751] PVR: Uninstalling device LISR on IRQ 53 with cookie c7a2f200[ 1780.326782] PVR: DisableSystemClocks: Disabling System Clocks[ 1780.331634] PM: suspend of devices complete after 15.167 msecs[ 1780.333801] PM: late suspend of devices complete after 2.136 msecs[ 1780.333831] Disabling non-boot CPUs ...[ 1780.354766] CPU1: shutdown[ 1780.375885] Resume caused by IRQ 69, gp timer[ 1780.375946] Successfully put all powerdomains to target state[ 1780.376220] Enabling non-boot CPUs ...[ 1780.395355] CPU1: Booted secondary processor[ 1780.397247] thermal_cooling_dev_register:Found cpu cpu[ 1780.397338] omap_read_current_temp:Invalid adc code reported by the sensor 0[ 1780.397338] CPU1 is up[ 1780.399291] PM: early resume of devices complete after 1.922 msecs[ 1780.401519] Switched to NOHz mode on CPU #1[ 1780.685333] PVR: PVRSRVDriverResume(pDevice=c789e800)[ 1780.685363] PVR: SysSystemPostPowerState: Entering state D0[ 1780.685394] PVR: EnableSystemClocks: Enabling System Clocks[ 1780.685455] PVR: Installing device LISR SGX ISR on IRQ 53 with cookie c7a2f200[ 1780.686309] wakeup wake lock: musb_autosuspend_wake_lock[ 1780.689697] twl: invalid module number 107[ 1780.716522] PM: resume of devices complete after 316.680 msecs[ 1780.854461] Restarting tasks ... [ 1780.858123] hub 1-0:1.0: activate --> -22[ 1780.862213] done.[ 1780.862426] suspend: exit suspend, ret = 0 (2000-01-01 01:19:20.575732755 UTC)[ 1780.911102] PM: Syncing filesystems ... done.[ 1780.923461] Freezing user space processes ... (elapsed 0.02 seconds) done.[ 1780.959320] Freezing remaining freezable tasks ... (elapsed 0.02 seconds) done.[ 1780.990570] Suspending console(s) (use no_console_suspend to debug)[ 1781.011505] PVR: PVRSRVDriverSuspend(pDevice=c789e800)[ 1781.011535] PVR: SysSystemPrePowerState: Entering state D3[ 1781.011566] PVR: Uninstalling device LISR on IRQ 53 with cookie c7a2f200[ 1781.011627] PVR: DisableSystemClocks: Disabling System Clocks[ 1781.016571] PM: suspend of devices complete after 15.747 msecs[ 1781.018798] PM: late suspend of devices complete after 2.197 msecs[ 1781.018798] Disabling non-boot CPUs ...[ 1781.020141] CPU1: shutdown[ 1781.023864] Resume caused by IRQ 69, gp timer[ 1781.023895] PD_CORE curr=ON prev=ON logic=ON[ 1781.023925] PD_L4_PER curr=ON prev=ON logic=ON[ 1781.023986] PD_MPU curr=ON prev=ON logic=ON[ 1781.024017] Powerdomain (core_pwrdm) didn't enter target state 1 Vs achieved state 3. current state 3[ 1781.024047] Powerdomain (mpu_pwrdm) didn't enter target state 1 Vs achieved state 3. current state 3[ 1781.024078] Powerdomain (l4per_pwrdm) didn't enter target state 1 Vs achieved state 3. current state 3[ 1781.024108] Could not enter target state in pm_suspend[ 1781.024291] Enabling non-boot CPUs ...[ 1781.043243] CPU1: Booted secondary processor[ 1781.045196] thermal_cooling_dev_register:Found cpu cpu[ 1781.045196] omap_read_current_temp:Invalid adc code reported by the sensor 0[ 1781.045257] Switched to NOHz mode on CPU #1[ 1781.045349] CPU1 is up[ 1781.047241] PM: early resume of devices complete after 1.892 msecs[ 1781.342773] PVR: PVRSRVDriverResume(pDevice=c789e800)[ 1781.342803] PVR: SysSystemPostPowerState: Entering state D0[ 1781.342864] PVR: EnableSystemClocks: Enabling System Clocks[ 1781.342895] PVR: Installing device LISR SGX ISR on IRQ 53 with cookie c7a2f200[ 1781.343719] wakeup wake lock: musb_autosuspend_wake_lock[ 1781.347106] twl: invalid module number 107[ 1781.375946] PM: resume of devices complete after 328.186 msecs[ 1781.558532] Restarting tasks ... done.[ 1781.567687] suspend: exit suspend, ret = 0 (2000-01-01 01:19:21.280963456 UTC)[ 1781.735626] hub 1-0:1.0: activate --> -22[ 1781.775604] PM: Syncing filesystems ... done.[ 1781.881835] Freezing user space processes ... (elapsed 0.02 seconds) done.[ 1781.915588] Freezing remaining freezable tasks ... (elapsed 0.02 seconds) done.[ 1781.946807] Suspending console(s) (use no_console_suspend to debug)[ 1781.967437] PVR: PVRSRVDriverSuspend(pDevice=c789e800)[ 1781.967468] PVR: SysSystemPrePowerState: Entering state D3[ 1781.967498] PVR: Uninstalling device LISR on IRQ 53 with cookie c7a2f200[ 1781.967559] PVR: DisableSystemClocks: Disabling System Clocks[ 1781.972290] PM: suspend of devices complete after 15.228 msecs[ 1781.974426] PM: late suspend of devices complete after 2.105 msecs[ 1781.974456] Disabling non-boot CPUs ...[ 1781.975769] CPU1: shutdown[ 1781.979461] Resume caused by IRQ 69, gp timer[ 1781.979492] PD_CORE curr=ON prev=ON logic=ON[ 1781.979522] PD_L4_PER curr=ON prev=ON logic=ON[ 1781.979583] PD_MPU curr=ON prev=ON logic=ON[ 1781.979614] Powerdomain (core_pwrdm) didn't enter target state 1 Vs achieved state 3. current state 3[ 1781.979644] Powerdomain (mpu_pwrdm) didn't enter target state 1 Vs achieved state 3. current state 3[ 1781.979675] Powerdomain (l4per_pwrdm) didn't enter target state 1 Vs achieved state 3. current state 3[ 1781.979705] Could not enter target state in pm_suspend[ 1781.979888] Enabling non-boot CPUs ...[ 1781.997406] CPU1: Booted secondary processor[ 1781.999359] thermal_cooling_dev_register:Found cpu cpu[ 1781.999359] omap_safe_zone:hot spot temp 29707[ 1781.999359] CPU1 is up[ 1782.001434] PM: early resume of devices complete after 1.831 msecs[ 1782.001464] Switched to NOHz mode on CPU #1[ 1782.285278] PVR: PVRSRVDriverResume(pDevice=c789e800)[ 1782.285308] PVR: SysSystemPostPowerState: Entering state D0[ 1782.285339] PVR: EnableSystemClocks: Enabling System Clocks[ 1782.285400] PVR: Installing device LISR SGX ISR on IRQ 53 with cookie c7a2f200[ 1782.286224] wakeup wake lock: musb_autosuspend_wake_lock[ 1782.289733] twl: invalid module number 107[ 1782.316467] PM: resume of devices complete after 314.483 msecs[ 1782.496063] Restarting tasks ... done.[ 1782.505035] suspend: exit suspend, ret = 0 (2000-01-01 01:19:22.218341374 UTC)[ 1782.675445] hub 1-0:1.0: activate --> -22[ 1782.715454] PM: Syncing filesystems ... done.[ 1782.727508] Freezing user space processes ... (elapsed 0.02 seconds) done.[ 1782.762359] Freezing remaining freezable tasks ... (elapsed 0.02 seconds) done.[ 1782.793609] Suspending console(s) (use no_console_suspend to debug)[ 1782.814361] PVR: PVRSRVDriverSuspend(pDevice=c789e800)[ 1782.814392] PVR: SysSystemPrePowerState: Entering state D3[ 1782.814422] PVR: Uninstalling device LISR on IRQ 53 with cookie c7a2f200[ 1782.814483] PVR: DisableSystemClocks: Disabling System Clocks[ 1782.819244] PM: suspend of devices complete after 15.319 msecs[ 1782.821411] PM: late suspend of devices complete after 2.166 msecs[ 1782.821441] Disabling non-boot CPUs ...[ 1782.822753] CPU1: shutdown[ 1782.843963] Resume caused by IRQ 69, gp timer[ 1782.844024] Successfully put all powerdomains to target state[ 1782.844207] Enabling non-boot CPUs ...[ 1782.863159] CPU1: Booted secondary processor[ 1782.865081] thermal_cooling_dev_register:Found cpu cpu[ 1782.865081] omap_safe_zone:hot spot temp 32373[ 1782.865081] CPU1 is up[ 1782.865814] Switched to NOHz mode on CPU #1[ 1782.867187] PM: early resume of devices complete after 2.105 msecs[ 1783.165222] PVR: PVRSRVDriverResume(pDevice=c789e800)[ 1783.165252] PVR: SysSystemPostPowerState: Entering state D0[ 1783.165283] PVR: EnableSystemClocks: Enabling System Clocks[ 1783.165344] PVR: Installing device LISR SGX ISR on IRQ 53 with cookie c7a2f200[ 1783.166168] wakeup wake lock: musb_autosuspend_wake_lock[ 1783.169677] twl: invalid module number 107[ 1783.196411] PM: resume of devices complete after 328.643 msecs[ 1783.331420] Restarting tasks ... [ 1783.335113] hub 1-0:1.0: activate --> -22[ 1783.339477] done.[ 1783.339691] suspend: exit suspend, ret = 0 (2000-01-01 01:19:23.052997124 UTC)[ 1783.388336] PM: Syncing filesystems ... done.[ 1783.400878] Freezing user space processes ... (elapsed 0.02 seconds) done.[ 1783.431396] Freezing remaining freezable tasks ... (elapsed 0.02 seconds) done.[ 1783.462646] Suspending console(s) (use no_console_suspend to debug)
It appears that the wake-ups are being caused by gptimer1 (Resume caused by IRQ 69, gp timer). In suspend gptimer1 should be disabled. However, under the debugfs, there is an entry to generate a periodic timer wake-up to test suspend-resume. Do you have the debugfs enabled and mounted? If so can you read the following entries?
# cat /sys/kernel/debug/pm_debug/wakeup_timer_seconds# cat /sys/kernel/debug/pm_debug/wakeup_timer_milliseconds
Both of these should be 0. If they are non-zero then you will get a periodic wake-up.Jon
Hi,
I am facing still facing this issue.
Setup used: OMAP4460, Android ICS. (Panda ES)
When the system is put to sleep "echo mem > /sys/power/state". The system immediately wakes up saying "Resume caused by IRQ 69, gp timer".
However, I see that :
# cat /sys/kernel/debug/pm_debug/wakeup_timer_seconds# cat /sys/kernel/debug/pm_debug/wakeup_timer_milliseconds, both show 0.
I even try to force wakeup_timer_seconds to 0 using init scripts. However, the result is same.
One more thing to notice is that, once the power suspend and resume sequence happens, "echo 0 > /sys/kernel/debug/pm_debug/wakeup_timer_seconds" takes effect and no more gp timer wake ups occur.
Can somebody explain or suggest? This issue is currently blocking us and we need a work around / fix suggested.
Thanks and regards,
Madhvapathi Sriram