Skip to contentSkip to conversation

New: Screen is corrupt upon resume from hybrid-sleep with Radeon HD5xxx cards

Bug 119991 [email protected] 1 participant 5 messages Jun 11, 2016 – Jun 13, 2016

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=119991

            Bug ID: 119991
           Summary: Screen is corrupt upon resume from hybrid-sleep with
                    Radeon HD5xxx cards
           Product: Drivers
           Version: 2.5
    Kernel Version: 4.6.1
          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

When resuming from hybrid-sleep, the screen is blank/corrupt (usually white-ish, resembling static with some random colours, but sometimes black or a pattern of black/white boxes) and the GUI is essentially unusable as nothing is visible. The system is still responsive, however; I can switch to/from virtual consoles without issue (and ssh into the box).

I can reproduce this every time, but only on resume from hybrid sleep - normal suspend works fine, as does hibernate. In fact, after resuming from hybrid sleep I can "fix" the corruption by hibernating the system, and then resuming - some corruption remains, but is quickly cleared by doing something simple such as alt-tabbing or moving/resizing the topmost window, and the system appears to work normally.

This does not happen with my HD 4670, but does appear with HD 5750 and HD 5850.

A possibly related symptom: sometimes both hibernate and hybrid-sleep take extraordinarily long (hard disks spin down normally, but the system remains powered and fans running for considerable time, anywhere from ~10 seconds to several minutes after the disks have stopped). This happens with both 5-series cards as well, but not on the 4670. However, I have had this happen even on kernels which do not exhibit screen corruption after resume from hybrid sleep, and can't consistently reproduce it.

I did a git bisect on Linus' tree and the first bad commit is b9729b17a414f99c61f4db9ac9f9ed987fa0cbfe

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
#1 lore raw

[Bug 119991] Screen is corrupt upon resume from hybrid-sleep with Radeon HD5xxx cards

https://bugzilla.kernel.org/show_bug.cgi?id=119991

Felix Schwarz <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |[email protected]
                   |                            |u

--- Comment #1 from Felix Schwarz <[email protected]> --- This commit seems to be a funny one as it was reverted later one (and we even have a revert of the revert). If you revert b9729b17 on top of Linus' tree does the problem go away for you?

Hopefully this isn't too much noise (as it might be a different problem) I see similar symptoms with a HD6450 (also with regular suspend but it only happens in most cases, not always) and the problem goes away if I revert that commit.

just for reference:
commit d57c0edfe00d3274b50f91ce3076ed0e82d28782

Author: Alex Deucher <[email protected]>
Date:   Wed Jul 8 14:08:12 2015 -0400

Revert "Revert "drm/radeon: dont switch vt on suspend""

This reverts commit ac9134906b3f5c2b45dc80dab0fee792bd516d52.

We've fixed the underlying problem with cursors, so re-enable this.

commit ac9134906b3f5c2b45dc80dab0fee792bd516d52

Author: Alex Deucher <[email protected]>
Date:   Mon Jun 29 11:09:11 2015 -0400

Revert "drm/radeon: dont switch vt on suspend"

This reverts commit b9729b17a414f99c61f4db9ac9f9ed987fa0cbfe.

This seems to break the cursor on resume for lots of systems.

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
#2 lore raw

[Bug 119991] Screen is corrupt upon resume from hybrid-sleep with Radeon HD5xxx cards

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119991

--- Comment #2 from Jani-Markus Maunus <[email protected]> --- The current master has fixed both screen corruption as well as abnormally slow hibernate/hybrid suspend - even without the revert. Both were still present as of 4.6.2 stable.

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
author Reviewed-by Christian König
#3 lore raw

[Bug 119991] Screen is corrupt upon resume from hybrid-sleep with Radeon HD5xxx cards

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119991

--- Comment #3 from Jani-Markus Maunus <[email protected]> --- I did a bisect out of curiosity, and in my case the following commit fixes both issues.

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.

Also, to clarify, reverting b9729b17a4 on master made no difference, but reverting it on the commit immediately preceding the above also fixed both issues. In any case, the bug appears fixed for me.

I might be just rambling at this point, but 4.6.1 stable was definitely bugged for me, yet this commit is dated well before 4.6.1 release - any idea what's up with that?

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
#4 lore raw

[Bug 119991] Screen is corrupt upon resume from hybrid-sleep with Radeon HD5xxx cards

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119991

--- Comment #4 from Felix Schwarz <[email protected]> --- (In reply to Jani-Markus Maunus from comment #3)

Quoted 3 lines

I might be just rambling at this point, but 4.6.1 stable was definitely bugged for me, yet this commit is dated well before 4.6.1 release - any idea what's up with that?

Well it seems to me as if Jérôme's patch was merged via Alex's 'drm-next' and Dave's 'drm-next-4.7' branches so it just missed the boat for 4.6. Also the commit you pointed out above has no "stable" tag so it won't be picked up automatically for point releases.

If you really care about 4.6 you might want to ping the authors and/or the reviewers who might be willing to nominate the patch for the stable series.

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