Bug 80660 - [gen7] death on ctx restore
Summary: [gen7] death on ctx restore
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
: 80886 82062 103625 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-06-29 04:20 UTC by imwmbm
Modified: 2017-11-08 19:49 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments
/sys/class/drm/card0/error (2.88 MB, text/plain)
2014-06-29 04:20 UTC, imwmbm
no flags Details

Description imwmbm 2014-06-29 04:20:15 UTC
Created attachment 101956 [details]
/sys/class/drm/card0/error

X freezes in random time after boot.

Shortest record: 3 minute. Longest record: >3 hours.

It freezes about 10~20 seconds every time.

During freeze, the computer does not respond to any input, but the programs are still running in background (e.g. games still runs in the background with sound, movie are still playing).

After that, KDE will give a notification like "Desktop effect is reset since X is reset" (something similar to that, I am using Chinese locale and therefore cannot give exact words in English).

Some the words in the current window will be corrupted. This is most observable in Firefox, many of the words in the current tab will be corrupted and become unreadable. Refreshing the page doesn't help, but close and reopen Firefox will make it returns to normal.

The freeze will occur only once per boot. After a freeze, the system will run normally until the next boot.

Tried adding "i915.semaphores=1" in boot parameter and using UXA instead of SNA (according to https://wiki.archlinux.org/index.php/Intel_Graphics#X_freeze.2Fcrash_with_intel_driver), but these didn't help.

Tried standard kernel of Arch and CK-patched kernel, both will give freezes.

Attached are dmesg, /sys/class/drm/card0/error, and Xorg.0.log



OS: ArchLinux
Kernel: 3.14.9-1-ck (also tried the standard kernel)
CPU: Intel(R) Pentium(R) CPU G3220 @ 3.00GHz
VGA:

00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06) (prog-if 00 [VGA controller])
        Subsystem: ASRock Incorporation Device 0402
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 40
        Region 0: Memory at f0000000 (64-bit, non-prefetchable) [size=4M]
        Region 2: Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Region 4: I/O ports at f000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: <access denied>
        Kernel driver in use: i915
        Kernel modules: i915

$ Xorg -version                                                       :(

X.Org X Server 1.15.1
Release Date: 2014-04-13
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.14.0-4-ARCH x86_64 
Current Operating System: Linux nkdesktop 3.14.9-1-ck #1 SMP PREEMPT Thu Jun 26 16:51:42 EDT 2014 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-ck root=UUID=ba29dd77-421f-48ec-a6bd-0315156ed205 rw
Build Date: 14 April 2014  08:39:09AM
 
Current version of pixman: 0.32.4
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.


$ dmesg | grep drm
[    0.213645] [drm] Initialized drm 1.1.0 20060810
[    0.217515] [drm] Memory usable by graphics device = 2048M
[    0.217519] fb: conflicting fb hw usage inteldrmfb vs EFI VGA - removing generic driver
[    0.246446] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    0.246447] [drm] Driver supports precise vblank timestamp query.
[    0.383310] fbcon: inteldrmfb (fb0) is primary device
[    0.551364] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[    0.567277] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
[    1.708604] [drm] Enabling RC6 states: RC6 on, RC6p off, RC6pp off
[ 3775.985440] [drm] stuck on render ring
[ 3775.985449] [drm] GPU crash dump saved to 
[ 3775.985453] [drm] GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.
[ 3775.985455] [drm] Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel
[ 3775.985457] [drm] drm/i915 developers can then reassign to the right component if it's not a kernel issue.
[ 3775.985460] [drm] The gpu crash dump is required to analyze gpu hangs, so please always attach it.
[ 3781.981957] [drm] stuck on render ring


Attached is /sys/class/drm/card0/error
Comment 1 Chris Wilson 2014-06-29 05:50:56 UTC
The primary suspect in these events is mesa, please make sure you are tracking its updates.
Comment 2 imwmbm 2014-06-29 06:30:00 UTC
(In reply to comment #1)
> The primary suspect in these events is mesa, please make sure you are
> tracking its updates.

I think most of the packages are up-to-date since I update ArchLinux almost everyday.
mesa version: 10.2.2

$ pacman -Qs mesa 
local/ati-dri 10.2.2-1
    Mesa drivers for AMD/ATI Radeon
local/glu 9.0.0-2
    Mesa OpenGL Utility library
local/intel-dri 10.2.2-1
    Mesa drivers for Intel
local/lib32-glu 9.0.0-2
    Mesa OpenGL utility library (32 bits)
local/lib32-intel-dri 10.2.2-1
    Mesa DRI drivers for Intel (32-bit)
local/lib32-libtxc_dxtn 1.0.1-5
    S3 Texture Compression (S3TC) library for Mesa (32-bit)
local/lib32-mesa 10.2.2-1
    an open-source implementation of the OpenGL specification (32-bit)
local/lib32-mesa-libgl 10.2.2-1
    Mesa 3-D graphics library (32-bit)
local/libtxc_dxtn 1.0.1-5
    S3 Texture Compression (S3TC) library for Mesa
local/mesa 10.2.2-1
    an open-source implementation of the OpenGL specification
local/mesa-demos 8.1.0-2
    Mesa demos and tools
local/mesa-libgl 10.2.2-1
    Mesa 3-D graphics library
Comment 3 Chris Wilson 2014-07-04 06:01:28 UTC
*** Bug 80886 has been marked as a duplicate of this bug. ***
Comment 4 Hugh Greenberg 2014-07-24 15:41:59 UTC
I've been tracking Mesa's updates and I haven't seen anything about this bug.  Has this bug been fixed? Thanks.
Comment 5 Chris Wilson 2014-08-03 06:29:43 UTC
*** Bug 82062 has been marked as a duplicate of this bug. ***
Comment 6 Jani Nikula 2014-12-17 15:02:36 UTC
commit 2c550183476dfa25641309ae9a28d30feed14379
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Tue Dec 16 10:02:27 2014 +0000

    drm/i915: Disable PSMI sleep messages on all rings around context switches

in drm-intel-next-fixes.
Comment 7 Chris Wilson 2017-11-08 19:49:59 UTC
*** Bug 103625 has been marked as a duplicate of this bug. ***


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.