Panda 4430: suspend resume fails

Bug #989547 reported by Abhishek Paliwal on 2012-04-27
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Ubuntu
High
Unassigned
linaro-landing-team-ti
Confirmed
Medium
Unassigned

Bug Description

Description:
---------------

Device not able to resume after entering suspend mode.

Tested using:
http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/10/hwpack_linaro-lt-panda-x11-base_20120426-10_armhf_supported.tar.gz
http://snapshots.linaro.org/precise/images/ubuntu-desktop/119/linaro-precise-ubuntu-desktop-20120426-119.tar.gz

Reproducible:
---------------
Yes , 5/5

Steps to reproduce:
---------------------
Follow test case description:
https://wiki.linaro.org/Platform/QA/TestCases/Ubuntu#Suspend.2BAC8-Resume

Hardware:
----------
Panda 4430

Software:
-----------
http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/10/hwpack_linaro-lt-panda-x11-base_20120426-10_armhf_supported.tar.gz
http://snapshots.linaro.org/precise/images/ubuntu-desktop/119/linaro-precise-ubuntu-desktop-20120426-119.tar.gz

sd card image created:
sudo linaro-media-create --mmc /dev/sdb --dev panda --hwpack hwpack_linaro-lt-panda-x11-base_20120426-10_armhf_supported.tar.gz --binary linaro-precise-ubuntu-desktop-20120426-119.tar.gz

########################################################################
Suspend / Resume doesn't work on Panda 4430 board with following images:

http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/10/hwpack_linaro-lt-panda-x11-base_20120426-10_armhf_supported.tar.gz

http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/50/hwpack_linaro-lt-panda-x11-base_20120514-50_armhf_supported.tar.gz

http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/68/hwpack_linaro-lt-panda-x11-base_20120523-68_armhf_supported.tar.gz

http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/69/hwpack_linaro-lt-panda-x11-base_20120523-69_armhf_supported.tar.gz

http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/119/hwpack_linaro-lt-panda-x11-base_20120617-119_armhf_supported.tar.gz

http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/139/hwpack_linaro-lt-panda-x11-base_20120626-139_armhf_supported.tar.gz

http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/163/hwpack_linaro-lt-panda-x11-base_20120708-163_armhf_supported.tar.gz

http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/175/hwpack_linaro-lt-panda-x11-base_20120714-175_armhf_supported.tar.gz

http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/197/hwpack_linaro-lt-panda-x11-base_20120723-197_armhf_supported.tar.gz

http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/201/hwpack_linaro-lt-panda-x11-base_20120725-201_armhf_supported.tar.gz

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/219/lt-panda-x11-base-precise_ubuntu-desktop_20120803-219.img.gz

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/242/lt-panda-x11-base-precise_ubuntu-desktop_20120812-242.img.gz

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/256/lt-panda-x11-base-precise_ubuntu-desktop_20120819-256.img.gz

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/279/lt-panda-x11-base-precise_ubuntu-desktop_20120830-279.img.gz

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/299/lt-panda-x11-base-precise_ubuntu-desktop_20120909-299.img.gz

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/312/lt-panda-x11-base-precise_ubuntu-desktop_20120916-312.img.gz

https://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/329/lt-panda-x11-base-precise_ubuntu-desktop_20120924-329.img.gz

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/361/lt-panda-x11-base-precise_ubuntu-desktop_20121007-361.img.gz

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/375/lt-panda-x11-base-precise_ubuntu-desktop_20121014-375.img.gz

https://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/390/lt-panda-x11-base-precise_ubuntu-desktop_20121021-390.img.gz

https://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/419/lt-panda-x11-base-precise_ubuntu-desktop_20121105-419.img.gz

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/430/lt-panda-x11-base-precise_ubuntu-desktop_20121111-430.img.gz

Paul Larson (pwlars) on 2012-04-27
tags: added: linaro-ubuntu
Botao (botao-sun) wrote :
Download full text (3.6 KiB)

Observed on Hardware Pack:

http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/50/hwpack_linaro-lt-panda-x11-base_20120514-50_armhf_supported.tar.gz

with ubuntu image:

http://snapshots.linaro.org/precise/images/ubuntu-desktop/158/linaro-precise-ubuntu-desktop-20120515-158.tar.gz

Below is the console log output:

