All of lore.kernel.org
 help / color / mirror / Atom feed
* Suspend/resume problems on Broadwell
@ 2015-02-26 19:00 phoebe
  0 siblings, 0 replies; 5+ messages in thread
From: phoebe @ 2015-02-26 19:00 UTC (permalink / raw)
  To: intel-gfx

Hi,

I'm having a few problems with i915 on my Broadwell Thinkpad
(T450s, i7-5600U), apparently suspend/resume related.

During every suspend/resume cycle, I see this in my kernel log after
wakeup:

Freezing user space processes ... (elapsed 0.001 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
PM: Entering mem sleep
Suspending console(s) (use no_console_suspend to debug)
sd 0:0:0:0: [sda] Synchronizing SCSI cache
sd 0:0:0:0: [sda] Stopping disk
e1000e: EEE TX LPI TIMER: 00000011
[drm:stop_ring] *ERROR* render ring : timed out trying to stop ring

I also get a lot of these 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
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Suspend/resume problems on Broadwell
  2015-02-27 17:59   ` Daniel Vetter
@ 2015-02-27 18:33     ` phoebe
  0 siblings, 0 replies; 5+ messages in thread
From: phoebe @ 2015-02-27 18:33 UTC (permalink / raw)
  To: Daniel Vetter; +Cc: intel-gfx

On Fri, 27 Feb 2015 18:59:07 +0100, Daniel Vetter wrote:
> 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.

> Thanks, Daniel
> 
> 
> On Fri, Feb 27, 2015 at 6:27 PM,  <phoebe@quasiparticle.net> wrote:
> > On Fri, 27 Feb 2015 00:07:41 +0100, phoebe@quasiparticle.net 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.
> > […]
> >> 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?
> >
> >> Is this known already, or can I somehow help to fix this?
> >>
> >>
> >> Greetings,
> >> Phoebe
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx@lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/intel-gfx
> 
> 
> 
> -- 
> Daniel Vetter
> Software Engineer, Intel Corporation
> +41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Suspend/resume problems on Broadwell
  2015-02-27 17:27 ` phoebe
@ 2015-02-27 17:59   ` Daniel Vetter
  2015-02-27 18:33     ` phoebe
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Vetter @ 2015-02-27 17:59 UTC (permalink / raw)
  To: phoebe; +Cc: 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


On Fri, Feb 27, 2015 at 6:27 PM,  <phoebe@quasiparticle.net> wrote:
> On Fri, 27 Feb 2015 00:07:41 +0100, phoebe@quasiparticle.net 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.
> […]
>> 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?
>
>> Is this known already, or can I somehow help to fix this?
>>
>>
>> Greetings,
>> Phoebe
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx



-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Suspend/resume problems on Broadwell
  2015-02-26 23:07 phoebe
@ 2015-02-27 17:27 ` phoebe
  2015-02-27 17:59   ` Daniel Vetter
  0 siblings, 1 reply; 5+ messages in thread
From: phoebe @ 2015-02-27 17:27 UTC (permalink / raw)
  To: intel-gfx

On Fri, 27 Feb 2015 00:07:41 +0100, phoebe@quasiparticle.net 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.
[…]
> 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?

> Is this known already, or can I somehow help to fix this?
> 
> 
> Greetings,
> Phoebe
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Suspend/resume problems on Broadwell
@ 2015-02-26 23:07 phoebe
  2015-02-27 17:27 ` phoebe
  0 siblings, 1 reply; 5+ messages in thread
From: phoebe @ 2015-02-26 23:07 UTC (permalink / raw)
  To: intel-gfx

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
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-27 18:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-26 19:00 Suspend/resume problems on Broadwell phoebe
2015-02-26 23:07 phoebe
2015-02-27 17:27 ` phoebe
2015-02-27 17:59   ` Daniel Vetter
2015-02-27 18:33     ` phoebe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.