Bug 112921 - [radeon] Lock-up after screensaver
Summary: [radeon] Lock-up after screensaver
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: drivers_video-dri
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-23 09:23 UTC by Jean Delvare
Modified: 2016-03-09 11:24 UTC (History)
1 user (show)

See Also:
Kernel Version: 4.4
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
dmesg output (56.88 KB, text/plain)
2016-02-23 09:28 UTC, Jean Delvare
Details
Xorg.0.log (57.27 KB, text/plain)
2016-02-23 09:30 UTC, Jean Delvare
Details

Description Jean Delvare 2016-02-23 09:23:36 UTC
Since I updated my kernel to v4.4, my system freezes frequently when I wake it up from screen-off state (no suspend/resume involved, only screensaver kicking in and display going to sleep.)

With previous kernels (<= 4.3.6) the lock-up never happened, although I sometimes had garbled colors after screensaver, which could be solved easily by switching to text console then back to X. The same workaround doesn't work for the lock-up.

I'm running Gnome 3.16.0 on openSUSE Leap 42.1. The hardware is:

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Turks XT [Radeon HD 6670/7670]

I am able to unlock X by restarting gnome-shell (with "killall -3 gnome-shell" from a text console.)
Comment 1 Jean Delvare 2016-02-23 09:25:22 UTC
I compared the boot messages from kernels v4.3.5 and v4.4.2. The only difference is the following error in v4.3.5 which is no longer present in v4.4.2:

[drm:btc_dpm_set_power_state [radeon]] *ERROR* rv770_set_sw_state failed

I have no idea if this is related.
Comment 2 Jean Delvare 2016-02-23 09:28:45 UTC
Created attachment 204371 [details]
dmesg output
Comment 3 Jean Delvare 2016-02-23 09:30:41 UTC
Created attachment 204381 [details]
Xorg.0.log
Comment 4 Alex Deucher 2016-02-23 15:19:20 UTC
This looks like the vblank regression bug.  See this thread for more info:
https://lists.freedesktop.org/archives/dri-devel/2016-January/098823.html
and the fdo bug:
https://bugs.freedesktop.org/show_bug.cgi?id=93746
Comment 5 Jean Delvare 2016-02-25 07:22:48 UTC
Thanks for the pointer Alex, I'll test Mario's patch right now.
Comment 6 Jean Delvare 2016-02-27 12:09:57 UTC
Unfortunately, Mario's patch does not fix my problem.
Comment 7 Michel Dänzer 2016-02-29 01:20:36 UTC
Which patch did you try? Mario actually came up with a number of separate fixes to address this regression. I think all of them should be in Linus' tree by now (for 4.5).
Comment 8 Jean Delvare 2016-03-06 08:08:15 UTC
I used the patch attached in bugzilla comment https://bugs.freedesktop.org/show_bug.cgi?id=93746#c18 on top of v4.4.3. This is the same patch that went upstream.

I'll test v4.4.4 next, as I see many radeon fixes went into this version.
Comment 9 Jean Delvare 2016-03-09 11:24:46 UTC
I've been running v4.4.4 for some time now and the lock-up never happened. So I guess it's fixed there, thanks.

Note You need to log in before you can comment on or make changes to this bug.