New: AMD APU R4 hangs during hibernation - regression
https://bugzilla.kernel.org/show_bug.cgi?id=191571
Bug ID: 191571
Summary: AMD APU R4 hangs during hibernation - regression
Product: Drivers
Version: 2.5
Kernel Version: from 4.7 up to current
Hardware: x86-64
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Video(DRI - non Intel)
Assignee: [email protected]
Reporter: [email protected]
Regression: No
Created attachment 249371
--> https://bugzilla.kernel.org/attachment.cgi?id=249371&action=edit
AMD Radeon hangs during hibernation - regression.
I'am using Arch Linux.
After upgrade the kernel from 4.6 to 4.7 I cannot hibernate my Lenovo g50-45 netbook - AMD a6 6310 with radeon r4 Beema.
When system is triggered for hibernation screem gets dimmed and netbook hangs. I have to power it off by pressing for longer period of time the power button. Fans are getting on full rpms and machine is getting hot.
Bisected changes and the first bad commit is - drm/radeon: hard reset r600 and newer GPU when hibernating. (commit 274ad65c9d02bdcbee9bae045517864c3521d530)
Bios - file attached.
CPU info - file attached.
Log from boot/hibernate - file attached.
Bisecting log - file attached.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 191571] AMD APU R4 hangs during hibernation - regression
https://bugzilla.kernel.org/show_bug.cgi?id=191571
--- Comment #1 from Przemek <[email protected]> ---
Created attachment 249381
--> https://bugzilla.kernel.org/attachment.cgi?id=249381&action=edit
lscpu
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 191571] AMD APU R4 hangs during hibernation - regression
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=191571
--- Comment #2 from Przemek <[email protected]> ---
Created attachment 249391
--> https://bugzilla.kernel.org/attachment.cgi?id=249391&action=edit
dmesg
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 191571] AMD APU R4 hangs during hibernation - regression
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=191571
Przemek <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #249371|AMD Radeon hangs during |dmidecode
description|hibernation - regression. |Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 191571] AMD APU R4 hangs during hibernation - regression
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=191571
--- Comment #3 from Przemek <[email protected]> ---
Created attachment 249401
--> https://bugzilla.kernel.org/attachment.cgi?id=249401&action=edit
bisect log
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 191571] AMD APU R4 hangs during hibernation - regression
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=191571
Przemek <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Regression|No |Yes
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
[email protected]
Reviewed-by Christian König[Bug 191571] AMD APU R4 hangs during hibernation - regression
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=191571
Felix Schwarz <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected] | |u
--- Comment #4 from Felix Schwarz <[email protected]> --- according to the reporter's bisect log (comment #3) the first bad commit is:
commit 274ad65c9d02bdcbee9bae045517864c3521d530
Author: Jérome Glisse <[email protected]> Date: Fri Mar 18 16:58:39 2016 +0100
drm/radeon: hard reset r600 and newer GPU when hibernating.
Some GPU block like UVD and VCE require hard reset to be properly resume if there is no real powerdown of the asic like during various hibernation step. This patch perform such hard reset.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 191571] AMD APU R4 hangs during hibernation - regression
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=191571
--- Comment #5 from Przemek <[email protected]> ---
I can confirm that this commit is makeing problems on A6 6310 APU.
I have compiled kernel 4.9 with reversed patch [274ad65c9d02bdcbee9bae045517864c3521d530] and I can hibernate without problems.
Moreover I have checked UVD hardware acceleration of h264 codec in mplayer's vdpau option and it is working correctly. I have an accelerated playback with ffmpeg12vdpau codec after resume from hibernate.
So maby forcing A6 GPU - r4 Mullins/Beema to hard reset when wakeing up from hibernate state isn't necessarily mandatory.
I am also wondering, (cause of the experimentary support of CIK GPU's in amdgpu driver as in the future GPU's from Sea Island and Southern Island families support would be implemented in amdgpu) if there is similar patch commited to amdgpu and if so I am aware that it could also affect the hibernate process on A6 6310 APU.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 191571] AMD APU R4 hangs during hibernation - regression
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=191571
--- Comment #6 from Przemek ([email protected]) ---
Created attachment 258401
--> https://bugzilla.kernel.org/attachment.cgi?id=258401&action=edit
proposed patch
As the problem still persist in kernel 4.13 I have made a little patch for it. With this patch applied to source tree my laptop can hibernate and resume successfully.
As I am not a programmer please consider if this problem can be resolved in such way.
Thanks,
Przemek.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 191571] AMD APU R4 hangs during hibernation - regression
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=191571
Alex Deucher ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #7 from Alex Deucher ([email protected]) --- Created attachment 258405
--> https://bugzilla.kernel.org/attachment.cgi?id=258405&action=edit
possible fix
How about just disabling the reset on all APUs.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 191571] AMD APU R4 hangs during hibernation - regression
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=191571
--- Comment #8 from Przemek ([email protected]) ---
I cant say about all APUs, but I have tested the patch, and on MULLINS chip this solution is working perfect.
Thanks,
Przemek.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 191571] AMD APU R4 hangs during hibernation - regression
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=191571
Przemek ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |CODE_FIX--- Comment #9 from Przemek ([email protected]) --- Fixed upstream by commit 820608548737e315c6f93e3099b4e65bde062334.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel