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: drivers_video-dri@kernel-bugs.osdl.org Reporter: tem_pos@o2.pl 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.
https://bugzilla.kernel.org/show_bug.cgi?id=191571
--- Comment #1 from Przemek tem_pos@o2.pl --- Created attachment 249381 --> https://bugzilla.kernel.org/attachment.cgi?id=249381&action=edit lscpu
https://bugzilla.kernel.org/show_bug.cgi?id=191571
--- Comment #2 from Przemek tem_pos@o2.pl --- Created attachment 249391 --> https://bugzilla.kernel.org/attachment.cgi?id=249391&action=edit dmesg
https://bugzilla.kernel.org/show_bug.cgi?id=191571
Przemek tem_pos@o2.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #249371|AMD Radeon hangs during |dmidecode description|hibernation - regression. |
https://bugzilla.kernel.org/show_bug.cgi?id=191571
--- Comment #3 from Przemek tem_pos@o2.pl --- Created attachment 249401 --> https://bugzilla.kernel.org/attachment.cgi?id=249401&action=edit bisect log
https://bugzilla.kernel.org/show_bug.cgi?id=191571
Przemek tem_pos@o2.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression|No |Yes
https://bugzilla.kernel.org/show_bug.cgi?id=191571
Felix Schwarz felix.schwarz@oss.schwarz.eu changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |felix.schwarz@oss.schwarz.e | |u
--- Comment #4 from Felix Schwarz felix.schwarz@oss.schwarz.eu --- according to the reporter's bisect log (comment #3) the first bad commit is:
commit 274ad65c9d02bdcbee9bae045517864c3521d530 Author: Jérome Glisse jglisse@redhat.com 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.
Reviewed-by: Christian König christian.koenig@amd.com Signed-off-by: Jérôme Glisse jglisse@redhat.com Cc: Alex Deucher alexander.deucher@amd.com Cc: Christian König christian.koenig@amd.com Signed-off-by: Alex Deucher alexander.deucher@amd.com
https://bugzilla.kernel.org/show_bug.cgi?id=191571
--- Comment #5 from Przemek tem_pos@o2.pl --- 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.
https://bugzilla.kernel.org/show_bug.cgi?id=191571
--- Comment #6 from Przemek (soprwa@gmail.com) --- 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.
https://bugzilla.kernel.org/show_bug.cgi?id=191571
Alex Deucher (alexdeucher@gmail.com) changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexdeucher@gmail.com
--- Comment #7 from Alex Deucher (alexdeucher@gmail.com) --- Created attachment 258405 --> https://bugzilla.kernel.org/attachment.cgi?id=258405&action=edit possible fix
How about just disabling the reset on all APUs.
https://bugzilla.kernel.org/show_bug.cgi?id=191571
--- Comment #8 from Przemek (soprwa@gmail.com) --- I cant say about all APUs, but I have tested the patch, and on MULLINS chip this solution is working perfect. Thanks, Przemek.
https://bugzilla.kernel.org/show_bug.cgi?id=191571
Przemek (soprwa@gmail.com) changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |CODE_FIX
--- Comment #9 from Przemek (soprwa@gmail.com) --- Fixed upstream by commit 820608548737e315c6f93e3099b4e65bde062334.
dri-devel@lists.freedesktop.org