https://bugs.freedesktop.org/show_bug.cgi?id=100759
Bug ID: 100759 Summary: [r600] System freeze on resume from sleep on battery with DPM enabled and linux 4.10 Product: DRI Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: major Priority: medium Component: DRM/Radeon Assignee: dri-devel@lists.freedesktop.org Reporter: nicolamori@aol.com
Created attachment 130983 --> https://bugs.freedesktop.org/attachment.cgi?id=130983&action=edit journalctl log for failed resume
Since linux 4.10.1 my system freezes every time when resuming from sleep (suspend to ram) while on battery. The screen either remains black or displays garbage, and the only thing to do is a hard poweroff. The problem does not show up when either:
- running on AC or - using linux 4.9 (tested with 4.9.11) or - DPM is not enabled (radeon.dpm=0)
I checked journalctl but it does not contain anything useful. I attach the last part of the log, starting from the suspend request; it seems nothing from the failed resume process is logged.
System details:
- Archlinux x86_64 - Mobility Radeon HD 3470 - Plasma desktop 5.9.4
https://bugs.freedesktop.org/show_bug.cgi?id=100759
--- Comment #1 from Nicola Mori nicolamori@aol.com --- I found the time to bisect and found that the culprit is:
commit 1c331f75aa6ccbf64ebcc5a019183e617c9d818a Author: Lucas Stach dev@lynxeye.de Date: Sun Oct 23 01:05:33 2016 +0200
drm/radeon/pm: autoswitch power state when in balanced mode
The current default of always using the performance power state leads to increased power consumption of mobile devices, which have a dedicated battery power state. Switch between the performance and battery power state automatically, dpending on the current AC power status, when the user asked for the balanced power state.
The user can still override this logic by asking for the performance or battery power state explicitly.
Tested-by: Michel Dänzer michel.daenzer@amd.com Acked-by: Christian König christian.koenig@amd.com Signed-off-by: Lucas Stach dev@lynxeye.de Signed-off-by: Alex Deucher alexander.deucher@amd.com
I don't have the skills to understand what's broken, but I can test an eventual patch if someone provides it. Thanks.
https://bugs.freedesktop.org/show_bug.cgi?id=100759
--- Comment #2 from Nicola Mori nicolamori@aol.com --- Is there any chance that this bug report will be addressed?
https://bugs.freedesktop.org/show_bug.cgi?id=100759
--- Comment #3 from Alex Deucher alexdeucher@gmail.com --- Sorry, slipped off my radar. I just sent the revert out for review.
https://bugs.freedesktop.org/show_bug.cgi?id=100759
--- Comment #4 from Nicola Mori nicolamori@aol.com --- Hi Alex, any news about the revert patch? Is there any estimate about if and when it will be mainlined? Thanks.
https://bugs.freedesktop.org/show_bug.cgi?id=100759
--- Comment #5 from Alex Deucher alexdeucher@gmail.com --- In 4.16 and will be flowing back to stable as well: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?i...
https://bugs.freedesktop.org/show_bug.cgi?id=100759
Alex Deucher alexdeucher@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
https://bugs.freedesktop.org/show_bug.cgi?id=100759
--- Comment #6 from Nicola Mori nicolamori@aol.com --- Wow, thanks! I finally can update from kernel 4.9.
dri-devel@lists.freedesktop.org