Resume fails on Snowball

Bug #920526 reported by Tony Mansson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IglooCommunity
Fix Released
Low
NaveenKumar Gaddipati
Linaro Android
Fix Released
High
Unassigned

Bug Description

Steps

Wait until mouse freezes
Press F1
Validation

Unit should freeze then start working once F1 is pressed.

However: the Snowball does not start working again.
Observed on https://android-build.linaro.org/builds/~linaro-android/landing-snowball-12.01-release/#build=5

Log filled with entries like this:

[ 1450.253997] Returning from ApDeepSleep. PRCMU ret: 0xf6 - Success
[ 1450.254516] Enabling non-boot CPUs ...
[ 1450.275451] CPU1: Booted secondary processor
[ 1450.275482] CPU1: Unknown IPI message 0x1
[ 1450.276245] CPU1 is up
[ 1450.281158] PM: early resume of devices complete after 0.701 msecs
[ 1450.281982] wakeup wake lock: event6-1856
[ 1450.282562] Switched to NOHz mode on CPU #1
[ 1450.380218] pm_op(): platform_pm_resume+0x0/0x60 returns -5
[ 1450.380218] PM: Device smsc911x.0 failed to resume: error -5
[ 1450.626037] av8100 0-0070: chip version:2
[ 1450.644165] abx500-acc-det ab8500-acc-det.0: Accessory: HEADPHONE
[ 1450.689880] abx500-acc-det ab8500-acc-det.0: Accessory: DISCONNECTED
[ 1450.813079] usb 1-1: reset full speed USB device number 2 using musb-hdrc
[ 1450.933135] usb 1-1: device descriptor read/64, error -19
[ 1451.163177] usb 1-1: device descriptor read/64, error -19
[ 1451.393310] usb 1-1: reset full speed USB device number 2 using musb-hdrc
[ 1451.513336] usb 1-1: device descriptor read/64, error -19
[ 1451.743194] usb 1-1: device descriptor read/64, error -19
[ 1451.973449] usb 1-1: reset full speed USB device number 2 using musb-hdrc
[ 1452.393493] usb 1-1: device not accepting address 2, error -19
[ 1452.394226] PM: resume of devices complete after 2111.900 msecs
[ 1452.531951] Restarting tasks ...
[ 1452.535247] usb 1-1: USB disconnect, device number 2
AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0
[ 1452.542755] done.
[ 1452.548004] usb 1-1.1: USB disconnect, device number 3
[ 1452.553375] suspend: exit suspend, ret = 0 (2000-01-02 01:58:35.924006686 UTC)
[1] 4415
[ 1452.560668] active wake lock mmc2_detect
[ 1452.565399] active wake lock mmc1_detect
[ 1452.569305] active wake lock mali_wakelock
[ 1452.674743] usb 1-1.2: USB disconnect, device number 4
[ 1453.284271] usb 1-1.3: USB disconnect, device number 5
[ 1453.563507] usb 1-1: new full speed USB device number 6 using musb-hdrc
[ 1453.683624] usb 1-1: device descriptor read/64, error -19
[ 1453.913360] usb 1-1: device descriptor read/64, error -19
[ 1454.143585] usb 1-1: new full speed USB device number 7 using musb-hdrc
[ 1454.264282] usb 1-1: device descriptor read/64, error -19
[ 1454.493774] usb 1-1: device descriptor read/64, error -19
/system/bin/sh: c1: not found
/system/bin/sh: AT: not found
127|root@android:/ # [ 1454.723724] usb 1-1: new full speed USB device number 8 using musb-hdrc
[ 1455.143341] usb 1-1: device not accepting address 8, error -19
[ 1455.263916] usb 1-1: new full speed USB device number 9 using musb-hdrc
[ 1455.683685] usb 1-1: device not accepting address 9, error -19
[ 1455.689636] hub 1-0:1.0: unable to enumerate USB device on port 1
[ 1465.543182] PM: Syncing filesystems ... done.
[ 1467.783050] Freezing user space processes ... (elapsed 0.73 seconds) done.
[ 1468.526550] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
[ 1468.546905] Suspending console(s) (use no_console_suspend to debug)
[ 1468.627471] PM: suspend of devices complete after 73.669 msecs
[ 1468.628479] PM: late suspend of devices complete after 0.976 msecs
[ 1468.633056] Disabling non-boot CPUs ...
[ 1468.634155] CPU1: shutdown
[ 1468.634155] CPU1: shutdown

Changed in linaro-android:
importance: Undecided → Medium
milestone: none → backlog
tags: added: snowball suspend-resume
Zach Pfeffer (pfefferz)
Changed in linaro-android:
importance: Medium → High
milestone: backlog → 12.02
assignee: nobody → Botao Sun (botao-sun)
Changed in igloocommunity:
importance: Undecided → Low
Revision history for this message
Anmar Oueja (anmar) wrote :

Currently, we are working on moving additional Android patches into the IglooKernel. After flushing these changes, we are review this bug in future cycle.

Revision history for this message
Botao (botao-sun) wrote :

Hi Anmar, have those additional patches been applied to the IglooKernel?

Revision history for this message
Anmar Oueja (anmar) wrote : Re: [Bug 920526] Re: Resume fails on Snowball

Unfortunately they haven't yet. I suggest we target this bug at
2012.03 as I doubt we will get the patches in Feb.

Revision history for this message
Zach Pfeffer (pfefferz) wrote :

Shifting to 12.03.

Changed in linaro-android:
milestone: 12.02 → 12.03
Revision history for this message
Mathieu Poirier (mathieu.poirier-deactivatedaccount) wrote :

The patches Anmar is referring to in comment #3 should come in as part of kernel 3.3, which is targeted for 12.03.

Zach Pfeffer (pfefferz)
Changed in linaro-android:
assignee: Botao Sun (botao-sun) → nobody
milestone: 12.03 → none
Anmar Oueja (anmar)
Changed in igloocommunity:
milestone: none → 2012.03
Revision history for this message
Patrik Klinger (patrik-klinger) wrote :

+anmar, what is the current status of this bug? What is blocking and what is left to do?

Revision history for this message
Anmar Oueja (anmar) wrote :

Mathieu: Can you please test this issue against the latest 3.3 kernel

Changed in igloocommunity:
assignee: nobody → Mathieu Poirier (mathieu.poirier)
Changed in igloocommunity:
assignee: Mathieu Poirier (mathieu.poirier) → NaveenKumar Gaddipati (naveen-gaddipati)
Revision history for this message
Thomas Espersson (espersson) wrote :

Naveen: can you please test this and see if the bug is present on IK 3.3.

If so, is this related/identical to this bug:
#949367 android: kernel 3.3 doesn't come out of hibernation

Revision history for this message
NaveenKumar Gaddipati (naveen-gaddipati) wrote :

We are able to reporduce the issue with the latest integration kernel.

Changed in igloocommunity:
status: New → Confirmed
Revision history for this message
NaveenKumar Gaddipati (naveen-gaddipati) wrote :

Using the patch sent for Pl011 driver.Log as follows
[ 1775.125976] request_suspend_state: sleep (0->3) at 465708636946 (2000-01-23 20:4
4:52.297472508 UTC)
[ 1775.809844] PM: Syncing filesystems ... done.
[ 1775.816162] Freezing user space processes ... (elapsed 0.02 seconds) done.
[ 1775.850219] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
[ 1775.955200] PM: suspend of devices complete after 83.892 msecs
[ 1775.961120] suspend_set_state: ab8500-ext-supply3: No configuration
[ 1775.967407] suspend_set_state: ab8500-ext-supply2: No configuration
[ 1775.973693] suspend_set_state: ab8500-ext-supply1: No configuration
[ 1775.981201] PM: late suspend of devices complete after 1.159 msecs
[ 1775.991210] Disabling non-boot CPUs ...
[ 1776.006103] CPU1: shutdown
[ 1776.006103] CPU1: shutdown
[ 2364.769653] wakeup wake lock: event1-1670
[ 2364.778259] PM: early resume of devices complete after 0.976 msecs
[ 2364.884277] dpm_run_callback(): platform_pm_resume+0x0/0x60 returns -5
[ 2364.890808] PM: Device smsc911x.0 failed to resume: error -5
[ 2364.927062] PM: resume of devices complete after 141.475 msecs
[ 2364.933227] Restarting tasks ...
[ 2364.948120] request_suspend_state: wakeup (3->0) at 466774292270 (2000-01-23 20:54:42.023116415 U
TC)
[ 2364.966491] done.
[ 2364.981201] suspend: exit suspend, ret = 0 (2000-01-23 20:54:42.056170893 UTC)
[ 2364.989624] Enabling non-boot CPUs ...
[ 2365.022003] abx500-acc-det ab8500-acc-det.0: Accessory: HEADPHONE
[ 2365.044067] CPU1: Booted secondary processor
[ 2365.044128] CPU1: Unknown IPI message 0x1
[ 2365.044189] CPU1 is up

It is able to wake from resume.

Changed in igloocommunity:
status: Confirmed → In Progress
Revision history for this message
NaveenKumar Gaddipati (naveen-gaddipati) wrote :

This is an woraround to fix without allowing the system togo into suspend.
We need to implement proper sudpend and resume functionality for all the drivers

Changed in igloocommunity:
status: In Progress → Fix Committed
Revision history for this message
Anmar Oueja (anmar) wrote :

Naveen: Can you please open another bug to capture the proper fix requirement.

Changed in igloocommunity:
milestone: 2012.03 → 2012.04.alpha-1
Changed in igloocommunity:
status: Fix Committed → In Progress
Revision history for this message
Anmar Oueja (anmar) wrote :

This fix is breaking HDMI on ubuntu.

Changed in igloocommunity:
status: In Progress → Fix Committed
Revision history for this message
NaveenKumar Gaddipati (naveen-gaddipati) wrote :

The patch was given for avoid the suspend in alpha release.This workaround will not allow the system into suspend.

Revision history for this message
NaveenKumar Gaddipati (naveen-gaddipati) wrote :

 debian:Remove platform suspend flag
 mach_ux500:Removed suspend flag
The above two patches will not allow the system to go to suspend.

Changed in igloocommunity:
milestone: 2012.04.alpha-1 → 2012.04
Revision history for this message
Abhishek Paliwal (abhishek-paliwal) wrote :
Changed in igloocommunity:
status: Fix Committed → Fix Released
Revision history for this message
Amit Khare (amit-khare) wrote :
Revision history for this message
Amit Khare (amit-khare) wrote :
Revision history for this message
Amit Khare (amit-khare) wrote :
Revision history for this message
Amit Khare (amit-khare) wrote :
Revision history for this message
Amit Khare (amit-khare) wrote :
Revision history for this message
Amit Khare (amit-khare) wrote :
vishal (vishalbhoj)
Changed in linaro-android:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.