[ 203.006469] omapdss HDMI error: failed to power on device
[ 203.041442] cannot lock PLL
[ 203.045043] CFG1 0x21c1e
[ 203.047576] CFG2 0x602004
[ 203.050048] CFG4 0x75555
[ 203.053375] omapdss HDMI error: failed to power on device
[ 203.171386] cannot lock PLL
[ 203.175506] CFG1 0x21c1e
[ 203.175506] CFG2 0x602004
[ 203.175506] CFG4 0x75555
[ 203.175537] omapdss HDMI error: failed to power on device
[ 203.175537] omapdss error: failed to power on
[ 203.177673] omapdss DISPC error: GO bit not down for channel 2
[ 203.220703] omapdss DISPC error: GO bit not down for channel 2
[ 203.229339] omapdss MANAGER error: overlays 1 and 0 have the same zorder 0
[ 203.236572] omapdss APPLY error: failed to enable overlay 0: check_settings failed
[ 203.314880] cannot lock PLL
[ 203.317749] CFG1 0x21c1e
[ 203.320739] CFG2 0x602004
[ 203.320983] CFG4 0x75555
[ 203.326385] omapdss HDMI error: failed to power on device
[ 203.357513] cannot lock PLL
[ 203.361358] CFG1 0x21c1e
[ 203.364013] CFG2 0x602004
[ 203.367034] CFG4 0x75555
[ 203.369720] omapdss HDMI error: failed to power on device
[ 203.562011] cannot lock PLL
[ 203.565216] CFG1 0x21c1e
[ 203.568420] CFG2 0x602004
[ 203.571166] CFG4 0x75555
[ 203.573638] omapdss HDMI error: failed to power on device
[ 203.605590] cannot lock PLL
[ 203.608764] CFG1 0x21c1e
[ 203.611450] CFG2 0x602004
[ 203.613677] CFG4 0x75555
[ 203.617065] omapdss HDMI error: failed to power on device
[ 204.275756] cannot lock PLL
[ 204.282104] CFG1 0x21c1e
[ 204.284790] CFG2 0x602004
[ 204.287780] CFG4 0x75555
[ 204.289520] omapdss HDMI error: failed to power on device
[ 204.296356] omapdss error: failed to power on
[ 204.327239] cannot lock PLL
[ 204.329864] CFG1 0x21c1e
[ 204.332855] CFG2 0x602004
[ 204.335845] CFG4 0x75555
[ 204.336029] omapdss HDMI error: failed to power on device
[ 204.344543] omapdss error: failed to power on
[ 207.378021] cannot lock PLL
[ 207.395874] CFG1 0x21c1e
[ 207.398559] CFG2 0x602004
[ 207.401306] CFG4 0x75555
[ 207.403961] omapdss HDMI error: failed to power on device
[ 207.448760] cannot lock PLL
[ 207.451812] CFG1 0x21c1e
[ 207.454467] CFG2 0x602004
[ 207.454467] CFG4 0x75555
[ 207.466186] omapdss HDMI error: failed to power on device
[ 207.466857] omapdss error: failed to power on
[ 207.533721] cannot lock PLL
[ 207.533721] CFG1 0x21c1e
[ 207.533905] CFG2 0x602004
[ 207.533905] CFG4 0x75555
[ 207.533905] omapdss HDMI error: failed to power on device
[ 213.058654] cannot lock PLL
[ 213.065521] CFG1 0x21c1e
[ 213.068572] CFG2 0x602004
[ 213.069061] CFG4 0x75555
[ 213.074035] omapdss HDMI error: failed to power on device

root@linaro-ubuntu-desktop:~# [ 223.122802] cannot lock PLL
[ 223.128204] CFG1 0x21c1e
[ 223.131500] CFG2 0x602004
[ 223.134277] CFG4 0x75555
[ 223.134277] omapdss HDMI error: failed to pow...

Read more...

Ricardo Salveti (rsalveti) wrote :

I confirm the same issue with 4460.

Andy or Anmar, can someone from the TI LT take a look at the issue? Seems it's known at your side already.

Changed in linaro-ubuntu:
status: New → Confirmed
importance: Undecided → High
warmcat (andy-warmcat) wrote :

I asked Jassi to take a look at it.

Actually as resume problems go this doesn't look too bad, it reminds me of runtime_pm issues in dss I fought some months ago.

warmcat (andy-warmcat) on 2012-06-14
Changed in linaro-landing-team-ti:
status: New → Confirmed
importance: Undecided → Medium
Paul Larson (pwlars) wrote :

The situation appears to be somewhat improved with the 12.06 final release candidate:
http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/139/hwpack_linaro-lt-panda-x11-base_20120626-139_armhf_supported.tar.gz
http://snapshots.linaro.org/precise/images/ubuntu-desktop/247/linaro-precise-ubuntu-desktop-20120626-247.tar.gz
I can now suspend the system to a state where most LEDs are off, only the ethernet LEDs remain active. I pressed enter on the serial console and it started to come back up and was usable, however, after booting I had a constant stream of errors on the console:
[ 615.714721] hub 2-0:1.0: unable to enumerate USB device on port 1

I'm not completely sure which USB it's describing, the only thing I have plugged in currently is a usb mouse/keyboard which is working fine.

Linux linaro-ubuntu-desktop 3.4.0-1-linaro-lt-omap #1~120625232503-Ubuntu SMP PREEMPT Tue Jun 26 01:25:56 UTC 2012 armv7l armv7l armv7l GNU/Linux

warmcat (andy-warmcat) wrote :

The original problem was coming from bugs in dss pm.

Is the usb device it's having trouble with the ethernet phy, ie does ethernet work on resume? The other candidate could be musb / otg.

Ricardo Salveti (rsalveti) wrote :
Download full text (8.1 KiB)

Tested the suspend-resume with the same image on 4460, and I wasn't able to reproduce the issues with USB.

However I got the following issues:
1 - With pvr-omap4 (SGX) I had the same issue as described by bug 916135
2 - Without pvr-omap4 (just using fbdev) I got the following messages with my monitor:
...
[ 131.013793] omapdss OVERLAY error: overlay 2 horizontally not inside the display area (1629 + 64 >= 1024)
[ 131.023864] omapdss APPLY error: failed to enable overlay 2: check_settings failed
[ 131.032531] omapdss OVERLAY error: overlay 2 horizontally not inside the display area (1623 + 64 >= 1024)
[ 131.042602] omapdss APPLY error: failed to enable overlay 2: check_settings failed
[ 131.051208] omapdss OVERLAY error: overlay 2 horizontally not inside the display area (1610 + 64 >= 1024)
...
And nothing was happening on the screen. After switching to the console's virtual terminal and X11, it got back to work as expected.

Then on both cases I got the following warnings, which is probably harmless:

[ 108.794189] ------------[ cut here ]------------
[ 108.794219] WARNING: at /build/buildd/linux-linaro-lt-omap-3.4-3.4.0/drivers/video/omap2/dss/dispc.c:376 dispc_runtime_get+0x2f/0x44()
[ 108.794219] Modules linked in: arc4 wl12xx wlcore mac80211 bnep cfg80211 rfcomm ppdev lp parport gator wlcore_sdio btwilink bluetooth usbhid hid
[ 108.794281] [<c0011011>] (unwind_backtrace+0x1/0x90) from [<c002b409>] (warn_slowpath_common+0x39/0x50)
[ 108.794311] [<c002b409>] (warn_slowpath_common+0x39/0x50) from [<c002b435>] (warn_slowpath_null+0x15/0x16)
[ 108.794311] [<c002b435>] (warn_slowpath_null+0x15/0x16) from [<c02718ab>] (dispc_runtime_get+0x2f/0x44)
[ 108.794342] [<c02718ab>] (dispc_runtime_get+0x2f/0x44) from [<c027eb25>] (hdmi_runtime_resume+0xd/0x24)
[ 108.794372] [<c027eb25>] (hdmi_runtime_resume+0xd/0x24) from [<c02bb5c3>] (pm_generic_runtime_resume+0x19/0x22)
[ 108.794372] [<c02bb5c3>] (pm_generic_runtime_resume+0x19/0x22) from [<c0027fe3>] (_od_resume_noirq+0x37/0x40)
[ 108.794403] [<c0027fe3>] (_od_resume_noirq+0x37/0x40) from [<c02bc1f3>] (dpm_run_callback.isra.5+0x1f/0x48)
[ 108.794403] [<c02bc1f3>] (dpm_run_callback.isra.5+0x1f/0x48) from [<c02bc603>] (dpm_resume_noirq+0x5f/0x114)
[ 108.794433] [<c02bc603>] (dpm_resume_noirq+0x5f/0x114) from [<c02bc81f>] (dpm_resume_start+0xf/0x18)
[ 108.794464] [<c02bc81f>] (dpm_resume_start+0xf/0x18) from [<c0052583>] (suspend_enter+0xb3/0xcc)
[ 108.794464] [<c0052583>] (suspend_enter+0xb3/0xcc) from [<c0052643>] (suspend_devices_and_enter+0xa7/0x148)
[ 108.794494] [<c0052643>] (suspend_devices_and_enter+0xa7/0x148) from [<c005273f>] (enter_state+0x5b/0xa8)
[ 108.794494] [<c005273f>] (enter_state+0x5b/0xa8) from [<c005279f>] (pm_suspend+0x13/0x54)
[ 108.794525] [<c005279f>] (pm_suspend+0x13/0x54) from [<c0051cfd>] (state_store+0x5d/0x84)
[ 108.794525] [<c0051cfd>] (state_store+0x5d/0x84) from [<c024b5b1>] (kobj_attr_store+0x9/0x10)
[ 108.794555] [<c024b5b1>] (kobj_attr_store+0x9/0x10) from [<c00fbd55>] (sysfs_write_file+0x55/0x80)
[ 108.794555] [<c00fbd55>] (sysfs_write_file+0x55/0x80) from [<c00bb309>] (vfs_write+0x63/0x106)
[ 108.794586] [<c00bb309>] (vfs_write+0x63/0x106)...

