You are not logged in.

#1 2016-02-12 03:26:57

aouelete
Member
Registered: 2015-05-27
Posts: 30

Intel graphics gpu hang after resume from suspend

Just recently I started to have some issues with gpu hangs when I wake my laptop up from suspend. I do not think that any major packages have been updated or any system configurations changed before this has started, so I do not know what could be causing this. I have Intel HD 4600 graphics and am running KDE with the OpenGL 3.1 GLX rendering backend.
This is my intel Xorg config file:

Section "Device"
	Identifier "Intel Graphics"
	Driver "intel"

	Option "AccelMethod" "sna"
        Option "TearFree"    "true"
        Option "DRI"         "3"

EndSection

And this is what I see in the logs after the hang:

Feb 11 20:11:24 archpad kernel: drm/i915: Resetting chip after gpu hang
Feb 11 20:11:24 archpad kernel: ---[ end trace e74095246ca4a491 ]---
Feb 11 20:11:24 archpad kernel:  [<ffffffff81093f20>] ? kthread_worker_fn+0x170/0x170
Feb 11 20:11:24 archpad kernel:  [<ffffffff81591e8f>] ret_from_fork+0x3f/0x70
Feb 11 20:11:24 archpad kernel:  [<ffffffff81093f20>] ? kthread_worker_fn+0x170/0x170
Feb 11 20:11:24 archpad kernel:  [<ffffffff81093ff8>] kthread+0xd8/0xf0
Feb 11 20:11:24 archpad kernel:  [<ffffffff8108e510>] ? process_one_work+0x440/0x440
Feb 11 20:11:24 archpad kernel:  [<ffffffff8108e510>] ? process_one_work+0x440/0x440
Feb 11 20:11:24 archpad kernel:  [<ffffffff8108e558>] worker_thread+0x48/0x4a0
Feb 11 20:11:24 archpad kernel:  [<ffffffff8108e21b>] process_one_work+0x14b/0x440
Feb 11 20:11:24 archpad kernel:  [<ffffffffa0157ae5>] intel_mmio_flip_work_func+0x385/0x3c0 [i915]
Feb 11 20:11:24 archpad kernel:  [<ffffffff810156cf>] ? __switch_to+0x23f/0x480
Feb 11 20:11:24 archpad kernel:  [<ffffffff8107664c>] warn_slowpath_fmt+0x5c/0x80
Feb 11 20:11:24 archpad kernel:  [<ffffffff810765b2>] warn_slowpath_common+0x82/0xc0
Feb 11 20:11:24 archpad kernel:  [<ffffffff812c7f39>] dump_stack+0x4b/0x72
Feb 11 20:11:24 archpad kernel: Call Trace:
Feb 11 20:11:24 archpad kernel:  ffff88011e294f00 ffff88011e299900 0000000000000000 ffff880005601cc0
Feb 11 20:11:24 archpad kernel:  ffff88000703fd68 ffff88000703fd58 ffffffff810765b2 ffff880005601cc0
Feb 11 20:11:24 archpad kernel:  0000000000000000 000000002885b7a6 ffff88000703fd20 ffffffff812c7f39
Feb 11 20:11:24 archpad kernel: Workqueue: events intel_mmio_flip_work_func [i915]
Feb 11 20:11:24 archpad kernel: Hardware name: LENOVO 20C5004YUS/20C5004YUS, BIOS J9ET9CWW (2.22 ) 11/02/2015
Feb 11 20:11:24 archpad kernel: CPU: 2 PID: 17769 Comm: kworker/2:1 Tainted: G     U  W       4.4.1-2-ARCH #1
Feb 11 20:11:24 archpad kernel:  sysimgblt fb_sys_fops drm intel_agp intel_gtt
Feb 11 20:11:24 archpad kernel:  nvram snd led_class nf_log_ipv6 rfkill soundcore mei_me mei ac battery ie31200_edac edac_core fjes tpm_ti
Feb 11 20:11:24 archpad kernel:  sha256_ssse3 sha256_generic hmac drbg ansi_cprng ctr ccm fuse cmac ecb rfcomm overlay bnep uvcvideo video
Feb 11 20:11:24 archpad kernel: Modules linked in:
Feb 11 20:11:24 archpad kernel: WARN_ON(__i915_wait_request(mmio_flip->req, mmio_flip->crtc->reset_counter, false, NULL, &mmio_flip->i915-
Feb 11 20:11:24 archpad kernel: WARNING: CPU: 2 PID: 17769 at drivers/gpu/drm/i915/intel_display.c:11289 intel_mmio_flip_work_func+0x385/0
Feb 11 20:11:24 archpad kernel: ------------[ cut here ]------------
Feb 11 20:11:24 archpad kernel: [drm] GPU HANG: ecode 7:0:0x85dffff8, in kscreenlocker_g [17723], reason: Ring hung, action: reset
Feb 11 20:11:24 archpad kernel: [drm] stuck on render ring

Following this section of the wiki, I tried adding i915.semaphores=1 to my boot parameters, but it did not seem to change anything.

The hangs do not happen every time that my laptop is suspended, but when it does, I see a black screen for about a minute, and then the login screen is visible.

Has anyone seen a similar problem, or have any suggestions?

Offline

#2 2016-02-12 08:05:55

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,679
Website

Re: Intel graphics gpu hang after resume from suspend

aouelete wrote:

I have Intel HD 4600 graphics

Me too smile

EDIT: xmonad desktop though.

No problems here, I am also using DRI3 but with the "glamor" acceleration method (at least that's what I have specified in the xorg configuration file, the log file seems to show that SNA is still being used).

If the problem is intermittent, I would suggest hardware failure as a possible cause.

Can you reproduce this if you try a live version of a different distribution?

Last edited by Head_on_a_Stick (2016-02-12 08:06:42)

Offline

#3 2016-02-12 15:15:44

aouelete
Member
Registered: 2015-05-27
Posts: 30

Re: Intel graphics gpu hang after resume from suspend

I'll try a live disk later today and report the results.

It does seem like setting the rendering backend to xrender fixes the crashes, but it also causes a ton of screen tearing.
I'll try fiddling with the settings some more and see what happens.

Head_on_a_Stick wrote:

If the problem is intermittent, I would suggest hardware failure as a possible cause.

I really hope that this is not a hardware issue ....
Are there other ways to diagnose whether this might be a hardware issue?

Last edited by aouelete (2016-02-12 15:16:20)

Offline

#4 2016-02-12 15:46:24

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,794
Website

Re: Intel graphics gpu hang after resume from suspend

Is this 4.4.1-2-ARCH kernel? There have been various posts on the forum about intel graphics crashing after a recent update.


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#5 2016-02-12 21:18:12

aouelete
Member
Registered: 2015-05-27
Posts: 30

Re: Intel graphics gpu hang after resume from suspend

ugjka wrote:

Is this 4.4.1-2-ARCH kernel? There have been various posts on the forum about intel graphics crashing after a recent update.

Yes, I am running the latest kernel. The strange thing though is that it was updated 9 days ago and I've only noticed the hangs in the last couple of days. Still, maybe it is a kernel issue ....

Offline

#6 2016-02-12 21:20:04

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,679
Website

Re: Intel graphics gpu hang after resume from suspend

aouelete wrote:

I've only noticed the hangs in the last couple of days

Check your pacman log to see which packages were updated in that timeframe.

I've had new versions of the Intel driver and Xorg recently (using the [testing] repositories).

EDIT: Xorg was updated today so it won't be that.

Last edited by Head_on_a_Stick (2016-02-12 21:21:59)

Offline

#7 2016-02-14 00:10:41

PkmX
Member
Registered: 2010-11-01
Posts: 5

Re: Intel graphics gpu hang after resume from suspend

I'm also starting to experience problems with the Intel graphics card (HD3000) recently: the GPU gets locked and all OpenGL applications would stop drawing frames. Here are the relevant logs from journal:

Feb 14 04:51:05 singularity kernel: [drm] stuck on render ring
Feb 14 04:51:05 singularity kernel: [drm] GPU HANG: ecode 6:0:0x87e8fffd, in Xorg [949], reason: Ring hung, action: reset
Feb 14 04:51:05 singularity kernel: [drm] GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.
Feb 14 04:51:05 singularity kernel: [drm] Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel
Feb 14 04:51:05 singularity kernel: [drm] drm/i915 developers can then reassign to the right component if it's not a kernel issue.
Feb 14 04:51:05 singularity kernel: [drm] The gpu crash dump is required to analyze gpu hangs, so please always attach it.
Feb 14 04:51:05 singularity kernel: [drm] GPU crash dump saved to /sys/class/drm/card0/error
Feb 14 04:51:05 singularity kernel: drm/i915: Resetting chip after gpu hang
Feb 14 07:43:29 singularity kernel: [drm] stuck on render ring
Feb 14 07:43:30 singularity kernel: [drm] GPU HANG: ecode 6:0:0x87e8fffd, in Xorg [949], reason: Ring hung, action: reset
Feb 14 07:43:30 singularity kernel: drm/i915: Resetting chip after gpu hang
Feb 14 07:43:35 singularity kernel: [drm] stuck on render ring
Feb 14 07:43:35 singularity kernel: [drm] GPU HANG: ecode 6:0:0x87e8fffd, in Xorg [949], reason: Ring hung, action: reset
Feb 14 07:43:35 singularity kernel: [drm:i915_set_reset_status [i915]] *ERROR* gpu hanging too fast, banning!
Feb 14 07:43:35 singularity kernel: drm/i915: Resetting chip after gpu hang

Unfortunately I didn't manage to catch the dump in /sys/class/drm/card0/error. The first one happened many hours after resuming from suspend, while the second one occurred without suspending, so I guess that isn't the problem here.

Checking /var/log/pacman.log:

[2016-02-05 04:37] [ALPM] upgraded linux (4.3.3-3 -> 4.4.1-2)
[2016-02-12 14:38] [ALPM] upgraded mesa (11.1.1-1 -> 11.1.2-1)
[2016-02-12 14:38] [ALPM] upgraded mesa-libgl (11.1.1-1 -> 11.1.2-1)

I upgraded the kernel to 4.4.1 a week ago and didn't experience any problems last week, so the mesa upgrade two days ago could be the culprit (and it fits the time of your post too). I will try to downgrade it to 11.1.1 and see if it helps.

EDIT: This is my Xorg file for Intel graphics:

Section "Device"
    Identifier "intel"
    Driver "intel"
    Option "DRI" "3"
EndSection

EDIT: There is also a relevant bug report on mesa: https://bugs.freedesktop.org/show_bug.cgi?id=94124.

Last edited by PkmX (2016-02-14 00:22:58)

Offline

#8 2016-02-14 01:00:04

aouelete
Member
Registered: 2015-05-27
Posts: 30

Re: Intel graphics gpu hang after resume from suspend

PkmX wrote:

EDIT: There is also a relevant bug report on mesa: https://bugs.freedesktop.org/show_bug.cgi?id=94124.

That bug report seems to be describing the exact problem I have, so hopefully it will get worked on.

PkmX wrote:

I upgraded the kernel to 4.4.1 a week ago and didn't experience any problems last week, so the mesa upgrade two days ago could be the culprit (and it fits the time of your post too). I will try to downgrade it to 11.1.1 and see if it helps.

My problem started before the mesa upgrade, so I don't think that is the issue.

Offline

#9 2016-02-29 19:53:01

madalu
Member
Registered: 2009-05-05
Posts: 217

Re: Intel graphics gpu hang after resume from suspend

Downgrading mesa to 11.1.1 solved the problem for me. Obviously not a permanent fix, but., for the time being, it prevents the gpu from hanging when I resume from suspend.

Edit: Actually, this information is incorrect. On my machine the problem is the kernel, not mesa. Switching to linux-lts has made the problem disappear.

Last edited by madalu (2016-03-04 18:39:25)

Offline

#10 2016-03-29 16:35:03

marmistrz
Member
Registered: 2016-01-05
Posts: 110

Re: Intel graphics gpu hang after resume from suspend

I'm using linux-lts (4.1.20-1-lts) and I'm experiencing the same problem. Basically 1 out of 20-30 suspends will result in a gpu hang. I have Intel Core i5-5200U

On another distro (Linux Mint 17) I experienced random lockdowns of the whole computer, so this may be the same.

After the gpu hang, the acceleration gets disabled, so the animations get stuttering.
Log in/log out seems to solve the stuttering problem.

Any ideas how to fix it permanently?

Offline

Board footer

Powered by FluxBB