Bug 93571

Summary: [i915] GPU HANG: ecode 8:0:0x85df3c1b, in Borderlands2 [3479], reason: Ring hung
Product: DRI Reporter: Tiago Stürmer Daitx <tdaitx>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: CLOSED DUPLICATE QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: intel-gfx-bugs
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: BDW i915 features: GPU hang
Attachments:
Description Flags
GPU crash dump from /sys/class/drm/card0/error none

Description Tiago Stürmer Daitx 2016-01-04 01:23:56 UTC
Created attachment 120784 [details]
GPU crash dump from /sys/class/drm/card0/error

While running Borderlands 2 on an Asus UX303LA running Ubuntu 15.04 (Wily) it hangs very often. Usually it hangs in 1 or 3 minutes after a game starts, on a good day I can play for about 15~30 minutes before the first hang.

Happens on 15.04 mesa drivers as well as the ones from oibaf (http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu).


dmesg from first hang
-----
[  561.357624] [drm] stuck on render ring
[  561.366850] [drm] GPU HANG: ecode 8:0:0x85df3c1b, in Borderlands2 [3479], reason: Ring hung, action: reset
[  561.366852] [drm] GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.
[  561.366853] [drm] Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel
[  561.366854] [drm] drm/i915 developers can then reassign to the right component if it's not a kernel issue.
[  561.366855] [drm] The gpu crash dump is required to analyze gpu hangs, so please always attach it.
[  561.366857] [drm] GPU crash dump saved to /sys/class/drm/card0/error
[  561.369331] drm/i915: Resetting chip after gpu hang
[  567.362378] [drm] stuck on render ring
[  567.368586] [drm] GPU HANG: ecode 8:0:0x85dffffb, in Borderlands2 [3479], reason: Ring hung, action: reset
[  567.370470] drm/i915: Resetting chip after gpu hang
[  567.383705] show_signal_msg: 52 callbacks suppressed
[  567.383709] Borderlands2[3479]: segfault at 79438 ip 00000000091c4352 sp 00000000ffddfc40 error 6 in Borderlands2[8048000+235a000]


further hangs:
[  872.692295] [drm] stuck on render ring
[  872.699387] [drm] GPU HANG: ecode 8:0:0x85dffffb, in Borderlands2 [3767], reason: Ring hung, action: reset
[  872.702364] drm/i915: Resetting chip after gpu hang
[ 1072.911271] [drm] stuck on render ring
[ 1072.919318] [drm] GPU HANG: ecode 8:0:0x85dffffb, in Borderlands2 [3767], reason: Ring hung, action: reset
[ 1072.922381] drm/i915: Resetting chip after gpu hang
[ 1078.905058] [drm] stuck on render ring
[ 1078.912613] [drm] GPU HANG: ecode 8:0:0x85df3c1b, in Borderlands2 [3767], reason: Ring hung, action: reset
[ 1078.914904] drm/i915: Resetting chip after gpu hang
[ 1078.929812] Borderlands2[3767]: segfault at 75bb8 ip 00000000091c4352 sp 00000000ffcda580 error 6 in Borderlands2[8048000+235a000]




I'm not sure if this is related, but every time I start my computer I see the following message in dmesg:

[   59.392871] ------------[ cut here ]------------
[   59.392894] WARNING: CPU: 1 PID: 0 at /build/linux-cRemOf/linux-4.2.0/drivers/gpu/drm/i915/intel_uncore.c:620 hsw_unclaimed_reg_debug+0x6d/0x90 [i915]()
[   59.392895] Unclaimed register detected before reading register 0x22390
[   59.392896] Modules linked in: ctr ccm rfcomm xt_conntrack ipt_REJECT nf_reject_ipv4 xt_CHECKSUM iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack xt_tcpudp bridge stp llc ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables binfmt_misc bnep arc4 iwlmvm mac80211 asus_nb_wmi asus_wmi uvcvideo sparse_keymap videobuf2_vmalloc videobuf2_memops videobuf2_core hid_sony iwlwifi intel_rapl x86_pkg_temp_thermal v4l2_common intel_powerclamp ff_memless coretemp videodev media btusb snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_codec_generic input_leds joydev btrtl btbcm btintel serio_raw bluetooth cfg80211 snd_hda_intel snd_soc_rt5640 snd_soc_rl6231 snd_soc_core lpc_ich snd_hda_codec hid_multitouch
[   59.392929]  mei_me mei snd_compress shpchp snd_hda_core snd_hwdep processor_thermal_device ac97_bus intel_soc_dts_iosf snd_pcm_dmaengine iosf_mbi snd_pcm snd_timer int3400_thermal dw_dmac acpi_thermal_rel dw_dmac_core int3402_thermal snd int340x_thermal_zone soundcore 8250_dw kvm_intel acpi_als mac_hid kvm i2c_designware_platform kfifo_buf i2c_designware_core snd_soc_sst_acpi industrialio spi_pxa2xx_platform acpi_pad parport_pc ppdev lp parport sunrpc acpi_call(OE) autofs4 btrfs xor raid6_pq drbg ansi_cprng algif_skcipher af_alg dm_crypt hid_generic usbhid psmouse i915 crct10dif_pclmul crc32_pclmul aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper i2c_algo_bit cryptd drm_kms_helper drm ahci libahci wmi video sdhci_acpi sdhci i2c_hid hid
[   59.392962] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G           OE   4.2.0-22-generic #27-Ubuntu
[   59.392963] Hardware name: ASUSTeK COMPUTER INC. UX303LAB/UX303LAB, BIOS UX303LAB.203 12/11/2014
[   59.392965]  0000000000000000 8995c010696f2a81 ffff88021ec83c78 ffffffff817e94c9
[   59.392967]  0000000000000000 ffff88021ec83cd0 ffff88021ec83cb8 ffffffff8107b3d6
[   59.392969]  0000000000000000 ffff88007fa70000 0000000000022390 ffff88007fa743c8
[   59.392970] Call Trace:
[   59.392972]  <IRQ>  [<ffffffff817e94c9>] dump_stack+0x45/0x57
[   59.392978]  [<ffffffff8107b3d6>] warn_slowpath_common+0x86/0xc0
[   59.392980]  [<ffffffff8107b465>] warn_slowpath_fmt+0x55/0x70
[   59.392993]  [<ffffffffc01f714d>] hsw_unclaimed_reg_debug+0x6d/0x90 [i915]
[   59.392995]  [<ffffffff817f0067>] ? _raw_spin_lock_irqsave+0x37/0x40
[   59.393005]  [<ffffffffc01f95f9>] gen6_read32+0x59/0x180 [i915]
[   59.393016]  [<ffffffffc01ee788>] intel_lrc_irq_handler+0xc8/0x220 [i915]
[   59.393025]  [<ffffffffc01e5297>] gen8_gt_irq_handler+0x217/0x240 [i915]
[   59.393034]  [<ffffffffc01e535e>] gen8_irq_handler+0x9e/0x590 [i915]
[   59.393036]  [<ffffffff810d4284>] handle_irq_event_percpu+0x74/0x180
[   59.393038]  [<ffffffff810d43d9>] handle_irq_event+0x49/0x70
[   59.393040]  [<ffffffff810d7751>] handle_edge_irq+0x81/0x150
[   59.393042]  [<ffffffff810172b5>] handle_irq+0x25/0x40
[   59.393044]  [<ffffffff817f2eaf>] do_IRQ+0x4f/0xe0
[   59.393046]  [<ffffffff817f0e2b>] common_interrupt+0x6b/0x6b
[   59.393047]  <EOI>  [<ffffffff810e78a4>] ? enqueue_hrtimer+0x44/0x80
[   59.393051]  [<ffffffff816870b0>] ? cpuidle_enter_state+0x130/0x270
[   59.393052]  [<ffffffff8168708b>] ? cpuidle_enter_state+0x10b/0x270
[   59.393054]  [<ffffffff81687227>] cpuidle_enter+0x17/0x20
[   59.393056]  [<ffffffff810bd4f2>] call_cpuidle+0x32/0x60
[   59.393057]  [<ffffffff81687203>] ? cpuidle_select+0x13/0x20
[   59.393059]  [<ffffffff810bd788>] cpu_startup_entry+0x268/0x320
[   59.393061]  [<ffffffff8104d3d3>] start_secondary+0x183/0x1c0
[   59.393063] ---[ end trace 2ee219074b7f3e5f ]---
Comment 1 Tiago Stürmer Daitx 2016-01-04 01:32:07 UTC
Additional environment information.

$ uname -m
x86_64

$ uname -r
4.2.0-22-generic

$ xrandr
Screen 0: minimum 8 x 8, current 3200 x 1800, maximum 32767 x 32767
eDP1 connected 3200x1800+0+0 (normal left inverted right x axis y axis) 293mm x 165mm
   3200x1800     60.00*+  48.01  
   2880x1620     60.00  
   2560x1440     60.00  
   2048x1536     60.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     60.00  
   1920x1200     59.95  
   1920x1080     60.00    59.93  
   1600x1200     60.00  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      60.00  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1368x768      60.00  
   1360x768      59.80    59.96  
   1152x864      60.00  
   1280x720      60.00  
   1024x768      60.00  
   1024x576      60.00  
   960x540       60.00  
   800x600       60.32    56.25  
   864x486       60.00  
   640x480       59.94  
   720x405       60.00  
   640x360       60.00  
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)