Read more...

warmcat (andy-warmcat) wrote :

Jassi's working with Tomi upstream to lose the WARN()s.

The overlay thing looks like it has defaulted to 1024 x 768 in early part of resume and seen hpd later, then refetched edid and gotten the old mode back.

Botao (botao-sun) wrote :

On Panda 4430 board, it can't enter suspend mode. After click suspend, the display turn black then turn to the log in screen. However, if wait for longer time, such like 5 minutes, the board can finally enter the suspend mode, LED is still lighting though.

Observed on hardware pack:

http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/197/hwpack_linaro-lt-panda-x11-base_20120723-197_armhf_supported.tar.gz

with ubuntu rootfs image:

http://snapshots.linaro.org/precise/images/ubuntu-desktop/305/linaro-precise-ubuntu-desktop-20120723-305.tar.gz

Botao (botao-sun) wrote :

Same behavior on Panda 4460 board.

Botao (botao-sun) wrote :

Also, if boot Panda 4460 board with "ubuntu" option enabled (enable unity-3d), then there is another bug about suspend & resume:

Can't log in after wake up from suspend if Panda 4460 boots up with "ubuntu" option enabled:

https://bugs.launchpad.net/linaro-ubuntu/+bug/1029263

Botao (botao-sun) wrote :

For Panda 4460 board, observed same behaviour as comment #15 on Linaro ubuntu pre-built image:

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/219/lt-panda-x11-base-precise_ubuntu-desktop_20120803-219.img.gz

Botao (botao-sun) wrote :

Observed same behaviour as comment #15 on Panda 4430 board with Linaro ubuntu pre-built image:

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/219/lt-panda-x11-base-precise_ubuntu-desktop_20120803-219.img.gz

Amit Khare (amit-khare) wrote :

observed with panda 4430 build
http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/242/lt-panda-x11-base-precise_ubuntu-desktop_20120812-242.img.gz

Board goes in suspend mode and lights can be seen on the board but fails to resume.

[ 171.226379] ehci-omap ehci-omap.0: port 1 resume error -110
[ 171.257629] ehci-omap ehci-omap.0: port 1 resume error -110
[ 171.288879] ehci-omap ehci-omap.0: port 1 resume error -110
[ 171.320129] ehci-omap ehci-omap.0: port 1 resume error -110

Amit Khare (amit-khare) wrote :

same observation on panda 4460 with same build as comment #22

Amit Khare (amit-khare) wrote :

observed with panda ubuntu build on 4430

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/256/lt-panda-x11-base-precise_ubuntu-desktop_20120819-256.img.gz

The board boots after suspend but hangs with this error.

[ 1276.445007] ehci-omap ehci-omap.0: port 1 resume error -110
[ 1276.739837] hub 2-0:1.0: unable to enumerate USB device on port 1
[ 1276.749847] ehci-omap ehci-omap.0: port 1 resume error -110
[ 1277.044708] hub 2-0:1.0: unable to enumerate USB device on port 1
[ 1277.054687] ehci-omap ehci-omap.0: port 1 resume error -110

Botao (botao-sun) wrote :

The board can enter the suspend mode, but when wake it up by press F1 key, an error "ehci-omap ehci-omap.0: port 1 resume error -110" continuously occurred & flushing in serial console, then system hangs.

Panda 4460 board, observed on Linaro ubuntu pre-built image:

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/256/lt-panda-x11-base-precise_ubuntu-desktop_20120819-256.img.gz

