Bug 60532

Summary: Suspend with dedicated graphics card switched off breaking with kernel version 3.8.0-25+
Product: Drivers Reporter: rohankapadia
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: ASSIGNED ---    
Severity: normal CC: aaron.lu, alexdeucher, tianyu.lan
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.8.0-25+ Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg

Description rohankapadia 2013-07-07 05:33:06 UTC
Suspending my laptop while running only the integrated graphics and with the dedicated graphics card switched off using vgaswitcheroo is now breaking. Suspend works fine if the dedicated card is on or if I use a kernel version below 3.8.0-25.
Comment 1 Lan Tianyu 2013-07-08 02:01:49 UTC
Do you mean suspend failed when you was using vgaswitcheroo to switch off the dedicated graphics card?

Could you provide the output of dmesg after suspend failure and acpidump?

(In reply to rohankapadia from comment #0)
> Suspend works fine if the dedicated card is on or if I use a kernel version
> below 3.8.0-25.
This sounds like a regression. Could you do git bisect to find which commit cause this issue?
Comment 2 rohankapadia 2013-07-08 02:32:24 UTC
It seems to be the same as this bug, which has been fixed. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1062077
The dmesg matches the one posted. 

Attaching a file with my dmesg output.
Comment 3 rohankapadia 2013-07-08 02:33:54 UTC
Created attachment 106832 [details]
dmesg

dmesg output right after the wakeup occurs. Wakeup takes a very long time. My initial guess was that the kernel was hanging.
Comment 4 Lan Tianyu 2013-07-08 03:12:19 UTC
Have you tried v3.10 kernel?
Please provide the output of acpidump.
Comment 5 rohankapadia 2013-07-11 10:05:54 UTC
Tried with kernel version 3.10, but the kernel was downloaded for Ubuntu 3.10 from here http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10-saucy/

You want the acpidump with kernel 3.10?

When installing this kernel version my Wifi stopped working so I had to remove. If you need anything more than the acpidump also then let me know. I need to install the kernel get everything you want, then remove so wifi starts and then post here.
Comment 6 Aaron Lu 2013-07-12 02:19:14 UTC
From the dmesg of comment #3, the system resumed back but graphics card seems to have problems, re-assign to graphics.
Comment 7 Jani Nikula 2013-08-08 10:26:05 UTC
(In reply to Aaron Lu from comment #6)
> From the dmesg of comment #3, the system resumed back but graphics card
> seems to have problems, re-assign to graphics.

Dmesg filled with:
[ 1590.550012] [drm:atom_op_jump] *ERROR* atombios stuck in loop for more than 5secs aborting
[ 1590.550030] [drm:atom_execute_table_locked] *ERROR* atombios stuck executing CBD6 (len 62, WS 0, PS 0) @ 0xCBF2

Radeon issue? Re-assign to non-Intel.
Comment 8 rohankapadia 2013-08-21 22:46:48 UTC
The latest kernel update given by Ubuntu also has the same problem. The version is 3.8.0-29.
Comment 9 rohankapadia 2013-10-25 13:19:45 UTC
Upgraded to kernel version 3.11. Same problem.
An earlier report (see my comments above) had said that kernel version 3.10 fixed the issue but the problem persists.
Comment 10 Alex Deucher 2013-10-25 13:32:41 UTC
It looks like the kernel is trying to access a gpu that has been powered down via acpi or the bios.  Does it work properly with this kernel tree?

http://cgit.freedesktop.org/~agd5f/linux/log/?h=drm-next-3.13-wip
Comment 11 rohankapadia 2013-10-25 14:08:01 UTC
How do I compile and install this kernel tree for ubuntu 13.10?