Suspend/resume problems on Broadwell
Hi,
I'm having a few problems with i915 on my Broadwell Thinkpad (T450s, i7-5600U) with kernel 3.19, apparently suspend/resume related.
During every suspend/resume cycle, I see this in my kernel log after wakeup:
PM: Entering mem sleep
Suspending console(s) (use no_console_suspend to debug) (three lines cut)
[drm:stop_ring] *ERROR* render ring : timed out trying to stop ring
I also get a lot of the following at random times, and during glxgears once for every frame presented. I'm assuming it's for every GL frame, but I've only confirmed that for glxgears:
[drm:hsw_unclaimed_reg_detect.isra.11 [i915]] *ERROR* Unclaimed register detected. Please use the i915.mmio_debug=1 to debug this problem.
With mmio_debug, I get these:
WARNING: CPU: 0 PID: 360 at drivers/gpu/drm/i915/intel_uncore.c:726 hsw_unclaimed_reg_debug+0x7d/0xa0() Unclaimed register detected before
writing to register 0x44404 CPU: 0 PID: 360 Comm: Xorg Tainted:
G W 3.19.0 #1 Hardware name: LENOVO 20BWS03F00/20BWS03F00,
BIOS JBET39WW (1.04 ) 12/09/2014 0000000000000000 0000000070c52c75 ffff88032d8a3b18 ffffffff819f0e8b 0000000000000007 ffff88032d8a3b70 ffff88032d8a3b58 ffffffff810c7205 0000000000000246 ffff88032cd00000 0000000000044404 0000000000044404 Call Trace:
[<ffffffff819f0e8b>] dump_stack+0x4c/0x6e [<ffffffff810c7205>] warn_slowpath_common+0x85/0xc0 [<ffffffff810c72c5>] warn_slowpath_fmt+0x55/0x70 [<ffffffff81524d8d>] hsw_unclaimed_reg_debug+0x7d/0xa0 [<ffffffff8152ac48>] gen8_write32+0x58/0x1a0 [<ffffffff8150f55b>] gen8_enable_vblank+0x6b/0xa0 [<ffffffff814bbd2d>] drm_vblank_enable+0x8d/0x100 [<ffffffff814bcb4b>] drm_vblank_get+0xab/0xe0 [<ffffffff814bd442>] drm_wait_vblank+0x92/0x620 [<ffffffff81500d8c>] ? i915_gem_retire_requests_ring+0x3c/0x180 [<ffffffff814bb1af>] drm_ioctl+0x1df/0x680 [<ffffffff8112fb5c>] ? __hrtimer_start_range_ns+0x2fc/0x410 [<ffffffff81225c88>] do_vfs_ioctl+0x2f8/0x500 [<ffffffff812302e2>] ? __fget+0x72/0xb0 [<ffffffff81225f11>] SyS_ioctl+0x81/0xa0 [<ffffffff819f9312>] system_call_fastpath+0x12/0x17
About every one in three suspend/resume cycles, X graphics are almost completely broken after resume. Window decorations are still drawn (mostly, anyway), but window contents are mostly absent. What survived the cycle is killed off entirely by redraw events. Restarting everything X doesn't work, virtual terminals work fine.
Also, it seems that running or having run a GL application has some impact on this. With an instance of glxgears running during suspend/resume, this doesn't seem to happen. Moreover, running a GL app seems to fix the problem.
Is this known already, or can I somehow help to fix this?
Greetings,
Phoebe
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 4 lines · On Fri, 27 Feb 2015 00:07:41 +0100, [email protected] wrote:
Hi,
I'm having a few problems with i915 on my Broadwell Thinkpad (T450s, i7-5600U) with kernel 3.19, apparently suspend/resume related.
[…]
Quoted 4 lines
Also, it seems that running or having run a GL application has some impact on this. With an instance of glxgears running during suspend/resume, this doesn't seem to happen. Moreover, running a GL app seems to fix the problem.
Correction: running a GL app during suspend/resume prevents bad things (and the "timed out trying to stop ring" error, apparently). Running GL after resume only partly restores original state, sometimes font rendering is broken for random characters - they just don't display anymore. It also seems that only one font and only one size of that one font is affected. I'm guessing that's a problem in X, perhaps?
Quoted 5 lines
Is this known already, or can I somehow help to fix this?
Greetings,
Phoebe
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Smells like something is wrong in bdw-land.
Can you please retest with latest drm-intel-nightly from
http://cgit.freedesktop.org/drm-intel or alternatively 4.0-rc kernels? Starting with 4.0 we're using the execlist cmd submission support, which might help.
Thanks, Daniel
Quoted 27 lines · On Fri, Feb 27, 2015 at 6:27 PM, <[email protected]> wrote:
Quoted 4 lines · On Fri, 27 Feb 2015 00:07:41 +0100, [email protected] wrote:
Hi,
I'm having a few problems with i915 on my Broadwell Thinkpad (T450s, i7-5600U) with kernel 3.19, apparently suspend/resume related.
[…]
Quoted 4 lines
Also, it seems that running or having run a GL application has some impact on this. With an instance of glxgears running during suspend/resume, this doesn't seem to happen. Moreover, running a GL app seems to fix the problem.
Correction: running a GL app during suspend/resume prevents bad things (and the "timed out trying to stop ring" error, apparently). Running GL after resume only partly restores original state, sometimes font rendering is broken for random characters - they just don't display anymore. It also seems that only one font and only one size of that one font is affected. I'm guessing that's a problem in X, perhaps?
Quoted 5 lines
Is this known already, or can I somehow help to fix this?
Greetings,
Phoebe_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 6 lines · Daniel Vetter
Smells like something is wrong in bdw-land.
Can you please retest with latest drm-intel-nightly from
http://cgit.freedesktop.org/drm-intel or alternatively 4.0-rc kernels? Starting with 4.0 we're using the execlist cmd submission support, which might help.
I've just tested with 4cf8e7747f184a0616b547b307d63b65298c88a7, drm-intel-nightly. I could not reproduce the suspend/resume problems with that kernel, and the "timed out trying to stop ring" error is also gone. I still see loads of unclaimed register warnings while running GL programs, though.
Quoted 27 lines
Thanks, Daniel
Quoted 23 lines · On Fri, Feb 27, 2015 at 6:27 PM, <[email protected]> wrote:
Quoted 5 lines · On Fri, 27 Feb 2015 00:07:41 +0100, [email protected] wrote:
Hi,
I'm having a few problems with i915 on my Broadwell Thinkpad (T450s, i7-5600U) with kernel 3.19, apparently suspend/resume related.
[…]
Quoted 4 lines
Also, it seems that running or having run a GL application has some impact on this. With an instance of glxgears running during suspend/resume, this doesn't seem to happen. Moreover, running a GL app seems to fix the problem.
Correction: running a GL app during suspend/resume prevents bad things (and the "timed out trying to stop ring" error, apparently). Running GL after resume only partly restores original state, sometimes font rendering is broken for random characters - they just don't display anymore. It also seems that only one font and only one size of that one font is affected. I'm guessing that's a problem in X, perhaps?
Quoted 3 lines
Is this known already, or can I somehow help to fix this?
Quoted 13 lines
Quoted 6 lines
Quoted 2 lines
Greetings,
Phoebe_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfxSignature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx