Origen ubuntu can't stay in the suspend mode.

Bug #1005735 reported by Botao on 2012-05-29
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Android
Won't Fix
Undecided
Unassigned
Linaro U-Boot
Won't Fix
Undecided
Unassigned
Linaro Ubuntu
Medium
Unassigned
linaro-landing-team-samsung
Won't Fix
Undecided
Unassigned

Bug Description

On hardware pack:

http://snapshots.linaro.org/precise/hwpacks/leb-origen/109/hwpack_linaro-leb-origen_20120524-109_armhf_supported.tar.gz

with ubuntu image:

http://snapshots.linaro.org/precise/images/ubuntu-desktop/179/linaro-precise-ubuntu-desktop-20120525-179.tar.gz

when do this suspend / resume test:

https://wiki.linaro.org/Platform/QA/TestCases/Ubuntu#Suspend.2BAC8-Resume

After click suspend, the board can enter to the suspend mode, but after around 30 seconds, the board then backs to the login screen automatically. Then after around another 30 seconds without any action, the board can enter to the suspend mode again, then keeps suspend mode after that.

From pre-built image and later, the board can enter to suspend mode but can't be woken up. Please refer to comment #15.

#################################################################
This feature doesn't work on following images:

http://snapshots.linaro.org/precise/hwpacks/leb-origen/109/hwpack_linaro-leb-origen_20120524-109_armhf_supported.tar.gz

http://snapshots.linaro.org/precise/hwpacks/leb-origen/157/hwpack_linaro-leb-origen_20120617-157_armhf_supported.tar.gz

http://snapshots.linaro.org/precise/hwpacks/leb-origen/175/hwpack_linaro-leb-origen_20120626-175_armhf_supported.tar.gz

http://snapshots.linaro.org/precise/hwpacks/leb-origen/200/hwpack_linaro-leb-origen_20120708-200_armhf_supported.tar.gz

http://snapshots.linaro.org/precise/hwpacks/leb-origen/213/hwpack_linaro-leb-origen_20120714-213_armhf_supported.tar.gz

http://snapshots.linaro.org/precise/hwpacks/leb-origen/233/hwpack_linaro-leb-origen_20120723-233_armhf_supported.tar.gz

http://snapshots.linaro.org/precise/hwpacks/leb-origen/245/hwpack_linaro-leb-origen_20120729-245_armhf_supported.tar.gz

http://snapshots.linaro.org/precise/pre-built/leb-origen/259/leb-origen-precise_ubuntu-desktop_20120805-259.img.gz

http://snapshots.linaro.org/precise/pre-built/leb-origen/273/leb-origen-precise_ubuntu-desktop_20120812-273.img.gz

http://snapshots.linaro.org/precise/pre-built/leb-origen/287/leb-origen-precise_ubuntu-desktop_20120819-287.img.gz

http://snapshots.linaro.org/precise/pre-built/leb-origen/312/leb-origen-precise_ubuntu-desktop_20120828-312.img.gz

http://snapshots.linaro.org/precise/pre-built/leb-origen/316/leb-origen-precise_ubuntu-desktop_20120830-316.img.gz

http://snapshots.linaro.org/precise/pre-built/leb-origen/336/leb-origen-precise_ubuntu-desktop_20120909-336.img.gz

http://snapshots.linaro.org/precise/pre-built/leb-origen/349/leb-origen-precise_ubuntu-desktop_20120916-349.img.gz

https://snapshots.linaro.org/precise/pre-built/leb-origen/365/leb-origen-precise_ubuntu-desktop_20120924-365.img.gz

http://snapshots.linaro.org/precise/hwpacks/leb-origen/377/hwpack_linaro-leb-origen_20120928-377_armhf_supported.tar.gz

http://snapshots.linaro.org/precise/pre-built/leb-origen/395/leb-origen-precise_ubuntu-desktop_20121007-395.img.gz

http://snapshots.linaro.org/precise/pre-built/leb-origen/409/leb-origen-precise_ubuntu-desktop_20121014-409.img.gz

https://snapshots.linaro.org/precise/pre-built/leb-origen/424/leb-origen-precise_ubuntu-desktop_20121021-424.img.gz

http://snapshots.linaro.org/precise/pre-built/leb-origen/464/leb-origen-precise_ubuntu-desktop_20121111-464.img.gz

http://snapshots.linaro.org/precise/pre-built/leb-origen/480/leb-origen-precise_ubuntu-desktop_20121119-480.img.gz

Botao (botao-sun) on 2012-05-29
visibility: private → public
Inderpal Singh (ips) on 2012-06-20
Changed in linaro-landing-team-samsung:
assignee: nobody → Inderpal Singh (ips)
Inderpal Singh (ips) wrote :

At present, there are multiple issues with suspend/resume.

1. It does not go to suspend and behaves as mentioned by Botao. This issue was caused by the commit 7c1b4bf080f6bab62c3109934eda8e42290a3814 "ARM: EXYNOS: Add initial value of G3D power domain on Origen board"

2. Upon reverting the above commit, the system goes into suspend but does not come back after pressing the button. In progress.

Sangwook Lee (sangwook) wrote :

@Inder

>1. It does not go to suspend and behaves as mentioned by Botao. This issue was caused by the commit >7c1b4bf080f6bab62c3109934eda8e42290a3814 "ARM: EXYNOS: Add initial value of G3D power domain on Origen >board"

I think that this is quite expectable when I did above commit because Mali driver has not had ompatiable PM support with the latest Linux kernel. Morever Mali driver is not the part of Linux standard driver. I think we 'd better verify the power management without Mali driver at first as leaving it an optional feature.

Changed in linaro-landing-team-samsung:
importance: Undecided → Medium
status: New → Confirmed
Changed in linaro-ubuntu:
status: New → Confirmed
importance: Undecided → Medium
Inderpal Singh (ips) wrote :

As mentioned at msg #2, upon reverting the commit "ARM: EXYNOS: Add initial value of G3D power domain on Origen >board" the system goes to suspend but it does not wake-up.

Have figured out that the u-boot commit "Origen: Add clock entries for multimedia IPs" does not let the system wake up. The FIMC related clock settings are the culprit. If I revert this commit, the suspend/resume works fine.

Annamalai, can you please look into it. Also I see the following prints at boot-up so that could have something to do with it.

[ 6.650000] s5p-fimc exynos4-fimc.0: Video pipeline initialization failed
[ 6.675000] s5p-fimc exynos4-fimc.3: Video pipeline initialization failed
[ 6.685000] s5p-fimc exynos4-fimc.2: Video pipeline initialization failed
[ 6.750000] s5p-fimc exynos4-fimc.1: Video pipeline initialization failed

Inderpal Singh (ips) wrote :

The u-boot commit mentioned at msg #5 changes the default clock settings of other IPs belonging to same domain. That causes the system hang while resuming. The attached patch "0001-u-boot-origen-Restore-default-clock-settings-for-CSI.patch" restores the default clock settings.

With this u-boot patch the system resumes but LCD does not come back. The remaining system works just fine after resume.

It is found that the commit 2a79d863ab5ea... "Add overlay support" on frame buffer driver removed the mainlined code
which resumes all windows after suspend/resume. Thats the last culprit for this bug. Have attached one more patch "0001-Video-s3c-fb-Resume-all-windows.patch" which restores all the windows after resume.

Now the suspend resume is working perfectly.

Summary:

1. commit 7c1b4bf080f6bab62c does not let the system go to suspend. This commit is not required on ubuntu as we do not have the Mali support on ubuntu yet. Moreover, as mentioned by Sangwook at msg #3, The mali driver does not have the compatible PM support for the latest linux kernel.

2. Attached patches need to be applied to undo the problems caused by u-boot and fb driver commits.

Changed in linaro-landing-team-samsung:
status: Confirmed → In Progress
Inderpal Singh (ips) wrote :