Botao (botao-sun) wrote :

Observed on Panda 4460 with same behaviour as comment #25 on Linaro ubuntu pre-built image:

http://releases.linaro.org/12.08/.ubuntu/leb-panda/lt-panda-x11-base_20120826-270-ubuntu-desktop.img.gz

Amit Khare (amit-khare) wrote :

same behaviour on 4430 as comment#25 and with build comment #26

Amit Khare (amit-khare) wrote :

observed on Panda 4430 board with image
http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/279/lt-panda-x11-base-precise_ubuntu-desktop_20120830-279.img.gz

Board goes to suspend mode but gives error when resumed.

root@linaro-ubuntu-desktop:~# [ 188.609222] hub 2-0:1.0: unable to e1
[ 188.618377] ehci-omap ehci-omap.0: port 1 resume error -110
[ 188.803741] wl12xx: firmware booted (Rev 6.3.5.0.98)
[ 188.851440] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 188.937347] hub 2-0:1.0: unable to enumerate USB device on port 1
[ 188.946624] ehci-omap ehci-omap.0: port 1 resume error -110
[ 189.242553] hub 2-0:1.0: unable to enumerate USB device on port 1
[ 189.255859] ehci-omap ehci-omap.0: port 1 resume error -110
[ 189.554504] hub 2-0:1.0: unable to enumerate USB device on port 1
[ 189.563629] ehci-omap ehci-omap.0: port 1 resume error -110
[ 189.859222] hub 2-0:1.0: unable to enumerate USB device on port 1
[ 189.868438] ehci-omap ehci-omap.0: port 1 resume error -110
[ 190.163940] hub 2-0:1.0: unable to enumerate USB device on port 1

Botao (botao-sun) wrote :

On Panda 4460 board with Linaro ubuntu pre-built image:

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/279/lt-panda-x11-base-precise_ubuntu-desktop_20120830-279.img.gz

Same behaviour observed as comment #25.

Botao (botao-sun) wrote :

On Panda 4430 board with Linaro ubuntu pre-built image:

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/299/lt-panda-x11-base-precise_ubuntu-desktop_20120909-299.img.gz

There are 2 ways can let board enter suspend mode:

1. Just wait , do nothing;

2. Click suspend from right top drop down list;

The first method works well; for the second method, the board can enter suspend mode successfully, but can't wake up, neither press F1 key nor click mouse, no any response.

[ 794.418945] wl12xx: down
[ 798.841583] init: anacron main process (3028) killed by TERM signal
[ 800.449584] PM: Syncing filesystems ... done.
[ 800.468627] PM: Preparing system for mem sleep
[ 800.473449] Freezing user space processes ... (elapsed 0.02 seconds) done.
[ 800.507812] Freezing remaining freezable tasks ... (elapsed 0.02 seconds) done.
[ 800.538940] PM: Entering mem sleep
[ 800.542572] Suspending console(s) (use no_console_suspend to debug)

Botao (botao-sun) on 2012-09-14
summary: - Panda: suspend resume fails
+ Panda 4430: suspend resume fails
Botao (botao-sun) wrote :

About suspend / resume doesn't work on Panda 4460, please refer to this bug:

https://bugs.launchpad.net/linaro-ubuntu/+bug/1050707

Botao (botao-sun) wrote :

For Panda 4430 board, same behaviour is observed as comment #15 on Linaro ubuntu pre-built image:

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/312/lt-panda-x11-base-precise_ubuntu-desktop_20120916-312.img.gz

description: updated
Botao (botao-sun) on 2012-09-27
description: updated
Botao (botao-sun) on 2012-10-11
description: updated
Botao (botao-sun) on 2012-10-19
description: updated
description: updated
description: updated
Botao (botao-sun) on 2012-11-15
description: updated
Soumya Basak (soumya-basak) wrote :

observed with panda 4430 ubuntu 12.11 release builds

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/456/lt-panda-x11-base-precise_ubuntu-desktop_20121125-456.img.gz

the device is not going to suspend state.
after few sec device woke up instead of hit any key.

dong-wook,cho (wmc86) on 2013-03-17
Changed in linaro-ubuntu:
status: Confirmed → New
status: New → Confirmed
Botao (botao-sun) wrote :

For project "linaro-ubuntu", Linaro has switched from GUI based ubuntu image to command line console, and this "Suspend / Resume" test is no longer required.

Changed in linaro-ubuntu:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers