New: resume from suspend broken with 3.15-rc1 and rc2 kernels
https://bugzilla.kernel.org/show_bug.cgi?id=74751
Bug ID: 74751
Summary: resume from suspend broken with 3.15-rc1 and rc2
kernels
Product: Drivers
Version: 2.5
Kernel Version: 3.15-rc2
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Video(DRI - non Intel)
Assignee: [email protected]
Reporter: [email protected]
Regression: NoCreated attachment 133611
--> https://bugzilla.kernel.org/attachment.cgi?id=133611&action=edit
bisect.log
Quoted 1 line
From the 3.15-rc1 kernel, the resume from suspend is broken on my hp dm1 laptop
with AMD E-350 radeon HD 6310 graphic.
After bisecting, i found that commit:
commit 25f397a429dfa43f22c278d0119a60a343aa568f
Author: Daniel Vetter <[email protected]>
Date: Fri Jul 19 18:57:11 2013 +0200
was the first bad commit.
After revert the commit, and recompiling the 3.15-rc2 kernel, the suspend resume work again with a small problem.
After the resume, the laptop suspend immediately again. After pressing any key, it resume again normally.
If y suspend with the parameter --quirk-dpms-on then the laptop suspend resume without any problem.
Until the 3.14.1 kernel, everything works fine.
I dont know if i reported the bug at the right place, I don't know if it is acpi, drm, or radeon related but at least it seems dpms related.
If you need any other info please let me know.
Attached are the bisect.log, dmseg, lspci and dmidecode.
Best regards.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #1 from Tasev Nikola <[email protected]> --- Created attachment 133621
--> https://bugzilla.kernel.org/attachment.cgi?id=133621&action=edit
dmesg
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #2 from Tasev Nikola <[email protected]> --- Created attachment 133631
--> https://bugzilla.kernel.org/attachment.cgi?id=133631&action=edit
lspci grep VGA
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #3 from Tasev Nikola <[email protected]> --- Created attachment 133641
--> https://bugzilla.kernel.org/attachment.cgi?id=133641&action=edit
dmidecode
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
Tasev Nikola <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Regression|No |Yes
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
Daniel Vetter <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
CC| |[email protected]--- Comment #4 from Daniel Vetter <[email protected]> ---
Can you please boot with drm.debug=0xe on broken kernels and on working kernels, do a suspend/resume and then attach dmesg for each? Please make sure early boot messages are not cut off, increasing dmesg logsize with log_buf_len if needed.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #5 from Daniel Vetter <[email protected]> ---
Hm, 25f397a429dfa43f22c was already merged into 3.11, but you say that 3.14 works fine. Is this really the right first bad commit git bisect found? I'm confused ...
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #6 from Tasev Nikola <[email protected]> --- Hi Daniel,
First, sorry if i confuse you , i'm just an averrage user.
But yes this is really the first bad commit git bisect found.
I saw that it is just one line simple patch but it probably masked another problem elsewhere because the break in the patch is just before the dpms screen code. And yes changing the break 3 lines above like before the patch and recompiling the kernel fixes the problem for now.
I dont know from where could come the problem. And yes, all the kernels before the 3.15-rc1 work without a problem.
With the broken 3.15-rc2 kernel (non patched), my computer frooze immediately after resume. I only have a black screen, i can't log into console and i must shutdown the computer pressing the power button 10 sec. I attached the dmesg before suspend/resume.
For the working 3.15-rc2 with the patch, I attached the dmesg with drm.debug=0xe after suspend/resume.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #7 from Tasev Nikola <[email protected]> --- Created attachment 133791
--> https://bugzilla.kernel.org/attachment.cgi?id=133791&action=edit
dmesg working kernel after suspend/resume
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #8 from Tasev Nikola <[email protected]> --- Created attachment 133801
--> https://bugzilla.kernel.org/attachment.cgi?id=133801&action=edit
dmesg broken kernel before suspend/resume
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #9 from Tasev Nikola <[email protected]> --- Hi,
I just tried now 3.15-rc3, the bug is still there.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
Niko Montonen <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #10 from Niko Montonen <[email protected]> --- I have a Lenovo ThinkPad Edge E325 with the upgraded version of Tasev's APU, the E450, with the HD6320 Wrestler graphics chipset, and I'm suffering from an issue that would appear to be the same as this.
I'm currently running 3.14.1 on the machine, and it works just fine, but 3.15-rc1 and 3.15-rc3 both fail to resume from suspend (I haven't tested rc2). The machine hangs completely (network interfaces do not resume etc.), so I'm unable to get dmesg after suspend.
I feel it's worth noting that the machine also completely ignores the lid closing with 3.15-rc3, and I believe there are lots of ACPI changes in 3.15, which would explain a lot.
Are there notes somewhere on how to get some useful debug info for situations like this?
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #11 from Niko Montonen <[email protected]> --- Created attachment 134161
--> https://bugzilla.kernel.org/attachment.cgi?id=134161&action=edit
dmesg from working kernel
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #12 from Niko Montonen <[email protected]> --- Created attachment 134171
--> https://bugzilla.kernel.org/attachment.cgi?id=134171&action=edit
dmesg from broken kernel
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #13 from Daniel Vetter <[email protected]> ---
Now I'm even more confused, since 25f397a429dfa is a lot more than a one-line patch. And it _really_ is included in 3.14 already, so git bisect can't possible list that one as the offending commit for a post-3.14 regression, the tool doesn't work like that.
Can you please double-check the sha1 and perhaps cite the full commit message + patch to make sure we're talking about the same?
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #14 from Tasev Nikola <[email protected]> --- Hi,
Here is the patch from the commit that i found with git bisect. It's a copy paste from gitk for the commit 25f397a429dfa43f22c278d0119a60a343aa568f
---------------------- drivers/gpu/drm/drm_crtc_helper.c ---------------------- index c0f2d62..8108db9 100644
@@ -695,12 +695,13 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
if (new_encoder == NULL)
/* don't break so fail path works correct */
fail = 1;- break;
if (connector->dpms != DRM_MODE_DPMS_ON) {
DRM_DEBUG_KMS("connector dpms not on, full mode
switch\n");
mode_changed = true;
}
+
+ break;
}
}I just changed the break in the code like before the patch and after recompiling
the 3.15-rc2 the suspend resume work again.
But like i said i'm just an average user so sorry if i did something wrong. I attached a full copy paste from gitk for the commit 25f397a429dfa43f22c278d0119a60a343aa568f
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #15 from Tasev Nikola <[email protected]> --- Created attachment 134191
--> https://bugzilla.kernel.org/attachment.cgi?id=134191&action=edit
commit 25f397a429dfa43f22c278d0119a60a343aa568f from gitk
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #16 from Tasev Nikola <[email protected]> --- For bisecting i did this:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
linux-git
git bisect start | tee -a /root/bisect.log git bisect bad v3.15-rc1 | tee -a /root/bisect.log git bisect good v3.14 | tee -a /root/bisect.log
Then i compile the kernel each time with CONCURRENCY_LEVEL=4 make-kpkg --initrd kernel_image modules_image
After testing the kernel
git bisect good or git bisect bad
then make clean and build again, testing an so on.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #17 from Tasev Nikola <[email protected]> --- Hi,
I just tested 3.15-rc4 today and the bug is still there.
Is it something that i could do/test to help debug this ?
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #18 from Tasev Nikola <[email protected]> --- Hi
Just tested now 3.15-rc5, still not working.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #19 from William Shuman <[email protected]> ---
try the patch mentioned in https://bugzilla.kernel.org/show_bug.cgi?id=75651
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #20 from Tasev Nikola <[email protected]> --- I tried the patch just in case but it didn't help. Thank you anyway.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #21 from Daniel Vetter <[email protected]> ---
Ok, the offending commit is actually 177cf92de4aa97ec1435987e91696ed8b5023130, at least that one matches the diff of your change. It references the other commit, but that's not the commit itself.
For debugging it might be useful to do the suspend partially. You can disable certain parts of suspend (it will immediately resume if you do this)
# echo <mode> > /sys/power/pm_test
See
# cat /sys/power/pm_test
for a list of all possible values. If you manage to reproduce the bug with this please attach the drm.debug=0xe dmesg.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #22 from Tasev Nikola <[email protected]> --- Hi Daniel,
I didn't notice your last reply until today when i was testing the 3.15-rc6 kernel to report that is still not working.
cat /sys/power/pm_test give me :
[none] core processors platform devices freezer
So i echo the different mode to /sys/power/pm_test one by one and then do pm-suspend every time but i could not reproduce the bug, the computer resume normaly after 3-4 seconds.
If you need the dmesg after every different suspend resume i can send it to you, just tell me.
Just for info, i also test the rc6 kernel with reverting the patch in comment 14 and it works ok after resume.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #23 from Tasev Nikola <[email protected]> --- Hi
I try again different value for /sys/power/pm_test with the 3.15-rc7 kernel and i notice that with devices selected for /sys/power/pm_test it took long time to resume (12-15 seconds).
Looking into dmesg i can see GPU lockup and uvd errors (at 363.74 line). I don't no if this is related to my resume problem.
Dmesg is attached.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #24 from Tasev Nikola <[email protected]> --- Created attachment 137481
--> https://bugzilla.kernel.org/attachment.cgi?id=137481&action=edit
dmesg with devices for sys-power-pm-test
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #25 from Daniel Vetter <[email protected]> --- Created attachment 137721
--> https://bugzilla.kernel.org/attachment.cgi?id=137721&action=edit
resume fbcon later
Hm, somehow forgotten to attach this yesterday. Please test this patch instead of any reverts.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
--- Comment #26 from Tasev Nikola <[email protected]> --- (In reply to Daniel Vetter from comment #25)
Quoted 5 lines
Created attachment 137721 [details]
resume fbcon laterHm, somehow forgotten to attach this yesterday. Please test this patch instead of any reverts.
The patch work's fine.
Thank you
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 74751] resume from suspend broken with 3.15-rc1 and rc2 kernels
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=74751
Daniel Vetter <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution|--- |CODE_FIX--- Comment #27 from Daniel Vetter <[email protected]> --- Patch is merged upstream, thanks for the report and testing.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.