Frame buffer patch described in the above msg attached.

Changed in linaro-landing-team-samsung:
milestone: none → 2012.08
Botao (botao-sun) wrote :
Botao (botao-sun) wrote :
Botao (botao-sun) wrote :
Botao (botao-sun) wrote :

There are 2 ways can let the board enter suspend mode:

1. Click suspend in the drop down list on right top corner;

2. Do nothing, after the board booted up, just wait.

On Origen Linaro ubuntu pre-built image:

http://snapshots.linaro.org/precise/pre-built/leb-origen/312/leb-origen-precise_ubuntu-desktop_20120828-312.img.gz

The second one works well; but the board can't be woken up on the first situation.

Inderpal Singh (ips) wrote :

@Tushar,

I had posted the bug fix patches at msg #6 & 7. They are missing in the tracking branch.
Please push them.

Tushar Behera (tusharbehera) wrote :

Patch updated in tracking for 3.6 kernel. Would be available for 2012.09 release.

Changed in linaro-landing-team-samsung:
milestone: 2012.08 → 2012.09
status: In Progress → Fix Committed
Botao (botao-sun) wrote :

Same behaviour observed as comment #15 on Samsung Origen board with Linaro ubuntu pre-built image:

http://snapshots.linaro.org/precise/pre-built/leb-origen/316/leb-origen-precise_ubuntu-desktop_20120830-316.img.gz

Botao (botao-sun) wrote :

Same behaviour observed as comment #15 on Samsung Origen board with Linaro ubuntu pre-built image:

http://snapshots.linaro.org/precise/pre-built/leb-origen/336/leb-origen-precise_ubuntu-desktop_20120909-336.img.gz

Botao (botao-sun) on 2012-09-18
description: updated
Botao (botao-sun) on 2012-09-26
description: updated
Botao (botao-sun) on 2012-10-04
description: updated
Botao (botao-sun) on 2012-10-10
description: updated
Botao (botao-sun) on 2012-10-17
description: updated
Changed in linaro-landing-team-samsung:
status: Fix Committed → Confirmed
Botao (botao-sun) on 2012-10-24
description: updated
Soumya Basak (soumya-basak) wrote :

observed with origen ubuntu images
http://snapshots.linaro.org/precise/pre-built/leb-origen/453/leb-origen-precise_ubuntu-desktop_20121105-453.img.gz

system crashes when the device goes to suspend states.

Botao (botao-sun) on 2012-11-14
description: updated
description: updated
Soumya Basak (soumya-basak) wrote :

observed with origen ubuntu 12.11 release image

http://snapshots.linaro.org/precise/pre-built/leb-origen/494/leb-origen-precise_ubuntu-desktop_20121127-494.img.gz

the board enter into suspend mode but can't be woken up.

Inderpal Singh (ips) wrote :

When I use toolchain [1] it works fine.

And when i use toolchain [2], it goes to suspend but does not wake up. If i disable CONFIG_THUMB2_KERNEL, it starts working well.

[1] arm-linux-gnueabi-gcc (GCC) 4.5.2 20101003 (Linaro) [release 4.5-2010.11-1]

[2] arm-linux-gnueabihf-gcc (crosstool-NG linaro-1.13.1-4.7-2012.11-20121123 - Linaro GCC 2012.11) 4.7.3 20121106 (prerelease)

Fathi Boudra (fboudra) wrote :

Could someone from TCWG advise wrt comment #22 ?

Tushar Behera (tusharbehera) wrote :

LT would no longer be supporting Origen board officially.

Changed in linaro-landing-team-samsung:
assignee: Inderpal Singh (ips) → nobody
importance: Medium → Undecided
status: Confirmed → Won't Fix
milestone: 2012.09 → none
Fathi Boudra (fboudra) on 2013-03-29
no longer affects: gcc-linaro
Changed in linaro-android:
status: New → Won't Fix
Changed in u-boot-linaro:
status: New → Won't Fix
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