Bug 85465

Summary: [NVCF] X loses resources after suspend/resume
Product: xorg Reporter: Daniel Barkalow <barkalow>
Component: Driver/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Daniel Barkalow 2014-10-26 01:33:07 UTC
After suspending to ram and resuming, many things appear blank, and dmesg has errors. In particular: icons for iconified windows, all non-core text (xterm with misc-fixed still works, but web browsers have nothing), images in web pages, the contents of windows (until they get redrawn). Restarting the X server fixes it.

hardware: NVIDIA Corporation GF116M [GeForce GT 560M] (rev a1)

versions:
 xorg: 1.15.0
 nouveau: compiled for 1.15.0, module version = 1.0.10
 libdrm: 2.4.52
 mesa: 10.0.4
 kernel: 3.14.19

I can try newer versions of particular things if it would be helpful, although I don't know which component would be relevant and I haven't seen any similar reports. I can also apply patches for more debugging info.

The errors are a lot of lines like:

[24060.452246] nouveau E[  PGRAPH][0000:01:00.0] TRAP ch 2 [0x005fba0000 X[2287]]
[24060.452254] nouveau E[  PGRAPH][0000:01:00.0] SHADER 0xa004021e
Comment 1 Ilia Mirkin 2014-10-26 01:37:06 UTC
Could you try booting with

nouveau.config=PCE1=0

And seeing if that helps? This sounds like some resource copies aren't working properly (either on suspend or on resume) and some GF116's have been known to be silently missing their second copy engine (or we're not doing something to properly enable or we're not looking in the right place for the disable or ... who knows).
Comment 2 Daniel Barkalow 2014-10-26 03:52:39 UTC
That seems to work, so I can just use that. Thanks! Let me know if you'd like me to test patches to handle this hardware automatically.
Comment 3 Ilia Mirkin 2014-10-26 04:19:08 UTC
Well, first I'd like to get information... basically we need to figure out how to figure out that the second copy engine is busted. (Or, conversely, how to un-bust it.)

Can you install envytools (https://github.com/envytools/envytools) and let's start with some easy stuff... as root, get the output of:

nvapeek 22400 200
Comment 4 Daniel Barkalow 2014-10-26 17:41:48 UTC
I get:

00022400: 00000000 00000000 00000000 00000002
00022410: 00000000 00000000 30000000 00000000
00022420: 00000000 00000000 00000800 00000000
00022430: 00000001 00000004 00000003 00000000
...
Comment 5 Ilia Mirkin 2014-12-08 01:25:39 UTC
After further investigation it appears that no GF116's actually contain a second "regular" copy engine, so it's been disabled completely. 3.18 should fix it and the patch is being backported to the stable trees.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.