$ dpkg -l | grep mesa  
ii  libegl1-mesa:amd64                       11.2~git1601031930.bf3474~gd~w             amd64        free implementation of the EGL API -- runtime
ii  libegl1-mesa-dev:amd64                   11.2~git1601031930.bf3474~gd~w             amd64        free implementation of the EGL API -- development files
ii  libgl1-mesa-dev:amd64                    11.2~git1601031930.bf3474~gd~w             amd64        free implementation of the OpenGL API -- GLX development files
ii  libgl1-mesa-dri:amd64                    11.2~git1601031930.bf3474~gd~w             amd64        free implementation of the OpenGL API -- DRI modules
ii  libgl1-mesa-dri:i386                     11.2~git1601031930.bf3474~gd~w             i386         free implementation of the OpenGL API -- DRI modules
ii  libgl1-mesa-glx:amd64                    11.2~git1601031930.bf3474~gd~w             amd64        free implementation of the OpenGL API -- GLX runtime
ii  libgl1-mesa-glx:i386                     11.2~git1601031930.bf3474~gd~w             i386         free implementation of the OpenGL API -- GLX runtime
ii  libglapi-mesa:amd64                      11.2~git1601031930.bf3474~gd~w             amd64        free implementation of the GL API -- shared library
ii  libglapi-mesa:i386                       11.2~git1601031930.bf3474~gd~w             i386         free implementation of the GL API -- shared library
ii  libgles1-mesa:amd64                      11.2~git1601031930.bf3474~gd~w             amd64        free implementation of the OpenGL|ES 1.x API -- runtime
ii  libgles2-mesa:amd64                      11.2~git1601031930.bf3474~gd~w             amd64        free implementation of the OpenGL|ES 2.x API -- runtime
ii  libgles2-mesa-dev:amd64                  11.2~git1601031930.bf3474~gd~w             amd64        free implementation of the OpenGL|ES 2.x API -- development files
ii  libglu1-mesa:amd64                       9.0.0-2                                    amd64        Mesa OpenGL utility library (GLU)
ii  libglu1-mesa:i386                        9.0.0-2                                    i386         Mesa OpenGL utility library (GLU)
ii  libglu1-mesa-dev                         9.0.0-2                                    amd64        Mesa OpenGL utility library -- development files
ii  libosmesa6:amd64                         11.2~git1601031930.bf3474~gd~w             amd64        Mesa Off-screen rendering extension
ii  libosmesa6:i386                          11.2~git1601031930.bf3474~gd~w             i386         Mesa Off-screen rendering extension
ii  libwayland-egl1-mesa:amd64               11.2~git1601031930.bf3474~gd~w             amd64        implementation of the Wayland EGL platform -- runtime
ii  mesa-common-dev:amd64                    11.2~git1601031930.bf3474~gd~w             amd64        Developer documentation for Mesa
ii  mesa-utils                               8.3.0-1~gd~w                               amd64        Miscellaneous Mesa GL utilities
ii  mesa-vdpau-drivers:amd64                 11.2~git1601031930.bf3474~gd~w             amd64        Mesa VDPAU video acceleration drivers
rc  mir-client-platform-mesa2:amd64          0.12.1+15.04.20150324-0ubuntu1             amd64        Display server for Ubuntu - client platform library for Mesa


$ dpkg -l | grep intel
ii  libdrm-intel1:amd64                      2.4.66+git1512221830.b38a4b~gd~w           amd64        Userspace interface to intel-specific kernel DRM services -- runtime
ii  libdrm-intel1:i386                       2.4.66+git1512221830.b38a4b~gd~w           i386         Userspace interface to intel-specific kernel DRM services -- runtime
ii  xserver-xorg-video-intel                 2:2.99.917+git1601031932.082a57~gd~w       amd64        X.Org X server -- Intel i8xx, i9xx display driver

Note: it also happened with Ubuntu's 15.04 default versions (xserver-xorg-video intel 2:2.99.917+git20150808-0ubuntu4 and libdrm-intel1 2.4.64-1).
Comment 2 Tiago Stürmer Daitx 2016-02-24 21:46:51 UTC

*** This bug has been marked as a duplicate of bug 93166 ***

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.